From 24efb352c0e0ed1c807ecd0e118177aa09558b2c Mon Sep 17 00:00:00 2001 From: bennypowers Date: Wed, 11 Oct 2023 19:51:34 +0000 Subject: [PATCH] deploy: 12755727b1ee92bff7b5646e3751441eb89ed9cc --- assets/css/style.css | 2 +- assets/css/style.css.map | 4 +- .../playground-typescript-worker-3d69e81a.js | 106 + assets/playgrounds/rh-accordion-playground.js | 6 +- assets/playgrounds/rh-alert-playground.js | 10 +- .../playgrounds/rh-audio-player-playground.js | 14 +- assets/playgrounds/rh-avatar-playground.js | 16 +- assets/playgrounds/rh-badge-playground.js | 2 +- .../playgrounds/rh-blockquote-playground.js | 2 +- assets/playgrounds/rh-button-playground.js | 6 +- assets/playgrounds/rh-card-playground.js | 8 +- .../playgrounds/rh-code-block-playground.js | 8 +- assets/playgrounds/rh-cta-playground.js | 16 +- assets/playgrounds/rh-dialog-playground.js | 2 +- assets/playgrounds/rh-footer-playground.js | 4 +- assets/playgrounds/rh-menu-playground.js | 4 +- .../rh-navigation-secondary-playground.js | 14 +- .../playgrounds/rh-pagination-playground.js | 6 +- assets/playgrounds/rh-playground.js | 13731 +++++++++++++++- assets/playgrounds/rh-spinner-playground.js | 2 +- assets/playgrounds/rh-stat-playground.js | 2 +- assets/playgrounds/rh-subnav-playground.js | 6 +- assets/playgrounds/rh-tabs-playground.js | 6 +- assets/playgrounds/rh-tag-playground.js | 6 +- assets/playgrounds/rh-timestamp-playground.js | 6 +- assets/playgrounds/rh-tooltip-playground.js | 2 +- 26 files changed, 13878 insertions(+), 113 deletions(-) create mode 100644 assets/playgrounds/assets/playground-typescript-worker-3d69e81a.js diff --git a/assets/css/style.css b/assets/css/style.css index 00194d5967..6f54dc7077 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -1,3 +1,3 @@ -/*! normalize.css v3.0.0 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:transparent}a:active,a:hover{outline:0;text-decoration:underline;color:#004080}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:var(--rh-font-family-code);font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}*,*:before,*:after{box-sizing:border-box}@keyframes fadeintimer{0%{visibility:hidden;opacity:0}80%{visibility:visible}81%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{visibility:visible;opacity:0}100%{opacity:1}}html{scroll-padding-top:60px}@media(min-width: 820px){html{scroll-padding-top:72px}}body{font-family:RedHatText,Overpass,Helvetica,sans-serif;font-size:1rem;line-height:1.6;overflow-y:scroll;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.l-main__content{font-size:var(--rh-font-size-body-text-lg, 1.125rem)}h1,h2,h3,h4,h5,h6{line-height:var(--rh-line-height-heading, 1.3);font-family:RedHatDisplay,Overpass,Helvetica,sans-serif}h1{font-weight:var(--rh-font-weight-heading-regular, 300)}h2,h3,h4,h5,h6{font-weight:var(--rh-font-weight-heading-medium, 500)}h1{font-size:var(--rh-font-size-heading-2xl, 3rem)}h2{font-size:28px}h3{font-size:24px}h4{font-size:20px}h5{font-size:18px}h6{font-size:16px}img{max-width:100%}figure img{display:block}p:empty{margin-block-start:0 !important;margin-block-end:0 !important}a{color:#06c}a:hover{color:#004080}a:focus{color:#004080}a:active{color:#004080}a:visited{color:#06c}a:visited:hover{color:#004080}li{line-height:2}video,iframe{max-width:100%}table{border:1px solid #eee}td,th{padding:18px 18px}thead th{border-bottom:1px solid #d2d2d2}tfoot th{border-top:1px solid #d2d2d2}th{font-size:14px}td{border:1px solid #f5f5f5;border-left:0}td:last-child{border-right:0}caption{font-style:italic}pre{border:1px solid #dbdbdb;padding:1em;background:#f9f9f9}summary{color:#06c;cursor:pointer}summary:hover{color:#004080}summary:focus{color:#004080}summary:active{color:#004080}.site-navigation__outer-wrapper{position:fixed;top:60px;left:0;z-index:10;height:calc(100vh - 60px)}@media(min-width: 820px){.site-navigation__outer-wrapper{position:fixed;top:72px;bottom:0;left:0;height:calc(100vh - 72px)}}.site-navigation{width:280px;padding-top:30px;height:calc(100vh - 60px);overflow-y:auto;color:#151515;background:#fff;border-right:1px solid #d2d2d2}@media(min-width: 820px){.site-navigation{width:280px;height:calc(100vh - 72px);padding-bottom:40px;visibility:visible}}.site-navigation:before{display:block;margin:0 1em 1em;padding:.5em 32px 1em;border-bottom:1px solid #dbdbdb;text-transform:uppercase;color:#999}.site-navigation summary::-webkit-details-marker{display:none}.site-navigation .site-navigation__link,.site-navigation .site-navigation__heading,.site-navigation .site-navigation__sub-menu__link{display:block;text-decoration:none;transition:background-color .25s;font-size:18px;padding:.5em 32px;color:#151515}.site-navigation .site-navigation__link:hover,.site-navigation .site-navigation__link:focus,.site-navigation .site-navigation__heading:hover,.site-navigation .site-navigation__heading:focus,.site-navigation .site-navigation__sub-menu__link:hover,.site-navigation .site-navigation__sub-menu__link:focus{color:#151515;background:var(--rh-color-surface-lighter, #f2f2f2);box-shadow:inset 3px 0 0 0 #d2d2d2}.site-navigation .site-navigation__heading:after{content:"";color:#151515;width:9px;height:9px;transform:rotate(45deg);border-right:3px solid #151515;border-top:3px solid #151515;display:flex;float:right;top:13px;position:relative}.site-navigation details[open] .site-navigation__heading:after{transform:rotate(135deg)}.site-navigation .site-navigation__item{line-height:36px}.site-navigation .site-navigation__link--active,.site-navigation .site-navigation__sub-menu__link--active{background:var(--rh-color-surface-lighter, #f2f2f2);box-shadow:inset 3px 0 0 0 #e00;color:#151515}.site-navigation .site-navigation__sub-menu__link{font-size:16px;line-height:24px;padding-left:16px}.site-navigation .site-navigation__sub-menu__link:hover{color:#151515}.site-navigation__wrapper,.site-navigation__sub-menu{margin:0;padding:0;list-style:none}.site-navigation__sub-menu{padding-left:32px}.menu-toggle{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;clip-path:inset(50%);border:0}@media(min-width: 820px){.menu-toggle{display:none}}.menu-toggle__button{display:block;cursor:pointer;border:0;overflow:hidden;background:transparent;appearance:none;user-select:none}@media(min-width: 820px){.menu-toggle__button{display:none}}.menu-toggle__toggleable.js-menu-toggle__toggleable,[id=mobile-menu-toggle]~.menu-toggle__toggleable{visibility:hidden;transition:visibility 0s .4s,width .25s ease-in-out;width:0;overflow:hidden;background:#fff}@media(min-width: 820px){.menu-toggle__toggleable.js-menu-toggle__toggleable,[id=mobile-menu-toggle]~.menu-toggle__toggleable{overflow:visible;visibility:visible}}.menu-toggle__toggleable.js-menu-toggle__toggleable--open,[id=mobile-menu-toggle]:checked~.menu-toggle__toggleable{visibility:visible;transition:visibility 0s 0s,width .25s ease-in-out;width:280px}.header{padding-block:var(--rh-space-2xl)}@media(min-width: 1400px){.header{padding-block:var(--rh-space-5xl)}}.header .page-title{margin:0}.header .page-title:only-child{margin-block-end:0}.header .page-title+rh-subnav{margin-block-start:var(--rh-space-2xl)}.l-main__header{position:sticky;z-index:1;top:-28.95px}@media(min-width: 1400px){.l-main__header{top:-102.56px}}.l-header__logo{margin-left:0}@media(min-width: 820px){.l-header__logo{margin-left:0}}.l-header__logo-bar a{display:inherit}[id=mobile-menu-toggle][id],.l-header__mobile-menu-toggle{position:fixed;top:0;right:0}@media(min-width: 820px){[id=mobile-menu-toggle][id],.l-header__mobile-menu-toggle{display:none}}.l-header__mobile-menu-toggle{width:72px;height:60px;color:#fff;z-index:200}.l-header__burger-icon{display:block;position:absolute;top:50%;left:calc(50% - 12px);transform:scale(0.25);transform-origin:left top}.l-header__burger-icon:before,.l-header__burger-icon:after{content:"";position:absolute;top:0;left:0;box-sizing:border-box;display:block;width:96px}.l-header__burger-icon:before{height:0;border-top:8px solid #fff;background:#fff;transform:translateY(-32px);transform-origin:left top;transition:transform .3s cubic-bezier(0.55, 0.085, 0, 0.99)}[id=mobile-menu-toggle]:checked~.l-header__mobile-menu-toggle .l-header__burger-icon:before{transform:translateY(-32px) rotate(45deg);transform-origin:left top}.l-header__burger-icon:after{height:40px;border:8px solid #fff;border-width:8px 0 8px 0;transition:border .3s cubic-bezier(0.55, 0.085, 0, 0.99),transform .3s cubic-bezier(0.55, 0.085, 0, 0.99);transform-origin:left bottom}[id=mobile-menu-toggle]:checked~.l-header__mobile-menu-toggle .l-header__burger-icon:after{transform:rotate(-45deg);border-top-color:transparent;transform-origin:left bottom}[id=mobile-menu-toggle]:checked~.menu-toggle__toggleable{width:100%;background-color:rgba(21,21,21,.5)}@media(min-width: 820px){[id=mobile-menu-toggle]:checked~.menu-toggle__toggleable{background-color:transparent;width:auto}}@media(min-width: 1400px){.section+.section{margin-block-start:var(--rh-space-5xl, 80px)}}.container .section,.section .section{margin-block-end:var(--rh-space-4xl, 64px);padding-left:0;padding-right:0}@media(min-width: 1400px){.container .section,.section .section{margin-block-end:var(--rh-space-5xl, 80px)}}rh-alert+.example{margin-top:32px}.example{display:flex;align-items:center;padding:32px}@media(min-width: 1400px){.example{width:calc(100vw - 520px);padding:64px;margin-bottom:64px;max-width:100%}}.example+.example{margin-top:32px}@media(min-width: 1400px){.example+.example{margin-top:-32px}}.example+.footnote{display:inline-block;margin-top:16px}.example+.footnote-alignment{display:inline-block;margin-top:16px}@media(min-width: 1400px){.example+.footnote-alignment{margin-top:-48px}}.example+table{margin-top:16px}@media(min-width: 1400px){.example+table{margin-top:-48px}}.example img:only-child{display:block;margin:0 auto}.example--descriptor{font-size:16px;align-items:center;justify-content:center;text-align:left}.example--descriptor img{display:block;margin-bottom:16px;flex-shrink:0}.example.component{justify-content:center}.example rh-cta{margin-bottom:16px}.example--palette-none{padding:0;border:none;border-radius:none}.example--palette-none img:only-child{margin:0}@media(min-width: 1400px){.example--palette-none{padding:0}}.example--palette-light{background:#fff;border:1px solid #d2d2d2;border-radius:8px}.example--palette-lightest{background:transparent;border:1px solid #d2d2d2;border-radius:8px}.example--palette-darkest{color:#fff;background:#151515;border-radius:8px}.example--palette-wrong{background-color:transparent;background-image:url("../best-practices-danger-icon.svg");background-repeat:no-repeat;background-size:24px;background-position-x:8px;background-position-y:8px;border:1px solid #e00;border-radius:8px}.example--palette-medium{background:#f0f0f0;border-radius:8px}.example--palette-dark{background:#15151580;border-radius:8px}.example--palette-descriptive{background:transparent;border:1px solid #d2d2d2;border-radius:8px;padding-top:32px;padding-bottom:32px;margin-bottom:24px}.example--palette-descriptive img{width:auto;max-width:var(--inline-img-max-width, 100%);max-height:var(--inline-img-max-height, auto)}.example--palette-descriptive-blue{background:#06c;border-radius:8px;padding-top:32px;padding-bottom:32px;margin-bottom:24px}.example--palette-descriptive-blue img{width:auto;max-width:var(--inline-img-max-width, 100%);max-height:var(--inline-img-max-height, auto)}.example--palette-descriptive-dark-gray{background:rgba(0,0,0,.65);border-radius:8px;padding-top:32px;padding-bottom:32px;margin-bottom:24px}.example--palette-descriptive-dark-gray img{width:auto;max-width:var(--inline-img-max-width, 100%);max-height:var(--inline-img-max-height, auto)}.example--palette-descriptive-gray{background:rgba(0,0,0,.25);border:1px solid #d2d2d2;border-radius:8px;padding-top:32px;padding-bottom:32px;margin-bottom:24px}.example--palette-descriptive-gray img{width:auto;max-width:var(--inline-img-max-width, 100%);max-height:var(--inline-img-max-height, auto)}.example--palette-descriptive-light-gray{background:#f0f0f0;border-radius:8px;padding-top:32px;padding-bottom:32px;margin-bottom:24px}.example--palette-descriptive-light-gray img{width:auto;max-width:var(--inline-img-max-width, 100%);max-height:var(--inline-img-max-height, auto)}.example--palette-descriptive.gray-bg{background-color:rgb(var(--rh-color-gray-90-rgb, 21 21 21)/var(--rh-opacity-60, 60%));border:none}.example--palette-descriptive.blue-bg{background-color:var(--rh-color-blue-400, #0066cc);border:none}.example .example--typography{padding:32px}.example .example--typography p{margin:0}.section .example img{width:auto;max-height:var(--example-img-max-height, auto);object-fit:contain;overflow:hidden}.example+.example{margin-block-start:var(--rh-space-2xl)}.feedback:is(.section){margin-block-start:var(--rh-space-5xl, 80px)}.feedback:is(.section).feedback :is(h2):first-of-type{margin-block-start:0}.table-of-contents{background:var(--rh-color-surface-lighter, #f2f2f2);padding:16px 24px}@media(min-width: 1400px){.table-of-contents{margin-bottom:80px}}.table-of-contents h2{font-size:.75em;text-transform:uppercase;letter-spacing:.15em}.table-of-contents ol{list-style:none;margin:0;padding:0}.table-of-contents>ol{margin:1em 0}.table-of-contents li{padding:0}.table-of-contents li a{display:inline-block;margin:0 0 .5em}.table-of-contents>ol li li{padding-left:1em}.table-of-contents>ol li li li{padding-left:2em}.table-of-contents>ol li li li li{padding-left:3em}.table-of-contents>ol li li li li li{padding-left:4em}.component-status-table{width:100%;border:0;border-collapse:collapse;font-size:.9em;line-height:1.4;text-align:center}.component-status-table :is(td,th){padding:12px 16px;text-align:center !important}.component-status-table th{font-size:14px}.component-status-table tbody th{font-size:var(--rh-font-size-body-text-md, 1rem) !important;font-weight:var(--rh-font-weight-heading-medium, 500)}.component-status-table :is(th,td):first-child{text-align:left !important}.component-status-table :is(th,td):nth-child(n+8){display:none}.component-status-table td{border:1px solid #d2d2d2;border-left:0;border-right:0}.component-status-table td:last-child{border-right:0}.component-status-table td svg{height:var(--rh-size-icon-01, 16px);width:var(--rh-size-icon-01, 16px);fill:var(--rh-color-text-primary-on-light, #151515)}@media(max-width: 1000px){.component-status-table :is(td,th){padding:12px 8px}}.component-status-table+small{align-self:end}.component-status-table-container{display:flex;flex-flow:column nowrap}@media only screen and (max-width: 991px){.component-status-table-container{overflow-x:scroll}.component-status-table{width:912px}.component-status-table+small{align-self:start}}.spacer-tokens-table tbody th{font-size:var(--rh-font-size-body-text-md, 1rem) !important;font-weight:var(--rh-font-weight-heading-medium, 500)}.spacer-tokens-table tbody td{width:33%}.spacer-tokens-table :is(th,td):first-child{text-align:left !important}.spacer-tokens-table samp{width:var(--samp-width);aspect-ratio:1/1;outline:var(--rh-border-width-sm, 1px) dashed var(--samp-color, var(--rh-color-surface-darkest, #151515));color:var(--samp-color, var(--rh-color-text-primary-on-light, #151515));display:flex;justify-content:center;align-items:center;position:relative;font-size:var(--rh-font-size-body-text-xs, 0.75rem)}.spacer-tokens-table samp span{display:flex;align-items:center;justify-content:center;line-height:1rem;min-height:100%}.spacer-tokens-table samp:before{content:"";width:var(--samp-width);aspect-ratio:1/1;background-color:var(--samp-color, var(--rh-color-surface-darkest, #151515));opacity:.125;z-index:-1;position:absolute}.spacer-tokens-table samp.offset span{position:absolute;left:calc(var(--samp-width) + 2px)}.spacer-tokens-table samp.size-4:before{opacity:1}.spacer-tokens-table samp.size-6{color:#c58c00}.spacer-tokens-table samp.size-6:before{opacity:1}.spacer-tokens-table samp.size-8{color:#51a549}#related-items-list{list-style:none;padding-inline-start:0}#related-items-list li{line-height:1.6}.color-palette--swatch{width:100%;height:120px;display:block;border-radius:3px;background-color:var(--color-palette-background, #000);margin-bottom:24px}.color-palette--item{margin-bottom:32px}.color-palette--item p{font-size:16px;margin:0}.color-palette--item p:first-of-type{font-weight:600}body{padding-top:60px}@media(min-width: 768px){body{padding-top:72px}}.l-header__logo-bar{position:fixed;top:0;left:0;right:0;z-index:100;display:flex;align-items:center;height:60px;padding:0 24px;color:#fff;background:#000}@media(min-width: 768px){.l-header__logo-bar{position:fixed}}.l-header__logo-bar .feedback-button{align-self:center;justify-content:center;position:absolute;right:64px}@media(min-width: 768px){.l-header__logo-bar .feedback-button{right:48px}}@media(min-width: 820px){.l-header__logo-bar{height:72px}}.l-header__logo{max-width:136px}.l-main{position:relative}@media(min-width: 820px){.l-main{padding-left:280px}}.l-main__header--palette-lighter{background:var(--rh-color-surface-lighter, #f2f2f2);margin-bottom:80px}.l-main__content{padding-block-end:var(--rh-space-4xl, 64px)}.l-main__content>.container>*:not(p,.feedback,copy-permalink){margin-block-start:0;margin-block-end:var(--rh-space-2xl, 32px)}.main-footer{background-color:#151515;padding:24px 32px;margin-top:80px;display:flex;gap:8px;justify-content:flex-start;align-items:center;text-align:center;flex-flow:column nowrap}@media(min-width: 768px){.main-footer{flex-flow:row wrap;text-align:left;gap:0}.main-footer #netlify-badge{margin-inline-start:auto}}.main-footer img{display:block;margin:0 auto 24px;text-align:center}@media(min-width: 768px){.main-footer img{text-align:left;margin:0 24px}}.main-footer p{font-size:12px;color:#d2d2d2;margin:0 16px;padding:0;line-height:12px}.main-footer--list ul{display:block;margin:0;list-style:none;padding:0}@media(min-width: 768px){.main-footer--list ul{display:flex}}.main-footer--list ul li{padding:0 8px;line-height:24px}@media(min-width: 768px){.main-footer--list ul li{line-height:12px}}.main-footer--list ul a{line-height:12px;font-size:12px;color:#d2d2d2}.main-footer--list ul a:hover{color:#fff}.layout-wrapper--jumplinks{display:grid;grid-template-columns:8fr 2fr;grid-gap:64px;max-width:800px}.jump-links--layout{position:relative;min-width:200px}.jump-links--layout pfe-jump-links-nav{position:sticky;top:100px}:root{--width: auto}@media screen and (prefers-reduced-motion: no-preference){html{scroll-behavior:smooth}}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;clip-path:inset(50%);border:0;grid-gap:1rem}.element-invisible{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;clip-path:inset(50%);border:0;grid-gap:1rem}.header,.section,.container{max-width:1160px;padding-left:32px;padding-right:32px}@media(min-width: 1400px){.header,.section,.container{padding-left:80px;padding-right:80px}}.section h2{font-size:24px;line-height:31px}@media(min-width: 1200px){.section h2{font-size:28px;line-height:37px}}.section h3{margin-top:16px;font-size:20px;margin-bottom:16px}@media(min-width: 1200px){.section h3{font-size:24px;margin-top:64px}}.section h2+h3,.section h2+h4{margin-top:32px}.section h4{font-weight:500;margin:32px 0 16px;font-size:18px;line-height:25px}@media(min-width: 820px){.section h4{font-size:20px;line-height:26px}}.section h4 a{text-decoration:none}.section p{max-width:1000px;margin-top:16px;margin-bottom:16px}.section p a{text-decoration:none;color:#06c}.section p a:hover{text-decoration:underline;color:#004080}.section p+.example{margin-top:32px}.section p+ul{margin-bottom:24px;margin-top:0}.section--definition-list p{margin-bottom:0}.section img{width:auto;max-width:var(--inline-img-max-width, 100%);max-height:var(--inline-img-max-height, auto)}.section table{border:0}.section table tbody{border:0}.section table th{text-align:left;font-size:14px}.section table tr{border:1px solid #d2d2d2;border-top:0;border-left:0;border-right:0}.section table tr:first-child td{border-top:0}.section table tr.font-scale-altered td:nth-child(2){color:#b8bbbe}.section table tr.font-scale-altered td:nth-child(3){color:#e00}.section table tr.font-scale-same td:nth-child(3){color:#51a549}.section table td{border:1px solid #d2d2d2;border-right:0;border-left:0;font-size:16px}.section table td a{text-decoration:none}.section table td img{width:auto}.section ul li{line-height:40px}.section ul li a{text-decoration:none}.section ul li a:hover{text-decoration:underline}.section ol li{line-height:40px}.section ol li a{text-decoration:none}.section ol li a:hover{text-decoration:underline}.multi-column--150-wide,.multi-column--200-wide,.multi-column--300-wide,.multi-column--400-wide,.multi-column--500-wide,.multi-column--600-wide,.multi-column--min-150-wide,.multi-column--min-200-wide,.multi-column--min-300-wide,.multi-column--min-400-wide,.multi-column--min-500-wide,.multi-column--min-600-wide{grid-template-columns:1fr;width:100%;display:grid;grid-gap:32px;margin-bottom:64px}@media(min-width: 820px){.multi-column--150-wide,.multi-column--200-wide,.multi-column--300-wide,.multi-column--400-wide,.multi-column--500-wide,.multi-column--600-wide,.multi-column--min-150-wide,.multi-column--min-200-wide,.multi-column--min-300-wide,.multi-column--min-400-wide,.multi-column--min-500-wide,.multi-column--min-600-wide{grid-gap:2rem 64px;width:calc(100vw - 520px);max-width:100%;margin-bottom:auto}}.multi-column--150-wide .section+.section,.multi-column--200-wide .section+.section,.multi-column--300-wide .section+.section,.multi-column--400-wide .section+.section,.multi-column--500-wide .section+.section,.multi-column--600-wide .section+.section,.multi-column--min-150-wide .section+.section,.multi-column--min-200-wide .section+.section,.multi-column--min-300-wide .section+.section,.multi-column--min-400-wide .section+.section,.multi-column--min-500-wide .section+.section,.multi-column--min-600-wide .section+.section{margin:0}.multi-column--150-wide+h3,.multi-column--200-wide+h3,.multi-column--300-wide+h3,.multi-column--400-wide+h3,.multi-column--500-wide+h3,.multi-column--600-wide+h3,.multi-column--min-150-wide+h3,.multi-column--min-200-wide+h3,.multi-column--min-300-wide+h3,.multi-column--min-400-wide+h3,.multi-column--min-500-wide+h3,.multi-column--min-600-wide+h3{margin-top:0}.multi-column--150-wide .example,.multi-column--200-wide .example,.multi-column--300-wide .example,.multi-column--400-wide .example,.multi-column--500-wide .example,.multi-column--600-wide .example,.multi-column--min-150-wide .example,.multi-column--min-200-wide .example,.multi-column--min-300-wide .example,.multi-column--min-400-wide .example,.multi-column--min-500-wide .example,.multi-column--min-600-wide .example{margin-bottom:0}.multi-column--150-wide .example+.example,.multi-column--200-wide .example+.example,.multi-column--300-wide .example+.example,.multi-column--400-wide .example+.example,.multi-column--500-wide .example+.example,.multi-column--600-wide .example+.example,.multi-column--min-150-wide .example+.example,.multi-column--min-200-wide .example+.example,.multi-column--min-300-wide .example+.example,.multi-column--min-400-wide .example+.example,.multi-column--min-500-wide .example+.example,.multi-column--min-600-wide .example+.example{margin-top:0}.multi-column--200-wide{grid-template-columns:1fr}@media(min-width: 820px){.multi-column--200-wide{grid-template-columns:repeat(auto-fill, minmax(100px, 200px))}}.multi-column--300-wide{grid-template-columns:1fr}@media(min-width: 820px){.multi-column--300-wide{grid-template-columns:repeat(auto-fill, minmax(200px, 300px))}}.multi-column--400-wide{grid-template-columns:1fr}@media(min-width: 820px){.multi-column--400-wide{grid-template-columns:repeat(auto-fill, minmax(300px, 400px))}}.multi-column--500-wide{grid-template-columns:1fr}@media(min-width: 820px){.multi-column--500-wide{grid-template-columns:repeat(auto-fit, minmax(400px, 500px))}}.multi-column--600-wide{grid-template-columns:1fr}@media(min-width: 820px){.multi-column--600-wide{grid-template-columns:repeat(auto-fit, minmax(500px, 600px))}}.multi-column--min-150-wide{grid-template-columns:1fr;width:100%}@media(min-width: 820px){.multi-column--min-150-wide{grid-template-columns:repeat(auto-fill, minmax(100px, 1fr))}}.multi-column--min-200-wide{grid-template-columns:1fr;width:100%}@media(min-width: 820px){.multi-column--min-200-wide{grid-template-columns:repeat(auto-fit, minmax(200px, 1fr))}}.multi-column--min-300-wide{grid-template-columns:1fr;width:100%}@media(min-width: 820px){.multi-column--min-300-wide{grid-template-columns:repeat(auto-fit, minmax(300px, 1fr))}}.multi-column--min-400-wide{grid-template-columns:1fr;width:100%}@media(min-width: 820px){.multi-column--min-400-wide{grid-template-columns:repeat(auto-fit, minmax(400px, 1fr))}}.multi-column--min-500-wide{grid-template-columns:1fr;width:100%}@media(min-width: 820px){.multi-column--min-500-wide{grid-template-columns:repeat(auto-fit, minmax(500px, 1fr))}}.multi-column--min-600-wide{grid-template-columns:1fr;width:100%}@media(min-width: 820px){.multi-column--min-600-wide{grid-template-columns:repeat(auto-fit, minmax(600px, 1fr))}}.margin-top--1[class]{margin-top:8px}.margin-top--2[class]{margin-top:16px}.margin-top--3[class]{margin-top:24px}.margin-top--4[class]{margin-top:32px}.margin-top--5[class]{margin-top:40px}.margin-top--6[class]{margin-top:48px}.margin-top--7[class]{margin-top:56px}.margin-top--8[class]{margin-top:64px}.margin-top--9[class]{margin-top:72px}.margin-top--10[class]{margin-top:80px}.margin-top--12[class]{margin-top:96px}.margin-bottom--1[class]{margin-bottom:8px}.margin-bottom--2[class]{margin-bottom:16px}.margin-bottom--3[class]{margin-bottom:24px}.margin-bottom--4[class]{margin-bottom:32px}.margin-bottom--5[class]{margin-bottom:40px}.margin-bottom--6[class]{margin-bottom:48px}.margin-bottom--7[class]{margin-bottom:56px}.margin-bottom--8[class]{margin-bottom:64px}.margin-bottom--9[class]{margin-bottom:72px}.margin-bottom--10[class]{margin-bottom:80px}.centered{margin:0 auto;text-align:center;align-items:center}.centered p{max-width:1000px;margin:0 auto 48px}.footnote{font-size:14px;color:#6a6e73;line-height:18px;margin-top:16px;margin-bottom:64px}@media(min-width: 1400px){.footnote{margin-top:-16px}}hr{border:0;height:0;border-top:1px solid #d2d2d2}.pfe-headline-xxxl{font-size:48px;margin-top:16px;line-height:54px}@media(min-width: 820px){.pfe-headline-xxxl{font-size:64px;line-height:72px}}.section-headline{color:#e00;text-transform:uppercase;font-family:"RedHatDisplay","Overpass",Overpass,Helvetica,Arial,sans-serif;margin-bottom:0;line-height:26px;font-size:20px;font-weight:500}.multi-column--4-2-1-narrow{display:grid;grid-template-columns:1fr 1fr;grid-gap:16px;justify-content:center}@media(min-width: 1400px){.multi-column--4-2-1-narrow{grid-template-columns:1fr 1fr 1fr 1fr;grid-gap:16px}}.multi-column--4-2-1{display:grid;grid-template-columns:1fr 1fr;grid-gap:32px;justify-content:center}@media(min-width: 1400px){.multi-column--4-2-1{grid-template-columns:1fr 1fr 1fr 1fr;grid-gap:64px}}.multi-column--3-2{display:grid;grid-template-columns:1fr 1fr;grid-gap:32px;justify-content:center}@media(min-width: 1400px){.multi-column--3-2{grid-template-columns:1fr 1fr 1fr;grid-gap:64px}}.multi-column--2-1-1{display:grid;grid-template-columns:1fr;grid-gap:64px;justify-content:center;align-items:top}@media(min-width: 1400px){.multi-column--2-1-1{grid-template-columns:1fr 1fr;grid-gap:64px}}.inline-flex{display:block;justify-content:center;flex:1}@media(min-width: 820px){.inline-flex{flex:2;display:flex}}.inline-flex div{padding:0 16px;margin-bottom:20px}@media(min-width: 1400px){.inline-flex div{margin-bottom:0}}.inline-flex-left{display:block;justify-content:left;flex:1;align-items:center}@media(min-width: 820px){.inline-flex-left{display:inline-flex}}.inline-flex-left>*{margin-bottom:20px;margin-right:32px}@media(min-width: 1400px){.inline-flex-left>*{margin-bottom:0}}.inline-stacked{display:grid;grid-template-columns:1fr;grid-gap:64px}.inline-stack-mobile>*{margin-bottom:20px;margin-right:32px}@media(min-width: 1400px){.inline-stack-mobile>*{margin-bottom:0}}.stacked-group{margin-top:32px}.stacked-group h3{margin-top:16px}.stacked-group h3 a{text-decoration:none;color:#151515}.stacked-group h3 a:visited,.stacked-group h3 a:hover{color:#151515;text-decoration:underline}.padding-stacked{margin-bottom:40px}.padding-stacked .example{margin-bottom:16px}.padding-stacked h3{margin-bottom:0;padding-bottom:8px;margin-top:0;font-size:24px}.padding-stacked a{text-decoration:none;color:#151515}.padding-stacked a h4{text-decoration:none;color:#151515}.padding-stacked a h4:visited,.padding-stacked a h4:hover{color:#151515}.padding-stacked a p{color:#151515}.padding-stacked p{margin-top:0;padding-top:0}.related ul{list-style-type:none;padding:0;margin:0}.related ul li{line-height:40px}.related ul li a{text-decoration:none}.inline-list li{display:inline-block;margin:0 4px}.inline-list li:after{content:"/";padding-left:12px}.inline-list li:last-child:after{content:""}.label{display:inline-block}.label.outlined{border:1px solid #d2d2d2;border-radius:15px;padding:4px 8px;font-size:14px}.label.outlined.green{border-color:#bde5b8}.label.outlined.red{border-color:#c9190b}.label.outlined.purple{border-color:#cbc1ff}.label.outlined.light-blue{border-color:#bee1f4}.label.outlined.light-teal{border-color:#a2d9d9}.label.outlined.yellow{border-color:#f9e0a2}.label+.label{margin-left:8px}.back-to-top{position:absolute;top:100vh;right:32px;bottom:32px;width:3em;z-index:1}.back-to-top-link{position:fixed;position:sticky;top:calc(100vh - 100px);display:inline-block;transition:transform 80ms ease-in;z-index:1}.back-to-top-link img{transition:.3s ease all}.back-to-top-link img:hover,.back-to-top-link img:focus{filter:saturate(80%)}.tool{cursor:help;position:relative;border:1px solid #151515;font-weight:300;border-radius:50%;width:18px;height:18px;display:inline-block;text-align:center;line-height:17px;font-size:14px;top:-2px;left:3px}.tool:before,.tool:after{left:50%;opacity:0;position:absolute;z-index:-100}.tool:hover:before,.tool:focus:before,.tool:hover:after,.tool:focus:after{opacity:1;transform:scale(1) translateY(0);z-index:100}.tool:before{border-style:solid;border-width:16px 12px 0;border-color:#151515 transparent transparent;bottom:100%;content:"";margin-left:-12px;top:-20px}.tool:after{background:#151515;border-radius:.25em;bottom:180%;color:#fff;content:attr(data-tip);margin-left:-8.75em;padding:1em;width:17.5em;font-size:14px}.tool:hover:after,.tool:focus:after{color:#fff}@media(max-width: 760px){.tool:after{font-size:.75em;margin-left:-5em;width:10em}}.sticky{position:sticky;top:0}.page-jump-links{position:sticky;z-index:9999;display:none;top:0}@media(min-width: 1700px){.page-jump-links{display:block}}@media screen and (max-height: 850px){.page-jump-links{display:none}}pfe-jump-links-nav{position:sticky;top:0;padding:0}:host([pfe-c-horizontal]) ul li{padding:0}:host([pfe-c-horizontal]) ul a{font-size:14px}.status-table .success{color:#51a549}.status-table .deemphasized{color:#6a6e73}.status-table .blocked{color:#e00}.spacer-table{width:100%}.spacer-table img{width:auto}.spacer-table th{font-weight:bold}.spacer-table tr td:nth-child(1){font-family:var(--rh-font-family-code);font-size:14px}.feature-box{border:1px solid #d2d2d2;padding:64px 24px;border-radius:8px;margin:80px 0}@media(min-width: 1400px){.feature-box{padding:48px 64px}}.feature-box a{color:#06c;text-decoration:none}.feature-box a:hover{color:#004080;text-decoration:underline}.feature-headline{margin:0 0 24px;font-size:29px;color:#e00;font-weight:300;line-height:39px}@media(min-width: 1400px){.feature-headline{font-size:40px;line-height:53px}}.description-box h4 a{color:#151515;text-decoration:none;font-size:24px}.description-box h4 a:hover{text-decoration:underline}.alternating{display:grid;grid-template-columns:1fr;grid-column-gap:64px;align-items:center}@media(min-width: 1400px){.alternating{grid-template-columns:1fr 1fr}}.alternating--item{margin:40px 0;flex-direction:column;flex:1}.alternating--item:last-child{margin-bottom:0}.alternating--item:nth-child(1){order:1}.alternating--item:nth-child(2){order:2}.alternating--item:nth-child(3){order:4}.alternating--item:nth-child(4){order:3}.alternating--item:nth-child(5){order:5}.alternating--item:nth-child(6){order:6}.alternating--item:nth-child(7){order:8}.alternating--item:nth-child(8){order:7}@media(min-width: 1400px){.alternating--item:nth-child(1){order:1}.alternating--item:nth-child(2){order:2}.alternating--item:nth-child(3){order:3}.alternating--item:nth-child(4){order:4}.alternating--item:nth-child(5){order:5}.alternating--item:nth-child(6){order:6}.alternating--item:nth-child(7){order:7}.alternating--item:nth-child(8){order:8}}.alternating--item h3{margin-top:0}rh-alert{margin-top:32px;margin-bottom:32px}.alert{position:fixed;bottom:0;display:block;min-height:50px;width:100%;z-index:9999;background-color:#f0f0f0;display:flex;border-top:2px solid #d2d2d2;padding:16px}@media(min-width: 768px){.alert{display:none}}.alert.info{background-color:#e7f1fa;border-color:#2b9af3}.alert--container{display:inline-flex}.alert--icon{margin-right:8px}.alert--message-headline{font-size:14px;font-weight:600;color:#002952;margin-bottom:8px;margin-top:0}.alert--message p{font-size:14px;color:#151515;margin:0}.alert--close{position:absolute;top:16px;right:16px;vertical-align:top}.alert--close button{background:transparent;border:0;padding:0;vertical-align:top}.alert--close img{display:block}.asset-header{background-color:#f5f5f5;padding:64px 80px;text-align:center}.card-grid{--number-size: 56px;display:grid;grid-template-columns:1fr;gap:var(--rh-space-4xl);margin-block-start:var(--rh-space-2xl)}@media(min-width: 1000px){.card-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}}.card-grid rh-card [slot=header]:is(h2,h3,h4,h5,h6){margin:var(--rh-space-xl) 0}.card-grid rh-card [slot=header].number{justify-content:center;text-align:center;margin-bottom:var(--rh-space-lg);background-color:var(--rh-color-surface-lighter);border-radius:50%;width:var(--number-size);height:var(--number-size);font-size:28px;display:block;padding:10px;color:var(--rh-color-brand-red-on-light);font-weight:var(--rh-font-weight-heading-bold);text-align:center;line-height:37px;margin-inline-end:var(--rh-space-4xl)}.modal-launch{cursor:pointer}.section rh-dialog h3{margin-top:32px}.multi-column--min-300-wide:last-of-type .section{margin-bottom:0}ol.example-notes,.example-note{font-size:var(--rh-font-size-body-text-sm, 0.875rem);color:var(--rh-color-text-secondary-on-light, #4d4d4d);line-height:var(--rh-line-height-body-text, 1.5)}ol.example-notes{padding-inline-start:0;margin-block-start:var(--rh-space-lg, 16px);counter-reset:list}@media(min-width: 1400px){ol.example-notes{margin-top:-48px}}ol.example-notes>li{list-style:none;line-height:var(--rh-line-height-body-text, 1.5)}ol.example-notes>li:before{content:counter(list) ") ";counter-increment:list}playground-project>*:defined{border-block-end:var(--rh-border-width-sm, 1px) solid var(--rh-border-subtle-on-light, #C7C7C7);border-inline-start:var(--rh-border-width-sm, 1px) solid var(--rh-border-subtle-on-light, #C7C7C7);border-inline-end:var(--rh-border-width-sm, 1px) solid var(--rh-border-subtle-on-light, #C7C7C7)}playground-project>*:defined:first-child{border-block-start:var(--rh-border-width-sm, 1px) solid var(--rh-border-subtle-on-light, #C7C7C7)}.full-width{width:100%}.col-211 th{width:25%}.col-211 th:first-of-type{width:50%}.col-111 th{width:33%}.col-11 th{width:50%}.col-13 th{width:25%}.col-13 th:last-of-type{width:75%}body.element-docs rh-subnav img{--inline-img-max-width: 992px}.header.container.has-subnav{padding-bottom:0}section.api.band{margin-block-end:var(--rh-space-4xl);padding-inline:0}.section.feedback{margin-block-end:0}.section table{width:100%}copy-permalink{display:flex;margin-block-end:var(--rh-space-lg)}copy-permalink:focus-within{--perma-signifier-display: initial}a.heading-anchor{position:relative;text-decoration:inherit}a.heading-anchor,a.heading-anchor:visited{color:inherit}a.heading-anchor:hover:before{content:"#";display:block;position:absolute;inset-inline-start:-1em}copy-permalink>:is(h1,h2,h3,h4,h5,h6){margin-block:0}body.element-docs copy-permalink.h2,body.element-docs copy-permalink.h3,body.page-docs copy-permalink.h2,body.page-docs copy-permalink.h3,body.token-docs copy-permalink.h2,body.token-docs copy-permalink.h3{margin-block-start:82px}body.element-docs copy-permalink.h2+copy-permalink.h3,body.page-docs copy-permalink.h2+copy-permalink.h3,body.token-docs copy-permalink.h2+copy-permalink.h3{margin-block-start:var(--rh-space-2xl, 32px)}.releases-links{margin-block-start:var(--rh-space-3xl) !important;display:flex;gap:2rem}rh-block a{display:flex;flex-direction:column;min-width:20rem;padding:var(--rh-space-lg);border:1px solid var(--rh-color-border-subtle-on-light);border-radius:var(--rh-border-radius-default);text-decoration:none}rh-block a:hover{text-decoration:underline;background:var(--rh-color-surface-light)}rh-block a::after{align-self:flex-end;content:url('data:image/svg+xml;utf8,')}rh-block a[href*=github]::before{content:url('data:image/svg+xml;utf8,')}rh-block [slot=header]{font-size:1rem}.release-version h3{margin-top:var(--rh-space-lg)}body.page-docs .release-version copy-permalink.h3{margin-block-start:var(--rh-space-xl)}.release-version table+p{margin-block-start:var(--rh-space-2xl)}body.page-docs a[href^=http]::after{display:inline-block;vertical-align:middle;margin-inline-start:.25em;content:url('data:image/svg+xml;utf8,')}body.page-docs rh-cta a[href^=http]::after{display:none}.feedback-contact-link{white-space:nowrap} +/*! normalize.css v3.0.0 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:transparent}a:active,a:hover{outline:0;text-decoration:underline;color:#004080}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:var(--rh-font-family-code);font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}*,*:before,*:after{box-sizing:border-box}@keyframes fadeintimer{0%{visibility:hidden;opacity:0}80%{visibility:visible}81%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{visibility:visible;opacity:0}100%{opacity:1}}html{scroll-padding-top:60px}@media(min-width: 820px){html{scroll-padding-top:72px}}body{font-family:RedHatText,Overpass,Helvetica,sans-serif;font-size:1rem;line-height:1.6;overflow-y:scroll;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.l-main__content{font-size:var(--rh-font-size-body-text-lg, 1.125rem)}h1,h2,h3,h4,h5,h6{line-height:var(--rh-line-height-heading, 1.3);font-family:RedHatDisplay,Overpass,Helvetica,sans-serif}h1{font-weight:var(--rh-font-weight-heading-regular, 300)}h2,h3,h4,h5,h6{font-weight:var(--rh-font-weight-heading-medium, 500)}h1{font-size:var(--rh-font-size-heading-2xl, 3rem)}h2{font-size:28px}h3{font-size:24px}h4{font-size:20px}h5{font-size:18px}h6{font-size:16px}img{max-width:100%}figure img{display:block}p:empty{margin-block-start:0 !important;margin-block-end:0 !important}a{color:#06c}a:hover{color:#004080}a:focus{color:#004080}a:active{color:#004080}a:visited{color:#06c}a:visited:hover{color:#004080}li{line-height:2}video,iframe{max-width:100%}table{border:1px solid #eee}td,th{padding:18px 18px}thead th{border-bottom:1px solid #d2d2d2}tfoot th{border-top:1px solid #d2d2d2}th{font-size:14px}td{border:1px solid #f5f5f5;border-left:0}td:last-child{border-right:0}caption{font-style:italic}pre{border:1px solid #dbdbdb;padding:1em;background:#f9f9f9}summary{color:#06c;cursor:pointer}summary:hover{color:#004080}summary:focus{color:#004080}summary:active{color:#004080}.site-navigation__outer-wrapper{position:fixed;top:60px;left:0;z-index:10;height:calc(100vh - 60px)}@media(min-width: 820px){.site-navigation__outer-wrapper{position:fixed;top:72px;bottom:0;left:0;height:calc(100vh - 72px)}}.site-navigation{width:280px;padding-top:30px;height:calc(100vh - 60px);overflow-y:auto;color:#151515;background:#fff;border-right:1px solid #d2d2d2}@media(min-width: 820px){.site-navigation{width:280px;height:calc(100vh - 72px);padding-bottom:40px;visibility:visible}}.site-navigation:before{display:block;margin:0 1em 1em;padding:.5em 32px 1em;border-bottom:1px solid #dbdbdb;text-transform:uppercase;color:#999}.site-navigation summary::-webkit-details-marker{display:none}.site-navigation .site-navigation__link,.site-navigation .site-navigation__heading,.site-navigation .site-navigation__sub-menu__link{display:block;text-decoration:none;transition:background-color .25s;font-size:18px;padding:.5em 32px;color:#151515}.site-navigation .site-navigation__link:hover,.site-navigation .site-navigation__link:focus,.site-navigation .site-navigation__heading:hover,.site-navigation .site-navigation__heading:focus,.site-navigation .site-navigation__sub-menu__link:hover,.site-navigation .site-navigation__sub-menu__link:focus{color:#151515;background:var(--rh-color-surface-lighter, #f2f2f2);box-shadow:inset 3px 0 0 0 #d2d2d2}.site-navigation .site-navigation__heading:after{content:"";color:#151515;width:9px;height:9px;transform:rotate(45deg);border-right:3px solid #151515;border-top:3px solid #151515;display:flex;float:right;top:13px;position:relative}.site-navigation details[open] .site-navigation__heading:after{transform:rotate(135deg)}.site-navigation .site-navigation__item{line-height:36px}.site-navigation .site-navigation__link--active,.site-navigation .site-navigation__sub-menu__link--active{background:var(--rh-color-surface-lighter, #f2f2f2);box-shadow:inset 3px 0 0 0 #e00;color:#151515}.site-navigation .site-navigation__sub-menu__link{font-size:16px;line-height:24px;padding-left:16px}.site-navigation .site-navigation__sub-menu__link:hover{color:#151515}.site-navigation__wrapper,.site-navigation__sub-menu{margin:0;padding:0;list-style:none}.site-navigation__sub-menu{padding-left:32px}.menu-toggle{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;clip-path:inset(50%);border:0}@media(min-width: 820px){.menu-toggle{display:none}}.menu-toggle__button{display:block;cursor:pointer;border:0;overflow:hidden;background:transparent;appearance:none;user-select:none}@media(min-width: 820px){.menu-toggle__button{display:none}}.menu-toggle__toggleable.js-menu-toggle__toggleable,[id=mobile-menu-toggle]~.menu-toggle__toggleable{visibility:hidden;transition:visibility 0s .4s,width .25s ease-in-out;width:0;overflow:hidden;background:#fff}@media(min-width: 820px){.menu-toggle__toggleable.js-menu-toggle__toggleable,[id=mobile-menu-toggle]~.menu-toggle__toggleable{overflow:visible;visibility:visible}}.menu-toggle__toggleable.js-menu-toggle__toggleable--open,[id=mobile-menu-toggle]:checked~.menu-toggle__toggleable{visibility:visible;transition:visibility 0s 0s,width .25s ease-in-out;width:280px}.header{padding-block:var(--rh-space-2xl)}@media(min-width: 1400px){.header{padding-block:var(--rh-space-5xl)}}.header .page-title{margin:0}.header .page-title:only-child{margin-block-end:0}.header .page-title+rh-subnav{margin-block-start:var(--rh-space-2xl)}.l-main__header{position:sticky;z-index:1;top:-28.95px}@media(min-width: 1400px){.l-main__header{top:-102.56px}}.l-header__logo{margin-left:0}@media(min-width: 820px){.l-header__logo{margin-left:0}}.l-header__logo-bar a{display:inherit}[id=mobile-menu-toggle][id],.l-header__mobile-menu-toggle{position:fixed;top:0;right:0}@media(min-width: 820px){[id=mobile-menu-toggle][id],.l-header__mobile-menu-toggle{display:none}}.l-header__mobile-menu-toggle{width:72px;height:60px;color:#fff;z-index:200}.l-header__burger-icon{display:block;position:absolute;top:50%;left:calc(50% - 12px);transform:scale(0.25);transform-origin:left top}.l-header__burger-icon:before,.l-header__burger-icon:after{content:"";position:absolute;top:0;left:0;box-sizing:border-box;display:block;width:96px}.l-header__burger-icon:before{height:0;border-top:8px solid #fff;background:#fff;transform:translateY(-32px);transform-origin:left top;transition:transform .3s cubic-bezier(0.55, 0.085, 0, 0.99)}[id=mobile-menu-toggle]:checked~.l-header__mobile-menu-toggle .l-header__burger-icon:before{transform:translateY(-32px) rotate(45deg);transform-origin:left top}.l-header__burger-icon:after{height:40px;border:8px solid #fff;border-width:8px 0 8px 0;transition:border .3s cubic-bezier(0.55, 0.085, 0, 0.99),transform .3s cubic-bezier(0.55, 0.085, 0, 0.99);transform-origin:left bottom}[id=mobile-menu-toggle]:checked~.l-header__mobile-menu-toggle .l-header__burger-icon:after{transform:rotate(-45deg);border-top-color:transparent;transform-origin:left bottom}[id=mobile-menu-toggle]:checked~.menu-toggle__toggleable{width:100%;background-color:rgba(21,21,21,.5)}@media(min-width: 820px){[id=mobile-menu-toggle]:checked~.menu-toggle__toggleable{background-color:transparent;width:auto}}@media(min-width: 1400px){.section+.section{margin-block-start:var(--rh-space-5xl, 80px)}}.container .section,.section .section{margin-block-end:var(--rh-space-4xl, 64px);padding-left:0;padding-right:0}@media(min-width: 1400px){.container .section,.section .section{margin-block-end:var(--rh-space-5xl, 80px)}}rh-alert+.example{margin-top:32px}.example{display:flex;align-items:center;padding:32px}@media(min-width: 1400px){.example{width:calc(100vw - 520px);padding:64px;margin-bottom:64px;max-width:100%}}.example+.example{margin-top:32px}@media(min-width: 1400px){.example+.example{margin-top:-32px}}.example+.footnote{display:inline-block;margin-top:16px}.example+.footnote-alignment{display:inline-block;margin-top:16px}@media(min-width: 1400px){.example+.footnote-alignment{margin-top:-48px}}.example+table{margin-top:16px}@media(min-width: 1400px){.example+table{margin-top:-48px}}.example img:only-child{display:block;margin:0 auto}.example--descriptor{font-size:16px;align-items:center;justify-content:center;text-align:left}.example--descriptor img{display:block;margin-bottom:16px;flex-shrink:0}.example.component{justify-content:center}.example rh-cta{margin-bottom:16px}.example--palette-none{padding:0;border:none;border-radius:none}.example--palette-none img:only-child{margin:0}@media(min-width: 1400px){.example--palette-none{padding:0}}.example--palette-light{background:#fff;border:1px solid #d2d2d2;border-radius:8px}.example--palette-lightest{background:transparent;border:1px solid #d2d2d2;border-radius:8px}.example--palette-darkest{color:#fff;background:#151515;border-radius:8px}.example--palette-wrong{background-color:transparent;background-image:url("../best-practices-danger-icon.svg");background-repeat:no-repeat;background-size:24px;background-position-x:8px;background-position-y:8px;border:1px solid #e00;border-radius:8px}.example--palette-medium{background:#f0f0f0;border-radius:8px}.example--palette-dark{background:#15151580;border-radius:8px}.example--palette-descriptive{background:transparent;border:1px solid #d2d2d2;border-radius:8px;padding-top:32px;padding-bottom:32px;margin-bottom:24px}.example--palette-descriptive img{width:auto;max-width:var(--inline-img-max-width, 100%);max-height:var(--inline-img-max-height, auto)}.example--palette-descriptive-blue{background:#06c;border-radius:8px;padding-top:32px;padding-bottom:32px;margin-bottom:24px}.example--palette-descriptive-blue img{width:auto;max-width:var(--inline-img-max-width, 100%);max-height:var(--inline-img-max-height, auto)}.example--palette-descriptive-dark-gray{background:rgba(0,0,0,.65);border-radius:8px;padding-top:32px;padding-bottom:32px;margin-bottom:24px}.example--palette-descriptive-dark-gray img{width:auto;max-width:var(--inline-img-max-width, 100%);max-height:var(--inline-img-max-height, auto)}.example--palette-descriptive-gray{background:rgba(0,0,0,.25);border:1px solid #d2d2d2;border-radius:8px;padding-top:32px;padding-bottom:32px;margin-bottom:24px}.example--palette-descriptive-gray img{width:auto;max-width:var(--inline-img-max-width, 100%);max-height:var(--inline-img-max-height, auto)}.example--palette-descriptive-light-gray{background:#f0f0f0;border-radius:8px;padding-top:32px;padding-bottom:32px;margin-bottom:24px}.example--palette-descriptive-light-gray img{width:auto;max-width:var(--inline-img-max-width, 100%);max-height:var(--inline-img-max-height, auto)}.example--palette-descriptive.gray-bg{background-color:rgb(var(--rh-color-gray-90-rgb, 21 21 21)/var(--rh-opacity-60, 60%));border:none}.example--palette-descriptive.blue-bg{background-color:var(--rh-color-blue-400, #0066cc);border:none}.example .example--typography{padding:32px}.example .example--typography p{margin:0}.section .example img{width:auto;max-height:var(--example-img-max-height, auto);object-fit:contain;overflow:hidden}.example+.example{margin-block-start:var(--rh-space-2xl)}.feedback:is(.section){margin-block-start:var(--rh-space-5xl, 80px)}.feedback:is(.section).feedback :is(h2):first-of-type{margin-block-start:0}.table-of-contents{background:var(--rh-color-surface-lighter, #f2f2f2);padding:16px 24px}@media(min-width: 1400px){.table-of-contents{margin-bottom:80px}}.table-of-contents h2{font-size:.75em;text-transform:uppercase;letter-spacing:.15em}.table-of-contents ol{list-style:none;margin:0;padding:0}.table-of-contents>ol{margin:1em 0}.table-of-contents li{padding:0}.table-of-contents li a{display:inline-block;margin:0 0 .5em}.table-of-contents>ol li li{padding-left:1em}.table-of-contents>ol li li li{padding-left:2em}.table-of-contents>ol li li li li{padding-left:3em}.table-of-contents>ol li li li li li{padding-left:4em}.component-status-table{width:100%;border:0;border-collapse:collapse;font-size:.9em;line-height:1.4;text-align:center}.component-status-table :is(td,th){padding:12px 16px;text-align:center !important}.component-status-table th{font-size:14px}.component-status-table tbody th{font-size:var(--rh-font-size-body-text-md, 1rem) !important;font-weight:var(--rh-font-weight-heading-medium, 500)}.component-status-table :is(th,td):first-child{text-align:left !important}.component-status-table :is(th,td):nth-child(n+8){display:none}.component-status-table td{border:1px solid #d2d2d2;border-left:0;border-right:0}.component-status-table td:last-child{border-right:0}.component-status-table td svg{height:var(--rh-size-icon-01, 16px);width:var(--rh-size-icon-01, 16px);fill:var(--rh-color-text-primary-on-light, #151515)}@media(max-width: 1000px){.component-status-table :is(td,th){padding:12px 8px}}.component-status-table+small{align-self:end}.component-status-table-container{display:flex;flex-flow:column nowrap}@media only screen and (max-width: 991px){.component-status-table-container{overflow-x:scroll}.component-status-table{width:912px}.component-status-table+small{align-self:start}}.spacer-tokens-table tbody th{font-size:var(--rh-font-size-body-text-md, 1rem) !important;font-weight:var(--rh-font-weight-heading-medium, 500)}.spacer-tokens-table tbody td{width:33%}.spacer-tokens-table :is(th,td):first-child{text-align:left !important}.spacer-tokens-table samp{width:var(--samp-width);aspect-ratio:1/1;outline:var(--rh-border-width-sm, 1px) dashed var(--samp-color, var(--rh-color-surface-darkest, #151515));color:var(--samp-color, var(--rh-color-text-primary-on-light, #151515));display:flex;justify-content:center;align-items:center;position:relative;font-size:var(--rh-font-size-body-text-xs, 0.75rem)}.spacer-tokens-table samp span{display:flex;align-items:center;justify-content:center;line-height:1rem;min-height:100%}.spacer-tokens-table samp:before{content:"";width:var(--samp-width);aspect-ratio:1/1;background-color:var(--samp-color, var(--rh-color-surface-darkest, #151515));opacity:.125;z-index:-1;position:absolute}.spacer-tokens-table samp.offset span{position:absolute;left:calc(var(--samp-width) + 2px)}.spacer-tokens-table samp.size-4:before{opacity:1}.spacer-tokens-table samp.size-6{color:#c58c00}.spacer-tokens-table samp.size-6:before{opacity:1}.spacer-tokens-table samp.size-8{color:#51a549}#related-items-list{list-style:none;padding-inline-start:0}#related-items-list li{line-height:1.6}.color-palette--swatch{width:100%;height:120px;display:block;border-radius:3px;background-color:var(--color-palette-background, #000);margin-bottom:24px}.color-palette--item{margin-bottom:32px}.color-palette--item p{font-size:16px;margin:0}.color-palette--item p:first-of-type{font-weight:600}body{padding-top:60px}@media(min-width: 768px){body{padding-top:72px}}.l-header__logo-bar{position:fixed;top:0;left:0;right:0;z-index:100;display:flex;align-items:center;height:60px;padding:0 24px;color:#fff;background:#000}@media(min-width: 768px){.l-header__logo-bar{position:fixed}}.l-header__logo-bar .feedback-button{align-self:center;justify-content:center;position:absolute;right:64px}@media(min-width: 768px){.l-header__logo-bar .feedback-button{right:48px}}@media(min-width: 820px){.l-header__logo-bar{height:72px}}.l-header__logo{max-width:136px}.l-main{position:relative}@media(min-width: 820px){.l-main{padding-left:280px}}.l-main__header--palette-lighter{background:var(--rh-color-surface-lighter, #f2f2f2);margin-bottom:80px}.l-main__content{padding-block-end:var(--rh-space-4xl, 64px)}.l-main__content>.container>*:not(p,.feedback,copy-permalink){margin-block-start:0;margin-block-end:var(--rh-space-2xl, 32px)}.main-footer{background-color:#151515;padding:24px 32px;margin-top:80px;display:flex;gap:8px;justify-content:flex-start;align-items:center;text-align:center;flex-flow:column nowrap}@media(min-width: 768px){.main-footer{flex-flow:row wrap;text-align:left;gap:0}.main-footer #netlify-badge{margin-inline-start:auto}}.main-footer img{display:block;margin:0 auto 24px;text-align:center}@media(min-width: 768px){.main-footer img{text-align:left;margin:0 24px}}.main-footer p{font-size:12px;color:#d2d2d2;margin:0 16px;padding:0;line-height:12px}.main-footer--list ul{display:block;margin:0;list-style:none;padding:0}@media(min-width: 768px){.main-footer--list ul{display:flex}}.main-footer--list ul li{padding:0 8px;line-height:24px}@media(min-width: 768px){.main-footer--list ul li{line-height:12px}}.main-footer--list ul a{line-height:12px;font-size:12px;color:#d2d2d2}.main-footer--list ul a:hover{color:#fff}.layout-wrapper--jumplinks{display:grid;grid-template-columns:8fr 2fr;grid-gap:64px;max-width:800px}.jump-links--layout{position:relative;min-width:200px}.jump-links--layout pfe-jump-links-nav{position:sticky;top:100px}:root{--width: auto}@media screen and (prefers-reduced-motion: no-preference){html{scroll-behavior:smooth}}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;clip-path:inset(50%);border:0;grid-gap:1rem}.element-invisible{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;clip-path:inset(50%);border:0;grid-gap:1rem}.header,.section,.container{max-width:1160px;padding-left:32px;padding-right:32px}@media(min-width: 1400px){.header,.section,.container{padding-left:80px;padding-right:80px}}.section h2{font-size:24px;line-height:31px}@media(min-width: 1200px){.section h2{font-size:28px;line-height:37px}}.section h3{margin-top:16px;font-size:20px;margin-bottom:16px}@media(min-width: 1200px){.section h3{font-size:24px;margin-top:64px}}.section h2+h3,.section h2+h4{margin-top:32px}.section h4{font-weight:500;margin:32px 0 16px;font-size:18px;line-height:25px}@media(min-width: 820px){.section h4{font-size:20px;line-height:26px}}.section h4 a{text-decoration:none}.section p{max-width:1000px;margin-top:16px;margin-bottom:16px}.section p a{text-decoration:none;color:#06c}.section p a:hover{text-decoration:underline;color:#004080}.section p+.example{margin-top:32px}.section p+ul{margin-bottom:24px;margin-top:0}.section--definition-list p{margin-bottom:0}.section img{width:auto;max-width:var(--inline-img-max-width, 100%);max-height:var(--inline-img-max-height, auto)}.section table{border:0}.section table tbody{border:0}.section table th{text-align:left;font-size:14px}.section table tr{border:1px solid #d2d2d2;border-top:0;border-left:0;border-right:0}.section table tr:first-child td{border-top:0}.section table tr.font-scale-altered td:nth-child(2){color:#b8bbbe}.section table tr.font-scale-altered td:nth-child(3){color:#e00}.section table tr.font-scale-same td:nth-child(3){color:#51a549}.section table td{border:1px solid #d2d2d2;border-right:0;border-left:0;font-size:16px}.section table td a{text-decoration:none}.section table td img{width:auto}.section ul li{line-height:40px}.section ul li a{text-decoration:none}.section ul li a:hover{text-decoration:underline}.section ol li{line-height:40px}.section ol li a{text-decoration:none}.section ol li a:hover{text-decoration:underline}.multi-column--150-wide,.multi-column--200-wide,.multi-column--300-wide,.multi-column--400-wide,.multi-column--500-wide,.multi-column--600-wide,.multi-column--min-150-wide,.multi-column--min-200-wide,.multi-column--min-300-wide,.multi-column--min-400-wide,.multi-column--min-500-wide,.multi-column--min-600-wide{grid-template-columns:1fr;width:100%;display:grid;grid-gap:32px;margin-bottom:64px}@media(min-width: 820px){.multi-column--150-wide,.multi-column--200-wide,.multi-column--300-wide,.multi-column--400-wide,.multi-column--500-wide,.multi-column--600-wide,.multi-column--min-150-wide,.multi-column--min-200-wide,.multi-column--min-300-wide,.multi-column--min-400-wide,.multi-column--min-500-wide,.multi-column--min-600-wide{grid-gap:2rem 64px;width:calc(100vw - 520px);max-width:100%;margin-bottom:auto}}.multi-column--150-wide .section+.section,.multi-column--200-wide .section+.section,.multi-column--300-wide .section+.section,.multi-column--400-wide .section+.section,.multi-column--500-wide .section+.section,.multi-column--600-wide .section+.section,.multi-column--min-150-wide .section+.section,.multi-column--min-200-wide .section+.section,.multi-column--min-300-wide .section+.section,.multi-column--min-400-wide .section+.section,.multi-column--min-500-wide .section+.section,.multi-column--min-600-wide .section+.section{margin:0}.multi-column--150-wide+h3,.multi-column--200-wide+h3,.multi-column--300-wide+h3,.multi-column--400-wide+h3,.multi-column--500-wide+h3,.multi-column--600-wide+h3,.multi-column--min-150-wide+h3,.multi-column--min-200-wide+h3,.multi-column--min-300-wide+h3,.multi-column--min-400-wide+h3,.multi-column--min-500-wide+h3,.multi-column--min-600-wide+h3{margin-top:0}.multi-column--150-wide .example,.multi-column--200-wide .example,.multi-column--300-wide .example,.multi-column--400-wide .example,.multi-column--500-wide .example,.multi-column--600-wide .example,.multi-column--min-150-wide .example,.multi-column--min-200-wide .example,.multi-column--min-300-wide .example,.multi-column--min-400-wide .example,.multi-column--min-500-wide .example,.multi-column--min-600-wide .example{margin-bottom:0}.multi-column--150-wide .example+.example,.multi-column--200-wide .example+.example,.multi-column--300-wide .example+.example,.multi-column--400-wide .example+.example,.multi-column--500-wide .example+.example,.multi-column--600-wide .example+.example,.multi-column--min-150-wide .example+.example,.multi-column--min-200-wide .example+.example,.multi-column--min-300-wide .example+.example,.multi-column--min-400-wide .example+.example,.multi-column--min-500-wide .example+.example,.multi-column--min-600-wide .example+.example{margin-top:0}.multi-column--200-wide{grid-template-columns:1fr}@media(min-width: 820px){.multi-column--200-wide{grid-template-columns:repeat(auto-fill, minmax(100px, 200px))}}.multi-column--300-wide{grid-template-columns:1fr}@media(min-width: 820px){.multi-column--300-wide{grid-template-columns:repeat(auto-fill, minmax(200px, 300px))}}.multi-column--400-wide{grid-template-columns:1fr}@media(min-width: 820px){.multi-column--400-wide{grid-template-columns:repeat(auto-fill, minmax(300px, 400px))}}.multi-column--500-wide{grid-template-columns:1fr}@media(min-width: 820px){.multi-column--500-wide{grid-template-columns:repeat(auto-fit, minmax(400px, 500px))}}.multi-column--600-wide{grid-template-columns:1fr}@media(min-width: 820px){.multi-column--600-wide{grid-template-columns:repeat(auto-fit, minmax(500px, 600px))}}.multi-column--min-150-wide{grid-template-columns:1fr;width:100%}@media(min-width: 820px){.multi-column--min-150-wide{grid-template-columns:repeat(auto-fill, minmax(100px, 1fr))}}.multi-column--min-200-wide{grid-template-columns:1fr;width:100%}@media(min-width: 820px){.multi-column--min-200-wide{grid-template-columns:repeat(auto-fit, minmax(200px, 1fr))}}.multi-column--min-300-wide{grid-template-columns:1fr;width:100%}@media(min-width: 820px){.multi-column--min-300-wide{grid-template-columns:repeat(auto-fit, minmax(300px, 1fr))}}.multi-column--min-400-wide{grid-template-columns:1fr;width:100%}@media(min-width: 820px){.multi-column--min-400-wide{grid-template-columns:repeat(auto-fit, minmax(400px, 1fr))}}.multi-column--min-500-wide{grid-template-columns:1fr;width:100%}@media(min-width: 820px){.multi-column--min-500-wide{grid-template-columns:repeat(auto-fit, minmax(500px, 1fr))}}.multi-column--min-600-wide{grid-template-columns:1fr;width:100%}@media(min-width: 820px){.multi-column--min-600-wide{grid-template-columns:repeat(auto-fit, minmax(600px, 1fr))}}.margin-top--1[class]{margin-top:8px}.margin-top--2[class]{margin-top:16px}.margin-top--3[class]{margin-top:24px}.margin-top--4[class]{margin-top:32px}.margin-top--5[class]{margin-top:40px}.margin-top--6[class]{margin-top:48px}.margin-top--7[class]{margin-top:56px}.margin-top--8[class]{margin-top:64px}.margin-top--9[class]{margin-top:72px}.margin-top--10[class]{margin-top:80px}.margin-top--12[class]{margin-top:96px}.margin-bottom--1[class]{margin-bottom:8px}.margin-bottom--2[class]{margin-bottom:16px}.margin-bottom--3[class]{margin-bottom:24px}.margin-bottom--4[class]{margin-bottom:32px}.margin-bottom--5[class]{margin-bottom:40px}.margin-bottom--6[class]{margin-bottom:48px}.margin-bottom--7[class]{margin-bottom:56px}.margin-bottom--8[class]{margin-bottom:64px}.margin-bottom--9[class]{margin-bottom:72px}.margin-bottom--10[class]{margin-bottom:80px}.centered{margin:0 auto;text-align:center;align-items:center}.centered p{max-width:1000px;margin:0 auto 48px}.footnote{font-size:14px;color:#6a6e73;line-height:18px;margin-top:16px;margin-bottom:64px}@media(min-width: 1400px){.footnote{margin-top:-16px}}hr{border:0;height:0;border-top:1px solid #d2d2d2}.pfe-headline-xxxl{font-size:48px;margin-top:16px;line-height:54px}@media(min-width: 820px){.pfe-headline-xxxl{font-size:64px;line-height:72px}}.section-headline{color:#e00;text-transform:uppercase;font-family:"RedHatDisplay","Overpass",Overpass,Helvetica,Arial,sans-serif;margin-bottom:0;line-height:26px;font-size:20px;font-weight:500}.multi-column--4-2-1-narrow{display:grid;grid-template-columns:1fr 1fr;grid-gap:16px;justify-content:center}@media(min-width: 1400px){.multi-column--4-2-1-narrow{grid-template-columns:1fr 1fr 1fr 1fr;grid-gap:16px}}.multi-column--4-2-1{display:grid;grid-template-columns:1fr 1fr;grid-gap:32px;justify-content:center}@media(min-width: 1400px){.multi-column--4-2-1{grid-template-columns:1fr 1fr 1fr 1fr;grid-gap:64px}}.multi-column--3-2{display:grid;grid-template-columns:1fr 1fr;grid-gap:32px;justify-content:center}@media(min-width: 1400px){.multi-column--3-2{grid-template-columns:1fr 1fr 1fr;grid-gap:64px}}.multi-column--2-1-1{display:grid;grid-template-columns:1fr;grid-gap:64px;justify-content:center;align-items:top}@media(min-width: 1400px){.multi-column--2-1-1{grid-template-columns:1fr 1fr;grid-gap:64px}}.inline-flex{display:block;justify-content:center;flex:1}@media(min-width: 820px){.inline-flex{flex:2;display:flex}}.inline-flex div{padding:0 16px;margin-bottom:20px}@media(min-width: 1400px){.inline-flex div{margin-bottom:0}}.inline-flex-left{display:block;justify-content:left;flex:1;align-items:center}@media(min-width: 820px){.inline-flex-left{display:inline-flex}}.inline-flex-left>*{margin-bottom:20px;margin-right:32px}@media(min-width: 1400px){.inline-flex-left>*{margin-bottom:0}}.inline-stacked{display:grid;grid-template-columns:1fr;grid-gap:64px}.inline-stack-mobile>*{margin-bottom:20px;margin-right:32px}@media(min-width: 1400px){.inline-stack-mobile>*{margin-bottom:0}}.stacked-group{margin-top:32px}.stacked-group h3{margin-top:16px}.stacked-group h3 a{text-decoration:none;color:#151515}.stacked-group h3 a:visited,.stacked-group h3 a:hover{color:#151515;text-decoration:underline}.padding-stacked{margin-bottom:40px}.padding-stacked .example{margin-bottom:16px}.padding-stacked h3{margin-bottom:0;padding-bottom:8px;margin-top:0;font-size:24px}.padding-stacked a{text-decoration:none;color:#151515}.padding-stacked a h4{text-decoration:none;color:#151515}.padding-stacked a h4:visited,.padding-stacked a h4:hover{color:#151515}.padding-stacked a p{color:#151515}.padding-stacked p{margin-top:0;padding-top:0}.related ul{list-style-type:none;padding:0;margin:0}.related ul li{line-height:40px}.related ul li a{text-decoration:none}.inline-list li{display:inline-block;margin:0 4px}.inline-list li:after{content:"/";padding-left:12px}.inline-list li:last-child:after{content:""}.label{display:inline-block}.label.outlined{border:1px solid #d2d2d2;border-radius:15px;padding:4px 8px;font-size:14px}.label.outlined.green{border-color:#bde5b8}.label.outlined.red{border-color:#c9190b}.label.outlined.purple{border-color:#cbc1ff}.label.outlined.light-blue{border-color:#bee1f4}.label.outlined.light-teal{border-color:#a2d9d9}.label.outlined.yellow{border-color:#f9e0a2}.label+.label{margin-left:8px}.back-to-top{position:absolute;top:100vh;right:32px;bottom:32px;width:3em;z-index:1}.back-to-top-link{position:fixed;position:sticky;top:calc(100vh - 100px);display:inline-block;transition:transform 80ms ease-in;z-index:1}.back-to-top-link img{transition:.3s ease all}.back-to-top-link img:hover,.back-to-top-link img:focus{filter:saturate(80%)}.tool{cursor:help;position:relative;border:1px solid #151515;font-weight:300;border-radius:50%;width:18px;height:18px;display:inline-block;text-align:center;line-height:17px;font-size:14px;top:-2px;left:3px}.tool:before,.tool:after{left:50%;opacity:0;position:absolute;z-index:-100}.tool:hover:before,.tool:focus:before,.tool:hover:after,.tool:focus:after{opacity:1;transform:scale(1) translateY(0);z-index:100}.tool:before{border-style:solid;border-width:16px 12px 0;border-color:#151515 transparent transparent;bottom:100%;content:"";margin-left:-12px;top:-20px}.tool:after{background:#151515;border-radius:.25em;bottom:180%;color:#fff;content:attr(data-tip);margin-left:-8.75em;padding:1em;width:17.5em;font-size:14px}.tool:hover:after,.tool:focus:after{color:#fff}@media(max-width: 760px){.tool:after{font-size:.75em;margin-left:-5em;width:10em}}.sticky{position:sticky;top:0}.page-jump-links{position:sticky;z-index:9999;display:none;top:0}@media(min-width: 1700px){.page-jump-links{display:block}}@media screen and (max-height: 850px){.page-jump-links{display:none}}pfe-jump-links-nav{position:sticky;top:0;padding:0}:host([pfe-c-horizontal]) ul li{padding:0}:host([pfe-c-horizontal]) ul a{font-size:14px}.status-table .success{color:#51a549}.status-table .deemphasized{color:#6a6e73}.status-table .blocked{color:#e00}.spacer-table{width:100%}.spacer-table img{width:auto}.spacer-table th{font-weight:bold}.spacer-table tr td:nth-child(1){font-family:var(--rh-font-family-code);font-size:14px}.feature-box{border:1px solid #d2d2d2;padding:64px 24px;border-radius:8px;margin:80px 0}@media(min-width: 1400px){.feature-box{padding:48px 64px}}.feature-box a{color:#06c;text-decoration:none}.feature-box a:hover{color:#004080;text-decoration:underline}.feature-headline{margin:0 0 24px;font-size:29px;color:#e00;font-weight:300;line-height:39px}@media(min-width: 1400px){.feature-headline{font-size:40px;line-height:53px}}.description-box h4 a{color:#151515;text-decoration:none;font-size:24px}.description-box h4 a:hover{text-decoration:underline}.alternating{display:grid;grid-template-columns:1fr;grid-column-gap:64px;align-items:center}@media(min-width: 1400px){.alternating{grid-template-columns:1fr 1fr}}.alternating--item{margin:40px 0;flex-direction:column;flex:1}.alternating--item:last-child{margin-bottom:0}.alternating--item:nth-child(1){order:1}.alternating--item:nth-child(2){order:2}.alternating--item:nth-child(3){order:4}.alternating--item:nth-child(4){order:3}.alternating--item:nth-child(5){order:5}.alternating--item:nth-child(6){order:6}.alternating--item:nth-child(7){order:8}.alternating--item:nth-child(8){order:7}@media(min-width: 1400px){.alternating--item:nth-child(1){order:1}.alternating--item:nth-child(2){order:2}.alternating--item:nth-child(3){order:3}.alternating--item:nth-child(4){order:4}.alternating--item:nth-child(5){order:5}.alternating--item:nth-child(6){order:6}.alternating--item:nth-child(7){order:7}.alternating--item:nth-child(8){order:8}}.alternating--item h3{margin-top:0}rh-alert{margin-top:32px;margin-bottom:32px}.alert{position:fixed;bottom:0;display:block;min-height:50px;width:100%;z-index:9999;background-color:#f0f0f0;display:flex;border-top:2px solid #d2d2d2;padding:16px}@media(min-width: 768px){.alert{display:none}}.alert.info{background-color:#e7f1fa;border-color:#2b9af3}.alert--container{display:inline-flex}.alert--icon{margin-right:8px}.alert--message-headline{font-size:14px;font-weight:600;color:#002952;margin-bottom:8px;margin-top:0}.alert--message p{font-size:14px;color:#151515;margin:0}.alert--close{position:absolute;top:16px;right:16px;vertical-align:top}.alert--close button{background:transparent;border:0;padding:0;vertical-align:top}.alert--close img{display:block}.asset-header{background-color:#f5f5f5;padding:64px 80px;text-align:center}.card-grid{--number-size: 56px;display:grid;grid-template-columns:1fr;gap:var(--rh-space-4xl);margin-block-start:var(--rh-space-2xl)}@media(min-width: 1000px){.card-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}}.card-grid rh-card [slot=header]:is(h2,h3,h4,h5,h6){margin:var(--rh-space-xl) 0}.card-grid rh-card [slot=header].number{justify-content:center;text-align:center;margin-bottom:var(--rh-space-lg);background-color:var(--rh-color-surface-lighter);border-radius:50%;width:var(--number-size);height:var(--number-size);font-size:28px;display:block;padding:10px;color:var(--rh-color-brand-red-on-light);font-weight:var(--rh-font-weight-heading-bold);text-align:center;line-height:37px;margin-inline-end:var(--rh-space-4xl)}.modal-launch{cursor:pointer}.section rh-dialog h3{margin-top:32px}.multi-column--min-300-wide:last-of-type .section{margin-bottom:0}ol.example-notes,.example-note{font-size:var(--rh-font-size-body-text-sm, 0.875rem);color:var(--rh-color-text-secondary-on-light, #4d4d4d);line-height:var(--rh-line-height-body-text, 1.5)}ol.example-notes{padding-inline-start:0;margin-block-start:var(--rh-space-lg, 16px);counter-reset:list}@media(min-width: 1400px){ol.example-notes{margin-top:-48px}}ol.example-notes>li{list-style:none;line-height:var(--rh-line-height-body-text, 1.5)}ol.example-notes>li:before{content:counter(list) ") ";counter-increment:list}playground-project>*:defined{border-block-end:var(--rh-border-width-sm, 1px) solid var(--rh-border-subtle-on-light, #C7C7C7);border-inline-start:var(--rh-border-width-sm, 1px) solid var(--rh-border-subtle-on-light, #C7C7C7);border-inline-end:var(--rh-border-width-sm, 1px) solid var(--rh-border-subtle-on-light, #C7C7C7)}playground-project>*:defined:first-child{border-block-start:var(--rh-border-width-sm, 1px) solid var(--rh-border-subtle-on-light, #C7C7C7)}.full-width{width:100%}.col-211 th{width:25%}.col-211 th:first-of-type{width:50%}.col-111 th{width:33%}.col-11 th{width:50%}.col-13 th{width:25%}.col-13 th:last-of-type{width:75%}body.element-docs rh-subnav img{--inline-img-max-width: 992px}.header.container.has-subnav{padding-bottom:0}section.api.band{margin-block-end:var(--rh-space-4xl);padding-inline:0}.section.feedback{margin-block-end:0}.section table{width:100%}copy-permalink{display:flex;margin-block-end:var(--rh-space-lg)}copy-permalink:focus-within{--perma-signifier-display: initial}a.heading-anchor{position:relative;text-decoration:inherit}a.heading-anchor,a.heading-anchor:visited{color:inherit}a.heading-anchor:hover:before{content:"#";display:block;position:absolute;inset-inline-start:-1em}copy-permalink>:is(h1,h2,h3,h4,h5,h6){margin-block:0}body.element-docs copy-permalink.h2,body.element-docs copy-permalink.h3,body.page-docs copy-permalink.h2,body.page-docs copy-permalink.h3,body.token-docs copy-permalink.h2,body.token-docs copy-permalink.h3{margin-block-start:82px}body.element-docs copy-permalink.h2+copy-permalink.h3,body.page-docs copy-permalink.h2+copy-permalink.h3,body.token-docs copy-permalink.h2+copy-permalink.h3{margin-block-start:var(--rh-space-2xl, 32px)}.releases-links{margin-block-start:var(--rh-space-3xl) !important;display:flex;gap:2rem}rh-block a{display:flex;flex-direction:column;min-width:20rem;padding:var(--rh-space-lg);border:1px solid var(--rh-color-border-subtle-on-light);border-radius:var(--rh-border-radius-default);text-decoration:none}rh-block a:hover{text-decoration:underline;background:var(--rh-color-surface-light)}rh-block a::after{align-self:flex-end;content:url('data:image/svg+xml;utf8,')}rh-block a[href*=github]::before{content:url('data:image/svg+xml;utf8,')}rh-block [slot=header]{font-size:1rem}.release-version h3{margin-top:var(--rh-space-lg)}body.page-docs .release-version copy-permalink.h3{margin-block-start:var(--rh-space-xl)}.release-version table+p{margin-block-start:var(--rh-space-2xl)}body.page-docs a[href^=http]::after{display:inline-block;vertical-align:middle;margin-inline-start:.25em;content:url('data:image/svg+xml;utf8,')}body.page-docs rh-cta a[href^=http]::after{display:none}.feedback-contact-link{white-space:nowrap}rh-playground pre{max-height:785px} /*# sourceMappingURL=styles.css.map */ \ No newline at end of file diff --git a/assets/css/style.css.map b/assets/css/style.css.map index e86a853fee..f33fbcaa91 100644 --- a/assets/css/style.css.map +++ b/assets/css/style.css.map @@ -22,7 +22,7 @@ "sass/../../../../home/runner/work/red-hat-design-system/red-hat-design-system/docs/scss/styles.scss" ], "names": [], - "mappings": "AAIA,4DAQC,KACC,uBACA,0BACA,8BAOF,KACE,SAUF,sFAYE,cAQF,4BAIE,qBACA,wBAQF,sBACE,aACA,SAQF,kBAEE,aAUF,EACE,uBAOF,iBAEE,UACA,0BACA,cAUF,YACE,yBAOF,SAEE,iBAOF,IACE,kBAQF,GACE,eAOF,KACE,gBACA,WAOF,MACE,cAOF,QAEE,cACA,cACA,kBACA,wBAGF,IACE,WAGF,IACE,eAUF,IACE,SAOF,eACE,gBAUF,OACE,gBAOF,GACE,4BACA,uBACA,SAOF,IACE,cAOF,kBAIE,uCACA,cAkBF,sCAKE,cACA,aACA,SAOF,OACE,iBAUF,cAEE,oBAWF,oEAIE,0BACA,eAOF,sCAEE,eAOF,iDAEE,SACA,UAQF,MACE,mBAWF,uCAEE,sBACA,UASF,4FAEE,YASF,mBACE,6BACA,4BACA,+BACA,uBASF,+FAEE,wBAOF,SACE,wBACA,aACA,2BAQF,OACE,SACA,UAOF,SACE,cAQF,SACE,iBAUF,MACE,yBACA,iBAGF,MAEE,UCraA,mBAGE,sBAIJ,uBACE,GACE,kBACA,UAGF,IACE,mBAGF,IACE,UAGF,KACE,WAIJ,kBACE,GACE,mBACA,UAGF,KACE,WAIJ,KACE,wBCzBA,yBDwBF,KAGI,yBAIJ,KACE,qDACA,eACA,gBACA,kBACA,mCACA,kCAGF,iBACE,qDAGF,kBAME,+CACA,wDAGF,GACE,uDAGF,eAKE,sDAGF,GACE,gDAGF,GACE,eAGF,GACE,eAGF,GACE,eAGF,GACE,eAGF,GACE,eAGF,IACE,eAEA,WACE,cAKJ,QACE,gCACA,8BAGF,EACE,WAEA,QACE,cAGF,QACE,cAGF,SACE,cAGF,UACE,WAGF,gBACE,cAKJ,GACE,cAGF,aAEE,eAGF,MACE,sBAGF,MAEE,kBAIA,SACE,gCAGF,SACE,6BAIJ,GACE,eAGF,GACE,yBACA,cAEA,cACE,eAIJ,QACE,kBAGF,IACE,yBACA,YACA,mBAGF,QACE,WACA,eAEA,cACE,cAGF,cACE,cAGF,eACE,cE/MJ,gCAEE,eACA,SACA,OACA,WACA,0BDQA,yBCdF,gCASI,eACA,IAFwB,KAGxB,SACA,OACA,2BAIJ,iBAEE,MClBoB,MDmBpB,iBACA,0BACA,gBACA,cACA,gBACA,+BDXA,yBCGF,iBAWI,MC3BkB,MD4BlB,0BACA,oBACA,oBAGF,wBAEE,cACA,iBACA,sBACA,gCACA,yBACA,WAGF,iDACE,aAGF,qIAGE,cACA,qBACA,iCACA,eACA,kBACA,cAEA,8SAEE,cACA,oDACA,mCAKF,iDACE,WACA,cACA,UACA,WACA,wBACA,+BACA,6BACA,aACA,YACA,SACA,kBAMA,+DACE,yBAKN,wCACE,iBAKF,0GAEE,oDACA,gCACA,cAGF,kDACE,eACA,iBACA,kBAEA,wDACE,cAKN,qDAEE,SACA,UACA,gBAIF,2BACE,kBE3HF,aHqBE,kBACA,UACA,WACA,UACA,gBACA,sBACA,mBACA,qBACA,SAfA,yBGdF,aAGI,cAIJ,qBACE,cACA,eACA,SACA,gBACA,uBACA,gBACA,0CAPF,qBASI,cAsBJ,qGAXI,kBAMF,WACE,yCAMF,QACA,gBACA,gBH5BA,yBGwBF,qGAMI,iBACA,oBAIJ,mHAzBI,mBASF,WACE,wCAiBF,MDlDoB,cECpB,kCJYA,0BIbF,QAII,mCAGF,oBACE,SAGA,+BACE,mBAGF,8BACE,uCAKN,gBACE,gBACA,UAMA,aAOA,0BAfF,gBAgBI,eASJ,gBACE,cJlCA,yBIiCF,gBAII,eAIA,sBACE,gBAKN,0DAEE,eACA,MACA,QJnDA,yBI+CF,0DAOI,cAIJ,8BACE,WACA,YACA,WACA,YAgBF,uBASE,cACA,kBACA,QACA,sBAGA,sBACA,0BAUA,2DAEE,WACA,kBACA,MACA,OACA,sBACA,cACA,MAdU,KAiBZ,8BAIE,SACA,0BACA,WApCa,KAqCb,UANY,kBAOZ,iBANmB,SAOnB,4DAEA,4FACE,0CACA,iBAXiB,SAgBrB,6BAIE,OAHS,KAIT,sBACA,yBACA,WACE,+FAEF,iBARmB,YAUnB,2FACE,yBACA,6BACA,iBAbiB,YAmBvB,yDACE,WACA,mCJ5JA,yBI0JF,yDAKI,6BACA,YJhKF,0BKbA,kBAEI,8CAIJ,sCAEE,2CACA,eACA,gBLGF,0BKPA,sCAMI,4CCbN,kBACE,gBAGF,SACE,aACA,mBACA,aNOA,0BMVF,SAMI,0BACA,aACA,mBACA,gBAGF,kBACE,gBNHF,0BMEA,kBAII,kBAIJ,mBACE,qBACA,gBAGF,6BACE,qBACA,gBNjBF,0BMeA,6BAKI,kBAIJ,eACE,gBNzBF,0BMwBA,eAII,kBAIJ,wBACE,cACA,cAGF,qBACE,eACA,mBACA,uBACA,gBAEA,yBACE,cACA,mBACA,cAIJ,mBACE,uBAGF,gBACE,mBAQJ,uBACE,UACA,YACA,mBAEA,sCACE,SNrEF,0BM+DF,uBAUI,WAIJ,wBACE,gBACA,yBACA,kBAGF,2BACE,uBACA,yBACA,kBAGF,0BACE,WACA,mBACA,kBAGF,wBACE,6BACA,0DACA,4BACA,qBACA,0BACA,0BACA,sBACA,kBAGF,yBACE,mBACA,kBAGF,uBACE,qBACA,kBAGF,8BACE,uBACA,yBACA,kBACA,iBACA,oBACA,mBAEA,kCACE,WACA,4CACA,8CAKJ,mCACE,gBAGA,kBACA,iBACA,oBACA,mBAEA,uCACE,WACA,4CACA,8CAIJ,wCACE,2BAGA,kBACA,iBACA,oBACA,mBAEA,4CACE,WACA,4CACA,8CAIJ,mCACE,2BACA,yBACA,kBACA,iBACA,oBACA,mBAEA,uCACE,WACA,4CACA,8CAIJ,yCACE,mBACA,kBACA,iBACA,oBACA,mBAEA,6CACE,WACA,4CACA,8CAKF,sCACE,sFACA,YAEF,sCACE,mDACA,YAKF,8BACE,aAEA,gCACE,SAQF,sBACE,WACA,+CACA,mBACA,gBAKN,kBACE,uCCnPF,uBACE,6CAEA,sDACE,qBCJJ,mBACE,oDACA,kBRcA,0BQhBF,mBAII,oBAIJ,sBACE,gBACA,yBACA,qBAGF,sBACE,gBACA,SACA,UAGF,sBACE,aAGF,sBACE,UAGF,wBACE,qBACA,gBAGF,4BACE,iBAGF,+BACE,iBAGF,kCACE,iBAGF,qCACE,iBC/CF,wBACE,WACA,SACA,yBACA,eACA,gBACA,kBAEA,mCACE,kBACA,6BAGF,2BACE,eAGF,iCACE,4DACA,sDAGF,+CACE,2BAGF,kDACE,aAGF,2BACE,yBACA,cACA,eAEA,sCACE,eAGF,+BACE,oCACA,mCACA,oDAIJ,0BACE,mCACE,kBAIJ,8BACE,eAIJ,kCACE,aACA,wBAIF,0CACM,kCACE,kBAEF,wBACE,YAEA,8BACE,kBCvER,8BACE,4DACA,sDAGF,8BACE,UAGF,4CACE,2BAGF,0BACE,wBACA,iBACA,0GACA,wEACA,aACA,uBACA,mBACA,kBACA,oDAGF,+BACE,aACA,mBACA,uBACA,iBACA,gBAGF,iCACE,WACA,wBACA,iBACA,6EACA,aACA,WACA,kBAGF,sCACE,kBACA,mCAIA,wCACE,UAIJ,iCACE,cAEA,wCACE,UAIJ,iCACE,cChEJ,oBACE,gBACA,uBAEA,uBACE,gBCLJ,uBACE,WACA,aACA,cACA,kBACA,uDACA,mBAGF,qBACE,mBAEA,uBACE,eACA,SAEA,qCACE,gBCbN,KACE,iBbaA,yBadF,KAII,kBAOJ,oBACE,eACA,MACA,OACA,QACA,YACA,aACA,mBACA,YACA,eACA,WACA,gBbRA,yBaHF,oBAaI,gBAGF,qCACE,kBACA,uBACA,kBACA,WbjBF,yBaaA,qCAMI,YbnBJ,yBaHF,oBA6BQ,OXrCQ,MW2ChB,gBACE,gBAGF,QACE,kBbrCA,yBaoCF,QAII,aXrDkB,OWyDtB,iCACE,oDACA,mBAGF,iBACE,4CAIA,8DACE,qBACA,2CAIJ,aACE,yBACA,kBACA,gBACA,aACA,QACA,2BACA,mBACA,kBACA,wBbrEA,yBa4DF,aAYI,mBACA,gBACA,MAEA,4BACE,0BAIJ,iBACE,cACA,mBACA,kBbpFF,yBaiFA,iBAKI,gBACA,eAIJ,eACE,eACA,cACA,cACA,UACA,iBAIA,sBACE,cACA,SACA,gBACA,UbxGJ,yBaoGE,sBAMI,cAGF,yBACE,cACA,iBb/GN,yBa6GI,yBAII,kBAIJ,wBACE,iBACA,eACA,cAEA,8BACE,WAOV,2BACE,aACA,8BACA,cACA,gBAGF,oBACE,kBACA,gBAEA,uCACE,gBACA,UCvJJ,MACE,cAGF,0DACE,KACE,wBAIJ,iBdKE,kBACA,UACA,WACA,UACA,gBACA,sBACA,mBACA,qBACA,ScXA,cAGF,qCdCE,UACA,WACA,UACA,gBACA,sBACA,mBACA,qBACA,ScNA,cAGF,4BAGE,iBACA,kBACA,mBdjBA,0BcYF,4BAOI,kBACA,oBASF,YACE,eACA,iBd/BF,0Bc6BA,YAKI,eACA,kBAIJ,YACE,gBACA,eACA,mBd1CF,0BcuCA,YAMI,eACA,iBAIJ,8BAEE,gBAGF,YACE,gBACA,mBACA,eACA,iBd3DF,yBcuDA,YAOI,eACA,kBAGF,cACE,qBAIJ,WACE,iBACA,gBACA,mBAEA,aACE,qBACA,WAEA,mBACE,0BACA,cAIJ,oBACE,gBAKJ,cACE,mBACA,aAIA,4BACE,gBAIJ,aACE,WACA,4CACA,8CAIF,eACE,SAEA,qBACE,SAGF,kBACE,gBACA,eAGF,kBACE,yBACA,aACA,cACA,eAGE,iCACE,aAMF,qDACE,cAGF,qDACE,WAMF,kDACE,cAKN,kBACE,yBACA,eACA,cACA,eAEA,oBACE,qBAGF,sBACE,WAQJ,eACE,iBAEA,iBACE,qBAEA,uBACE,0BAON,eACE,iBAEA,iBACE,qBAEA,uBACE,0BAOV,wTAYE,0BACA,WACA,aACA,cACA,mBdxNA,yBcwMF,wTAkBI,mBACA,0BACA,eACA,oBAGF,ghBACE,SAGF,4VACE,aAGF,oaACE,gBAGF,ghBACE,aAKJ,wBACE,0BdnPA,yBckPF,wBAGI,+DAIJ,wBACE,0Bd1PA,yBcyPF,wBAGI,+DAIJ,wBACE,0BdjQA,yBcgQF,wBAGI,+DAIJ,wBACE,0BdxQA,yBcuQF,wBAGI,8DAIJ,wBACE,0Bd/QA,yBc8QF,wBAGI,8DAIJ,4BACE,0BACA,WdvRA,yBcqRF,4BAII,6DAIJ,4BACE,0BACA,Wd/RA,yBc6RF,4BAII,4DAIJ,4BACE,0BACA,WdvSA,yBcqSF,4BAII,4DAIJ,4BACE,0BACA,Wd/SA,yBc6SF,4BAII,4DAIJ,4BACE,0BACA,WdvTA,yBcqTF,4BAII,4DAIJ,4BACE,0BACA,Wd/TA,yBc6TF,4BAII,4DAIJ,sBACE,eAGF,sBACE,gBAGF,sBACE,gBAGF,sBACE,gBAGF,sBACE,gBAGF,sBACE,gBAGF,sBACE,gBAGF,sBACE,gBAGF,sBACE,gBAGF,uBACE,gBAGF,uBACE,gBAGF,yBACE,kBAGF,yBACE,mBAGF,yBACE,mBAGF,yBACE,mBAGF,yBACE,mBAGF,yBACE,mBAGF,yBACE,mBAGF,yBACE,mBAGF,yBACE,mBAGF,0BACE,mBAGF,UACE,cACA,kBACA,mBAEA,YACE,iBACA,mBAIJ,UACE,eACA,cACA,iBAGA,gBACA,mBd3aA,0BcoaF,UAUI,kBAIJ,GACE,SACA,SACA,6BAGF,mBACE,eACA,gBACA,iBd3bA,yBcwbF,mBAMI,eACA,kBAIJ,kBACE,WACA,yBACA,2EACA,gBACA,iBACA,eACA,gBAGF,4BACE,aACA,8BACA,cACA,uBdjdA,0Bc6cF,4BAMI,sCACA,eAIJ,qBACE,aACA,8BACA,cACA,uBd5dA,0BcwdF,qBAMI,sCACA,eAIJ,mBACE,aACA,8BACA,cACA,uBdveA,0BcmeF,mBAMI,kCACA,eAIJ,qBACE,aACA,0BACA,cACA,uBACA,gBdnfA,0Bc8eF,qBAOI,8BACA,eAQJ,aACE,cACA,uBACA,OdjgBA,yBc8fF,aAKI,OACA,cAGF,iBACE,eACA,mBdzgBF,0BcugBA,iBAII,iBAKN,kBACE,cACA,qBACA,OACA,mBdphBA,yBcghBF,kBAMI,qBAGF,oBACE,mBACA,kBd3hBF,0BcyhBA,oBAII,iBAKN,gBACE,aACA,0BACA,cAIA,uBACE,mBACA,kBd3iBF,0BcyiBA,uBAII,iBAKN,eACE,gBAEA,kBACE,gBAEA,oBACE,qBACA,cAEA,sDAEE,cACA,0BAMR,iBACE,mBAEA,0BACE,mBAGF,oBACE,gBACA,mBACA,aACA,eAGF,mBACE,qBACA,cAGF,sBACE,qBACA,cAEA,0DAEE,cAIJ,qBACE,cAGF,mBACE,aACA,cAWF,YACE,qBACA,UACA,SAEA,eACE,iBAEA,iBACE,qBAON,gBACE,qBACA,aAEA,sBACE,YACA,kBAGF,iCACE,WAKN,OACE,qBAEA,gBACE,yBACA,mBACA,gBACA,eAEA,sBACE,qBAGF,oBACE,qBAGF,uBACE,qBAGF,2BACE,qBAGF,2BACE,qBAGF,uBACE,qBAIJ,cACE,gBAIJ,aACE,kBACA,UACA,WACA,YACA,UAEA,UAGF,kBACE,eACA,gBACA,wBACA,qBACA,kCACA,UAEA,sBACE,wBAGF,wDAEE,qBAOJ,MACE,YACA,kBACA,yBACA,gBACA,kBACA,WACA,YACA,qBACA,kBACA,iBACA,eACA,SACA,SAKF,yBAEE,SACA,UACA,kBACA,aAGF,0EAIE,UACA,iCACA,YAKF,aACE,mBACA,yBACA,6CACA,YACA,WACA,kBACA,UAYF,YACE,mBACA,oBACA,YACA,WACA,uBACA,oBACA,YAGA,aACA,eAGF,oCAGE,WAGF,yBACE,YACE,gBACA,iBACA,YAKJ,QACE,gBACA,MAGF,iBAGE,gBACA,aACA,aACA,MdxzBA,0BckzBF,iBASI,eAEF,sCAXF,iBAYI,cAIJ,mBACE,gBACA,MACA,UAGF,gCACE,UAGF,+BACE,eAKA,uBACE,cAGF,4BACE,cAGF,uBACE,WAKJ,cACE,WAEA,kBACE,WAGF,iBACE,iBAIA,iCACE,uCACA,eAON,aACE,yBACA,kBACA,kBACA,cdz3BA,0Bcq3BF,aAOI,mBAGF,eACE,WACA,qBAEA,qBACE,cACA,0BAKN,kBACE,gBACA,eACA,WACA,gBACA,iBd/4BA,0Bc04BF,kBAOI,eACA,kBAKF,sBACE,cACA,qBACA,eAEA,4BACE,0BAON,aACE,aACA,0BACA,qBACA,mBdx6BA,0Bco6BF,aAMI,+BAGF,mBACE,cACA,sBACA,OAEA,8BACE,gBAGF,gCACE,QAGF,gCACE,QAGF,gCACE,QAGF,gCACE,QAGF,gCACE,QAGF,gCACE,QAGF,gCACE,QAGF,gCACE,Qdn9BJ,0Bcu9BI,gCACE,QAGF,gCACE,QAGF,gCACE,QAGF,gCACE,QAGF,gCACE,QAGF,gCACE,QAGF,gCACE,QAGF,gCACE,SAIJ,sBACE,aAQN,SACE,gBACA,mBAIF,OACE,eACA,SACA,cACA,gBACA,WACA,aACA,yBACA,aACA,6BACA,adjhCA,yBcugCF,OAaI,cAGF,YACE,yBACA,qBAGF,kBACE,oBAGF,aAEE,iBAMA,yBACE,eACA,gBACA,cACA,kBACA,aAGF,kBACE,eACA,cACA,SAIJ,cACE,kBACA,SACA,WACA,mBAEA,qBACE,uBACA,SACA,UACA,mBAGF,kBACE,cAMN,cACE,yBACA,kBACA,kBAKF,WACE,oBACA,aACA,0BACA,wBACA,uCdxlCA,0BcmlCF,WAQI,iDAKE,oDACE,4BAEF,wCACE,uBACA,kBACA,iCACA,iDACA,kBACA,yBACA,0BACA,eACA,cACA,aACA,yCACA,+CACA,kBACA,iBACA,sCASR,cACE,eAMA,sBACE,gBAKF,kDACE,gBAOJ,+BACE,qDACA,uDACA,iDAGF,iBACE,uBACA,4CACA,mBdzpCA,0BcspCF,iBAMI,kBAGF,oBACE,gBACA,iDAGF,2BACE,2BACA,uBAIJ,6BACE,gGACA,mGACA,iGAEF,yCACE,kGAGF,YACE,WAGF,sBACA,oCACA,sBACA,qBACA,qBACA,kCC3rCA,gCACE,8BAGF,6BACE,iBAGF,iBACE,qCACA,iBAGF,kBACE,mBAGF,eACE,WAGF,eACE,aACA,oCAGF,4BACE,mCAGF,iBACE,kBACA,wBAGF,0CAEE,cAGF,8BACE,YACA,cACA,kBACA,wBAGF,sCACE,eAGF,8MAME,wBAGF,6JAGE,6CAMF,gBACE,kDACA,aACA,SAGF,WACE,aACA,sBACA,gBACA,2BACA,wDACA,8CACA,qBAGF,iBACE,0BACA,yCAGF,kBACE,oBACA,sWAGF,iCACE,yxBAGF,uBACE,eAGF,oBACE,8BAGF,kDACE,sCAGF,yBACE,uCAIF,oCACE,qBACA,sBACA,0BACA,sWAGF,2CACE,aAGF,uBACE", + "mappings": "AAIA,4DAQC,KACC,uBACA,0BACA,8BAOF,KACE,SAUF,sFAYE,cAQF,4BAIE,qBACA,wBAQF,sBACE,aACA,SAQF,kBAEE,aAUF,EACE,uBAOF,iBAEE,UACA,0BACA,cAUF,YACE,yBAOF,SAEE,iBAOF,IACE,kBAQF,GACE,eAOF,KACE,gBACA,WAOF,MACE,cAOF,QAEE,cACA,cACA,kBACA,wBAGF,IACE,WAGF,IACE,eAUF,IACE,SAOF,eACE,gBAUF,OACE,gBAOF,GACE,4BACA,uBACA,SAOF,IACE,cAOF,kBAIE,uCACA,cAkBF,sCAKE,cACA,aACA,SAOF,OACE,iBAUF,cAEE,oBAWF,oEAIE,0BACA,eAOF,sCAEE,eAOF,iDAEE,SACA,UAQF,MACE,mBAWF,uCAEE,sBACA,UASF,4FAEE,YASF,mBACE,6BACA,4BACA,+BACA,uBASF,+FAEE,wBAOF,SACE,wBACA,aACA,2BAQF,OACE,SACA,UAOF,SACE,cAQF,SACE,iBAUF,MACE,yBACA,iBAGF,MAEE,UCraA,mBAGE,sBAIJ,uBACE,GACE,kBACA,UAGF,IACE,mBAGF,IACE,UAGF,KACE,WAIJ,kBACE,GACE,mBACA,UAGF,KACE,WAIJ,KACE,wBCzBA,yBDwBF,KAGI,yBAIJ,KACE,qDACA,eACA,gBACA,kBACA,mCACA,kCAGF,iBACE,qDAGF,kBAME,+CACA,wDAGF,GACE,uDAGF,eAKE,sDAGF,GACE,gDAGF,GACE,eAGF,GACE,eAGF,GACE,eAGF,GACE,eAGF,GACE,eAGF,IACE,eAEA,WACE,cAKJ,QACE,gCACA,8BAGF,EACE,WAEA,QACE,cAGF,QACE,cAGF,SACE,cAGF,UACE,WAGF,gBACE,cAKJ,GACE,cAGF,aAEE,eAGF,MACE,sBAGF,MAEE,kBAIA,SACE,gCAGF,SACE,6BAIJ,GACE,eAGF,GACE,yBACA,cAEA,cACE,eAIJ,QACE,kBAGF,IACE,yBACA,YACA,mBAGF,QACE,WACA,eAEA,cACE,cAGF,cACE,cAGF,eACE,cE/MJ,gCAEE,eACA,SACA,OACA,WACA,0BDQA,yBCdF,gCASI,eACA,IAFwB,KAGxB,SACA,OACA,2BAIJ,iBAEE,MClBoB,MDmBpB,iBACA,0BACA,gBACA,cACA,gBACA,+BDXA,yBCGF,iBAWI,MC3BkB,MD4BlB,0BACA,oBACA,oBAGF,wBAEE,cACA,iBACA,sBACA,gCACA,yBACA,WAGF,iDACE,aAGF,qIAGE,cACA,qBACA,iCACA,eACA,kBACA,cAEA,8SAEE,cACA,oDACA,mCAKF,iDACE,WACA,cACA,UACA,WACA,wBACA,+BACA,6BACA,aACA,YACA,SACA,kBAMA,+DACE,yBAKN,wCACE,iBAKF,0GAEE,oDACA,gCACA,cAGF,kDACE,eACA,iBACA,kBAEA,wDACE,cAKN,qDAEE,SACA,UACA,gBAIF,2BACE,kBE3HF,aHqBE,kBACA,UACA,WACA,UACA,gBACA,sBACA,mBACA,qBACA,SAfA,yBGdF,aAGI,cAIJ,qBACE,cACA,eACA,SACA,gBACA,uBACA,gBACA,0CAPF,qBASI,cAsBJ,qGAXI,kBAMF,WACE,yCAMF,QACA,gBACA,gBH5BA,yBGwBF,qGAMI,iBACA,oBAIJ,mHAzBI,mBASF,WACE,wCAiBF,MDlDoB,cECpB,kCJYA,0BIbF,QAII,mCAGF,oBACE,SAGA,+BACE,mBAGF,8BACE,uCAKN,gBACE,gBACA,UAMA,aAOA,0BAfF,gBAgBI,eASJ,gBACE,cJlCA,yBIiCF,gBAII,eAIA,sBACE,gBAKN,0DAEE,eACA,MACA,QJnDA,yBI+CF,0DAOI,cAIJ,8BACE,WACA,YACA,WACA,YAgBF,uBASE,cACA,kBACA,QACA,sBAGA,sBACA,0BAUA,2DAEE,WACA,kBACA,MACA,OACA,sBACA,cACA,MAdU,KAiBZ,8BAIE,SACA,0BACA,WApCa,KAqCb,UANY,kBAOZ,iBANmB,SAOnB,4DAEA,4FACE,0CACA,iBAXiB,SAgBrB,6BAIE,OAHS,KAIT,sBACA,yBACA,WACE,+FAEF,iBARmB,YAUnB,2FACE,yBACA,6BACA,iBAbiB,YAmBvB,yDACE,WACA,mCJ5JA,yBI0JF,yDAKI,6BACA,YJhKF,0BKbA,kBAEI,8CAIJ,sCAEE,2CACA,eACA,gBLGF,0BKPA,sCAMI,4CCbN,kBACE,gBAGF,SACE,aACA,mBACA,aNOA,0BMVF,SAMI,0BACA,aACA,mBACA,gBAGF,kBACE,gBNHF,0BMEA,kBAII,kBAIJ,mBACE,qBACA,gBAGF,6BACE,qBACA,gBNjBF,0BMeA,6BAKI,kBAIJ,eACE,gBNzBF,0BMwBA,eAII,kBAIJ,wBACE,cACA,cAGF,qBACE,eACA,mBACA,uBACA,gBAEA,yBACE,cACA,mBACA,cAIJ,mBACE,uBAGF,gBACE,mBAQJ,uBACE,UACA,YACA,mBAEA,sCACE,SNrEF,0BM+DF,uBAUI,WAIJ,wBACE,gBACA,yBACA,kBAGF,2BACE,uBACA,yBACA,kBAGF,0BACE,WACA,mBACA,kBAGF,wBACE,6BACA,0DACA,4BACA,qBACA,0BACA,0BACA,sBACA,kBAGF,yBACE,mBACA,kBAGF,uBACE,qBACA,kBAGF,8BACE,uBACA,yBACA,kBACA,iBACA,oBACA,mBAEA,kCACE,WACA,4CACA,8CAKJ,mCACE,gBAGA,kBACA,iBACA,oBACA,mBAEA,uCACE,WACA,4CACA,8CAIJ,wCACE,2BAGA,kBACA,iBACA,oBACA,mBAEA,4CACE,WACA,4CACA,8CAIJ,mCACE,2BACA,yBACA,kBACA,iBACA,oBACA,mBAEA,uCACE,WACA,4CACA,8CAIJ,yCACE,mBACA,kBACA,iBACA,oBACA,mBAEA,6CACE,WACA,4CACA,8CAKF,sCACE,sFACA,YAEF,sCACE,mDACA,YAKF,8BACE,aAEA,gCACE,SAQF,sBACE,WACA,+CACA,mBACA,gBAKN,kBACE,uCCnPF,uBACE,6CAEA,sDACE,qBCJJ,mBACE,oDACA,kBRcA,0BQhBF,mBAII,oBAIJ,sBACE,gBACA,yBACA,qBAGF,sBACE,gBACA,SACA,UAGF,sBACE,aAGF,sBACE,UAGF,wBACE,qBACA,gBAGF,4BACE,iBAGF,+BACE,iBAGF,kCACE,iBAGF,qCACE,iBC/CF,wBACE,WACA,SACA,yBACA,eACA,gBACA,kBAEA,mCACE,kBACA,6BAGF,2BACE,eAGF,iCACE,4DACA,sDAGF,+CACE,2BAGF,kDACE,aAGF,2BACE,yBACA,cACA,eAEA,sCACE,eAGF,+BACE,oCACA,mCACA,oDAIJ,0BACE,mCACE,kBAIJ,8BACE,eAIJ,kCACE,aACA,wBAIF,0CACM,kCACE,kBAEF,wBACE,YAEA,8BACE,kBCvER,8BACE,4DACA,sDAGF,8BACE,UAGF,4CACE,2BAGF,0BACE,wBACA,iBACA,0GACA,wEACA,aACA,uBACA,mBACA,kBACA,oDAGF,+BACE,aACA,mBACA,uBACA,iBACA,gBAGF,iCACE,WACA,wBACA,iBACA,6EACA,aACA,WACA,kBAGF,sCACE,kBACA,mCAIA,wCACE,UAIJ,iCACE,cAEA,wCACE,UAIJ,iCACE,cChEJ,oBACE,gBACA,uBAEA,uBACE,gBCLJ,uBACE,WACA,aACA,cACA,kBACA,uDACA,mBAGF,qBACE,mBAEA,uBACE,eACA,SAEA,qCACE,gBCbN,KACE,iBbaA,yBadF,KAII,kBAOJ,oBACE,eACA,MACA,OACA,QACA,YACA,aACA,mBACA,YACA,eACA,WACA,gBbRA,yBaHF,oBAaI,gBAGF,qCACE,kBACA,uBACA,kBACA,WbjBF,yBaaA,qCAMI,YbnBJ,yBaHF,oBA6BQ,OXrCQ,MW2ChB,gBACE,gBAGF,QACE,kBbrCA,yBaoCF,QAII,aXrDkB,OWyDtB,iCACE,oDACA,mBAGF,iBACE,4CAIA,8DACE,qBACA,2CAIJ,aACE,yBACA,kBACA,gBACA,aACA,QACA,2BACA,mBACA,kBACA,wBbrEA,yBa4DF,aAYI,mBACA,gBACA,MAEA,4BACE,0BAIJ,iBACE,cACA,mBACA,kBbpFF,yBaiFA,iBAKI,gBACA,eAIJ,eACE,eACA,cACA,cACA,UACA,iBAIA,sBACE,cACA,SACA,gBACA,UbxGJ,yBaoGE,sBAMI,cAGF,yBACE,cACA,iBb/GN,yBa6GI,yBAII,kBAIJ,wBACE,iBACA,eACA,cAEA,8BACE,WAOV,2BACE,aACA,8BACA,cACA,gBAGF,oBACE,kBACA,gBAEA,uCACE,gBACA,UCvJJ,MACE,cAGF,0DACE,KACE,wBAIJ,iBdKE,kBACA,UACA,WACA,UACA,gBACA,sBACA,mBACA,qBACA,ScXA,cAGF,qCdCE,UACA,WACA,UACA,gBACA,sBACA,mBACA,qBACA,ScNA,cAGF,4BAGE,iBACA,kBACA,mBdjBA,0BcYF,4BAOI,kBACA,oBASF,YACE,eACA,iBd/BF,0Bc6BA,YAKI,eACA,kBAIJ,YACE,gBACA,eACA,mBd1CF,0BcuCA,YAMI,eACA,iBAIJ,8BAEE,gBAGF,YACE,gBACA,mBACA,eACA,iBd3DF,yBcuDA,YAOI,eACA,kBAGF,cACE,qBAIJ,WACE,iBACA,gBACA,mBAEA,aACE,qBACA,WAEA,mBACE,0BACA,cAIJ,oBACE,gBAKJ,cACE,mBACA,aAIA,4BACE,gBAIJ,aACE,WACA,4CACA,8CAIF,eACE,SAEA,qBACE,SAGF,kBACE,gBACA,eAGF,kBACE,yBACA,aACA,cACA,eAGE,iCACE,aAMF,qDACE,cAGF,qDACE,WAMF,kDACE,cAKN,kBACE,yBACA,eACA,cACA,eAEA,oBACE,qBAGF,sBACE,WAQJ,eACE,iBAEA,iBACE,qBAEA,uBACE,0BAON,eACE,iBAEA,iBACE,qBAEA,uBACE,0BAOV,wTAYE,0BACA,WACA,aACA,cACA,mBdxNA,yBcwMF,wTAkBI,mBACA,0BACA,eACA,oBAGF,ghBACE,SAGF,4VACE,aAGF,oaACE,gBAGF,ghBACE,aAKJ,wBACE,0BdnPA,yBckPF,wBAGI,+DAIJ,wBACE,0Bd1PA,yBcyPF,wBAGI,+DAIJ,wBACE,0BdjQA,yBcgQF,wBAGI,+DAIJ,wBACE,0BdxQA,yBcuQF,wBAGI,8DAIJ,wBACE,0Bd/QA,yBc8QF,wBAGI,8DAIJ,4BACE,0BACA,WdvRA,yBcqRF,4BAII,6DAIJ,4BACE,0BACA,Wd/RA,yBc6RF,4BAII,4DAIJ,4BACE,0BACA,WdvSA,yBcqSF,4BAII,4DAIJ,4BACE,0BACA,Wd/SA,yBc6SF,4BAII,4DAIJ,4BACE,0BACA,WdvTA,yBcqTF,4BAII,4DAIJ,4BACE,0BACA,Wd/TA,yBc6TF,4BAII,4DAIJ,sBACE,eAGF,sBACE,gBAGF,sBACE,gBAGF,sBACE,gBAGF,sBACE,gBAGF,sBACE,gBAGF,sBACE,gBAGF,sBACE,gBAGF,sBACE,gBAGF,uBACE,gBAGF,uBACE,gBAGF,yBACE,kBAGF,yBACE,mBAGF,yBACE,mBAGF,yBACE,mBAGF,yBACE,mBAGF,yBACE,mBAGF,yBACE,mBAGF,yBACE,mBAGF,yBACE,mBAGF,0BACE,mBAGF,UACE,cACA,kBACA,mBAEA,YACE,iBACA,mBAIJ,UACE,eACA,cACA,iBAGA,gBACA,mBd3aA,0BcoaF,UAUI,kBAIJ,GACE,SACA,SACA,6BAGF,mBACE,eACA,gBACA,iBd3bA,yBcwbF,mBAMI,eACA,kBAIJ,kBACE,WACA,yBACA,2EACA,gBACA,iBACA,eACA,gBAGF,4BACE,aACA,8BACA,cACA,uBdjdA,0Bc6cF,4BAMI,sCACA,eAIJ,qBACE,aACA,8BACA,cACA,uBd5dA,0BcwdF,qBAMI,sCACA,eAIJ,mBACE,aACA,8BACA,cACA,uBdveA,0BcmeF,mBAMI,kCACA,eAIJ,qBACE,aACA,0BACA,cACA,uBACA,gBdnfA,0Bc8eF,qBAOI,8BACA,eAQJ,aACE,cACA,uBACA,OdjgBA,yBc8fF,aAKI,OACA,cAGF,iBACE,eACA,mBdzgBF,0BcugBA,iBAII,iBAKN,kBACE,cACA,qBACA,OACA,mBdphBA,yBcghBF,kBAMI,qBAGF,oBACE,mBACA,kBd3hBF,0BcyhBA,oBAII,iBAKN,gBACE,aACA,0BACA,cAIA,uBACE,mBACA,kBd3iBF,0BcyiBA,uBAII,iBAKN,eACE,gBAEA,kBACE,gBAEA,oBACE,qBACA,cAEA,sDAEE,cACA,0BAMR,iBACE,mBAEA,0BACE,mBAGF,oBACE,gBACA,mBACA,aACA,eAGF,mBACE,qBACA,cAGF,sBACE,qBACA,cAEA,0DAEE,cAIJ,qBACE,cAGF,mBACE,aACA,cAWF,YACE,qBACA,UACA,SAEA,eACE,iBAEA,iBACE,qBAON,gBACE,qBACA,aAEA,sBACE,YACA,kBAGF,iCACE,WAKN,OACE,qBAEA,gBACE,yBACA,mBACA,gBACA,eAEA,sBACE,qBAGF,oBACE,qBAGF,uBACE,qBAGF,2BACE,qBAGF,2BACE,qBAGF,uBACE,qBAIJ,cACE,gBAIJ,aACE,kBACA,UACA,WACA,YACA,UAEA,UAGF,kBACE,eACA,gBACA,wBACA,qBACA,kCACA,UAEA,sBACE,wBAGF,wDAEE,qBAOJ,MACE,YACA,kBACA,yBACA,gBACA,kBACA,WACA,YACA,qBACA,kBACA,iBACA,eACA,SACA,SAKF,yBAEE,SACA,UACA,kBACA,aAGF,0EAIE,UACA,iCACA,YAKF,aACE,mBACA,yBACA,6CACA,YACA,WACA,kBACA,UAYF,YACE,mBACA,oBACA,YACA,WACA,uBACA,oBACA,YAGA,aACA,eAGF,oCAGE,WAGF,yBACE,YACE,gBACA,iBACA,YAKJ,QACE,gBACA,MAGF,iBAGE,gBACA,aACA,aACA,MdxzBA,0BckzBF,iBASI,eAEF,sCAXF,iBAYI,cAIJ,mBACE,gBACA,MACA,UAGF,gCACE,UAGF,+BACE,eAKA,uBACE,cAGF,4BACE,cAGF,uBACE,WAKJ,cACE,WAEA,kBACE,WAGF,iBACE,iBAIA,iCACE,uCACA,eAON,aACE,yBACA,kBACA,kBACA,cdz3BA,0Bcq3BF,aAOI,mBAGF,eACE,WACA,qBAEA,qBACE,cACA,0BAKN,kBACE,gBACA,eACA,WACA,gBACA,iBd/4BA,0Bc04BF,kBAOI,eACA,kBAKF,sBACE,cACA,qBACA,eAEA,4BACE,0BAON,aACE,aACA,0BACA,qBACA,mBdx6BA,0Bco6BF,aAMI,+BAGF,mBACE,cACA,sBACA,OAEA,8BACE,gBAGF,gCACE,QAGF,gCACE,QAGF,gCACE,QAGF,gCACE,QAGF,gCACE,QAGF,gCACE,QAGF,gCACE,QAGF,gCACE,Qdn9BJ,0Bcu9BI,gCACE,QAGF,gCACE,QAGF,gCACE,QAGF,gCACE,QAGF,gCACE,QAGF,gCACE,QAGF,gCACE,QAGF,gCACE,SAIJ,sBACE,aAQN,SACE,gBACA,mBAIF,OACE,eACA,SACA,cACA,gBACA,WACA,aACA,yBACA,aACA,6BACA,adjhCA,yBcugCF,OAaI,cAGF,YACE,yBACA,qBAGF,kBACE,oBAGF,aAEE,iBAMA,yBACE,eACA,gBACA,cACA,kBACA,aAGF,kBACE,eACA,cACA,SAIJ,cACE,kBACA,SACA,WACA,mBAEA,qBACE,uBACA,SACA,UACA,mBAGF,kBACE,cAMN,cACE,yBACA,kBACA,kBAKF,WACE,oBACA,aACA,0BACA,wBACA,uCdxlCA,0BcmlCF,WAQI,iDAKE,oDACE,4BAEF,wCACE,uBACA,kBACA,iCACA,iDACA,kBACA,yBACA,0BACA,eACA,cACA,aACA,yCACA,+CACA,kBACA,iBACA,sCASR,cACE,eAMA,sBACE,gBAKF,kDACE,gBAOJ,+BACE,qDACA,uDACA,iDAGF,iBACE,uBACA,4CACA,mBdzpCA,0BcspCF,iBAMI,kBAGF,oBACE,gBACA,iDAGF,2BACE,2BACA,uBAIJ,6BACE,gGACA,mGACA,iGAEF,yCACE,kGAGF,YACE,WAGF,sBACA,oCACA,sBACA,qBACA,qBACA,kCC3rCA,gCACE,8BAGF,6BACE,iBAGF,iBACE,qCACA,iBAGF,kBACE,mBAGF,eACE,WAGF,eACE,aACA,oCAGF,4BACE,mCAGF,iBACE,kBACA,wBAGF,0CAEE,cAGF,8BACE,YACA,cACA,kBACA,wBAGF,sCACE,eAGF,8MAME,wBAGF,6JAGE,6CAMF,gBACE,kDACA,aACA,SAGF,WACE,aACA,sBACA,gBACA,2BACA,wDACA,8CACA,qBAGF,iBACE,0BACA,yCAGF,kBACE,oBACA,sWAGF,iCACE,yxBAGF,uBACE,eAGF,oBACE,8BAGF,kDACE,sCAGF,yBACE,uCAIF,oCACE,qBACA,sBACA,0BACA,sWAGF,2CACE,aAGF,uBACE,mBAGF,kBACE", "file": "styles.css", "sourcesContent": [ "@use '../__core/_mixins' as *;\n\n/* stylelint-disable */\n\n/*! normalize.css v3.0.0 | MIT License | git.io/normalize */\n\n/**\n * 1. Set default font family to sans-serif.\n * 2. Prevent iOS text size adjust after orientation change, without disabling\n * user zoom.\n */\n\n html {\n font-family: sans-serif; /* 1 */\n -ms-text-size-adjust: 100%; /* 2 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/**\n * Remove default margin.\n */\n\nbody {\n margin: 0;\n}\n\n/* HTML5 display definitions\n ========================================================================== */\n\n/**\n * Correct `block` display not defined in IE 8/9.\n */\n\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nnav,\nsection,\nsummary {\n display: block;\n}\n\n/**\n * 1. Correct `inline-block` display not defined in IE 8/9.\n * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.\n */\n\naudio,\ncanvas,\nprogress,\nvideo {\n display: inline-block; /* 1 */\n vertical-align: baseline; /* 2 */\n}\n\n/**\n * Prevent modern browsers from displaying `audio` without controls.\n * Remove excess height in iOS 5 devices.\n */\n\naudio:not([controls]) {\n display: none;\n height: 0;\n}\n\n/**\n * Address `[hidden]` styling not present in IE 8/9.\n * Hide the `template` element in IE, Safari, and Firefox < 22.\n */\n\n[hidden],\ntemplate {\n display: none;\n}\n\n/* Links\n ========================================================================== */\n\n/**\n * Remove the gray background color from active links in IE 10.\n */\n\na {\n background: transparent;\n}\n\n/**\n * Improve readability when focused and also mouse hovered in all browsers.\n */\n\na:active,\na:hover {\n outline: 0;\n text-decoration: underline;\n color: #004080;\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Address styling not present in IE 8/9, Safari 5, and Chrome.\n */\n\nabbr[title] {\n border-bottom: 1px dotted;\n}\n\n/**\n * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.\n */\n\nb,\nstrong {\n font-weight: bold;\n}\n\n/**\n * Address styling not present in Safari 5 and Chrome.\n */\n\ndfn {\n font-style: italic;\n}\n\n/**\n * Address variable `h1` font-size and margin within `section` and `article`\n * contexts in Firefox 4+, Safari 5, and Chrome.\n */\n\nh1 {\n margin: 0.67em 0;\n}\n\n/**\n * Address styling not present in IE 8/9.\n */\n\nmark {\n background: #ff0;\n color: #000;\n}\n\n/**\n * Address inconsistent and variable font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` affecting `line-height` in all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsup {\n top: -0.5em;\n}\n\nsub {\n bottom: -0.25em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove border when inside `a` element in IE 8/9.\n */\n\nimg {\n border: 0;\n}\n\n/**\n * Correct overflow displayed oddly in IE 9.\n */\n\nsvg:not(:root) {\n overflow: hidden;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * Address margin not present in IE 8/9 and Safari 5.\n */\n\nfigure {\n margin: 1em 40px;\n}\n\n/**\n * Address differences between Firefox and other browsers.\n */\n\nhr {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n height: 0;\n}\n\n/**\n * Contain overflow in all browsers.\n */\n\npre {\n overflow: auto;\n}\n\n/**\n * Address odd `em`-unit font size rendering in all browsers.\n */\n\ncode,\nkbd,\npre,\nsamp {\n font-family: var(--rh-font-family-code);\n font-size: 1em;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * Known limitation: by default, Chrome and Safari on OS X allow very limited\n * styling of `select`, unless a `border` property is set.\n */\n\n/**\n * 1. Correct color not being inherited.\n * Known issue: affects color of disabled elements.\n * 2. Correct font properties not being inherited.\n * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n color: inherit; /* 1 */\n font: inherit; /* 2 */\n margin: 0; /* 3 */\n}\n\n/**\n * Address `overflow` set to `hidden` in IE 8/9/10.\n */\n\nbutton {\n overflow: visible;\n}\n\n/**\n * Address inconsistent `text-transform` inheritance for `button` and `select`.\n * All other form control elements do not inherit `text-transform` values.\n * Correct `button` style inheritance in Firefox, IE 8+, and Opera\n * Correct `select` style inheritance in Firefox.\n */\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/**\n * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`\n * and `video` controls.\n * 2. Correct inability to style clickable `input` types in iOS.\n * 3. Improve usability and consistency of cursor style between image-type\n * `input` and others.\n */\n\nbutton,\nhtml input[type=\"button\"], /* 1 */\ninput[type=\"reset\"],\ninput[type=\"submit\"] {\n -webkit-appearance: button; /* 2 */\n cursor: pointer; /* 3 */\n}\n\n/**\n * Re-set default cursor for disabled elements.\n */\n\nbutton[disabled],\nhtml input[disabled] {\n cursor: default;\n}\n\n/**\n * Remove inner padding and border in Firefox 4+.\n */\n\nbutton::-moz-focus-inner,\ninput::-moz-focus-inner {\n border: 0;\n padding: 0;\n}\n\n/**\n * Address Firefox 4+ setting `line-height` on `input` using `!important` in\n * the UA stylesheet.\n */\n\ninput {\n line-height: normal;\n}\n\n/**\n * It's recommended that you don't attempt to style these elements.\n * Firefox's implementation doesn't respect box-sizing, padding, or width.\n *\n * 1. Address box sizing set to `content-box` in IE 8/9/10.\n * 2. Remove excess padding in IE 8/9/10.\n */\n\ninput[type=\"checkbox\"],\ninput[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Fix the cursor style for Chrome's increment/decrement buttons. For certain\n * `font-size` values of the `input`, it causes the cursor style of the\n * decrement button to change from `default` to `text`.\n */\n\ninput[type=\"number\"]::-webkit-inner-spin-button,\ninput[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.\n * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome\n * (include `-moz` to future-proof).\n */\n\ninput[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n -moz-box-sizing: content-box;\n -webkit-box-sizing: content-box; /* 2 */\n box-sizing: content-box;\n}\n\n/**\n * Remove inner padding and search cancel button in Safari and Chrome on OS X.\n * Safari (but not Chrome) clips the cancel button when the search input has\n * padding (and `textfield` appearance).\n */\n\ninput[type=\"search\"]::-webkit-search-cancel-button,\ninput[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * Define consistent border, margin, and padding.\n */\n\nfieldset {\n border: 1px solid #c0c0c0;\n margin: 0 2px;\n padding: 0.35em 0.625em 0.75em;\n}\n\n/**\n * 1. Correct `color` not being inherited in IE 8/9.\n * 2. Remove padding so people aren't caught out if they zero out fieldsets.\n */\n\nlegend {\n border: 0; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Remove default vertical scrollbar in IE 8/9.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * Don't inherit the `font-weight` (applied by a rule above).\n * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.\n */\n\noptgroup {\n font-weight: bold;\n}\n\n/* Tables\n ========================================================================== */\n\n/**\n * Remove most spacing between table cells.\n */\n\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\ntd,\nth {\n padding: 0;\n}\n", @@ -42,6 +42,6 @@ ".color-palette--swatch {\n width: 100%;\n height: 120px;\n display: block;\n border-radius: 3px;\n background-color: var(--color-palette-background, #000);\n margin-bottom: 24px;\n}\n\n.color-palette--item {\n margin-bottom: 32px;\n\n p {\n font-size: 16px;\n margin: 0;\n\n &:first-of-type {\n font-weight: 600;\n }\n }\n}\n", "@use 'sass:map';\n@use '__core/mixins' as *;\n@use '__core/variables' as *;\n\nbody {\n padding-top: 60px;\n\n @include breakpoint(bravo) {\n padding-top: 72px; // Move content down to dodge fixed header\n }\n}\n\n// .l-header {\n// }\n\n.l-header__logo-bar {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 100;\n display: flex;\n align-items: center;\n height: map.get($header-height, default);\n padding: 0 24px;\n color: #fff;\n background: #000;\n @include breakpoint(bravo) {\n position: fixed;\n }\n\n .feedback-button {\n align-self: center;\n justify-content: center;\n position: absolute;\n right: 64px;\n @include breakpoint(bravo) {\n right: 48px;\n }\n }\n\n @each $breakpoint, $height in $header-height {\n @if $breakpoint != 'default' {\n @include breakpoint($breakpoint) {\n height: $height;\n }\n }\n }\n}\n\n.l-header__logo {\n max-width: 136px;\n}\n\n.l-main {\n position: relative;\n @include breakpoint($nav-break) {\n // padding-bottom: 40px;\n padding-left: $fixed-sidebar-width;\n }\n}\n\n.l-main__header--palette-lighter {\n background: var(--rh-color-surface-lighter, #f2f2f2);\n margin-bottom: 80px;\n}\n\n.l-main__content {\n padding-block-end: var(--rh-space-4xl, 64px);\n\n // add spacing between examples, tables, sections, etc.\n // except for specified elements that have custom spacing.\n > .container > *:not(p, .feedback, copy-permalink) {\n margin-block-start: 0;\n margin-block-end: var(--rh-space-2xl, 32px);\n }\n}\n\n.main-footer {\n background-color: #151515;\n padding: 24px 32px;\n margin-top: 80px;\n display: flex;\n gap: 8px;\n justify-content: flex-start;\n align-items: center;\n text-align: center;\n flex-flow: column nowrap;\n\n @include breakpoint(bravo) {\n flex-flow: row wrap;\n text-align: left;\n gap: 0;\n\n #netlify-badge {\n margin-inline-start: auto;\n }\n }\n\n img {\n display: block;\n margin: 0 auto 24px;\n text-align: center;\n @include breakpoint(bravo) {\n text-align: left;\n margin: 0 24px;\n }\n }\n\n p {\n font-size: 12px;\n color: #d2d2d2;\n margin: 0 16px;\n padding: 0;\n line-height: 12px;\n }\n\n &--list {\n ul {\n display: block;\n margin: 0;\n list-style: none;\n padding: 0;\n @include breakpoint(bravo) {\n display: flex;\n }\n\n li {\n padding: 0 8px;\n line-height: 24px;\n @include breakpoint(bravo) {\n line-height: 12px;\n }\n }\n\n a {\n line-height: 12px;\n font-size: 12px;\n color: #d2d2d2;\n\n &:hover {\n color: #fff;\n }\n }\n }\n }\n}\n\n.layout-wrapper--jumplinks {\n display: grid;\n grid-template-columns: 8fr 2fr;\n grid-gap: 64px;\n max-width: 800px;\n}\n\n.jump-links--layout {\n position: relative;\n min-width: 200px;\n\n pfe-jump-links-nav {\n position: sticky;\n top: 100px;\n }\n}\n", "@use 'sass:map';\n@use '__core/mixins' as *;\n@use '__core/variables' as *;\n\n//\n// !! Utility classes should never be extended with other styles\n// !! e.g. .l-sidebar .headline {color: blue;}\n// !! Instead another class should be added to the element for custom styles\n//\n\n:root {\n --width: auto;\n}\n\n@media screen and (prefers-reduced-motion: no-preference) {\n html {\n scroll-behavior: smooth;\n }\n}\n\n.visually-hidden {\n @include visually-hidden;\n grid-gap: 1rem;\n}\n\n.element-invisible {\n @include visually-hidden;\n grid-gap: 1rem;\n}\n\n.header,\n.section,\n.container {\n max-width: 1160px;\n padding-left: 32px;\n padding-right: 32px;\n @include breakpoint(tango) {\n padding-left: 80px;\n padding-right: 80px;\n }\n}\n\n// .container {\n// margin: 0 auto;\n// }\n\n.section {\n h2 {\n font-size: 24px;\n line-height: 31px;\n\n @include breakpoint(romeo) {\n font-size: 28px;\n line-height: 37px;\n }\n }\n\n h3 {\n margin-top: 16px;\n font-size: 20px;\n margin-bottom: 16px;\n\n @include breakpoint(romeo) {\n font-size: 24px;\n margin-top: 64px;\n }\n }\n\n h2 + h3,\n h2 + h4 {\n margin-top: 32px;\n }\n\n h4 {\n font-weight: 500;\n margin: 32px 0 16px;\n font-size: 18px;\n line-height: 25px;\n\n @include breakpoint(lima) {\n font-size: 20px;\n line-height: 26px;\n }\n\n a {\n text-decoration: none;\n }\n }\n\n p {\n max-width: 1000px;\n margin-top: 16px;\n margin-bottom: 16px;\n\n a {\n text-decoration: none;\n color: #06c;\n\n &:hover {\n text-decoration: underline;\n color: #004080;\n }\n }\n\n + .example {\n margin-top: 32px;\n }\n\n }\n\n p + ul {\n margin-bottom: 24px;\n margin-top: 0;\n }\n\n &--definition-list {\n p {\n margin-bottom: 0;\n }\n }\n\n img {\n width: auto;\n max-width: var(--inline-img-max-width, 100%);\n max-height: var(--inline-img-max-height, auto);\n }\n\n /* stylelint-disable max-nesting-depth, selector-max-compound-selectors */\n table {\n border: 0;\n\n tbody {\n border: 0;\n }\n\n th {\n text-align: left;\n font-size: 14px;\n }\n\n tr {\n border: 1px solid #d2d2d2;\n border-top: 0;\n border-left: 0;\n border-right: 0;\n\n &:first-child {\n td {\n border-top: 0;\n }\n }\n\n &.font-scale-altered { /* stylelint-disable-line */\n\n td:nth-child(2) { /* stylelint-disable-line */\n color: #b8bbbe;\n }\n\n td:nth-child(3) {\n color: #e00;\n }\n }\n\n &.font-scale-same { /* stylelint-disable-line */\n\n td:nth-child(3) { /* stylelint-disable-line */\n color: #51a549;\n }\n }\n }\n\n td {\n border: 1px solid #d2d2d2;\n border-right: 0;\n border-left: 0;\n font-size: 16px;\n\n a {\n text-decoration: none;\n }\n\n img {\n width: auto;\n }\n }\n }\n /* stylelint-enable max-nesting-depth, selector-max-compound-selectors */\n\n\n ul {\n li {\n line-height: 40px;\n\n a { /* stylelint-disable-line */\n text-decoration: none;\n\n &:hover { /* stylelint-disable-line */\n text-decoration: underline;\n }\n }\n }\n }\n\n ol {\n li {\n line-height: 40px;\n\n a { /* stylelint-disable-line */\n text-decoration: none;\n\n &:hover { /* stylelint-disable-line */\n text-decoration: underline;\n }\n }\n }\n }\n}\n\n.multi-column--150-wide,\n.multi-column--200-wide,\n.multi-column--300-wide,\n.multi-column--400-wide,\n.multi-column--500-wide,\n.multi-column--600-wide,\n.multi-column--min-150-wide,\n.multi-column--min-200-wide,\n.multi-column--min-300-wide,\n.multi-column--min-400-wide,\n.multi-column--min-500-wide,\n.multi-column--min-600-wide {\n grid-template-columns: 1fr;\n width: 100%;\n display: grid;\n grid-gap: 32px;\n margin-bottom: 64px;\n @include breakpoint(lima) {\n grid-gap: 2rem 64px;\n width: calc(100vw - #{$fixed-sidebar-width + 240px});\n max-width: 100%;\n margin-bottom: auto;\n }\n\n .section + .section {\n margin: 0;\n }\n\n + h3 {\n margin-top: 0;\n }\n\n .example {\n margin-bottom: 0;\n }\n\n .example + .example {\n margin-top: 0;\n }\n\n}\n\n.multi-column--200-wide {\n grid-template-columns: 1fr;\n @include breakpoint(lima) {\n grid-template-columns: repeat(auto-fill, minmax(100px, 200px));\n }\n}\n\n.multi-column--300-wide {\n grid-template-columns: 1fr;\n @include breakpoint(lima) {\n grid-template-columns: repeat(auto-fill, minmax(200px, 300px));\n }\n}\n\n.multi-column--400-wide {\n grid-template-columns: 1fr;\n @include breakpoint(lima) {\n grid-template-columns: repeat(auto-fill, minmax(300px, 400px));\n }\n}\n\n.multi-column--500-wide {\n grid-template-columns: 1fr;\n @include breakpoint(lima) {\n grid-template-columns: repeat(auto-fit, minmax(400px, 500px));\n }\n}\n\n.multi-column--600-wide {\n grid-template-columns: 1fr;\n @include breakpoint(lima) {\n grid-template-columns: repeat(auto-fit, minmax(500px, 600px));\n }\n}\n\n.multi-column--min-150-wide {\n grid-template-columns: 1fr;\n width: 100%;\n @include breakpoint(lima) {\n grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));\n }\n}\n\n.multi-column--min-200-wide {\n grid-template-columns: 1fr;\n width: 100%;\n @include breakpoint(lima) {\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n }\n}\n\n.multi-column--min-300-wide {\n grid-template-columns: 1fr;\n width: 100%;\n @include breakpoint(lima) {\n grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));\n }\n}\n\n.multi-column--min-400-wide {\n grid-template-columns: 1fr;\n width: 100%;\n @include breakpoint(lima) {\n grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));\n }\n}\n\n.multi-column--min-500-wide {\n grid-template-columns: 1fr;\n width: 100%;\n @include breakpoint(lima) {\n grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));\n }\n}\n\n.multi-column--min-600-wide {\n grid-template-columns: 1fr;\n width: 100%;\n @include breakpoint(lima) {\n grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));\n }\n}\n\n.margin-top--1[class] {\n margin-top: 8px;\n}\n\n.margin-top--2[class] {\n margin-top: 16px;\n}\n\n.margin-top--3[class] {\n margin-top: 24px;\n}\n\n.margin-top--4[class] {\n margin-top: 32px;\n}\n\n.margin-top--5[class] {\n margin-top: 40px;\n}\n\n.margin-top--6[class] {\n margin-top: 48px;\n}\n\n.margin-top--7[class] {\n margin-top: 56px;\n}\n\n.margin-top--8[class] {\n margin-top: 64px;\n}\n\n.margin-top--9[class] {\n margin-top: 72px;\n}\n\n.margin-top--10[class] {\n margin-top: 80px;\n}\n\n.margin-top--12[class] {\n margin-top: 96px;\n}\n\n.margin-bottom--1[class] {\n margin-bottom: 8px;\n}\n\n.margin-bottom--2[class] {\n margin-bottom: 16px;\n}\n\n.margin-bottom--3[class] {\n margin-bottom: 24px;\n}\n\n.margin-bottom--4[class] {\n margin-bottom: 32px;\n}\n\n.margin-bottom--5[class] {\n margin-bottom: 40px;\n}\n\n.margin-bottom--6[class] {\n margin-bottom: 48px;\n}\n\n.margin-bottom--7[class] {\n margin-bottom: 56px;\n}\n\n.margin-bottom--8[class] {\n margin-bottom: 64px;\n}\n\n.margin-bottom--9[class] {\n margin-bottom: 72px;\n}\n\n.margin-bottom--10[class] {\n margin-bottom: 80px;\n}\n\n.centered {\n margin: 0 auto;\n text-align: center;\n align-items: center;\n\n p {\n max-width: 1000px;\n margin: 0 auto 48px;\n }\n}\n\n.footnote {\n font-size: 14px;\n color: #6a6e73;\n line-height: 18px;\n // Not ideal negative margins, need to dynamically\n // ask if there is a footnote below example\n margin-top: 16px;\n margin-bottom: 64px;\n\n @include breakpoint(tango) {\n margin-top: -16px;\n }\n}\n\nhr {\n border: 0;\n height: 0;\n border-top: 1px solid #d2d2d2;\n}\n\n.pfe-headline-xxxl {\n font-size: 48px;\n margin-top: 16px;\n line-height: 54px;\n // could we override existing variables for headline\n @include breakpoint(lima) {\n font-size: 64px;\n line-height: 72px;\n }\n}\n\n.section-headline {\n color: #e00;\n text-transform: uppercase;\n font-family: 'RedHatDisplay', 'Overpass', Overpass, Helvetica, Arial, sans-serif;\n margin-bottom: 0;\n line-height: 26px;\n font-size: 20px;\n font-weight: 500;\n}\n\n.multi-column--4-2-1-narrow {\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-gap: 16px;\n justify-content: center;\n @include breakpoint(tango) {\n grid-template-columns: 1fr 1fr 1fr 1fr;\n grid-gap: 16px;\n }\n}\n\n.multi-column--4-2-1 {\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-gap: 32px;\n justify-content: center;\n @include breakpoint(tango) {\n grid-template-columns: 1fr 1fr 1fr 1fr;\n grid-gap: 64px;\n }\n}\n\n.multi-column--3-2 {\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-gap: 32px;\n justify-content: center;\n @include breakpoint(tango) {\n grid-template-columns: 1fr 1fr 1fr;\n grid-gap: 64px;\n }\n}\n\n.multi-column--2-1-1 {\n display: grid;\n grid-template-columns: 1fr;\n grid-gap: 64px;\n justify-content: center;\n align-items: top;\n @include breakpoint(tango) {\n grid-template-columns: 1fr 1fr;\n grid-gap: 64px;\n }\n\n > * {\n // justify-self: center;\n }\n}\n\n.inline-flex {\n display: block;\n justify-content: center;\n flex: 1;\n @include breakpoint(lima) {\n flex: 2;\n display: flex;\n }\n\n div {\n padding: 0 16px;\n margin-bottom: 20px;\n @include breakpoint(tango) {\n margin-bottom: 0;\n }\n }\n}\n\n.inline-flex-left {\n display: block;\n justify-content: left;\n flex: 1;\n align-items: center;\n @include breakpoint(lima) {\n display: inline-flex;\n }\n\n > * {\n margin-bottom: 20px;\n margin-right: 32px;\n @include breakpoint(tango) {\n margin-bottom: 0;\n }\n }\n}\n\n.inline-stacked {\n display: grid;\n grid-template-columns: 1fr;\n grid-gap: 64px;\n}\n\n.inline-stack-mobile {\n > * {\n margin-bottom: 20px;\n margin-right: 32px;\n @include breakpoint(tango) {\n margin-bottom: 0;\n }\n }\n}\n\n.stacked-group {\n margin-top: 32px;\n\n h3 {\n margin-top: 16px;\n\n a {\n text-decoration: none;\n color: #151515;\n\n &:visited,\n &:hover {\n color: #151515;\n text-decoration: underline;\n }\n }\n }\n}\n\n.padding-stacked {\n margin-bottom: 40px;\n\n .example {\n margin-bottom: 16px;\n }\n\n h3 {\n margin-bottom: 0;\n padding-bottom: 8px;\n margin-top: 0;\n font-size: 24px;\n }\n\n a {\n text-decoration: none;\n color: #151515;\n }\n\n a h4 {\n text-decoration: none;\n color: #151515;\n\n &:visited,\n &:hover {\n color: #151515;\n }\n }\n\n a p {\n color: #151515;\n }\n\n p {\n margin-top: 0;\n padding-top: 0;\n }\n\n &:hover {\n h3 {\n /* text-decoration: underline; */\n }\n }\n}\n\n.related {\n ul {\n list-style-type: none;\n padding: 0;\n margin: 0;\n\n li {\n line-height: 40px;\n\n a { /* stylelint-disable-line */\n text-decoration: none;\n }\n }\n }\n}\n\n.inline-list {\n li {\n display: inline-block;\n margin: 0 4px;\n\n &:after {\n content: '/';\n padding-left: 12px;\n }\n\n &:last-child:after {\n content: '';\n }\n }\n}\n\n.label {\n display: inline-block;\n\n &.outlined {\n border: 1px solid #d2d2d2;\n border-radius: 15px;\n padding: 4px 8px;\n font-size: 14px;\n\n &.green {\n border-color: #bde5b8;\n }\n\n &.red {\n border-color: #c9190b;\n }\n\n &.purple {\n border-color: #cbc1ff;\n }\n\n &.light-blue {\n border-color: #bee1f4;\n }\n\n &.light-teal {\n border-color: #a2d9d9;\n }\n\n &.yellow {\n border-color: #f9e0a2;\n }\n }\n\n + .label {\n margin-left: 8px;\n }\n}\n\n.back-to-top {\n position: absolute;\n top: 100vh;\n right: 32px;\n bottom: 32px;\n width: 3em;\n // pointer-events: none;\n z-index: 1;\n}\n\n.back-to-top-link {\n position: fixed;\n position: sticky;\n top: calc(100vh - 100px);\n display: inline-block;\n transition: transform 80ms ease-in;\n z-index: 1;\n\n img {\n transition: 0.3s ease all;\n }\n\n img:hover,\n img:focus {\n filter: saturate(80%);\n }\n}\n\n\n//* Tooltip code *//\n\n.tool {\n cursor: help;\n position: relative;\n border: 1px solid #151515;\n font-weight: 300;\n border-radius: 50%;\n width: 18px;\n height: 18px;\n display: inline-block;\n text-align: center;\n line-height: 17px;\n font-size: 14px;\n top: -2px;\n left: 3px;\n}\n\n\n/*== common styles for both parts of tool tip ==*/\n.tool:before,\n.tool:after {\n left: 50%;\n opacity: 0;\n position: absolute;\n z-index: -100;\n}\n\n.tool:hover:before,\n.tool:focus:before,\n.tool:hover:after,\n.tool:focus:after {\n opacity: 1;\n transform: scale(1) translateY(0);\n z-index: 100;\n}\n\n\n/*== pointer tip ==*/\n.tool:before {\n border-style: solid;\n border-width: 16px 12px 0;\n border-color: #151515 transparent transparent;\n bottom: 100%;\n content: '';\n margin-left: -12px;\n top: -20px;\n // transition: all 0.65s cubic-bezier(0.84, -0.18, 0.31, 1.26), opacity 0.65s 0.5s;\n // transform: scale(0.6) translateY(-90%);\n}\n\n.tool:hover:before,\n.tool:focus:before {\n // transition: all 0.65s cubic-bezier(0.84, -0.18, 0.31, 1.26) 0.2s;\n}\n\n\n/*== speech bubble ==*/\n.tool:after {\n background: #151515;\n border-radius: 0.25em;\n bottom: 180%;\n color: #fff;\n content: attr(data-tip);\n margin-left: -8.75em;\n padding: 1em;\n // transition: all 0.65s cubic-bezier(0.84, -0.18, 0.31, 1.26) 0.2s;\n // transform: scale(.6) translateY(50%);\n width: 17.5em;\n font-size: 14px;\n}\n\n.tool:hover:after,\n.tool:focus:after {\n // transition: all 0.65s cubic-bezier(0.84, -0.18, 0.31, 1.26);\n color: #fff;\n}\n\n@media (max-width: 760px) {\n .tool:after {\n font-size: 0.75em;\n margin-left: -5em;\n width: 10em;\n }\n}\n\n// Adding sticky styles\n.sticky {\n position: sticky;\n top: 0;\n}\n\n.page-jump-links {\n // right: 48px;\n // top: 320px;\n position: sticky;\n z-index: 9999;\n display: none;\n top: 0;\n\n @include breakpoint(zeta) {\n display: block;\n }\n @media screen and (max-height:850px) {\n display: none;\n }\n}\n\npfe-jump-links-nav {\n position: sticky;\n top: 0;\n padding: 0;\n}\n\n:host([pfe-c-horizontal]) ul li {\n padding: 0;\n}\n\n:host([pfe-c-horizontal]) ul a {\n font-size: 14px;\n}\n\n// Status table styles\n.status-table {\n .success {\n color: #51a549;\n }\n\n .deemphasized {\n color: #6a6e73;\n }\n\n .blocked {\n color: #e00;\n }\n}\n\n// Status table styles\n.spacer-table {\n width: 100%;\n\n img {\n width: auto;\n }\n\n th {\n font-weight: bold;\n }\n\n tr td {\n &:nth-child(1) {\n font-family: var(--rh-font-family-code);\n font-size: 14px;\n }\n }\n}\n\n\n// Featured card on homepage\n.feature-box {\n border: 1px solid #d2d2d2;\n padding: 64px 24px;\n border-radius: 8px;\n margin: 80px 0;\n\n @include breakpoint(tango) {\n padding: 48px 64px;\n }\n\n a {\n color: #06c;\n text-decoration: none;\n\n &:hover {\n color: #004080;\n text-decoration: underline;\n }\n }\n}\n\n.feature-headline {\n margin: 0 0 24px;\n font-size: 29px;\n color: #e00;\n font-weight: 300;\n line-height: 39px;\n @include breakpoint(tango) {\n font-size: 40px;\n line-height: 53px;\n }\n}\n\n.description-box {\n h4 a {\n color: #151515;\n text-decoration: none;\n font-size: 24px;\n\n &:hover {\n text-decoration: underline;\n }\n }\n}\n\n// Alternating layout\n\n.alternating {\n display: grid;\n grid-template-columns: 1fr;\n grid-column-gap: 64px;\n align-items: center;\n @include breakpoint(tango) {\n grid-template-columns: 1fr 1fr;\n }\n\n &--item {\n margin: 40px 0;\n flex-direction: column;\n flex: 1;\n\n &:last-child {\n margin-bottom: 0;\n }\n\n &:nth-child(1) {\n order: 1;\n }\n\n &:nth-child(2) {\n order: 2;\n }\n\n &:nth-child(3) {\n order: 4;\n }\n\n &:nth-child(4) {\n order: 3;\n }\n\n &:nth-child(5) {\n order: 5;\n }\n\n &:nth-child(6) {\n order: 6;\n }\n\n &:nth-child(7) {\n order: 8;\n }\n\n &:nth-child(8) {\n order: 7;\n }\n\n @include breakpoint(tango) { /* stylelint-disable-line */\n &:nth-child(1) {\n order: 1;\n }\n\n &:nth-child(2) {\n order: 2;\n }\n\n &:nth-child(3) {\n order: 3;\n }\n\n &:nth-child(4) {\n order: 4;\n }\n\n &:nth-child(5) {\n order: 5;\n }\n\n &:nth-child(6) {\n order: 6;\n }\n\n &:nth-child(7) {\n order: 7;\n }\n\n &:nth-child(8) {\n order: 8;\n }\n }\n\n h3 {\n margin-top: 0;\n }\n }\n}\n\n\n// Alert styles\n\nrh-alert {\n margin-top: 32px;\n margin-bottom: 32px;\n}\n\n// Delete the alert styles below after making sure all alerts are converted to rh-alert element\n.alert {\n position: fixed;\n bottom: 0;\n display: block;\n min-height: 50px;\n width: 100%;\n z-index: 9999;\n background-color: #f0f0f0;\n display: flex;\n border-top: 2px solid #d2d2d2;\n padding: 16px;\n\n @include breakpoint(bravo) {\n display: none;\n }\n\n &.info {\n background-color: #e7f1fa;\n border-color: #2b9af3;\n }\n\n &--container {\n display: inline-flex;\n }\n\n &--icon {\n // flex: 1;\n margin-right: 8px;\n }\n\n &--message {\n // flex: 5;\n\n &-headline {\n font-size: 14px;\n font-weight: 600;\n color: #002952;\n margin-bottom: 8px;\n margin-top: 0;\n }\n\n p {\n font-size: 14px;\n color: #151515;\n margin: 0;\n }\n }\n\n &--close {\n position: absolute;\n top: 16px;\n right: 16px;\n vertical-align: top;\n\n button {\n background: transparent;\n border: 0;\n padding: 0;\n vertical-align: top;\n }\n\n img {\n display: block;\n }\n }\n\n}\n\n.asset-header {\n background-color: #f5f5f5;\n padding: 64px 80px;\n text-align: center;\n}\n\n// Step boxes\n\n.card-grid {\n --number-size: 56px;\n display: grid;\n grid-template-columns: 1fr;\n gap: var(--rh-space-4xl);\n margin-block-start: var(--rh-space-2xl);\n\n @include breakpoint(papa) {\n grid-template-columns: repeat(2, minmax(0, 1fr));;\n }\n\n & rh-card {\n & [slot=\"header\"] {\n &:is(h2, h3, h4, h5, h6) {\n margin: var(--rh-space-xl) 0;\n }\n &.number {\n justify-content: center;\n text-align: center;\n margin-bottom: var(--rh-space-lg);\n background-color: var(--rh-color-surface-lighter);\n border-radius: 50%;\n width: var(--number-size);\n height: var(--number-size);\n font-size: 28px;\n display: block;\n padding: 10px;\n color: var(--rh-color-brand-red-on-light);\n font-weight: var(--rh-font-weight-heading-bold);\n text-align: center;\n line-height: 37px;\n margin-inline-end: var(--rh-space-4xl);\n }\n }\n }\n\n}\n\n// Adding style for modal launch\n\n.modal-launch {\n cursor: pointer;\n}\n\n// PFE modal headline styles\n\n.section rh-dialog {\n h3 {\n margin-top: 32px;\n }\n}\n\n.multi-column--min-300-wide:last-of-type {\n .section {\n margin-bottom: 0;\n }\n}\n\n\n// Notes below example containers\n\nol.example-notes, .example-note {\n font-size: var(--rh-font-size-body-text-sm, 0.875rem);\n color: var(--rh-color-text-secondary-on-light, #4d4d4d);\n line-height: var(--rh-line-height-body-text, 1.5);\n}\n\nol.example-notes {\n padding-inline-start: 0;\n margin-block-start: var(--rh-space-lg, 16px);\n counter-reset: list;\n\n @include breakpoint(tango) {\n margin-top: -48px;\n }\n\n & > li {\n list-style: none;\n line-height: var(--rh-line-height-body-text, 1.5);\n }\n\n & > li:before {\n content: counter(list) \") \";\n counter-increment: list;\n }\n}\n\nplayground-project > *:defined {\n border-block-end: var(--rh-border-width-sm, 1px) solid var(--rh-border-subtle-on-light, #C7C7C7);\n border-inline-start: var(--rh-border-width-sm, 1px) solid var(--rh-border-subtle-on-light, #C7C7C7);\n border-inline-end: var(--rh-border-width-sm, 1px) solid var(--rh-border-subtle-on-light, #C7C7C7);\n}\nplayground-project > *:defined:first-child {\n border-block-start: var(--rh-border-width-sm, 1px) solid var(--rh-border-subtle-on-light, #C7C7C7);\n}\n\n.full-width {\n width: 100%;\n}\n\n.col-211 th { width: 25%; }\n.col-211 th:first-of-type { width: 50%; }\n.col-111 th { width: 33%; }\n.col-11 th { width: 50%; }\n.col-13 th { width: 25%; }\n.col-13 th:last-of-type { width: 75%; }\n", - "@use \"__core/css-properties\";\n@use \"__core/variables\";\n@use \"__core/mixins\";\n@use \"_base/normalize\";\n@use \"_base/base\";\n@use \"components/site-navigation\";\n@use \"components/menu-toggle\";\n@use \"components/header\";\n@use \"components/section\";\n@use \"components/example\";\n@use \"components/feedback\";\n@use \"components/table-of-contents\";\n@use \"components/component-status-table\";\n@use \"components/spacer-tokens-table\";\n@use \"components/related-elements-or-patterns\";\n@use \"foundations/colorswatch\";\n@use \"layout\";\n@use \"utility\";\n\nbody.element-docs rh-subnav img {\n --inline-img-max-width: 992px;\n}\n\n.header.container.has-subnav {\n padding-bottom: 0;\n}\n\nsection.api.band {\n margin-block-end: var(--rh-space-4xl);\n padding-inline: 0;\n}\n\n.section.feedback {\n margin-block-end: 0;\n}\n\n.section table {\n width: 100%;\n}\n\ncopy-permalink {\n display: flex;\n margin-block-end: var(--rh-space-lg);\n}\n\ncopy-permalink:focus-within {\n --perma-signifier-display: initial;\n}\n\na.heading-anchor {\n position: relative;\n text-decoration: inherit;\n}\n\na.heading-anchor,\na.heading-anchor:visited {\n color: inherit;\n}\n\na.heading-anchor:hover:before {\n content: \"#\";\n display: block;\n position: absolute;\n inset-inline-start: -1em;\n}\n\ncopy-permalink > :is(h1, h2, h3, h4, h5, h6) {\n margin-block: 0;\n}\n\nbody.element-docs copy-permalink.h2,\nbody.element-docs copy-permalink.h3,\nbody.page-docs copy-permalink.h2,\nbody.page-docs copy-permalink.h3,\nbody.token-docs copy-permalink.h2,\nbody.token-docs copy-permalink.h3 {\n margin-block-start: 82px;\n}\n\nbody.element-docs copy-permalink.h2 + copy-permalink.h3,\nbody.page-docs copy-permalink.h2 + copy-permalink.h3,\nbody.token-docs copy-permalink.h2 + copy-permalink.h3 {\n margin-block-start: var(--rh-space-2xl, 32px);\n}\n\n\n\n/* Release Notes & Roadmap styling */\n.releases-links {\n margin-block-start: var(--rh-space-3xl) !important;\n display: flex;\n gap: 2rem;\n}\n\nrh-block a {\n display: flex;\n flex-direction: column;\n min-width: 20rem;\n padding: var(--rh-space-lg);\n border: 1px solid var(--rh-color-border-subtle-on-light);\n border-radius: var(--rh-border-radius-default);\n text-decoration: none;\n}\n\nrh-block a:hover {\n text-decoration: underline;\n background: var(--rh-color-surface-light);\n}\n\nrh-block a::after {\n align-self: flex-end;\n content: url('data:image/svg+xml;utf8,');\n}\n\nrh-block a[href*=\"github\"]::before {\n content: url('data:image/svg+xml;utf8,');\n}\n\nrh-block [slot=\"header\"] {\n font-size: 1rem;\n}\n\n.release-version h3 {\n margin-top: var(--rh-space-lg);\n}\n\nbody.page-docs .release-version copy-permalink.h3 {\n margin-block-start: var(--rh-space-xl);\n}\n\n.release-version table + p {\n margin-block-start: var(--rh-space-2xl);\n}\n\n/* could arguably be for all external links, not just within body.page-docs */\nbody.page-docs a[href^=\"http\"]::after {\n display: inline-block;\n vertical-align: middle;\n margin-inline-start: 0.25em;\n content: url('data:image/svg+xml;utf8,');\n}\n\nbody.page-docs rh-cta a[href^=\"http\"]::after {\n display: none;\n}\n\n.feedback-contact-link {\n white-space: nowrap; /* fix orphan issue on the Feedback shortcode's contact us link */\n}\n" + "@use \"__core/css-properties\";\n@use \"__core/variables\";\n@use \"__core/mixins\";\n@use \"_base/normalize\";\n@use \"_base/base\";\n@use \"components/site-navigation\";\n@use \"components/menu-toggle\";\n@use \"components/header\";\n@use \"components/section\";\n@use \"components/example\";\n@use \"components/feedback\";\n@use \"components/table-of-contents\";\n@use \"components/component-status-table\";\n@use \"components/spacer-tokens-table\";\n@use \"components/related-elements-or-patterns\";\n@use \"foundations/colorswatch\";\n@use \"layout\";\n@use \"utility\";\n\nbody.element-docs rh-subnav img {\n --inline-img-max-width: 992px;\n}\n\n.header.container.has-subnav {\n padding-bottom: 0;\n}\n\nsection.api.band {\n margin-block-end: var(--rh-space-4xl);\n padding-inline: 0;\n}\n\n.section.feedback {\n margin-block-end: 0;\n}\n\n.section table {\n width: 100%;\n}\n\ncopy-permalink {\n display: flex;\n margin-block-end: var(--rh-space-lg);\n}\n\ncopy-permalink:focus-within {\n --perma-signifier-display: initial;\n}\n\na.heading-anchor {\n position: relative;\n text-decoration: inherit;\n}\n\na.heading-anchor,\na.heading-anchor:visited {\n color: inherit;\n}\n\na.heading-anchor:hover:before {\n content: \"#\";\n display: block;\n position: absolute;\n inset-inline-start: -1em;\n}\n\ncopy-permalink > :is(h1, h2, h3, h4, h5, h6) {\n margin-block: 0;\n}\n\nbody.element-docs copy-permalink.h2,\nbody.element-docs copy-permalink.h3,\nbody.page-docs copy-permalink.h2,\nbody.page-docs copy-permalink.h3,\nbody.token-docs copy-permalink.h2,\nbody.token-docs copy-permalink.h3 {\n margin-block-start: 82px;\n}\n\nbody.element-docs copy-permalink.h2 + copy-permalink.h3,\nbody.page-docs copy-permalink.h2 + copy-permalink.h3,\nbody.token-docs copy-permalink.h2 + copy-permalink.h3 {\n margin-block-start: var(--rh-space-2xl, 32px);\n}\n\n\n\n/* Release Notes & Roadmap styling */\n.releases-links {\n margin-block-start: var(--rh-space-3xl) !important;\n display: flex;\n gap: 2rem;\n}\n\nrh-block a {\n display: flex;\n flex-direction: column;\n min-width: 20rem;\n padding: var(--rh-space-lg);\n border: 1px solid var(--rh-color-border-subtle-on-light);\n border-radius: var(--rh-border-radius-default);\n text-decoration: none;\n}\n\nrh-block a:hover {\n text-decoration: underline;\n background: var(--rh-color-surface-light);\n}\n\nrh-block a::after {\n align-self: flex-end;\n content: url('data:image/svg+xml;utf8,');\n}\n\nrh-block a[href*=\"github\"]::before {\n content: url('data:image/svg+xml;utf8,');\n}\n\nrh-block [slot=\"header\"] {\n font-size: 1rem;\n}\n\n.release-version h3 {\n margin-top: var(--rh-space-lg);\n}\n\nbody.page-docs .release-version copy-permalink.h3 {\n margin-block-start: var(--rh-space-xl);\n}\n\n.release-version table + p {\n margin-block-start: var(--rh-space-2xl);\n}\n\n/* could arguably be for all external links, not just within body.page-docs */\nbody.page-docs a[href^=\"http\"]::after {\n display: inline-block;\n vertical-align: middle;\n margin-inline-start: 0.25em;\n content: url('data:image/svg+xml;utf8,');\n}\n\nbody.page-docs rh-cta a[href^=\"http\"]::after {\n display: none;\n}\n\n.feedback-contact-link {\n white-space: nowrap; /* fix orphan issue on the Feedback shortcode's contact us link */\n}\n\nrh-playground pre {\n max-height: 785px;\n}\n" ] } \ No newline at end of file diff --git a/assets/playgrounds/assets/playground-typescript-worker-3d69e81a.js b/assets/playgrounds/assets/playground-typescript-worker-3d69e81a.js new file mode 100644 index 0000000000..764edfea8a --- /dev/null +++ b/assets/playgrounds/assets/playground-typescript-worker-3d69e81a.js @@ -0,0 +1,106 @@ +!function(){"use strict";const e=Symbol("Comlink.proxy"),t=Symbol("Comlink.endpoint"),n=Symbol("Comlink.releaseProxy"),r=Symbol("Comlink.thrown"),i=e=>"object"==typeof e&&null!==e||"function"==typeof e,o=new Map([["proxy",{canHandle:t=>i(t)&&t[e],serialize(e){const{port1:t,port2:n}=new MessageChannel;return a(e,t),[n,[n]]},deserialize:e=>(e.start(),_(e,[],undefined))}],["throw",{canHandle:e=>i(e)&&r in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(Error(e.value.message),e.value);throw e.value}}]]);function a(t,n=self){n.addEventListener("message",(function i(o){if(!o||!o.data)return;const{id:c,type:_,path:l}=Object.assign({path:[]},o.data),f=(o.data.argumentList||[]).map(p);let m;try{const n=l.slice(0,-1).reduce(((e,t)=>e[t]),t),r=l.reduce(((e,t)=>e[t]),t);switch(_){case"GET":m=r;break;case"SET":n[l.slice(-1)[0]]=p(o.data.value),m=!0;break;case"APPLY":m=r.apply(n,f);break;case"CONSTRUCT":m=function(t){return Object.assign(t,{[e]:!0})}(new r(...f));break;case"ENDPOINT":{const{port1:e,port2:n}=new MessageChannel;a(t,n),m=function(e,t){return u.set(e,t),e}(e,[e])}break;case"RELEASE":m=void 0;break;default:return}}catch(e){m={value:e,[r]:0}}Promise.resolve(m).catch((e=>({value:e,[r]:0}))).then((e=>{const[t,r]=d(e);n.postMessage(Object.assign(Object.assign({},t),{id:c}),r),"RELEASE"===_&&(n.removeEventListener("message",i),s(n))}))})),n.start&&n.start()}function s(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function c(e){if(e)throw Error("Proxy has been released and is not useable")}function _(e,r=[],i=function(){}){let o=!1;const a=new Proxy(i,{get(t,i){if(c(o),i===n)return()=>f(e,{type:"RELEASE",path:r.map((e=>e.toString()))}).then((()=>{s(e),o=!0}));if("then"===i){if(0===r.length)return{then:()=>a};const t=f(e,{type:"GET",path:r.map((e=>e.toString()))}).then(p);return t.then.bind(t)}return _(e,[...r,i])},set(t,n,i){c(o);const[a,s]=d(i);return f(e,{type:"SET",path:[...r,n].map((e=>e.toString())),value:a},s).then(p)},apply(n,i,a){c(o);const s=r[r.length-1];if(s===t)return f(e,{type:"ENDPOINT"}).then(p);if("bind"===s)return _(e,r.slice(0,-1));const[u,d]=l(a);return f(e,{type:"APPLY",path:r.map((e=>e.toString())),argumentList:u},d).then(p)},construct(t,n){c(o);const[i,a]=l(n);return f(e,{type:"CONSTRUCT",path:r.map((e=>e.toString())),argumentList:i},a).then(p)}});return a}function l(e){const t=e.map(d);return[t.map((e=>e[0])),(n=t.map((e=>e[1])),Array.prototype.concat.apply([],n))];var n}const u=new WeakMap;function d(e){for(const[t,n]of o)if(n.canHandle(e)){const[r,i]=n.serialize(e);return[{type:"HANDLER",name:t,value:r},i]}return[{type:"RAW",value:e},u.get(e)||[]]}function p(e){switch(e.type){case"HANDLER":return o.get(e.name).deserialize(e.value);case"RAW":return e.value}}function f(e,t,n){return new Promise((r=>{const i=[,,,,].fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-");e.addEventListener("message",(function t(n){n.data&&n.data.id&&n.data.id===i&&(e.removeEventListener("message",t),r(n.data))})),e.start&&e.start(),e.postMessage(Object.assign({id:i},t),n)}))}const m=1===new Uint8Array(new Uint16Array([1]).buffer)[0];function g(e,t="@"){if(!v)return b.then((()=>g(e)));const n=e.length+1,r=(v.__heap_base.value||v.__heap_base)+4*n-v.memory.buffer.byteLength;r>0&&v.memory.grow(Math.ceil(r/65536));const i=v.sa(n-1);if((m?y:h)(e,new Uint16Array(v.memory.buffer,i,n)),!v.parse())throw Object.assign(Error(`Parse error ${t}:${e.slice(0,v.e()).split("\n").length}:${v.e()-e.lastIndexOf("\n",v.e()-1)}`),{idx:v.e()});const o=[],a=[];for(;v.ri();){const t=v.is(),n=v.ie(),r=v.ai(),i=v.id(),a=v.ss(),c=v.se();let _;v.ip()&&(_=s(e.slice(-1===i?t-1:t,-1===i?n+1:n))),o.push({n:_,s:t,e:n,ss:a,se:c,d:i,a:r})}for(;v.re();){const t=v.es(),n=v.ee(),r=v.els(),i=v.ele(),o=e.slice(t,n),c=o[0],_=r<0?void 0:e.slice(r,i),l=_?_[0]:"";a.push({s:t,e:n,ls:r,le:i,n:'"'===c||"'"===c?s(o):o,ln:'"'===l||"'"===l?s(_):_})}function s(e){try{return(0,eval)(e)}catch(e){}}return[o,a,!!v.f()]}function h(e,t){const n=e.length;let r=0;for(;r>>8}}function y(e,t){const n=e.length;let r=0;for(;re.charCodeAt(0))))).then(WebAssembly.instantiate).then((({exports:e})=>{v=e}));var x; +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */class k{constructor(){this._buffer=[],this._numSources=0,this._done=!1}async*[Symbol.asyncIterator](){for(;this._numSources>0;){for(;this._buffer.length>0;){const{value:e,emitted:t}=this._buffer.shift();yield e,t()}await new Promise((e=>this._notify=e)),this._notify=void 0}this._done=!0}add(e){if(this._done)throw Error("Merged iterator is exhausted. Cannot add new source iterators.");this._numSources++,(async()=>{var t;for await(const t of e)await new Promise((e=>{var n;this._buffer.push({value:t,emitted:e}),null===(n=this._notify)||void 0===n||n.call(this)}));this._numSources--,null===(t=this._notify)||void 0===t||t.call(this)})()}}const S=(e,t)=>new URL(t,new URL(e,"ws://_")).pathname,T=e=>{try{return new URL(e).href,"url"}catch{}return null!==e.match(/^(\.){0,2}\//)?"relative":"bare"},C=e=>{const t=e.match(/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?\/?(.*)$/);if(null===t)return;const[,n,r,i]=t;return{pkg:n,version:null!=r?r:"",path:i}},A=e=>{const t=e.lastIndexOf("/"),n=e.lastIndexOf(".");return-1===n||n{const n=A(e);return""===n?e+"."+t:e.slice(0,-n.length)+t},D=(e,t)=>{let n=0,r=0;for(let i=0;inull!==e.match(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/),N=({pkg:e,version:t})=>`${e}@${t||"latest"}`,F=({pkg:e,version:t,path:n})=>I(`${N({pkg:e,version:t})}/${P(n)}`),P=e=>e.startsWith("/")?e.slice(1):e,I=e=>e.endsWith("/")?e.slice(0,-1):e +/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */;class O{constructor(){this.settled=!1,this.promise=new Promise(((e,t)=>{this._resolve=e,this._reject=t}))}resolve(e){this.settled=!0,this._resolve(e)}reject(e){this.settled=!0,this._reject(e)}} +/** + * @license + * Copyright 2016 Node.js contributors. All rights reserved. + * SPDX-License-Identifier: MIT + */function L(e){if("string"==typeof e&&(e=new URL(e)),"file:"!==e.protocol)throw Error("The URL must be of scheme file");return e.pathname} +/** + * @license + * Copyright 2017 Node.js contributors. All rights reserved. + * SPDX-License-Identifier: MIT + */class M extends Error{constructor(e,t,n){super(`Invalid module "${e}" ${t}${n?" imported from "+n:""}`)}}class R extends Error{constructor(e,t,n){super(`Invalid package config ${e}${t?" while importing "+t:""}${n?". "+n:""}`)}}class B extends Error{constructor(e,t,n,r=!1,i){const o="string"==typeof n&&!r&&n.length&&!n.startsWith("./");let a;a="."===t?`Invalid "exports" main target ${JSON.stringify(n)} defined in the package config ${L(e)}package.json${i?" imported from "+i:""}${o?'; targets must start with "./"':""}`:`Invalid "${r?"imports":"exports"}" target ${JSON.stringify(n)} defined for '${t}' in the package config ${L(e)}package.json${i?" imported from "+i:""}${o?'; targets must start with "./"':""}`,super(a)}}class j extends Error{constructor(e,t,n){super("."===t?`No "exports" main defined in ${e}package.json${n?" imported from "+n:""}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${n?" imported from "+n:""}`)}} +/** + * @license + * Copyright 2020 Node.js contributors. All rights reserved. + * SPDX-License-Identifier: MIT + */function J(e,t,n){return new j(L(new URL(".",t)),e,n)}function z(e,t,n,r,i){return t="object"==typeof t&&null!==t?JSON.stringify(t,null,""):""+t,new B(n,e,t,r,i)}const U=/(^|\\|\/)(\.\.?|node_modules)(\\|\/|$)/,q=/\*/g;function V(e){const t=+e;return""+t===e&&t>=0&&t<4294967295}function Q(e,t,n,r,i,o,a,s){if("string"==typeof t)return function(e,t,n,r,i,o,a,s){if(""!==t&&!o&&"/"!==e[e.length-1])throw z(n,e,r,a,i);if(!e.startsWith("./"))throw z(n,e,r,a,i);if(U.test(e.slice(2)))throw z(n,e,r,a,i);const c=new URL(e,r),_=c.pathname,l=new URL(".",r).pathname;if(!_.startsWith(l))throw z(n,e,r,a,i);if(""===t)return c;if(U.test(t))throw function(e,t,n,r){const i=`request is not a valid subpath for the "${n?"imports":"exports"}" resolution of ${L(t)}`;return new M(e,i,r)}(n+t,r,a,i);return o?new URL(c.href.replace(q,t)):new URL(t,c)}(t,n,r,e,i,o,a);if(Array.isArray(t)){if(0===t.length)return null;let c;for(let _=0;_o?-1:o>i||-1===n?1:-1===r||e.length>t.length?-1:t.length>e.length?1:0} +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */class W{constructor({conditions:e}){this._conditions=new Set(e)}resolve(e,t,n){const r=H(e.path);if(void 0===t.exports)return"."===r?void 0!==t.module?$(t.module):void 0!==t.main?$(t.main):"index.js":e.path;const i=`/node_modules/${e.pkg}@${e.version}/`,o=function(e,t,n,r,i){let o=n.exports;if(function(e,t,n){if("string"==typeof e||Array.isArray(e))return!0;if("object"!=typeof e||null===e)return!1;const r=Object.getOwnPropertyNames(e);let i=!1,o=0;for(let e=0;e=e.length&&t.endsWith(r)&&1===K(s,e)&&e.lastIndexOf("*")===n&&(s=e,a=t.slice(n,t.length-r.length))}else e.endsWith("/")&&t.startsWith(e)&&1===K(s,e)&&(s=e,a=t.slice(e.length))}if(s){const n=o[s],c=s.includes("*"),_=Q(e,n,a,s,r,c,!1,i);if(null==_)throw J(t,e,r);return c||function(e,t,n,r){const i=L(t);console.warn(`Use of deprecated folder mapping "${e}" in the "exports" field module resolution of the package at ${i}${r?" imported from "+r:""}.\nUpdate this package.json to use a subpath pattern like "${e}*".`,"DeprecationWarning","DEP0148")}(s,e,0,r),_}throw J(t,e,r)}(new URL(i,"file://"),r,t,n,this._conditions);if(!o.pathname.startsWith(i))throw Error(`Unexpected error: ${o.pathname} expected to start with ${i}`);return o.pathname.slice(i.length)}}const H=e=>""===e?".":e.startsWith(".")||e.startsWith("/")?e:"./"+e,$=e=>"."===e?"":e.startsWith("./")?e.slice(2):e; +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +class G{constructor(e,t){this._emittedExternalDependencies=new Set,this._nodeResolver=new W({conditions:["module","import","development","browser"]}),this._cdn=e,this._importMapResolver=t}async*process(e){const t=new k;t.add(this._handleProjectFiles(e,t)),yield*t}async*_handleProjectFiles(e,t){const n=new O,r=()=>n.promise;for await(const i of e)if("file"===i.kind&&i.file.name.endsWith(".js"))t.add(this._handleModule(i,r,t));else if(yield i,"file"===i.kind&&"package.json"===i.file.name){let e;try{e=JSON.parse(i.file.content)}catch(e){yield Y(e,i.file)}void 0!==e&&n.resolve(e)}n.settled||n.resolve(void 0)}async*_handleModule(e,t,n){let r,i=e.file.content;await b;try{[r]=g(i)}catch(t){yield e;const n=X(t,e.file.name);return void(void 0!==n&&(yield n))}const o=[];for(let i=r.length-1;i>=0;i--){const{n:a}=r[i];void 0!==a&&o.push({info:r[i],newSpecifierPromise:this._handleSpecifier(a,e.file.name,t,n)})}for(const{info:{s:t,e:n,n:r,d:a},newSpecifierPromise:s}of o){let o;try{o=await s}catch(o){yield{kind:"diagnostic",filename:e.file.name,diagnostic:{message:`Could not resolve module "${r}": ${o.message}`,range:{start:D(i,t),end:D(i,n)}}};continue}if(o===r)continue;const c=-1!==a?`'${o}'`:o;i=i.substring(0,t)+c+i.substring(n)}e.file.content=i,yield e}async _handleSpecifier(e,t,n,r){const i=this._importMapResolver.resolve(e);if(null!==i)return i;const o=T(e);if("url"===o)return e;if("bare"===o)return this._handleBareSpecifier(e,t,n,r);if(!t.startsWith("node_modules/"))return e;const a=S(t,e).slice(14);if(!A(e))return this._handleBareSpecifier(a,t,(async()=>{}),r);const s=C(a);if(void 0===s)throw Error(`Invalid specifier "${a}"`);return r.add(this._fetchExternalDependency(s,r)),e}async _handleBareSpecifier(e,t,n,r){var i,o,a;let s=C(e);if(void 0===s)throw Error(`Invalid specifier "${e}"`);s.version||(s.version=null!==(a=null===(o=null===(i=await n())||void 0===i?void 0:i.dependencies)||void 0===o?void 0:o[s.pkg])&&void 0!==a?a:"latest"),s.version=await this._cdn.resolveVersion(s);const c=await this._cdn.fetchPackageJson(s);return s.path=this._nodeResolver.resolve(s,c,t),A(s.path)||(s=await this._cdn.canonicalize(s)),r.add(this._fetchExternalDependency(s,r)),((e,t)=>{const n=e.split("/"),r=t.split("/");let i=0;for(;i{if(null===i)try{i=await this._cdn.fetchPackageJson(e)}catch{i=void 0}return i}),t)}}const X=(e,t)=>{const n=e.message.match(/@:(\d+):(\d+)$/);if(null===n)return;const r=Number(n[1])-1,i=Number(n[2])-1;return{kind:"diagnostic",filename:t,diagnostic:{message:"es-module-lexer error: "+e.message,range:{start:{line:r,character:i},end:{line:r,character:i+1}}}}},Y=(e,t)=>{var n;const r=null!==(n=Z(e.message,t.content))&&void 0!==n?n:{line:0,character:0};return{kind:"diagnostic",filename:t.name,diagnostic:{message:"Invalid package.json: "+e,range:{start:r,end:D(t.content,t.content.length)}}}},Z=(e,t)=>{const n=e.match(/at position (\d+)/);if(null!==n)return D(t,Number(n[1]));const r=e.match(/at line (\d+) column (\d+)/);return null!==r?{line:Number(r[1])-1,character:Number(r[2])-1}:void 0};var ee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function te(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ne(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var re,ie,oe={exports:{}}; +/*! ***************************************************************************** + Copyright (c) Microsoft Corporation. All rights reserved. + Licensed under the Apache License, Version 2.0 (the "License"); you may not use + this file except in compliance with the License. You may obtain a copy of the + License at http://www.apache.org/licenses/LICENSE-2.0 + + THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED + WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, + MERCHANTABLITY OR NON-INFRINGEMENT. + + See the Apache Version 2.0 License for specific language governing permissions + and limitations under the License. + ***************************************************************************** */re=oe,ie=(()=>{var e,t,n,r,i,o,a,s,c,_,l,u,d,p,f,m,g,h,y=Object.defineProperty,v=Object.getOwnPropertyNames,b=(e,t)=>function(){return e&&(t=(0,e[v(e)[0]])(e=0)),t},x=(e,t)=>{for(var n in t)y(e,n,{get:t[n],enumerable:!0})},k=b({"src/compiler/corePublic.ts"(){e="5.0",t="5.0.4",n=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(n||{})}});function S(e){return e?e.length:0}function T(e,t){if(e)for(let n=0;n=0;n--){const r=t(e[n],n);if(r)return r}}function A(e,t){if(void 0!==e)for(let n=0;n=0;r--){const n=e[r];if(t(n,r))return n}}function O(e,t,n){if(void 0===e)return-1;for(let r=null!=n?n:0;r=0;r--)if(t(e[r],r))return r;return-1}function M(e,t){for(let n=0;nn(e,t[r])))}function j(e,t,n){for(let r=n||0;r{const i=t(r,e);if(void 0!==i){const[e,t]=i;void 0!==e&&void 0!==t&&n.set(e,t)}})),n}function ie(e,t,n){if(e.has(t))return e.get(t);const r=n();return e.set(t,r),r}function oe(e,t){return!e.has(t)&&(e.add(t),!0)}function*ae(e){yield e}function se(e,t,n){let r;if(e){r=[];const i=e.length;let o,a,s=0,c=0;for(;s{const[i,o]=t(r,e);n.set(i,o)})),n}function _e(e,t){if(e){if(!t)return e.length>0;for(const n of e)if(t(n))return!0}return!1}function le(e,t,n){let r;for(let i=0;ie[t]))}(e,t,n):function(e,t){const n=[];for(const r of e)we(n,r,t);return n}(e,t)}function me(){return[]}function ge(e,t,n,r){if(0===e.length)return e.push(t),!0;const i=Ve(e,t,wt,n);return i<0?(e.splice(~i,0,t),!0):!!r&&(e.splice(i,0,t),!0)}function he(e,t,n){return function(e,t){if(0===e.length)return r;let n=e[0];const i=[n];for(let r=1;r0&&(i&=-2),2&i&&r(o,s)>0&&(i&=-3),o=s}return i}function be(e,t,n=Mt){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let r=0;r0&&In.assertGreaterThanOrEqual(n(t[o],t[o-1]),0);t:for(const a=i;ia&&In.assertGreaterThanOrEqual(n(e[i],e[i-1]),0),n(t[o],e[i])){case-1:r.push(t[o]);continue e;case 0:continue e;case 1:continue t}}return r}function Se(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function Te(e,t){return void 0===e?t:void 0===t?e:ht(e)?ht(t)?ue(e,t):Se(e,t):ht(t)?Se(t,e):[e,t]}function Ce(e,t){return t<0?e.length+t:t}function Ae(e,t,n,r){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(n,r);n=void 0===n?0:Ce(t,n),r=void 0===r?t.length:Ce(t,r);for(let i=n;in(e[t],e[r])||Jt(t,r)))}function Ne(e,t){return 0===e.length?e:e.slice().sort(t)}function*Fe(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Pe(e,t){const n=pe(e);return Ee(e,n,t),n.map((t=>e[t]))}function Ie(e,t,n,r){for(;n>1);switch(r(n(e[i],i),t)){case-1:o=i+1;break;case 0:return i;case 1:a=i-1}}return~o}function Ke(e,t,n,r,i){if(e&&e.length>0){const o=e.length;if(o>0){let a=void 0===r||r<0?0:r;const s=void 0===i||a+i>o-1?o-1:a+i;let c;for(arguments.length<=2?(c=e[a],a++):c=n;a<=s;)c=t(c,e[a],a),a++;return c}}return n}function We(e,t){return c.call(e,t)}function He(e,t){return c.call(e,t)?e[t]:void 0}function $e(e){const t=[];for(const n in e)c.call(e,n)&&t.push(n);return t}function Ge(e){const t=[];do{const n=Object.getOwnPropertyNames(e);for(const e of n)we(t,e)}while(e=Object.getPrototypeOf(e));return t}function Xe(e){const t=[];for(const n in e)c.call(e,n)&&t.push(e[n]);return t}function Ye(e,t){const n=Array(e);for(let r=0;r100&&n>t.length>>1){const e=t.length-n;t.copyWithin(0,n),t.length=e,n=0}return e},isEmpty:r}}function gt(e,t){const n=new Map;let r=0;function*i(){for(const e of n.values())ht(e)?yield*e:yield e}const o={has(r){const i=e(r);if(!n.has(i))return!1;const o=n.get(i);if(!ht(o))return t(o,r);for(const e of o)if(t(e,r))return!0;return!1},add(i){const o=e(i);if(n.has(o)){const e=n.get(o);if(ht(e))R(e,i,t)||(e.push(i),r++);else{const a=e;t(a,i)||(n.set(o,[a,i]),r++)}}else n.set(o,i),r++;return this},delete(i){const o=e(i);if(!n.has(o))return!1;const a=n.get(o);if(ht(a)){for(let e=0;ei(),values:()=>i(),*entries(){for(const e of i())yield[e,e]},[Symbol.iterator]:()=>i(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return o}function ht(e){return Array.isArray(e)}function yt(e){return ht(e)?e:[e]}function vt(e){return"string"==typeof e}function bt(e){return"number"==typeof e}function xt(e,t){return void 0!==e&&t(e)?e:void 0}function kt(e,t){return void 0!==e&&t(e)?e:In.fail(`Invalid cast. The supplied value ${e} did not pass the test '${In.getFunctionName(t)}'.`)}function St(e){}function Tt(){return!1}function Ct(){return!0}function At(){}function wt(e){return e}function Dt(e){return e.toLowerCase()}function Et(e){return l.test(e)?e.replace(l,Dt):e}function Nt(){throw Error("Not implemented")}function Ft(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Pt(e){const t=new Map;return n=>{const r=`${typeof n}:${n}`;let i=t.get(r);return void 0!==i||t.has(r)||(i=e(n),t.set(r,i)),i}}function It(e){const t=new WeakMap;return n=>{let r=t.get(n);return void 0!==r||t.has(n)||(r=e(n),t.set(n,r)),r}}function Ot(e,t){return(...n)=>{let r=t.get(n);return void 0!==r||t.has(n)||(r=e(...n),t.set(n,r)),r}}function Lt(e,t,n,r,i){if(i){const e=[];for(let t=0;tKe(e,((e,t)=>t(e)),t)}return r?i=>r(n(t(e(i)))):n?r=>n(t(e(r))):t?n=>t(e(n)):e?t=>e(t):e=>e}function Mt(e,t){return e===t}function Rt(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()}function Bt(e,t){return Mt(e,t)}function jt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e-1===t(e,n)?e:n))}function qt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function Vt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toLowerCase())<(t=t.toLowerCase())?-1:e>t?1:0}function Qt(e,t){return jt(e,t)}function Kt(e){return e?qt:Qt}function Wt(){return f}function Ht(e){f!==e&&(f=e,p=void 0)}function $t(e,t){return(p||(p=d(f)))(e,t)}function Gt(e,t,n,r){return e===t?0:void 0===e?-1:void 0===t?1:r(e[n],t[n])}function Xt(e,t){return Jt(e?1:0,t?1:0)}function Yt(e,t,n){const r=Math.max(2,Math.floor(.34*e.length));let i,o=Math.floor(.4*e.length)+1;for(const a of t){const t=n(a);if(void 0!==t&&Math.abs(t.length-e.length)<=r){if(t===e)continue;if(t.length<3&&t.toLowerCase()!==e.toLowerCase())continue;const n=Zt(e,t,o-.1);if(void 0===n)continue;In.assert(nn?a-n:1),_=Math.floor(t.length>n+a?n+a:t.length);i[0]=a;let l=a;for(let e=1;en)return;const u=r;r=i,i=u}const a=r[t.length];return a>n?void 0:a}function en(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function tn(e,t){return en(e,t)?e.slice(0,e.length-t.length):e}function nn(e,t){return en(e,t)?e.slice(0,e.length-t.length):void 0}function rn(e,t){return-1!==e.indexOf(t)}function on(e){let t=e.length;for(let n=t-1;n>0;n--){let r=e.charCodeAt(n);if(r>=48&&r<=57)do{--n,r=e.charCodeAt(n)}while(n>0&&r>=48&&r<=57);else{if(!(n>4)||110!==r&&78!==r)break;if(--n,r=e.charCodeAt(n),105!==r&&73!==r)break;if(--n,r=e.charCodeAt(n),109!==r&&77!==r)break;--n,r=e.charCodeAt(n)}if(45!==r&&46!==r)break;t=n}return t===e.length?e:e.slice(0,t)}function an(e,t){for(let n=0;ni&&(i=e.prefix.length,r=o)}return r}function fn(e,t){return 0===e.lastIndexOf(t,0)}function mn(e,t){return fn(e,t)?e.substr(t.length):e}function gn(e,t,n=wt){return fn(n(e),n(t))?e.substring(t.length):void 0}function hn({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&fn(n,e)&&en(n,t)}function yn(e,t){return n=>e(n)&&t(n)}function vn(...e){return(...t)=>{let n;for(const r of e)if(n=r(...t),n)return n;return n}}function bn(e){return(...t)=>!e(...t)}function xn(e){}function kn(e){return void 0===e?void 0:[e]}function Sn(e,t,n,r,i,o){o=o||St;let a=0,s=0;const c=e.length,_=t.length;let l=!1;for(;a=0&&vs(e.charCodeAt(t));)t--;return e.slice(0,t+1)}function Fn(){return"undefined"!=typeof process&&process.nextTick&&!process.browser&&!0}var Pn,In,On,Ln,Mn,Rn,Bn,jn,Jn,zn,Un,qn,Vn,Qn,Kn,Wn,Hn=b({"src/compiler/core.ts"(){XK(),r=[],i=new Map,o=new Set,a=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(a||{}),s=Array.prototype.at?(e,t)=>null==e?void 0:e.at(t):(e,t)=>{if(e&&(t=Ce(e,t))(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(u||{}),d=(()=>{let e,t;const n="object"==typeof Intl&&"function"==typeof Intl.Collator?function(e){const t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return(e,n)=>r(e,n,t)}:"function"==typeof String.prototype.localeCompare&&"function"==typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0?function(e){return void 0!==e?i():(e,n)=>r(e,n,t);function t(e,t){return e.localeCompare(t)}}:i;return function(r){return void 0===r?e||(e=n(r)):"en-US"===r?t||(t=n(r)):n(r)};function r(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=n(e,t);return r<0?-1:r>0?1:0}function i(){return(t,n)=>r(t,n,e);function e(e,n){return t(e.toUpperCase(),n.toUpperCase())||t(e,n)}function t(e,t){return et?1:0}}})(),m=String.prototype.trim?e=>e.trim():e=>g(h(e)),g=String.prototype.trimEnd?e=>e.trimEnd():Nn,h=String.prototype.trimStart?e=>e.trimStart():e=>e.replace(/^\s+/g,"")}}),$n=b({"src/compiler/debug.ts"(){XK(),XK(),Pn=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(Pn||{}),(e=>{let t=0;function n(t){return e.currentLogLevel<=t}function r(t,r){e.loggingHost&&n(t)&&e.loggingHost.log(t,r)}function i(e){r(3,e)}var o;e.currentLogLevel=2,e.isDebugging=!1,e.shouldLog=n,e.log=i,(o=i=e.log||(e.log={})).error=function(e){r(1,e)},o.warn=function(e){r(2,e)},o.log=function(e){r(3,e)},o.trace=function(e){r(4,e)};const a={};function s(e){return t>=e}function c(t,n){return!!s(t)||(a[n]={level:t,assertion:e[n]},e[n]=St,!1)}function _(e,t){const n=Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||_),n}function l(e,t,n,r){e||(t=t?"False expression: "+t:"False expression.",n&&(t+="\r\nVerbose Debug Information: "+("string"==typeof n?n:n())),_(t,r||l))}function u(e,t,n){null==e&&_(t,n||u)}function d(e,t,n){for(const r of e)u(r,t,n||d)}function p(e,t="Illegal value:",n){return _(`${t} ${"object"==typeof e&&We(e,"kind")&&We(e,"pos")?"SyntaxKind: "+h(e.kind):JSON.stringify(e)}`,n||p)}function f(e){if("function"!=typeof e)return"";if(We(e,"name"))return e.name;{const t=Function.prototype.toString.call(e),n=/^function\s+([\w\$]+)\s*\(/.exec(t);return n?n[1]:""}}function m(e=0,t,n){const r=function(e){const t=g.get(e);if(t)return t;const n=[];for(const t in e){const r=e[t];"number"==typeof r&&n.push([r,t])}const r=Pe(n,((e,t)=>Jt(e[0],t[0])));return g.set(e,r),r}(t);if(0===e)return r.length>0&&0===r[0][0]?r[0][1]:"0";if(n){const t=[];let n=e;for(const[i,o]of r){if(i>e)break;0!==i&&i&e&&(t.push(o),n&=~i)}if(0===n)return t.join("|")}else for(const[t,n]of r)if(t===e)return n;return e.toString()}e.getAssertionLevel=function(){return t},e.setAssertionLevel=function(n){const r=t;if(t=n,n>r)for(const t of $e(a)){const r=a[t];void 0!==r&&e[t]!==r.assertion&&n>=r.level&&(e[t]=r,a[t]=void 0)}},e.shouldAssert=s,e.fail=_,e.failBadSyntaxKind=function e(t,n,r){return _(`${n||"Unexpected node."}\r\nNode ${h(t.kind)} was unexpected.`,r||e)},e.assert=l,e.assertEqual=function e(t,n,r,i,o){t!==n&&_(`Expected ${t} === ${n}. ${r?i?`${r} ${i}`:r:""}`,o||e)},e.assertLessThan=function e(t,n,r,i){t>=n&&_(`Expected ${t} < ${n}. ${r||""}`,i||e)},e.assertLessThanOrEqual=function e(t,n,r){t>n&&_(`Expected ${t} <= ${n}`,r||e)},e.assertGreaterThanOrEqual=function e(t,n,r){t= ${n}`,r||e)},e.assertIsDefined=u,e.checkDefined=function e(t,n,r){return u(t,n,r||e),t},e.assertEachIsDefined=d,e.checkEachDefined=function e(t,n,r){return d(t,n,r||e),t},e.assertNever=p,e.assertEachNode=function e(t,n,r,i){c(1,"assertEachNode")&&l(void 0===n||F(t,n),r||"Unexpected node.",(()=>`Node array did not pass test '${f(n)}'.`),i||e)},e.assertNode=function e(t,n,r,i){c(1,"assertNode")&&l(void 0!==t&&(void 0===n||n(t)),r||"Unexpected node.",(()=>`Node ${h(null==t?void 0:t.kind)} did not pass test '${f(n)}'.`),i||e)},e.assertNotNode=function e(t,n,r,i){c(1,"assertNotNode")&&l(void 0===t||void 0===n||!n(t),r||"Unexpected node.",(()=>`Node ${h(t.kind)} should not have passed test '${f(n)}'.`),i||e)},e.assertOptionalNode=function e(t,n,r,i){c(1,"assertOptionalNode")&&l(void 0===n||void 0===t||n(t),r||"Unexpected node.",(()=>`Node ${h(null==t?void 0:t.kind)} did not pass test '${f(n)}'.`),i||e)},e.assertOptionalToken=function e(t,n,r,i){c(1,"assertOptionalToken")&&l(void 0===n||void 0===t||t.kind===n,r||"Unexpected node.",(()=>`Node ${h(null==t?void 0:t.kind)} was not a '${h(n)}' token.`),i||e)},e.assertMissingNode=function e(t,n,r){c(1,"assertMissingNode")&&l(void 0===t,n||"Unexpected node.",(()=>`Node ${h(t.kind)} was unexpected'.`),r||e)},e.type=function(e){},e.getFunctionName=f,e.formatSymbol=function(e){return`{ name: ${Ic(e.escapedName)}; flags: ${k(e.flags)}; declarations: ${V(e.declarations,(e=>h(e.kind)))} }`},e.formatEnum=m;const g=new Map;function h(e){return m(e,Kr,!1)}function y(e){return m(e,Wr,!0)}function v(e){return m(e,Hr,!0)}function b(e){return m(e,Yi,!0)}function x(e){return m(e,eo,!0)}function k(e){return m(e,hi,!0)}function S(e){return m(e,ki,!0)}function T(e){return m(e,Ei,!0)}function C(e){return m(e,Si,!0)}function A(e){return m(e,Zr,!0)}e.formatSyntaxKind=h,e.formatSnippetKind=function(e){return m(e,Zi,!1)},e.formatNodeFlags=y,e.formatModifierFlags=v,e.formatTransformFlags=b,e.formatEmitFlags=x,e.formatSymbolFlags=k,e.formatTypeFlags=S,e.formatSignatureFlags=T,e.formatObjectFlags=C,e.formatFlowFlags=A,e.formatRelationComparisonResult=function(e){return m(e,Gr,!0)},e.formatCheckMode=function(e){return m(e,OB,!0)},e.formatSignatureCheckMode=function(e){return m(e,LB,!0)},e.formatTypeFacts=function(e){return m(e,PB,!0)};let w,D,N=!1;function P(e){"__debugFlowFlags"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value(){const e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return`${e}${t?` (${A(t)})`:""}`}},__debugFlowFlags:{get(){return m(this.flags,Zr,!0)}},__debugToString:{value(){return L(this)}}})}function I(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:e=>"NodeArray "+(e+"").replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]")}})}e.attachFlowNodeDebugInfo=function(e){N&&("function"==typeof Object.setPrototypeOf?(w||(w=Object.create(Object.prototype),P(w)),Object.setPrototypeOf(e,w)):P(e))},e.attachNodeArrayDebugInfo=function(e){N&&("function"==typeof Object.setPrototypeOf?(D||(D=Object.create(Array.prototype),I(D)),Object.setPrototypeOf(e,D)):I(e))},e.enableDebugInfo=function(){if(N)return;const e=new WeakMap,t=new WeakMap;Object.defineProperties(Fd.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=33554432&this.flags?"TransientSymbol":"Symbol",t=-33554433&this.flags;return`${e} '${Mc(this)}'${t?` (${k(t)})`:""}`}},__debugFlags:{get(){return k(this.flags)}}}),Object.defineProperties(Fd.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=98304&this.flags?"NullableType":384&this.flags?"LiteralType "+JSON.stringify(this.value):2048&this.flags?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":67359327&this.flags?"IntrinsicType "+this.intrinsicName:1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",t=524288&this.flags?-1344&this.objectFlags:0;return`${e}${this.symbol?` '${Mc(this.symbol)}'`:""}${t?` (${C(t)})`:""}`}},__debugFlags:{get(){return S(this.flags)}},__debugObjectFlags:{get(){return 524288&this.flags?C(this.objectFlags):""}},__debugTypeToString:{value(){let t=e.get(this);return void 0===t&&(t=this.checker.typeToString(this),e.set(this,t)),t}}}),Object.defineProperties(Fd.getSignatureConstructor().prototype,{__debugFlags:{get(){return T(this.flags)}},__debugSignatureToString:{value(){var e;return null==(e=this.checker)?void 0:e.signatureToString(this)}}});const n=[Fd.getNodeConstructor(),Fd.getIdentifierConstructor(),Fd.getTokenConstructor(),Fd.getSourceFileConstructor()];for(const e of n)We(e.prototype,"__debugKind")||Object.defineProperties(e.prototype,{__tsDebuggerDisplay:{value(){return`${dl(this)?"GeneratedIdentifier":Tw(this)?`Identifier '${Oc(this)}'`:Cw(this)?`PrivateIdentifier '${Oc(this)}'`:sw(this)?"StringLiteral "+JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"..."):ow(this)?"NumericLiteral "+this.text:aw(this)?`BigIntLiteral ${this.text}n`:zw(this)?"TypeParameterDeclaration":Uw(this)?"ParameterDeclaration":$w(this)?"ConstructorDeclaration":Gw(this)?"GetAccessorDeclaration":Xw(this)?"SetAccessorDeclaration":Yw(this)?"CallSignatureDeclaration":Zw(this)?"ConstructSignatureDeclaration":eD(this)?"IndexSignatureDeclaration":tD(this)?"TypePredicateNode":nD(this)?"TypeReferenceNode":rD(this)?"FunctionTypeNode":iD(this)?"ConstructorTypeNode":oD(this)?"TypeQueryNode":aD(this)?"TypeLiteralNode":sD(this)?"ArrayTypeNode":cD(this)?"TupleTypeNode":lD(this)?"OptionalTypeNode":uD(this)?"RestTypeNode":dD(this)?"UnionTypeNode":pD(this)?"IntersectionTypeNode":fD(this)?"ConditionalTypeNode":mD(this)?"InferTypeNode":gD(this)?"ParenthesizedTypeNode":hD(this)?"ThisTypeNode":yD(this)?"TypeOperatorNode":vD(this)?"IndexedAccessTypeNode":bD(this)?"MappedTypeNode":xD(this)?"LiteralTypeNode":_D(this)?"NamedTupleMember":kD(this)?"ImportTypeNode":h(this.kind)}${this.flags?` (${y(this.flags)})`:""}`}},__debugKind:{get(){return h(this.kind)}},__debugNodeFlags:{get(){return y(this.flags)}},__debugModifierFlags:{get(){return v(Tb(this))}},__debugTransformFlags:{get(){return b(this.transformFlags)}},__debugIsParseTreeNode:{get(){return Nc(this)}},__debugEmitFlags:{get(){return x(rf(this))}},__debugGetText:{value(e){if(Qy(this))return"";let n=t.get(this);if(void 0===n){const r=Fc(this),i=r&&wp(r);n=i?Xp(i,r,e):"",t.set(this,n)}return n}}});N=!0},e.formatVariance=function(e){const t=7&e;let n=0===t?"in out":3===t?"[bivariant]":2===t?"in":1===t?"out":4===t?"[independent]":"";return 8&e?n+=" (unmeasurable)":16&e&&(n+=" (unreliable)"),n};class O{__debugToString(){var e;switch(this.kind){case 3:return(null==(e=this.debugInfo)?void 0:e.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return E(this.sources,this.targets||V(this.sources,(()=>"any")),((e,t)=>`${e.__debugTypeToString()} -> ${"string"==typeof t?t:t.__debugTypeToString()}`)).join(", ");case 2:return E(this.sources,this.targets,((e,t)=>`${e.__debugTypeToString()} -> ${t().__debugTypeToString()}`)).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split("\n").join("\n ")}\nm2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`;default:return p(this)}}}function L(e){let t,n=-1;function r(e){return e.id||(e.id=n,n--),e.id}var i;let o;var a;(i=t||(t={})).lr="─",i.ud="│",i.dr="╭",i.dl="╮",i.ul="╯",i.ur="╰",i.udr="├",i.udl="┤",i.dlr="┬",i.ulr="┴",i.udlr="╫",(a=o||(o={}))[a.None=0]="None",a[a.Up=1]="Up",a[a.Down=2]="Down",a[a.Left=4]="Left",a[a.Right=8]="Right",a[a.UpDown=3]="UpDown",a[a.LeftRight=12]="LeftRight",a[a.UpLeft=5]="UpLeft",a[a.UpRight=9]="UpRight",a[a.DownLeft=6]="DownLeft",a[a.DownRight=10]="DownRight",a[a.UpDownLeft=7]="UpDownLeft",a[a.UpDownRight=11]="UpDownRight",a[a.UpLeftRight=13]="UpLeftRight",a[a.DownLeftRight=14]="DownLeftRight",a[a.UpDownLeftRight=15]="UpDownLeftRight",a[a.NoChildren=16]="NoChildren";const s=Object.create(null),c=[],_=p(e,new Set);for(const e of c)e.text=h(e.flowNode,e.circular),m(e);const l=function(e){const t=v(Array(e),0);for(const e of c)t[e.level]=Math.max(t[e.level],e.text.length);return t}(function e(t){let n=0;for(const r of u(t))n=Math.max(n,e(r));return n+1}(_));return function e(t,n){if(-1===t.lane){t.lane=n,t.endLane=n;const r=u(t);for(let i=0;i0&&n++;const o=r[i];e(o,n),o.endLane>t.endLane&&(n=o.endLane)}t.endLane=n}}(_,0),function(){const e=l.length,t=c.reduce(((e,t)=>Math.max(e,t.lane)),0)+1,n=v(Array(t),""),r=l.map((()=>Array(t))),i=l.map((()=>v(Array(t),0)));for(const e of c){r[e.level][e.lane]=e;const t=u(e);for(let n=0;n0&&(o|=1),n0&&(o|=1),t0?i[n-1][e]:0,r=e>0?i[n][e-1]:0;let o=i[n][e];o||(8&t&&(o|=12),2&r&&(o|=3),i[n][e]=o)}for(let t=0;t0?e.repeat(t):"";let n="";for(;n.length=",r.version)),tr(i.major)||n.push(tr(i.minor)?nr("<",i.version.increment("major")):tr(i.patch)?nr("<",i.version.increment("minor")):nr("<=",i.version)),!0)}function er(e,t,n){const r=Yn(t);if(!r)return!1;const{version:i,major:o,minor:a,patch:s}=r;if(tr(o))"<"!==e&&">"!==e||n.push(nr("<",zn.zero));else switch(e){case"~":n.push(nr(">=",i)),n.push(nr("<",i.increment(tr(a)?"major":"minor")));break;case"^":n.push(nr(">=",i)),n.push(nr("<",i.increment(i.major>0||tr(a)?"major":i.minor>0||tr(s)?"minor":"patch")));break;case"<":case">=":n.push(tr(a)||tr(s)?nr(e,i.with({prerelease:"0"})):nr(e,i));break;case"<=":case">":n.push(tr(a)?nr("<="===e?"<":">=",i.increment("major").with({prerelease:"0"})):tr(s)?nr("<="===e?"<":">=",i.increment("minor").with({prerelease:"0"})):nr(e,i));break;case"=":case void 0:tr(a)||tr(s)?(n.push(nr(">=",i.with({prerelease:"0"}))),n.push(nr("<",i.increment(tr(a)?"major":"minor").with({prerelease:"0"})))):n.push(nr("=",i));break;default:return!1}return!0}function tr(e){return"*"===e||"x"===e||"X"===e}function nr(e,t){return{operator:e,operand:t}}function rr(e,t){for(const n of t)if(!ir(e,n.operator,n.operand))return!1;return!0}function ir(e,t,n){const r=e.compareTo(n);switch(t){case"<":return r<0;case"<=":return r<=0;case">":return r>0;case">=":return r>=0;case"=":return 0===r;default:return In.assertNever(t)}}function or(e){return V(e,ar).join(" ")}function ar(e){return`${e.operator}${e.operand}`}var sr,cr,_r,lr=b({"src/compiler/semver.ts"(){XK(),On=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Ln=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,Mn=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,Rn=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,Bn=/^[a-z0-9-]+$/i,jn=/^(0|[1-9]\d*)$/,(zn=Jn=class{constructor(e,t=0,n=0,i="",o=""){if("string"==typeof e){const r=In.checkDefined(Gn(e),"Invalid version");({major:e,minor:t,patch:n,prerelease:i,build:o}=r)}In.assert(e>=0,"Invalid argument: major"),In.assert(t>=0,"Invalid argument: minor"),In.assert(n>=0,"Invalid argument: patch");const a=i?ht(i)?i:i.split("."):r,s=o?ht(o)?o:o.split("."):r;In.assert(F(a,(e=>Mn.test(e))),"Invalid argument: prerelease"),In.assert(F(s,(e=>Bn.test(e))),"Invalid argument: build"),this.major=e,this.minor=t,this.patch=n,this.prerelease=a,this.build=s}static tryParse(e){const t=Gn(e);if(!t)return;const{major:n,minor:r,patch:i,prerelease:o,build:a}=t;return new Jn(n,r,i,o,a)}compareTo(e){return this===e?0:void 0===e?1:Jt(this.major,e.major)||Jt(this.minor,e.minor)||Jt(this.patch,e.patch)||function(e,t){if(e===t)return 0;if(0===e.length)return 0===t.length?0:1;if(0===t.length)return-1;const n=Math.min(e.length,t.length);for(let r=0;r|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function ur(e,t){return"object"==typeof e&&"number"==typeof e.timeOrigin&&"function"==typeof e.mark&&"function"==typeof e.measure&&"function"==typeof e.now&&"function"==typeof e.clearMarks&&"function"==typeof e.clearMeasures&&"function"==typeof t}function dr(){return sr}var pr,fr,mr,gr,hr,yr,vr,br,xr,kr,Sr,Tr,Cr=b({"src/compiler/performanceCore.ts"(){XK(),sr=function(){if("object"==typeof performance&&"function"==typeof PerformanceObserver&&ur(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}()||function(){if(Fn())try{let e;const{performance:t,PerformanceObserver:n}=require("perf_hooks");if(ur(t,n)){e=t;const r=new zn(process.versions.node);return new Un("<12.16.3 || 13 <13.13").test(r)&&(e={get timeOrigin(){return t.timeOrigin},now:()=>t.now(),mark:e=>t.mark(e),measure(e,n="nodeStart",r){void 0===r&&(r="__performance.measure-fix__",t.mark(r)),t.measure(e,n,r),"__performance.measure-fix__"===r&&t.clearMarks("__performance.measure-fix__")},clearMarks:e=>t.clearMarks(e),clearMeasures:e=>t.clearMeasures(e)}),{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:n}}}catch(e){}}(),cr=null==sr?void 0:sr.performance,_r=cr?()=>cr.now():Date.now?Date.now:()=>+new Date}}),Ar=b({"src/compiler/perfLogger.ts"(){XK(),pr={logEvent:St,logErrEvent:St,logPerfEvent:St,logInfoEvent:St,logStartCommand:St,logStopCommand:St,logStartUpdateProgram:St,logStopUpdateProgram:St,logStartUpdateGraph:St,logStopUpdateGraph:St,logStartResolveModule:St,logStopResolveModule:St,logStartParseSourceFile:St,logStopParseSourceFile:St,logStartReadFile:St,logStopReadFile:St,logStartBindFile:St,logStopBindFile:St,logStartScheduledOperation:St,logStopScheduledOperation:St};try{const e=null!=(mr=process.env.TS_ETW_MODULE_PATH)?mr:"./node_modules/@microsoft/typescript-etw";fr=ne(e)}catch(e){fr=void 0}gr=(null==fr?void 0:fr.logEvent)?fr:pr}});function wr(e,t,n,r){return e?Dr(t,n,r):vr}function Dr(e,t,n){let r=0;return{enter:function(){1==++r&&Er(t)},exit:function(){0==--r?(Er(n),Nr(e,t,n)):r<0&&In.fail("enter/exit count does not match.")}}}function Er(e){var t;if(br){const n=null!=(t=Sr.get(e))?t:0;Sr.set(e,n+1),kr.set(e,_r()),null==yr||yr.mark(e),"function"==typeof onProfilerEvent&&onProfilerEvent(e)}}function Nr(e,t,n){var r,i;if(br){const o=null!=(r=void 0!==n?kr.get(n):void 0)?r:_r(),a=null!=(i=void 0!==t?kr.get(t):void 0)?i:xr,s=Tr.get(e)||0;Tr.set(e,s+(o-a)),null==yr||yr.measure(e,t,n)}}function Fr(e){return Sr.get(e)||0}function Pr(e){return Tr.get(e)||0}function Ir(e){Tr.forEach(((t,n)=>e(n,t)))}function Or(e){kr.forEach(((t,n)=>e(n)))}function Lr(e){void 0!==e?Tr.delete(e):Tr.clear(),null==yr||yr.clearMeasures(e)}function Mr(e){void 0!==e?(Sr.delete(e),kr.delete(e)):(Sr.clear(),kr.clear()),null==yr||yr.clearMarks(e)}function Rr(){return br}function Br(e=So){var t;return br||(br=!0,hr||(hr=dr()),hr&&(xr=hr.performance.timeOrigin,(hr.shouldWriteNativeEvents||(null==(t=null==e?void 0:e.cpuProfilingEnabled)?void 0:t.call(e))||(null==e?void 0:e.debugMode))&&(yr=hr.performance))),!0}function jr(){br&&(kr.clear(),Sr.clear(),Tr.clear(),yr=void 0,br=!1)}var Jr=b({"src/compiler/performance.ts"(){XK(),vr={enter:St,exit:St},br=!1,xr=_r(),kr=new Map,Sr=new Map,Tr=new Map}}),zr={};x(zr,{clearMarks:()=>Mr,clearMeasures:()=>Lr,createTimer:()=>Dr,createTimerIf:()=>wr,disable:()=>jr,enable:()=>Br,forEachMark:()=>Or,forEachMeasure:()=>Ir,getCount:()=>Fr,getDuration:()=>Pr,isEnabled:()=>Rr,mark:()=>Er,measure:()=>Nr,nullTimer:()=>vr});var Ur,qr,Vr,Qr,Kr,Wr,Hr,$r,Gr,Xr,Yr,Zr,ei,ti,ni,ri,ii,oi,ai,si,ci,_i,li,ui,di,pi,fi,mi,gi,hi,yi,vi,bi,xi,ki,Si,Ti,Ci,Ai,wi,Di,Ei,Ni,Fi,Pi,Ii,Oi,Li,Mi,Ri,Bi,ji,Ji,zi,Ui,qi,Vi,Qi,Ki,Wi,Hi,$i,Gi,Xi,Yi,Zi,eo,to,no,ro,io,oo,ao,so,co,_o,lo=b({"src/compiler/_namespaces/ts.performance.ts"(){Jr()}}),uo=b({"src/compiler/tracing.ts"(){XK(),lo(),(e=>{let t,n,r=0,i=0;const o=[];let a;const s=[];var c;e.startTracing=function(c,_,l){if(In.assert(!Ur,"Tracing already started"),void 0===t)try{t=require("fs")}catch(e){throw Error(`tracing requires having fs\n(original error: ${e.message||e})`)}n=c,o.length=0,void 0===a&&(a=ma(_,"legend.json")),t.existsSync(_)||t.mkdirSync(_,{recursive:!0});const u="build"===n?`.${process.pid}-${++r}`:"server"===n?"."+process.pid:"",d=ma(_,`trace${u}.json`),p=ma(_,`types${u}.json`);s.push({configFilePath:l,tracePath:d,typesPath:p}),i=t.openSync(d,"w"),Ur=e;const f={cat:"__metadata",ph:"M",ts:1e3*_r(),pid:1,tid:1};t.writeSync(i,"[\n"+[{name:"process_name",args:{name:"tsc"},...f},{name:"thread_name",args:{name:"Main"},...f},{name:"TracingStartedInBrowser",...f,cat:"disabled-by-default-devtools.timeline"}].map((e=>JSON.stringify(e))).join(",\n"))},e.stopTracing=function(){In.assert(Ur,"Tracing is not in progress"),In.assert(!!o.length==("server"!==n)),t.writeSync(i,"\n]\n"),t.closeSync(i),Ur=void 0,o.length?function(e){var n,r,i,o,a,c,_,l,u,p,f,m,g,h,y,v,b,x,k,S,T,C;Er("beginDumpTypes");const A=s[s.length-1].typesPath,w=t.openSync(A,"w"),D=new Map;t.writeSync(w,"[");const E=e.length;for(let s=0;se.id)),referenceLocation:d(e.node)}}let L={};if(16777216&A.flags){const e=A;L={conditionalCheckType:null==(_=e.checkType)?void 0:_.id,conditionalExtendsType:null==(l=e.extendsType)?void 0:l.id,conditionalTrueType:null!=(p=null==(u=e.resolvedTrueType)?void 0:u.id)?p:-1,conditionalFalseType:null!=(m=null==(f=e.resolvedFalseType)?void 0:f.id)?m:-1}}let M={};if(33554432&A.flags){const e=A;M={substitutionBaseType:null==(g=e.baseType)?void 0:g.id,constraintType:null==(h=e.constraint)?void 0:h.id}}let R={};if(1024&N){const e=A;R={reverseMappedSourceType:null==(y=e.source)?void 0:y.id,reverseMappedMappedType:null==(v=e.mappedType)?void 0:v.id,reverseMappedConstraintType:null==(b=e.constraintType)?void 0:b.id}}let B,j={};if(256&N){const e=A;j={evolvingArrayElementType:e.elementType.id,evolvingArrayFinalType:null==(x=e.finalArrayType)?void 0:x.id}}const J=A.checker.getRecursionIdentity(A);J&&(B=D.get(J),B||(B=D.size,D.set(J,B)));const z={id:A.id,intrinsicName:A.intrinsicName,symbolName:(null==F?void 0:F.escapedName)&&Ic(F.escapedName),recursionId:B,isTuple:!!(8&N)||void 0,unionTypes:1048576&A.flags?null==(k=A.types)?void 0:k.map((e=>e.id)):void 0,intersectionTypes:2097152&A.flags?A.types.map((e=>e.id)):void 0,aliasTypeArguments:null==(S=A.aliasTypeArguments)?void 0:S.map((e=>e.id)),keyofType:4194304&A.flags?null==(T=A.type)?void 0:T.id:void 0,...I,...O,...L,...M,...R,...j,destructuringPattern:d(A.pattern),firstDeclaration:d(null==(C=null==F?void 0:F.declarations)?void 0:C[0]),flags:In.formatTypeFlags(A.flags).split("|"),display:P};t.writeSync(w,JSON.stringify(z)),s0),l(_.length-1,1e3*_r(),e),_.length--},e.popAll=function(){const e=1e3*_r();for(let t=_.length-1;t>=0;t--)l(t,e);_.length=0},e.dumpLegend=function(){a&&t.writeFileSync(a,JSON.stringify(s))}})(qr||(qr={})),Vr=qr.startTracing,Qr=qr.dumpLegend}});function po(e,t=!0){const n=Mi[e.category];return t?n.toLowerCase():n}var fo,mo,go,ho,yo,vo,bo,xo,ko,So,To=b({"src/compiler/types.ts"(){Kr=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NumericLiteral=8]="NumericLiteral",e[e.BigIntLiteral=9]="BigIntLiteral",e[e.StringLiteral=10]="StringLiteral",e[e.JsxText=11]="JsxText",e[e.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=13]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=15]="TemplateHead",e[e.TemplateMiddle=16]="TemplateMiddle",e[e.TemplateTail=17]="TemplateTail",e[e.OpenBraceToken=18]="OpenBraceToken",e[e.CloseBraceToken=19]="CloseBraceToken",e[e.OpenParenToken=20]="OpenParenToken",e[e.CloseParenToken=21]="CloseParenToken",e[e.OpenBracketToken=22]="OpenBracketToken",e[e.CloseBracketToken=23]="CloseBracketToken",e[e.DotToken=24]="DotToken",e[e.DotDotDotToken=25]="DotDotDotToken",e[e.SemicolonToken=26]="SemicolonToken",e[e.CommaToken=27]="CommaToken",e[e.QuestionDotToken=28]="QuestionDotToken",e[e.LessThanToken=29]="LessThanToken",e[e.LessThanSlashToken=30]="LessThanSlashToken",e[e.GreaterThanToken=31]="GreaterThanToken",e[e.LessThanEqualsToken=32]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=34]="EqualsEqualsToken",e[e.ExclamationEqualsToken=35]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",e[e.PlusToken=39]="PlusToken",e[e.MinusToken=40]="MinusToken",e[e.AsteriskToken=41]="AsteriskToken",e[e.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",e[e.SlashToken=43]="SlashToken",e[e.PercentToken=44]="PercentToken",e[e.PlusPlusToken=45]="PlusPlusToken",e[e.MinusMinusToken=46]="MinusMinusToken",e[e.LessThanLessThanToken=47]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=50]="AmpersandToken",e[e.BarToken=51]="BarToken",e[e.CaretToken=52]="CaretToken",e[e.ExclamationToken=53]="ExclamationToken",e[e.TildeToken=54]="TildeToken",e[e.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",e[e.BarBarToken=56]="BarBarToken",e[e.QuestionToken=57]="QuestionToken",e[e.ColonToken=58]="ColonToken",e[e.AtToken=59]="AtToken",e[e.QuestionQuestionToken=60]="QuestionQuestionToken",e[e.BacktickToken=61]="BacktickToken",e[e.HashToken=62]="HashToken",e[e.EqualsToken=63]="EqualsToken",e[e.PlusEqualsToken=64]="PlusEqualsToken",e[e.MinusEqualsToken=65]="MinusEqualsToken",e[e.AsteriskEqualsToken=66]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=68]="SlashEqualsToken",e[e.PercentEqualsToken=69]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=73]="AmpersandEqualsToken",e[e.BarEqualsToken=74]="BarEqualsToken",e[e.BarBarEqualsToken=75]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=78]="CaretEqualsToken",e[e.Identifier=79]="Identifier",e[e.PrivateIdentifier=80]="PrivateIdentifier",e[e.BreakKeyword=81]="BreakKeyword",e[e.CaseKeyword=82]="CaseKeyword",e[e.CatchKeyword=83]="CatchKeyword",e[e.ClassKeyword=84]="ClassKeyword",e[e.ConstKeyword=85]="ConstKeyword",e[e.ContinueKeyword=86]="ContinueKeyword",e[e.DebuggerKeyword=87]="DebuggerKeyword",e[e.DefaultKeyword=88]="DefaultKeyword",e[e.DeleteKeyword=89]="DeleteKeyword",e[e.DoKeyword=90]="DoKeyword",e[e.ElseKeyword=91]="ElseKeyword",e[e.EnumKeyword=92]="EnumKeyword",e[e.ExportKeyword=93]="ExportKeyword",e[e.ExtendsKeyword=94]="ExtendsKeyword",e[e.FalseKeyword=95]="FalseKeyword",e[e.FinallyKeyword=96]="FinallyKeyword",e[e.ForKeyword=97]="ForKeyword",e[e.FunctionKeyword=98]="FunctionKeyword",e[e.IfKeyword=99]="IfKeyword",e[e.ImportKeyword=100]="ImportKeyword",e[e.InKeyword=101]="InKeyword",e[e.InstanceOfKeyword=102]="InstanceOfKeyword",e[e.NewKeyword=103]="NewKeyword",e[e.NullKeyword=104]="NullKeyword",e[e.ReturnKeyword=105]="ReturnKeyword",e[e.SuperKeyword=106]="SuperKeyword",e[e.SwitchKeyword=107]="SwitchKeyword",e[e.ThisKeyword=108]="ThisKeyword",e[e.ThrowKeyword=109]="ThrowKeyword",e[e.TrueKeyword=110]="TrueKeyword",e[e.TryKeyword=111]="TryKeyword",e[e.TypeOfKeyword=112]="TypeOfKeyword",e[e.VarKeyword=113]="VarKeyword",e[e.VoidKeyword=114]="VoidKeyword",e[e.WhileKeyword=115]="WhileKeyword",e[e.WithKeyword=116]="WithKeyword",e[e.ImplementsKeyword=117]="ImplementsKeyword",e[e.InterfaceKeyword=118]="InterfaceKeyword",e[e.LetKeyword=119]="LetKeyword",e[e.PackageKeyword=120]="PackageKeyword",e[e.PrivateKeyword=121]="PrivateKeyword",e[e.ProtectedKeyword=122]="ProtectedKeyword",e[e.PublicKeyword=123]="PublicKeyword",e[e.StaticKeyword=124]="StaticKeyword",e[e.YieldKeyword=125]="YieldKeyword",e[e.AbstractKeyword=126]="AbstractKeyword",e[e.AccessorKeyword=127]="AccessorKeyword",e[e.AsKeyword=128]="AsKeyword",e[e.AssertsKeyword=129]="AssertsKeyword",e[e.AssertKeyword=130]="AssertKeyword",e[e.AnyKeyword=131]="AnyKeyword",e[e.AsyncKeyword=132]="AsyncKeyword",e[e.AwaitKeyword=133]="AwaitKeyword",e[e.BooleanKeyword=134]="BooleanKeyword",e[e.ConstructorKeyword=135]="ConstructorKeyword",e[e.DeclareKeyword=136]="DeclareKeyword",e[e.GetKeyword=137]="GetKeyword",e[e.InferKeyword=138]="InferKeyword",e[e.IntrinsicKeyword=139]="IntrinsicKeyword",e[e.IsKeyword=140]="IsKeyword",e[e.KeyOfKeyword=141]="KeyOfKeyword",e[e.ModuleKeyword=142]="ModuleKeyword",e[e.NamespaceKeyword=143]="NamespaceKeyword",e[e.NeverKeyword=144]="NeverKeyword",e[e.OutKeyword=145]="OutKeyword",e[e.ReadonlyKeyword=146]="ReadonlyKeyword",e[e.RequireKeyword=147]="RequireKeyword",e[e.NumberKeyword=148]="NumberKeyword",e[e.ObjectKeyword=149]="ObjectKeyword",e[e.SatisfiesKeyword=150]="SatisfiesKeyword",e[e.SetKeyword=151]="SetKeyword",e[e.StringKeyword=152]="StringKeyword",e[e.SymbolKeyword=153]="SymbolKeyword",e[e.TypeKeyword=154]="TypeKeyword",e[e.UndefinedKeyword=155]="UndefinedKeyword",e[e.UniqueKeyword=156]="UniqueKeyword",e[e.UnknownKeyword=157]="UnknownKeyword",e[e.FromKeyword=158]="FromKeyword",e[e.GlobalKeyword=159]="GlobalKeyword",e[e.BigIntKeyword=160]="BigIntKeyword",e[e.OverrideKeyword=161]="OverrideKeyword",e[e.OfKeyword=162]="OfKeyword",e[e.QualifiedName=163]="QualifiedName",e[e.ComputedPropertyName=164]="ComputedPropertyName",e[e.TypeParameter=165]="TypeParameter",e[e.Parameter=166]="Parameter",e[e.Decorator=167]="Decorator",e[e.PropertySignature=168]="PropertySignature",e[e.PropertyDeclaration=169]="PropertyDeclaration",e[e.MethodSignature=170]="MethodSignature",e[e.MethodDeclaration=171]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=172]="ClassStaticBlockDeclaration",e[e.Constructor=173]="Constructor",e[e.GetAccessor=174]="GetAccessor",e[e.SetAccessor=175]="SetAccessor",e[e.CallSignature=176]="CallSignature",e[e.ConstructSignature=177]="ConstructSignature",e[e.IndexSignature=178]="IndexSignature",e[e.TypePredicate=179]="TypePredicate",e[e.TypeReference=180]="TypeReference",e[e.FunctionType=181]="FunctionType",e[e.ConstructorType=182]="ConstructorType",e[e.TypeQuery=183]="TypeQuery",e[e.TypeLiteral=184]="TypeLiteral",e[e.ArrayType=185]="ArrayType",e[e.TupleType=186]="TupleType",e[e.OptionalType=187]="OptionalType",e[e.RestType=188]="RestType",e[e.UnionType=189]="UnionType",e[e.IntersectionType=190]="IntersectionType",e[e.ConditionalType=191]="ConditionalType",e[e.InferType=192]="InferType",e[e.ParenthesizedType=193]="ParenthesizedType",e[e.ThisType=194]="ThisType",e[e.TypeOperator=195]="TypeOperator",e[e.IndexedAccessType=196]="IndexedAccessType",e[e.MappedType=197]="MappedType",e[e.LiteralType=198]="LiteralType",e[e.NamedTupleMember=199]="NamedTupleMember",e[e.TemplateLiteralType=200]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=201]="TemplateLiteralTypeSpan",e[e.ImportType=202]="ImportType",e[e.ObjectBindingPattern=203]="ObjectBindingPattern",e[e.ArrayBindingPattern=204]="ArrayBindingPattern",e[e.BindingElement=205]="BindingElement",e[e.ArrayLiteralExpression=206]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=207]="ObjectLiteralExpression",e[e.PropertyAccessExpression=208]="PropertyAccessExpression",e[e.ElementAccessExpression=209]="ElementAccessExpression",e[e.CallExpression=210]="CallExpression",e[e.NewExpression=211]="NewExpression",e[e.TaggedTemplateExpression=212]="TaggedTemplateExpression",e[e.TypeAssertionExpression=213]="TypeAssertionExpression",e[e.ParenthesizedExpression=214]="ParenthesizedExpression",e[e.FunctionExpression=215]="FunctionExpression",e[e.ArrowFunction=216]="ArrowFunction",e[e.DeleteExpression=217]="DeleteExpression",e[e.TypeOfExpression=218]="TypeOfExpression",e[e.VoidExpression=219]="VoidExpression",e[e.AwaitExpression=220]="AwaitExpression",e[e.PrefixUnaryExpression=221]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=222]="PostfixUnaryExpression",e[e.BinaryExpression=223]="BinaryExpression",e[e.ConditionalExpression=224]="ConditionalExpression",e[e.TemplateExpression=225]="TemplateExpression",e[e.YieldExpression=226]="YieldExpression",e[e.SpreadElement=227]="SpreadElement",e[e.ClassExpression=228]="ClassExpression",e[e.OmittedExpression=229]="OmittedExpression",e[e.ExpressionWithTypeArguments=230]="ExpressionWithTypeArguments",e[e.AsExpression=231]="AsExpression",e[e.NonNullExpression=232]="NonNullExpression",e[e.MetaProperty=233]="MetaProperty",e[e.SyntheticExpression=234]="SyntheticExpression",e[e.SatisfiesExpression=235]="SatisfiesExpression",e[e.TemplateSpan=236]="TemplateSpan",e[e.SemicolonClassElement=237]="SemicolonClassElement",e[e.Block=238]="Block",e[e.EmptyStatement=239]="EmptyStatement",e[e.VariableStatement=240]="VariableStatement",e[e.ExpressionStatement=241]="ExpressionStatement",e[e.IfStatement=242]="IfStatement",e[e.DoStatement=243]="DoStatement",e[e.WhileStatement=244]="WhileStatement",e[e.ForStatement=245]="ForStatement",e[e.ForInStatement=246]="ForInStatement",e[e.ForOfStatement=247]="ForOfStatement",e[e.ContinueStatement=248]="ContinueStatement",e[e.BreakStatement=249]="BreakStatement",e[e.ReturnStatement=250]="ReturnStatement",e[e.WithStatement=251]="WithStatement",e[e.SwitchStatement=252]="SwitchStatement",e[e.LabeledStatement=253]="LabeledStatement",e[e.ThrowStatement=254]="ThrowStatement",e[e.TryStatement=255]="TryStatement",e[e.DebuggerStatement=256]="DebuggerStatement",e[e.VariableDeclaration=257]="VariableDeclaration",e[e.VariableDeclarationList=258]="VariableDeclarationList",e[e.FunctionDeclaration=259]="FunctionDeclaration",e[e.ClassDeclaration=260]="ClassDeclaration",e[e.InterfaceDeclaration=261]="InterfaceDeclaration",e[e.TypeAliasDeclaration=262]="TypeAliasDeclaration",e[e.EnumDeclaration=263]="EnumDeclaration",e[e.ModuleDeclaration=264]="ModuleDeclaration",e[e.ModuleBlock=265]="ModuleBlock",e[e.CaseBlock=266]="CaseBlock",e[e.NamespaceExportDeclaration=267]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=268]="ImportEqualsDeclaration",e[e.ImportDeclaration=269]="ImportDeclaration",e[e.ImportClause=270]="ImportClause",e[e.NamespaceImport=271]="NamespaceImport",e[e.NamedImports=272]="NamedImports",e[e.ImportSpecifier=273]="ImportSpecifier",e[e.ExportAssignment=274]="ExportAssignment",e[e.ExportDeclaration=275]="ExportDeclaration",e[e.NamedExports=276]="NamedExports",e[e.NamespaceExport=277]="NamespaceExport",e[e.ExportSpecifier=278]="ExportSpecifier",e[e.MissingDeclaration=279]="MissingDeclaration",e[e.ExternalModuleReference=280]="ExternalModuleReference",e[e.JsxElement=281]="JsxElement",e[e.JsxSelfClosingElement=282]="JsxSelfClosingElement",e[e.JsxOpeningElement=283]="JsxOpeningElement",e[e.JsxClosingElement=284]="JsxClosingElement",e[e.JsxFragment=285]="JsxFragment",e[e.JsxOpeningFragment=286]="JsxOpeningFragment",e[e.JsxClosingFragment=287]="JsxClosingFragment",e[e.JsxAttribute=288]="JsxAttribute",e[e.JsxAttributes=289]="JsxAttributes",e[e.JsxSpreadAttribute=290]="JsxSpreadAttribute",e[e.JsxExpression=291]="JsxExpression",e[e.CaseClause=292]="CaseClause",e[e.DefaultClause=293]="DefaultClause",e[e.HeritageClause=294]="HeritageClause",e[e.CatchClause=295]="CatchClause",e[e.AssertClause=296]="AssertClause",e[e.AssertEntry=297]="AssertEntry",e[e.ImportTypeAssertionContainer=298]="ImportTypeAssertionContainer",e[e.PropertyAssignment=299]="PropertyAssignment",e[e.ShorthandPropertyAssignment=300]="ShorthandPropertyAssignment",e[e.SpreadAssignment=301]="SpreadAssignment",e[e.EnumMember=302]="EnumMember",e[e.UnparsedPrologue=303]="UnparsedPrologue",e[e.UnparsedPrepend=304]="UnparsedPrepend",e[e.UnparsedText=305]="UnparsedText",e[e.UnparsedInternalText=306]="UnparsedInternalText",e[e.UnparsedSyntheticReference=307]="UnparsedSyntheticReference",e[e.SourceFile=308]="SourceFile",e[e.Bundle=309]="Bundle",e[e.UnparsedSource=310]="UnparsedSource",e[e.InputFiles=311]="InputFiles",e[e.JSDocTypeExpression=312]="JSDocTypeExpression",e[e.JSDocNameReference=313]="JSDocNameReference",e[e.JSDocMemberName=314]="JSDocMemberName",e[e.JSDocAllType=315]="JSDocAllType",e[e.JSDocUnknownType=316]="JSDocUnknownType",e[e.JSDocNullableType=317]="JSDocNullableType",e[e.JSDocNonNullableType=318]="JSDocNonNullableType",e[e.JSDocOptionalType=319]="JSDocOptionalType",e[e.JSDocFunctionType=320]="JSDocFunctionType",e[e.JSDocVariadicType=321]="JSDocVariadicType",e[e.JSDocNamepathType=322]="JSDocNamepathType",e[e.JSDoc=323]="JSDoc",e[e.JSDocComment=323]="JSDocComment",e[e.JSDocText=324]="JSDocText",e[e.JSDocTypeLiteral=325]="JSDocTypeLiteral",e[e.JSDocSignature=326]="JSDocSignature",e[e.JSDocLink=327]="JSDocLink",e[e.JSDocLinkCode=328]="JSDocLinkCode",e[e.JSDocLinkPlain=329]="JSDocLinkPlain",e[e.JSDocTag=330]="JSDocTag",e[e.JSDocAugmentsTag=331]="JSDocAugmentsTag",e[e.JSDocImplementsTag=332]="JSDocImplementsTag",e[e.JSDocAuthorTag=333]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=334]="JSDocDeprecatedTag",e[e.JSDocClassTag=335]="JSDocClassTag",e[e.JSDocPublicTag=336]="JSDocPublicTag",e[e.JSDocPrivateTag=337]="JSDocPrivateTag",e[e.JSDocProtectedTag=338]="JSDocProtectedTag",e[e.JSDocReadonlyTag=339]="JSDocReadonlyTag",e[e.JSDocOverrideTag=340]="JSDocOverrideTag",e[e.JSDocCallbackTag=341]="JSDocCallbackTag",e[e.JSDocOverloadTag=342]="JSDocOverloadTag",e[e.JSDocEnumTag=343]="JSDocEnumTag",e[e.JSDocParameterTag=344]="JSDocParameterTag",e[e.JSDocReturnTag=345]="JSDocReturnTag",e[e.JSDocThisTag=346]="JSDocThisTag",e[e.JSDocTypeTag=347]="JSDocTypeTag",e[e.JSDocTemplateTag=348]="JSDocTemplateTag",e[e.JSDocTypedefTag=349]="JSDocTypedefTag",e[e.JSDocSeeTag=350]="JSDocSeeTag",e[e.JSDocPropertyTag=351]="JSDocPropertyTag",e[e.JSDocThrowsTag=352]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=353]="JSDocSatisfiesTag",e[e.SyntaxList=354]="SyntaxList",e[e.NotEmittedStatement=355]="NotEmittedStatement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.MergeDeclarationMarker=358]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=359]="EndOfDeclarationMarker",e[e.SyntheticReferenceExpression=360]="SyntheticReferenceExpression",e[e.Count=361]="Count",e[e.FirstAssignment=63]="FirstAssignment",e[e.LastAssignment=78]="LastAssignment",e[e.FirstCompoundAssignment=64]="FirstCompoundAssignment",e[e.LastCompoundAssignment=78]="LastCompoundAssignment",e[e.FirstReservedWord=81]="FirstReservedWord",e[e.LastReservedWord=116]="LastReservedWord",e[e.FirstKeyword=81]="FirstKeyword",e[e.LastKeyword=162]="LastKeyword",e[e.FirstFutureReservedWord=117]="FirstFutureReservedWord",e[e.LastFutureReservedWord=125]="LastFutureReservedWord",e[e.FirstTypeNode=179]="FirstTypeNode",e[e.LastTypeNode=202]="LastTypeNode",e[e.FirstPunctuation=18]="FirstPunctuation",e[e.LastPunctuation=78]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=162]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=8]="FirstLiteralToken",e[e.LastLiteralToken=14]="LastLiteralToken",e[e.FirstTemplateToken=14]="FirstTemplateToken",e[e.LastTemplateToken=17]="LastTemplateToken",e[e.FirstBinaryOperator=29]="FirstBinaryOperator",e[e.LastBinaryOperator=78]="LastBinaryOperator",e[e.FirstStatement=240]="FirstStatement",e[e.LastStatement=256]="LastStatement",e[e.FirstNode=163]="FirstNode",e[e.FirstJSDocNode=312]="FirstJSDocNode",e[e.LastJSDocNode=353]="LastJSDocNode",e[e.FirstJSDocTagNode=330]="FirstJSDocTagNode",e[e.LastJSDocTagNode=353]="LastJSDocTagNode",e[e.FirstContextualKeyword=126]="FirstContextualKeyword",e[e.LastContextualKeyword=162]="LastContextualKeyword",e))(Kr||{}),Wr=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.NestedNamespace=4]="NestedNamespace",e[e.Synthesized=8]="Synthesized",e[e.Namespace=16]="Namespace",e[e.OptionalChain=32]="OptionalChain",e[e.ExportContext=64]="ExportContext",e[e.ContainsThis=128]="ContainsThis",e[e.HasImplicitReturn=256]="HasImplicitReturn",e[e.HasExplicitReturn=512]="HasExplicitReturn",e[e.GlobalAugmentation=1024]="GlobalAugmentation",e[e.HasAsyncFunctions=2048]="HasAsyncFunctions",e[e.DisallowInContext=4096]="DisallowInContext",e[e.YieldContext=8192]="YieldContext",e[e.DecoratorContext=16384]="DecoratorContext",e[e.AwaitContext=32768]="AwaitContext",e[e.DisallowConditionalTypesContext=65536]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=131072]="ThisNodeHasError",e[e.JavaScriptFile=262144]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=524288]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=1048576]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=2097152]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=4194304]="PossiblyContainsImportMeta",e[e.JSDoc=8388608]="JSDoc",e[e.Ambient=16777216]="Ambient",e[e.InWithStatement=33554432]="InWithStatement",e[e.JsonFile=67108864]="JsonFile",e[e.TypeCached=134217728]="TypeCached",e[e.Deprecated=268435456]="Deprecated",e[e.BlockScoped=3]="BlockScoped",e[e.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",e[e.ContextFlags=50720768]="ContextFlags",e[e.TypeExcludesFlags=40960]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=6291456]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=128]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=2048]="IdentifierIsInJSDocNamespace",e))(Wr||{}),Hr=(e=>(e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Accessor=128]="Accessor",e[e.Abstract=256]="Abstract",e[e.Async=512]="Async",e[e.Default=1024]="Default",e[e.Const=2048]="Const",e[e.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",e[e.Deprecated=8192]="Deprecated",e[e.Override=16384]="Override",e[e.In=32768]="In",e[e.Out=65536]="Out",e[e.Decorator=131072]="Decorator",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=16476]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=117086]="TypeScriptModifier",e[e.ExportDefault=1025]="ExportDefault",e[e.All=258047]="All",e[e.Modifier=126975]="Modifier",e))(Hr||{}),$r=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))($r||{}),Gr=(e=>(e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(Gr||{}),Xr=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(Xr||{}),Yr=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.NumericLiteralFlags=1008]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags",e))(Yr||{}),Zr=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Zr||{}),ei=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(ei||{}),ti=class{},ni=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(ni||{}),ri=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(ri||{}),ii=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(ii||{}),oi=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(oi||{}),ai=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(ai||{}),si=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(si||{}),ci=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(ci||{}),_i=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(_i||{}),li=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(li||{}),ui=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask",e))(ui||{}),di=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(di||{}),pi=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(pi||{}),fi=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(fi||{}),mi=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(mi||{}),gi=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(gi||{}),hi=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(hi||{}),yi=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(yi||{}),vi=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(vi||{}),bi=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e))(bi||{}),xi=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.ClassWithBodyScopedClassBinding=65536]="ClassWithBodyScopedClassBinding",e[e.BodyScopedClassBinding=131072]="BodyScopedClassBinding",e[e.NeedsLoopOutParameter=262144]="NeedsLoopOutParameter",e[e.AssignmentsMarked=524288]="AssignmentsMarked",e[e.ClassWithConstructorReference=1048576]="ClassWithConstructorReference",e[e.ConstructorReferenceInClass=2097152]="ConstructorReferenceInClass",e[e.ContainsClassWithPrivateIdentifiers=4194304]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=8388608]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=16777216]="InCheckIdentifier",e))(xi||{}),ki=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.Primitive=134348796]="Primitive",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=205258751]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.NotPrimitiveUnion=36323363]="NotPrimitiveUnion",e))(ki||{}),Si=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e))(Si||{}),Ti=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(Ti||{}),Ci=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(Ci||{}),Ai=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(Ai||{}),wi=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(wi||{}),Di=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(Di||{}),Ei=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.PropagatingFlags=39]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(Ei||{}),Ni=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(Ni||{}),Fi=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(Fi||{}),Pi=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(Pi||{}),Ii=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(Ii||{}),Oi=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(Oi||{}),Li=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(Li||{}),Mi=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(Mi||{}),Ri=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(Ri||{}),Bi=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(Bi||{}),ji=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(ji||{}),Ji=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(Ji||{}),zi=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(zi||{}),Ui=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e))(Ui||{}),qi=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(qi||{}),Vi=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(Vi||{}),Qi=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(Qi||{}),Ki=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(Ki||{}),Wi=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(Wi||{}),Hi=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(Hi||{}),$i=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))($i||{}),Gi=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(Gi||{}),Xi=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(Xi||{}),Yi=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Yi||{}),Zi=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Zi||{}),eo=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.HasEndOfDeclarationMarker=8388608]="HasEndOfDeclarationMarker",e[e.Iterator=16777216]="Iterator",e[e.NoAsciiEscaping=33554432]="NoAsciiEscaping",e))(eo||{}),to=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(to||{}),no=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(no||{}),ro=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e))(ro||{}),io=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(io||{}),oo=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(oo||{}),ao=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(ao||{}),so=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(so||{}),co=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(co||{}),_o={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}}});function Co(e){let t=5381;for(let n=0;n{var i;return null==(i=e.get(o))?void 0:i.callbacks.slice().forEach((e=>e(t,n,r)))})),callbacks:[r]}),{close:()=>{const t=e.get(o);t&&an(t.callbacks,r)&&!t.callbacks.length&&(e.delete(o),LU(t))}}}function Fo(e,t){const n=e.mtime.getTime(),r=t.getTime();return n!==r&&(e.mtime=t,e.callback(e.fileName,Po(n,r),t),!0)}function Po(e,t){return 0===e?0:0===t?2:1}function Io(e){return xo(e)}function Oo(e){xo=e}function Lo({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:n,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:o,realpath:a,setTimeout:s,clearTimeout:c}){const _=new Map,l=ut(),u=new Map;let d;const p=Kt(!t),f=ln(t);return(t,n,r,i)=>r?m(t,i,n):e(t,n,r,i);function m(t,n,i){const a=f(t);let p=_.get(a);p?p.refCount++:(p={watcher:e(t,(e=>{b(e,n)||((null==n?void 0:n.synchronousWatchDirectory)?(g(a,e),v(t,a,n)):function(e,t,n,r){const i=_.get(t);i&&o(e,1)?function(e,t,n,r){const i=u.get(t);i?i.fileNames.push(n):u.set(t,{dirName:e,options:r,fileNames:[n]}),d&&(c(d),d=void 0),d=s(h,1e3)}(e,t,n,r):(g(t,n),y(i))}(t,a,e,n))}),!1,n),refCount:1,childWatches:r},_.set(a,p),v(t,a,n));const m=i&&{dirName:t,callback:i};return m&&l.add(a,m),{dirName:t,close:()=>{const e=In.checkDefined(_.get(a));m&&l.remove(a,m),e.refCount--,e.refCount||(_.delete(a),LU(e),e.childWatches.forEach(Nx))}}}function g(e,t,n){let r,i;vt(t)?r=t:i=t,l.forEach(((t,o)=>{if((!i||!0!==i.get(o))&&(o===e||fn(e,o)&&e[o.length]===zo))if(i)if(n){const e=i.get(o);e?e.push(...n):i.set(o,n.slice())}else i.set(o,!0);else t.forEach((({callback:e})=>e(r)))}))}function h(){d=void 0,Io("sysLog:: onTimerToUpdateChildWatches:: "+u.size);const e=_r(),t=new Map;for(;!d&&u.size;){const e=u.entries().next();In.assert(!e.done);const{value:[n,{dirName:r,options:i,fileNames:o}]}=e;u.delete(n);const a=v(r,n,i);g(n,t,a?void 0:o)}Io(`sysLog:: invokingWatchers:: Elapsed:: ${_r()-e}ms:: ${u.size}`),l.forEach(((e,n)=>{const r=t.get(n);r&&e.forEach((({callback:e,dirName:t})=>{ht(r)?r.forEach(e):e(t)}))})),Io(`sysLog:: Elapsed:: ${_r()-e}ms:: onTimerToUpdateChildWatches:: ${u.size} ${d}`)}function y(e){if(!e)return;const t=e.childWatches;e.childWatches=r;for(const e of t)e.close(),y(_.get(f(e.dirName)))}function v(e,t,n){const s=_.get(t);if(!s)return!1;let c;const l=Sn(o(e,1)?Z(i(e),(t=>{const r=ya(t,e);return b(r,n)||0!==p(r,va(a(r)))?void 0:r})):r,s.childWatches,((e,t)=>p(e,t.dirName)),(function(e){u(m(e,n))}),Nx,u);return s.childWatches=c||r,l;function u(e){(c||(c=[])).push(e)}}function b(e,r){return _e(bo,(n=>function(e,n){return!!rn(e,n)||!t&&rn(f(e),n)}(e,n)))||Mo(e,r,t,n)}}function Mo(e,t,n,r){return((null==t?void 0:t.excludeDirectories)||(null==t?void 0:t.excludeFiles))&&(UL(e,null==t?void 0:t.excludeFiles,n,r())||UL(e,null==t?void 0:t.excludeDirectories,n,r()))}function Ro(e,t,n,r,i){return(o,a)=>{if("rename"===o){const o=a?va(ma(e,a)):e;a&&Mo(o,n,r,i)||t(o)}}}function Bo({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:n,clearTimeout:r,fsWatchWorker:i,fileSystemEntryExists:o,useCaseSensitiveFileNames:a,getCurrentDirectory:s,fsSupportsRecursiveFsWatch:c,getAccessibleSortedChildDirectories:_,realpath:l,tscWatchFile:u,useNonPollingWatchers:d,tscWatchDirectory:p,inodeWatching:f,sysLog:m}){const g=new Map,h=new Map,y=new Map;let v,b,x,k,S=!1;return{watchFile:T,watchDirectory:function(e,t,i,u){return c?N(e,1,Ro(e,t,u,a,s),i,500,OU(u)):(k||(k=Lo({useCaseSensitiveFileNames:a,getCurrentDirectory:s,fileSystemEntryExists:o,getAccessibleSortedChildDirectories:_,watchDirectory:D,realpath:l,setTimeout:n,clearTimeout:r})),k(e,t,i,u))}};function T(e,n,r,i){i=function(e,t){if(e&&void 0!==e.watchFile)return e;switch(u){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return w(4,1,e);case"UseFsEventsWithFallbackDynamicPolling":return w(4,2,e);case"UseFsEventsOnParentDirectory":t=!0;default:return t?w(5,1,e):{watchFile:4}}}(i,d);const o=In.checkDefined(i.watchFile);switch(o){case 0:return E(e,n,250,void 0);case 1:return E(e,n,r,void 0);case 2:return C()(e,n,r,void 0);case 3:return A()(e,n,void 0,void 0);case 4:return N(e,0,function(e,t,n){return(r,i,o)=>{"rename"===r?(o||(o=n(e)||go),t(e,o!==go?0:2,o)):t(e,1,o)}}(e,n,t),!1,r,OU(i));case 5:return x||(x=function(e,t){const n=ut(),r=new Map,i=ln(t);return function(t,o,a,s){const c=i(t);n.add(c,o);const _=sa(c)||".",l=r.get(_)||function(t,o,a){const s=e(t,1,((e,r,o)=>{if(!vt(r))return;const a=ya(r,t),s=a&&n.get(i(a));if(s)for(const e of s)e(a,1,o)}),!1,500,a);return s.referenceCount=0,r.set(o,s),s}(sa(t)||".",_,s);return l.referenceCount++,{close:()=>{1===l.referenceCount?(l.close(),r.delete(_)):l.referenceCount--,n.remove(c,o)}}}}(N,a)),x(e,n,r,OU(i));default:In.assertNever(o)}}function C(){return v||(v=function(e){const t=[],n=[],r=a(250),i=a(500),o=a(2e3);return function(n,r,i){const o={fileName:n,callback:r,unchangedPolls:0,mtime:wo(e,n)};return t.push(o),u(o,i),{close:()=>{o.isClosed=!0,_n(t,o)}}};function a(e){const t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function s(e){e.pollIndex=_(e,e.pollingInterval,e.pollIndex,yo[e.pollingInterval]),e.length?p(e.pollingInterval):(In.assert(0===e.pollIndex),e.pollScheduled=!1)}function c(e){_(n,250,0,n.length),s(e),!e.pollScheduled&&n.length&&p(250)}function _(t,r,i,o){return Eo(e,t,i,o,(function(e,i,o){var a;o?(e.unchangedPolls=0,t!==n&&(t[i]=void 0,a=e,n.push(a),d(250))):e.unchangedPolls!==vo[r]?e.unchangedPolls++:t===n?(e.unchangedPolls=1,t[i]=void 0,u(e,250)):2e3!==r&&(e.unchangedPolls++,t[i]=void 0,u(e,250===r?500:2e3))}))}function l(e){switch(e){case 250:return r;case 500:return i;case 2e3:return o}}function u(e,t){l(t).push(e),d(t)}function d(e){l(e).pollScheduled||p(e)}function p(t){l(t).pollScheduled=e.setTimeout(250===t?c:s,t,l(t))}}({getModifiedTime:t,setTimeout:n}))}function A(){return b||(b=function(e){const t=[];let n,r=0;return function(n,r){const i={fileName:n,callback:r,mtime:wo(e,n)};return t.push(i),o(),{close:()=>{i.isClosed=!0,_n(t,i)}}};function i(){n=void 0,r=Eo(e,t,r,yo[250]),o()}function o(){t.length&&!n&&(n=e.setTimeout(i,2e3))}}({getModifiedTime:t,setTimeout:n}))}function w(e,t,n){const r=null==n?void 0:n.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===r?t:r}}function D(e,t,n,r){In.assert(!n);const i=function(e){if(e&&void 0!==e.watchDirectory)return e;switch(p){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const t=null==e?void 0:e.fallbackPolling;return{watchDirectory:0,fallbackPolling:void 0!==t?t:void 0}}}(r),o=In.checkDefined(i.watchDirectory);switch(o){case 1:return E(e,(()=>t(e)),500,void 0);case 2:return C()(e,(()=>t(e)),500,void 0);case 3:return A()(e,(()=>t(e)),void 0,void 0);case 0:return N(e,1,Ro(e,t,r,a,s),n,500,OU(i));default:In.assertNever(o)}}function E(t,n,r,i){return No(g,a,t,n,(n=>e(t,n,r,i)))}function N(e,n,r,s,c,_){return No(s?y:h,a,e,r,(r=>function(e,n,r,a,s,c){let _,l;f&&(_=e.substring(e.lastIndexOf(zo)),l=_.slice(zo.length));let u=o(e,n)?p():y();return{close:()=>{u&&(u.close(),u=void 0)}};function d(t){u&&(m(`sysLog:: ${e}:: Changing watcher to ${t===p?"Present":"Missing"}FileSystemEntryWatcher`),u.close(),u=t())}function p(){if(S)return m(`sysLog:: ${e}:: Defaulting to watchFile`),h();try{const t=i(e,a,f?g:r);return t.on("error",(()=>{r("rename",""),d(y)})),t}catch(t){return S||(S="ENOSPC"===t.code),m(`sysLog:: ${e}:: Changing to watchFile`),h()}}function g(n,i){let o;if(i&&en(i,"~")&&(o=i,i=i.slice(0,i.length-1)),"rename"!==n||i&&i!==l&&!en(i,_))o&&r(n,o),r(n,i);else{const a=t(e)||go;o&&r(n,o,a),r(n,i,a),f?d(a===go?y:p):a===go&&d(y)}}function h(){return T(e,function(e){return(t,n,r)=>e(1===n?"change":"rename","",r)}(r),s,c)}function y(){return T(e,((n,i,o)=>{0===i&&(o||(o=t(e)||go),o!==go&&(r("rename","",o),d(p)))}),s,c)}}(e,n,r,s,c,_)))}}function jo(e){const t=e.writeFile;e.writeFile=(n,r,i)=>Ov(n,r,!!i,((n,r,i)=>t.call(e,n,r,i)),(t=>e.createDirectory(t)),(t=>e.directoryExists(t)))}function Jo(e){So=e}var zo,Uo,qo,Vo,Qo,Ko=b({"src/compiler/sys.ts"(){XK(),fo=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(fo||{}),mo=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(mo||{}),go=new Date(0),yo=Do(ho={Low:32,Medium:64,High:256}),vo=Do(ho),bo=["/node_modules/.","/.git","/.#"],xo=St,ko=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(ko||{}),(So=(()=>{let e;return Fn()&&(e=function(){const e=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,t=require("fs"),n=require("path"),r=require("os");let i,o;try{i=require("crypto")}catch(e){i=void 0}let a="./profile.cpuprofile";const s=require("buffer").Buffer,c="linux"===process.platform||"darwin"===process.platform,_=r.platform(),l="win32"!==_&&"win64"!==_&&!T((y=__filename,y.replace(/\w/g,(e=>{const t=e.toUpperCase();return e===t?e.toLowerCase():t})))),u=t.realpathSync.native?"win32"===process.platform?function(e){return e.length<260?t.realpathSync.native(e):t.realpathSync(e)}:t.realpathSync.native:t.realpathSync,d=__filename.endsWith("sys.js")?n.join(n.dirname(__dirname),"__fake__.js"):__filename,p="win32"===process.platform||"darwin"===process.platform,f=Ft((()=>process.cwd())),{watchFile:m,watchDirectory:g}=Bo({pollingWatchFileWorker:function(e,n,r){let i;return t.watchFile(e,{persistent:!0,interval:r},o),{close:()=>t.unwatchFile(e,o)};function o(t,r){const o=0==+r.mtime||2===i;if(0==+t.mtime){if(o)return;i=2}else if(o)i=0;else{if(+t.mtime==+r.mtime)return;i=1}n(e,i,t.mtime)}},getModifiedTime:A,setTimeout,clearTimeout,fsWatchWorker:function(e,n,r){return t.watch(e,p?{persistent:!0,recursive:!!n}:{persistent:!0},r)},useCaseSensitiveFileNames:l,getCurrentDirectory:f,fileSystemEntryExists:S,fsSupportsRecursiveFsWatch:p,getAccessibleSortedChildDirectories:e=>k(e).directories,realpath:C,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:c,sysLog:Io}),h={args:process.argv.slice(2),newLine:r.EOL,useCaseSensitiveFileNames:l,write(e){process.stdout.write(e)},getWidthOfTerminal:()=>process.stdout.columns,writeOutputIsTTY:()=>process.stdout.isTTY,readFile:function(e,n){gr.logStartReadFile(e);const r=function(e,n){let r;try{r=t.readFileSync(e)}catch(e){return}let i=r.length;if(i>=2&&254===r[0]&&255===r[1]){i&=-2;for(let e=0;e=2&&255===r[0]&&254===r[1]?r.toString("utf16le",2):i>=3&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")}(e);return gr.logStopReadFile(),r},writeFile:function(e,n,r){let i;gr.logEvent("WriteFile: "+e),r&&(n="\ufeff"+n);try{i=t.openSync(e,"w"),t.writeSync(i,n,void 0,"utf8")}finally{void 0!==i&&t.closeSync(i)}},watchFile:m,watchDirectory:g,resolvePath:e=>n.resolve(e),fileExists:T,directoryExists:function(e){return S(e,1)},createDirectory(e){if(!h.directoryExists(e))try{t.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:()=>d,getCurrentDirectory:f,getDirectories:function(e){return k(e).directories.slice()},getEnvironmentVariable:e=>process.env[e]||"",readDirectory:function(e,t,n,r,i){return DS(e,t,n,r,l,process.cwd(),i,k,C)},getModifiedTime:A,setModifiedTime:function(e,n){try{t.utimesSync(e,n,n)}catch(e){return}},deleteFile:function(e){try{return t.unlinkSync(e)}catch(e){return}},createHash:i?w:Co,createSHA256Hash:i?w:void 0,getMemoryUsage:()=>(ee.gc&&ee.gc(),process.memoryUsage().heapUsed),getFileSize(e){try{const t=v(e);if(null==t?void 0:t.isFile())return t.size}catch(e){}return 0},exit(e){b((()=>process.exit(e)))},enableCPUProfiler:function(e,t){if(o)return t(),!1;const n=require("inspector");if(!n||!n.Session)return t(),!1;const r=new n.Session;return r.connect(),r.post("Profiler.enable",(()=>{r.post("Profiler.start",(()=>{o=r,a=e,t()}))})),!0},disableCPUProfiler:b,cpuProfilingEnabled:()=>!!o||R(process.execArgv,"--cpu-prof")||R(process.execArgv,"--prof"),realpath:C,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||_e(process.execArgv,(e=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e))),tryEnableSourceMapsForHost(){try{require("source-map-support").install()}catch(e){}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("c")},setBlocking:()=>{process.stdout&&process.stdout._handle&&process.stdout._handle.setBlocking&&process.stdout._handle.setBlocking(!0)},bufferFrom:x,base64decode:e=>x(e,"base64").toString("utf8"),base64encode:e=>x(e).toString("base64"),require:(e,t)=>{try{const n=zM(t,e,h);return{module:ne(n),modulePath:n,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};var y;return h;function v(e){return t.statSync(e,{throwIfNoEntry:!1})}function b(r){if(o&&"stopping"!==o){const i=o;return o.post("Profiler.stop",((s,{profile:c})=>{var _;if(!s){try{(null==(_=v(a))?void 0:_.isDirectory())&&(a=n.join(a,`${(new Date).toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch(e){}try{t.mkdirSync(n.dirname(a),{recursive:!0})}catch(e){}t.writeFileSync(a,JSON.stringify(function(t){let r=0;const i=new Map,o=pa(n.dirname(d)),a=`file://${1===aa(o)?"":"/"}${o}`;for(const n of t.nodes)if(n.callFrame.url){const t=pa(n.callFrame.url);Na(a,t,l)?n.callFrame.url=Ma(a,t,a,ln(l),!0):e.test(t)||(n.callFrame.url=(i.has(t)?i:i.set(t,`external${r}.js`)).get(t),r++)}return t}(c)))}o=void 0,i.disconnect(),r()})),o="stopping",!0}return r(),!1}function x(e,t){return s.from&&s.from!==Int8Array.from?s.from(e,t):new s(e,t)}function k(e){gr.logEvent("ReadDir: "+(e||"."));try{const n=t.readdirSync(e||".",{withFileTypes:!0}),r=[],i=[];for(const t of n){const n="string"==typeof t?t:t.name;if("."===n||".."===n)continue;let o;if("string"==typeof t||t.isSymbolicLink()){const t=ma(e,n);try{if(o=v(t),!o)continue}catch(e){continue}}else o=t;o.isFile()?r.push(n):o.isDirectory()&&i.push(n)}return r.sort(),i.sort(),{files:r,directories:i}}catch(e){return ep}}function S(e,t){const n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const r=v(e);if(!r)return!1;switch(t){case 0:return r.isFile();case 1:return r.isDirectory();default:return!1}}catch(e){return!1}finally{Error.stackTraceLimit=n}}function T(e){return S(e,0)}function C(e){try{return u(e)}catch(t){return e}}function A(e){var t;const n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return null==(t=v(e))?void 0:t.mtime}catch(e){return}finally{Error.stackTraceLimit=n}}function w(e){const t=i.createHash("sha256");return t.update(e),t.digest("hex")}}()),e&&jo(e),e})())&&So.getEnvironmentVariable&&(function(e){if(!e.getEnvironmentVariable)return;const t=function(e,t){const r=n("TSC_WATCH_POLLINGINTERVAL");return!!r&&(i("Low"),i("Medium"),i("High"),!0);function i(e){t[e]=r[e]||t[e]}}(0,mo);function n(t){let n;return r("Low"),r("Medium"),r("High"),n;function r(r){const i=function(t,n){return e.getEnvironmentVariable(`${t}_${n.toUpperCase()}`)}(t,r);i&&((n||(n={}))[r]=Number(i))}}function r(e,r){const i=n(e);return(t||i)&&Do(i?{...r,...i}:r)}yo=r("TSC_WATCH_POLLINGCHUNKSIZE",ho)||yo,vo=r("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",ho)||vo}(So),In.setAssertionLevel(/^development$/i.test(So.getEnvironmentVariable("NODE_ENV"))?1:0)),So&&So.debugMode&&(In.isDebugging=!0)}});function Wo(e){return 47===e||92===e}function Ho(e){return oa(e)<0}function $o(e){return oa(e)>0}function Go(e){const t=oa(e);return t>0&&t===e.length}function Xo(e){return 0!==oa(e)}function Yo(e){return/^\.\.?($|[\\/])/.test(e)}function Zo(e){return!Xo(e)&&!Yo(e)}function ea(e){return rn(ca(e),".")}function ta(e,t){return e.length>t.length&&en(e,t)}function na(e,t){for(const n of t)if(ta(e,n))return!0;return!1}function ra(e){return e.length>0&&Wo(e.charCodeAt(e.length-1))}function ia(e){return e>=97&&e<=122||e>=65&&e<=90}function oa(e){if(!e)return 0;const t=e.charCodeAt(0);if(47===t||92===t){if(e.charCodeAt(1)!==t)return 1;const n=e.indexOf(47===t?zo:Uo,2);return n<0?e.length:n+1}if(ia(t)&&58===e.charCodeAt(1)){const t=e.charCodeAt(2);if(47===t||92===t)return 3;if(2===e.length)return 2}const n=e.indexOf(qo);if(-1!==n){const t=n+qo.length,r=e.indexOf(zo,t);if(-1!==r){const i=e.slice(0,n),o=e.slice(t,r);if("file"===i&&(""===o||"localhost"===o)&&ia(e.charCodeAt(r+1))){const t=function(e,t){const n=e.charCodeAt(t);if(58===n)return t+1;if(37===n&&51===e.charCodeAt(t+1)){const n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(e,r+2);if(-1!==t){if(47===e.charCodeAt(t))return~(t+1);if(t===e.length)return~t}}return~(r+1)}return~e.length}return 0}function aa(e){const t=oa(e);return t<0?~t:t}function sa(e){const t=aa(e=pa(e));return t===e.length?e:(e=ka(e)).slice(0,Math.max(t,e.lastIndexOf(zo)))}function ca(e,t,n){if(aa(e=pa(e))===e.length)return"";const r=(e=ka(e)).slice(Math.max(aa(e),e.lastIndexOf(zo)+1)),i=void 0!==t&&void 0!==n?la(r,t,n):void 0;return i?r.slice(0,r.length-i.length):r}function _a(e,t,n){if(fn(t,".")||(t="."+t),e.length>=t.length&&46===e.charCodeAt(e.length-t.length)){const r=e.slice(e.length-t.length);if(n(r,t))return r}}function la(e,t,n){if(t)return function(e,t,n){if("string"==typeof t)return _a(e,t,n)||"";for(const r of t){const t=_a(e,r,n);if(t)return t}return""}(ka(e),t,n?Rt:Bt);const r=ca(e),i=r.lastIndexOf(".");return i>=0?r.substring(i):""}function ua(e,t=""){return function(e,t){const n=e.substring(0,t),r=e.substring(t).split(zo);return r.length&&!Be(r)&&r.pop(),[n,...r]}(e=ma(t,e),aa(e))}function da(e){return 0===e.length?"":(e[0]&&Sa(e[0]))+e.slice(1).join(zo)}function pa(e){return-1!==e.indexOf("\\")?e.replace(Vo,zo):e}function fa(e){if(!_e(e))return[];const t=[e[0]];for(let n=1;n1){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(r)}}return t}function ma(e,...t){e&&(e=pa(e));for(let n of t)n&&(n=pa(n),e=e&&0===aa(n)?Sa(e)+n:n);return e}function ga(e,...t){return va(_e(t)?ma(e,...t):pa(e))}function ha(e,t){return fa(ua(e,t))}function ya(e,t){return da(ha(e,t))}function va(e){if(e=pa(e),!Qo.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!Qo.test(e)))return e;const n=da(fa(ua(e)));return n&&ra(e)?Sa(n):n}function ba(e,t){return 0===(n=ha(e,t)).length?"":n.slice(1).join(zo);var n}function xa(e,t,n){return n($o(e)?va(e):ya(e,t))}function ka(e){return ra(e)?e.substr(0,e.length-1):e}function Sa(e){return ra(e)?e:e+zo}function Ta(e){return Xo(e)||Yo(e)?e:"./"+e}function Ca(e,t,n,r){const i=void 0!==n&&void 0!==r?la(e,n,r):la(e);return i?e.slice(0,e.length-i.length)+(fn(t,".")?t:"."+t):e}function Aa(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=e.substring(0,aa(e)),i=t.substring(0,aa(t)),o=qt(r,i);if(0!==o)return o;const a=e.substring(r.length),s=t.substring(i.length);if(!Qo.test(a)&&!Qo.test(s))return n(a,s);const c=fa(ua(e)),_=fa(ua(t)),l=Math.min(c.length,_.length);for(let e=1;e0==aa(t)>0,"Paths must either both be absolute or both be relative"),da(Pa(e,t,"boolean"==typeof n&&n?Rt:Bt,"function"==typeof n?n:wt))}function Oa(e,t,n){return $o(e)?Ma(t,e,t,n,!1):e}function La(e,t,n){return Ta(Ia(sa(e),t,n))}function Ma(e,t,n,r,i){const o=Pa(ga(n,e),ga(n,t),Bt,r),a=o[0];if(i&&$o(a)){const e=a.charAt(0)===zo?"file://":"file:///";o[0]=e+a}return da(o)}function Ra(e,t){for(;;){const n=t(e);if(void 0!==n)return n;const r=sa(e);if(r===e)return;e=r}}function Ba(e){return en(e,"/node_modules")}var ja,Ja=b({"src/compiler/path.ts"(){XK(),zo="/",Uo="\\",qo="://",Vo=/\\/g,Qo=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function za(e,t,n,r,i,o,a){return{code:e,category:t,key:n,message:r,reportsUnnecessary:i,elidedInCompatabilityPyramid:o,reportsDeprecated:a}}var Ua,qa,Va,Qa,Ka,Wa,Ha,$a,Ga,Xa,Ya,Za,es,ts,ns,rs,is=b({"src/compiler/diagnosticInformationMap.generated.ts"(){To(),ja={Unterminated_string_literal:za(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:za(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:za(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:za(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:za(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:za(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:za(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:za(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:za(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:za(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:za(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:za(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:za(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:za(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:za(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:za(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:za(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:za(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:za(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:za(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:za(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:za(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:za(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:za(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:za(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:za(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:za(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:za(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:za(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:za(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:za(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:za(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:za(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:za(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:za(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:za(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:za(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:za(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:za(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:za(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:za(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:za(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:za(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:za(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:za(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:za(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:za(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:za(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:za(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:za(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:za(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:za(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:za(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:za(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:za(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:za(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:za(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:za(1085,1,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:za(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:za(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:za(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:za(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:za(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:za(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:za(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:za(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:za(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:za(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:za(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:za(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:za(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:za(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:za(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:za(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:za(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:za(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:za(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:za(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:za(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:za(1110,1,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:za(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:za(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:za(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:za(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:za(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:za(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:za(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:za(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:za(1121,1,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:za(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:za(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:za(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:za(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:za(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:za(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:za(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:za(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:za(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:za(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:za(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:za(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:za(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:za(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:za(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:za(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:za(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:za(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:za(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:za(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:za(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:za(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:za(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:za(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:za(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),const_declarations_must_be_initialized:za(1155,1,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:za(1156,1,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:za(1157,1,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:za(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:za(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:za(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:za(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:za(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:za(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:za(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:za(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:za(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:za(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:za(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:za(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:za(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:za(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:za(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:za(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:za(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:za(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:za(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:za(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:za(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:za(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:za(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:za(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:za(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:za(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:za(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:za(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:za(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:za(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:za(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:za(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:za(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:za(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:za(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:za(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:za(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:za(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:za(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:za(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:za(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:za(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:za(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:za(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:za(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:za(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:za(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:za(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:za(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:za(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:za(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:za(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:za(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:za(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:za(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:za(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:za(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:za(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:za(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:za(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:za(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:za(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:za(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:za(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:za(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:za(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:za(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:za(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:za(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:za(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:za(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:za(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:za(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:za(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:za(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:za(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:za(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:za(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:za(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:za(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:za(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:za(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:za(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:za(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:za(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:za(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:za(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:za(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:za(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:za(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:za(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:za(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:za(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:za(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:za(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:za(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:za(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:za(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:za(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:za(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:za(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:za(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:za(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:za(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:za(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:za(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:za(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:za(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:za(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:za(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:za(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:za(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:za(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:za(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:za(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:za(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:za(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:za(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:za(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:za(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),with_statements_are_not_allowed_in_an_async_function_block:za(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:za(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:za(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:za(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:za(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:za(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:za(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:za(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:za(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:za(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:za(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:za(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:za(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:za(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:za(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:za(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:za(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:za(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:za(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:za(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:za(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:za(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:za(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:za(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:za(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:za(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:za(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:za(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:za(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:za(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:za(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:za(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:za(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:za(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:za(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:za(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:za(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:za(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:za(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:za(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:za(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:za(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:za(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:za(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:za(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:za(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:za(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:za(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:za(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:za(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:za(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:za(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:za(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:za(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:za(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:za(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:za(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:za(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:za(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:za(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:za(1373,3,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:za(1374,3,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:za(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:za(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:za(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:za(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:za(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:za(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:za(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:za(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:za(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:za(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:za(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:za(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:za(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:za(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:za(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:za(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:za(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:za(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:za(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:za(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:za(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:za(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:za(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:za(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:za(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:za(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:za(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:za(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:za(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:za(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:za(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:za(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:za(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:za(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:za(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:za(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:za(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:za(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:za(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:za(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:za(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:za(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:za(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:za(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:za(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:za(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:za(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:za(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:za(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:za(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:za(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:za(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:za(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:za(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:za(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:za(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:za(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:za(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:za(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:za(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:za(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:za(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:za(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:za(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:za(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:za(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:za(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:za(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:za(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:za(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:za(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:za(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:za(1452,1,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:za(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:za(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:za(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:za(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:za(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:za(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",'File is ECMAScript module because \'{0}\' has field "type" with value "module"'),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:za(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",'File is CommonJS module because \'{0}\' has field "type" whose value is not "module"'),File_is_CommonJS_module_because_0_does_not_have_field_type:za(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460","File is CommonJS module because '{0}' does not have field \"type\""),File_is_CommonJS_module_because_package_json_was_not_found:za(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:za(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:za(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:za(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:za(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:za(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:za(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:za(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:za(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:za(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:za(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479","The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"{0}\")' call instead."),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:za(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:za(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481","To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field `\"type\": \"module\"` to '{1}'."),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:za(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:za(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:za(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:za(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:za(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),The_types_of_0_are_incompatible_between_these_types:za(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:za(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:za(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:za(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:za(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:za(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:za(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:za(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:za(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:za(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:za(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:za(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:za(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:za(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:za(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:za(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:za(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:za(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:za(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:za(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:za(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:za(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:za(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:za(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:za(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:za(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:za(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:za(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:za(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:za(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:za(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:za(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:za(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:za(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:za(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:za(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:za(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:za(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:za(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:za(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:za(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:za(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:za(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:za(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:za(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:za(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:za(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:za(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:za(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:za(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:za(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:za(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:za(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:za(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:za(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:za(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:za(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:za(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:za(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:za(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:za(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:za(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:za(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:za(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:za(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:za(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:za(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:za(2355,1,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:za(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:za(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:za(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:za(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:za(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:za(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:za(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:za(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:za(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:za(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:za(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:za(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:za(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:za(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:za(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:za(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:za(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:za(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:za(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:za(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:za(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:za(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:za(2380,1,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),Overload_signatures_must_all_be_exported_or_non_exported:za(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:za(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:za(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:za(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:za(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:za(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:za(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:za(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:za(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:za(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:za(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:za(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:za(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:za(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:za(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:za(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:za(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:za(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:za(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:za(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:za(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:za(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:za(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:za(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:za(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:za(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:za(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:za(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:za(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:za(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:za(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:za(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:za(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:za(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:za(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:za(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:za(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:za(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:za(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:za(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:za(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:za(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:za(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:za(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:za(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:za(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:za(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:za(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:za(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:za(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:za(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:za(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:za(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:za(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:za(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:za(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:za(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:za(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:za(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:za(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:za(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:za(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:za(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:za(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:za(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:za(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:za(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:za(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:za(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:za(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:za(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:za(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:za(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:za(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:za(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:za(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:za(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:za(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:za(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:za(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:za(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:za(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:za(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:za(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:za(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:za(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:za(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:za(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:za(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:za(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:za(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:za(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:za(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:za(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:za(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:za(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:za(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:za(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:za(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:za(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:za(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:za(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:za(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:za(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:za(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:za(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:za(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:za(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:za(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:za(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:za(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:za(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:za(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:za(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:za(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:za(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:za(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:za(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:za(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:za(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:za(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:za(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:za(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:za(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:za(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:za(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:za(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:za(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:za(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:za(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:za(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:za(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:za(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:za(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:za(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:za(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:za(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:za(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:za(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:za(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:za(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:za(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:za(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:za(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:za(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:za(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:za(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:za(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:za(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:za(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:za(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:za(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:za(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:za(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:za(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:za(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:za(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:za(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:za(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:za(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:za(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:za(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:za(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:za(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:za(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:za(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:za(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:za(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:za(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:za(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:za(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:za(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:za(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:za(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:za(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:za(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:za(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:za(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:za(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:za(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:za(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:za(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:za(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:za(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:za(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:za(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:za(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:za(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:za(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:za(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:za(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:za(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:za(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:za(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:za(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:za(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:za(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:za(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:za(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:za(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:za(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:za(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:za(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:za(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:za(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:za(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:za(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:za(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:za(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:za(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:za(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:za(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:za(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:za(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:za(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:za(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:za(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:za(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:za(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:za(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:za(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:za(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:za(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:za(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:za(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:za(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:za(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:za(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:za(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:za(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:za(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:za(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:za(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:za(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:za(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:za(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:za(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:za(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:za(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:za(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:za(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:za(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:za(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:za(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:za(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:za(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:za(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:za(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:za(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:za(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:za(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:za(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:za(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:za(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:za(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:za(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:za(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:za(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:za(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:za(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:za(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:za(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:za(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:za(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:za(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:za(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:za(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:za(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:za(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:za(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:za(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:za(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:za(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:za(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:za(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:za(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:za(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:za(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:za(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:za(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:za(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:za(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:za(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:za(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:za(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:za(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:za(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:za(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:za(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:za(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:za(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:za(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:za(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:za(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:za(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:za(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:za(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:za(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:za(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:za(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:za(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:za(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:za(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:za(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:za(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:za(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:za(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:za(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:za(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:za(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:za(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:za(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:za(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:za(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:za(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:za(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:za(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:za(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:za(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:za(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:za(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:za(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:za(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:za(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:za(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:za(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:za(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:za(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:za(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:za(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:za(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:za(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:za(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:za(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:za(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:za(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:za(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:za(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:za(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:za(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:za(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:za(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:za(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:za(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:za(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:za(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:za(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:za(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:za(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:za(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:za(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:za(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:za(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:za(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:za(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:za(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:za(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:za(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:za(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:za(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:za(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:za(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:za(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:za(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:za(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:za(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:za(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:za(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:za(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:za(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:za(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:za(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:za(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:za(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:za(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:za(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:za(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:za(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:za(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:za(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:za(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:za(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:za(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:za(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:za(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:za(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:za(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:za(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:za(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:za(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:za(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:za(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:za(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:za(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:za(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:za(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:za(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:za(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:za(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:za(2836,1,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:za(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:za(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:za(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes:za(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:za(2841,1,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:za(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:za(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:za(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:za(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:za(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),Import_declaration_0_is_using_private_name_1:za(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:za(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:za(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:za(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:za(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:za(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:za(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:za(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:za(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:za(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:za(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:za(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:za(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:za(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:za(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:za(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:za(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:za(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:za(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:za(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:za(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:za(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:za(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:za(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:za(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:za(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:za(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:za(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:za(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:za(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:za(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:za(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:za(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:za(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:za(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:za(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:za(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:za(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:za(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:za(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:za(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:za(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:za(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:za(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:za(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:za(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:za(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:za(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:za(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:za(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:za(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:za(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:za(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:za(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:za(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:za(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:za(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:za(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:za(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:za(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:za(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:za(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:za(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:za(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:za(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:za(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:za(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:za(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:za(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:za(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:za(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:za(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:za(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:za(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:za(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:za(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:za(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:za(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:za(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:za(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:za(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:za(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:za(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:za(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:za(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:za(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:za(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:za(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:za(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:za(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:za(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:za(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:za(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:za(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:za(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:za(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:za(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:za(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:za(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:za(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:za(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:za(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:za(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:za(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:za(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:za(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:za(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:za(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:za(4125,1,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:za(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:za(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:za(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:za(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:za(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:za(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:za(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:za(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:za(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:za(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:za(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:za(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:za(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:za(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:za(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:za(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:za(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:za(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:za(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:za(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:za(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:za(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:za(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:za(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:za(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:za(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:za(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:za(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:za(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:za(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:za(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:za(5071,1,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:za(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:za(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:za(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:za(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:za(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:za(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:za(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:za(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:za(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:za(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:za(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:za(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:za(5084,1,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:za(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:za(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:za(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:za(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:za(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:za(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:za(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:za(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:za(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:za(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later:za(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:za(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:za(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:za(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:za(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101","Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '\"ignoreDeprecations\": \"{2}\"' to silence this error."),Option_0_has_been_removed_Please_remove_it_from_your_configuration:za(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:za(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:za(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:za(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:za(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:za(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107","Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '\"ignoreDeprecations\": \"{3}\"' to silence this error."),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:za(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:za(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:za(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:za(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:za(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:za(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:za(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:za(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:za(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:za(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:za(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:za(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:za(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:za(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:za(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:za(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:za(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:za(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:za(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:za(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:za(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:za(6024,3,"options_6024","options"),file:za(6025,3,"file_6025","file"),Examples_Colon_0:za(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:za(6027,3,"Options_Colon_6027","Options:"),Version_0:za(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:za(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:za(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:za(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:za(6034,3,"KIND_6034","KIND"),FILE:za(6035,3,"FILE_6035","FILE"),VERSION:za(6036,3,"VERSION_6036","VERSION"),LOCATION:za(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:za(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:za(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:za(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:za(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:za(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:za(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:za(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:za(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:za(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:za(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:za(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:za(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:za(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:za(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:za(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:za(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:za(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:za(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:za(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:za(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:za(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:za(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:za(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:za(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:za(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:za(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:za(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:za(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:za(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:za(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:za(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:za(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:za(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:za(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:za(6081,3,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:za(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:za(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:za(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:za(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:za(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:za(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:za(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:za(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:za(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:za(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:za(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:za(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:za(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:za(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:za(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:za(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:za(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:za(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:za(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:za(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:za(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:za(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:za(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:za(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:za(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:za(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:za(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:za(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:za(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:za(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:za(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:za(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:za(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:za(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:za(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:za(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:za(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:za(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:za(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:za(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:za(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:za(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:za(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:za(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:za(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:za(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:za(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:za(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:za(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:za(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:za(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:za(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:za(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:za(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:za(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:za(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:za(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:za(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:za(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:za(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:za(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:za(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:za(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:za(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:za(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:za(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:za(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:za(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:za(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:za(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:za(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:za(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:za(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:za(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:za(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:za(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:za(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Do_not_truncate_error_messages:za(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:za(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:za(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:za(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:za(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:za(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:za(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:za(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:za(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:za(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:za(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:za(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:za(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:za(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:za(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:za(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:za(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:za(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:za(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:za(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:za(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:za(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:za(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:za(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:za(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:za(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:za(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:za(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:za(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:za(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:za(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:za(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:za(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:za(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:za(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:za(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:za(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:za(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:za(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:za(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:za(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:za(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:za(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:za(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:za(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:za(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:za(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:za(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:za(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:za(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:za(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:za(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:za(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:za(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:za(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:za(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:za(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:za(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:za(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:za(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:za(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:za(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:za(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:za(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:za(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:za(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:za(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:za(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:za(6244,3,"Modules_6244","Modules"),File_Management:za(6245,3,"File_Management_6245","File Management"),Emit:za(6246,3,"Emit_6246","Emit"),JavaScript_Support:za(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:za(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:za(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:za(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:za(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:za(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:za(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:za(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:za(6255,3,"Projects_6255","Projects"),Output_Formatting:za(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:za(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:za(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_1:za(6259,3,"Found_1_error_in_1_6259","Found 1 error in {1}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:za(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:za(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:za(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:za(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:za(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:za(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:za(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:za(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:za(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:za(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:za(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:za(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:za(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:za(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278","There are types at '{0}', but this result could not be resolved when respecting package.json \"exports\". The '{1}' library may need to update its package.json or typings."),Enable_project_compilation:za(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:za(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:za(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:za(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:za(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:za(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:za(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:za(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:za(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:za(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:za(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:za(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:za(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:za(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:za(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:za(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:za(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:za(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:za(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:za(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:za(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:za(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:za(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:za(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:za(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:za(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:za(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:za(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:za(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:za(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:za(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:za(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:za(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:za(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:za(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:za(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:za(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:za(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:za(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:za(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:za(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:za(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:za(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:za(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:za(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:za(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:za(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:za(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:za(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:za(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:za(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:za(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:za(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:za(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:za(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:za(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:za(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:za(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:za(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:za(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:za(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:za(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:za(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:za(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:za(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:za(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:za(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:za(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:za(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:za(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:za(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:za(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:za(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:za(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:za(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:za(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:za(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:za(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:za(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:za(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:za(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:za(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:za(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:za(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:za(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:za(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:za(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:za(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:za(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:za(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:za(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:za(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:za(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:za(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:za(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:za(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:za(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:za(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:za(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:za(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:za(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:za(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:za(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:za(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:za(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:za(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:za(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:za(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:za(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:za(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:za(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:za(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:za(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:za(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:za(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:za(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:za(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:za(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:za(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:za(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:za(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:za(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:za(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:za(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:za(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:za(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:za(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:za(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:za(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:za(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:za(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:za(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:za(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:za(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:za(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:za(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:za(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:za(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:za(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:za(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:za(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:za(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:za(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:za(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:za(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:za(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:za(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:za(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:za(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:za(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:za(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:za(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:za(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:za(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:za(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:za(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:za(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:za(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:za(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:za(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:za(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:za(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:za(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:za(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:za(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:za(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:za(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:za(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:za(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:za(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:za(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:za(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:za(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:za(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:za(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:za(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:za(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:za(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:za(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:za(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:za(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:za(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:za(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:za(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:za(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:za(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:za(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:za(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:za(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:za(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:za(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:za(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:za(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:za(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:za(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:za(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:za(6902,3,"type_Colon_6902","type:"),default_Colon:za(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:za(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:za(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:za(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:za(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:za(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:za(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:za(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:za(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:za(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:za(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:za(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:za(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:za(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:za(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:za(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:za(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:za(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:za(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:za(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:za(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:za(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:za(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:za(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:za(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:za(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:za(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:za(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:za(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:za(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:za(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:za(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:za(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:za(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:za(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:za(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:za(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:za(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:za(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:za(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:za(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:za(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:za(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:za(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:za(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:za(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:za(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:za(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:za(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:za(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:za(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:za(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:za(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:za(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:za(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:za(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:za(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:za(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:za(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:za(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:za(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:za(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:za(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:za(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:za(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:za(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:za(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:za(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:za(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:za(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:za(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:za(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:za(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:za(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:za(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:za(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:za(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:za(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:za(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:za(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:za(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:za(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:za(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:za(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:za(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:za(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:za(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:za(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:za(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:za(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:za(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:za(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:za(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:za(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:za(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:za(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:za(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:za(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:za(8017,1,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:za(8018,1,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:za(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:za(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:za(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:za(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:za(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:za(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:za(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:za(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:za(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:za(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:za(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:za(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:za(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:za(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:za(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:za(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:za(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:za(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:za(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:za(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:za(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:za(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:za(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:za(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:za(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:za(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:za(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:za(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:za(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:za(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:za(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:za(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:za(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:za(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:za(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:za(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:za(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:za(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:za(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:za(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:za(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:za(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:za(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:za(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:za(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:za(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:za(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:za(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:za(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:za(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:za(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:za(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:za(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),Add_missing_super_call:za(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:za(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:za(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:za(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:za(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:za(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:za(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:za(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:za(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:za(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:za(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:za(90013,3,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:za(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:za(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:za(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:za(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:za(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:za(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:za(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:za(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:za(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:za(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:za(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:za(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:za(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:za(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:za(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:za(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:za(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:za(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:za(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:za(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:za(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:za(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:za(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:za(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:za(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:za(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:za(90055,3,"Remove_type_from_import_declaration_from_0_90055","Remove 'type' from import declaration from \"{0}\""),Remove_type_from_import_of_0_from_1:za(90056,3,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:za(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:za(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:za(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:za(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:za(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:za(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:za(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:za(95005,3,"Extract_function_95005","Extract function"),Extract_constant:za(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:za(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:za(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:za(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:za(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:za(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:za(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:za(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:za(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:za(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:za(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:za(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:za(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:za(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:za(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:za(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:za(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:za(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:za(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:za(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:za(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:za(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:za(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:za(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:za(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:za(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:za(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:za(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:za(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:za(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:za(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:za(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:za(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:za(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:za(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:za(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:za(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:za(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:za(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:za(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:za(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:za(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:za(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:za(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:za(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:za(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:za(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:za(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:za(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:za(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:za(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:za(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:za(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:za(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:za(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:za(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:za(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:za(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:za(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:za(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:za(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:za(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:za(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:za(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:za(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:za(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:za(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:za(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:za(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:za(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:za(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:za(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:za(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:za(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:za(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:za(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:za(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:za(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:za(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:za(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:za(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:za(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:za(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:za(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:za(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:za(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:za(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:za(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:za(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:za(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:za(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:za(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:za(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:za(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:za(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:za(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:za(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:za(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:za(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:za(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:za(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:za(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:za(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:za(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:za(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:za(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:za(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:za(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:za(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:za(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:za(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:za(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:za(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:za(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:za(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:za(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:za(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:za(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:za(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:za(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:za(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:za(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:za(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:za(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:za(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:za(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:za(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:za(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:za(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:za(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:za(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:za(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:za(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:za(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:za(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:za(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:za(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:za(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:za(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:za(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:za(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:za(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:za(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:za(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:za(95154,3,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:za(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:za(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:za(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:za(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:za(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:za(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:za(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:za(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:za(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:za(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:za(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:za(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:za(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:za(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:za(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:za(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:za(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:za(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:za(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:za(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:za(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:za(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:za(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:za(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:za(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:za(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:za(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:za(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:za(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:za(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:za(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:za(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:za(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:za(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:za(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:za(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:za(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:za(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:za(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:za(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:za(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:za(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:za(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:za(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:za(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:za(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:za(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:za(18037,1,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:za(18038,1,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:za(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:za(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:za(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:za(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:za(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:za(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:za(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:za(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:za(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:za(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:za(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:za(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string.")}}});function os(e){return e>=79}function as(e){return 31===e||os(e)}function ss(e,t){if(e=2?$a:1===t?Wa:Qa)}function _s(e){return Za[e]}function ls(e){return Va.get(e)}function us(e){const t=[];let n=0,r=0;for(;n127&&xs(i)&&(t.push(r),r=n)}}return t.push(r),t}function ds(e,t,n,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,r):ps(fs(e),t,n,e.text,r)}function ps(e,t,n,r,i){(t<0||t>=e.length)&&(i?t=t<0?0:t>=e.length?e.length-1:t:In.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${void 0!==r?B(e,us(r)):"unknown"}`));const o=e[t]+n;return i?o>e[t+1]?e[t+1]:"string"==typeof r&&o>r.length?r.length:o:(t=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function xs(e){return 10===e||13===e||8232===e||8233===e}function ks(e){return e>=48&&e<=57}function Ss(e){return ks(e)||e>=65&&e<=70||e>=97&&e<=102}function Ts(e){return e>=48&&e<=55}function Cs(e,t){const n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return n>127}}function As(e,t,n,r,i){if(HS(t))return t;let o=!1;for(;;){const a=e.charCodeAt(t);switch(a){case 13:10===e.charCodeAt(t+1)&&t++;case 10:if(t++,n)return t;o=!!i;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(r)break;if(47===e.charCodeAt(t+1)){for(t+=2;t127&&vs(a)){t++;continue}}return t}}function ws(e,t){if(In.assert(t>=0),0===t||xs(e.charCodeAt(t-1))){const n=e.charCodeAt(t);if(t+es=0&&n127&&vs(a)){u&&xs(a)&&(l=!0),n++;continue}break e}}return u&&(p=i(s,c,_,l,o,p)),p}function Ps(e,t,n,r){return Fs(!1,e,t,!1,n,r)}function Is(e,t,n,r){return Fs(!1,e,t,!0,n,r)}function Os(e,t,n,r,i){return Fs(!0,e,t,!1,n,r,i)}function Ls(e,t,n,r,i){return Fs(!0,e,t,!0,n,r,i)}function Ms(e,t,n,r,i,o=[]){return o.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),o}function Rs(e,t){return Os(e,t,Ms,void 0,void 0)}function Bs(e,t){return Ls(e,t,Ms,void 0,void 0)}function js(e){const t=ts.exec(e);if(t)return t[0]}function Js(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&cs(e,t)}function zs(e,t,n){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||1===n&&(45===e||58===e)||e>127&&function(e,t){return ss(e,t>=2?Ga:1===t?Ha:Ka)}(e,t)}function Us(e,t,n){let r=ns(e,0);if(!Js(r,t))return!1;for(let i=Vs(r);i_,getTextPos:()=>s,getToken:()=>u,getTokenPos:()=>l,getTokenText:()=>m.substring(l,s),getTokenValue:()=>d,hasUnicodeEscape:()=>0!=(1024&p),hasExtendedUnicodeEscape:()=>0!=(8&p),hasPrecedingLineBreak:()=>0!=(1&p),hasPrecedingJSDocComment:()=>0!=(2&p),isIdentifier:()=>79===u||u>116,isReservedWord:()=>u>=81&&u<=116,isUnterminated:()=>0!=(4&p),getCommentDirectives:()=>f,getNumericLiteralFlags:()=>1008&p,getTokenFlags:()=>p,reScanGreaterToken:function(){if(31===u){if(62===m.charCodeAt(s))return 62===m.charCodeAt(s+1)?61===m.charCodeAt(s+2)?(s+=3,u=72):(s+=2,u=49):61===m.charCodeAt(s+1)?(s+=2,u=71):(s++,u=48);if(61===m.charCodeAt(s))return s++,u=33}return u},reScanAsteriskEqualsToken:function(){return In.assert(66===u,"'reScanAsteriskEqualsToken' should only be called on a '*='"),s=l+1,u=63},reScanSlashToken:function(){if(43===u||68===u){let t=l+1,n=!1,r=!1;for(;;){if(t>=c){p|=4,v(ja.Unterminated_regular_expression_literal);break}const e=m.charCodeAt(t);if(xs(e)){p|=4,v(ja.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===e&&!r){t++;break}91===e?r=!0:92===e?n=!0:93===e&&(r=!1)}t++}for(;t=c)return u=1;const t=ns(m,s);switch(s+=Vs(t),t){case 9:case 11:case 12:case 32:for(;s=0&&Js(t,e))return s+=3,p|=8,d=F()+O(),u=L();const n=P();return n>=0&&Js(n,e)?(s+=6,p|=1024,d=String.fromCharCode(n)+O(),u=L()):(s++,u=0)}if(Js(t,e)){let n=t;for(;s{const e=y.getText();return e.slice(0,y.getStartPos())+"║"+e.slice(y.getStartPos())}}),y;function v(e,t=s,n){if(i){const r=s;s=t,i(e,n||0),s=r}}function b(){let e=s,t=!1,n=!1,r="";for(;;){const i=m.charCodeAt(s);if(95!==i){if(!ks(i))break;t=!0,n=!1,s++}else p|=512,t?(t=!1,n=!0,r+=m.substring(e,s)):v(n?ja.Multiple_consecutive_numeric_separators_are_not_permitted:ja.Numeric_separators_are_not_allowed_here,s,1),e=++s}return 95===m.charCodeAt(s-1)&&v(ja.Numeric_separators_are_not_allowed_here,s-1,1),r+m.substring(e,s)}function x(){const e=s,t=b();let n,r;46===m.charCodeAt(s)&&(s++,n=b());let i,o=s;if(69===m.charCodeAt(s)||101===m.charCodeAt(s)){s++,p|=16,43!==m.charCodeAt(s)&&45!==m.charCodeAt(s)||s++;const e=s,t=b();t?(r=m.substring(o,e)+t,o=s):v(ja.Digit_expected)}if(512&p?(i=t,n&&(i+="."+n),r&&(i+=r)):i=m.substring(e,o),void 0!==n||16&p)return k(e,void 0===n&&!!(16&p)),{type:8,value:""+ +i};{d=i;const t=R();return k(e),{type:t,value:d}}}function k(t,n){if(!Js(ns(m,s),e))return;const r=s,{length:i}=O();1===i&&"n"===m[r]?v(n?ja.A_bigint_literal_cannot_use_exponential_notation:ja.A_bigint_literal_must_be_an_integer,t,r-t+1):(v(ja.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,r,i),s=r)}function S(){const e=s;for(;Ts(m.charCodeAt(s));)s++;return+m.substring(e,s)}function T(e,t){const n=A(e,!1,t);return n?parseInt(n,16):-1}function C(e,t){return A(e,!0,t)}function A(e,t,n){let r=[],i=!1,o=!1;for(;r.length=65&&e<=70)e+=32;else if(!(e>=48&&e<=57||e>=97&&e<=102))break;r.push(e),s++,o=!1}}return r.length=c){n+=m.substring(r,s),p|=4,v(ja.Unterminated_string_literal);break}const i=m.charCodeAt(s);if(i===t){n+=m.substring(r,s),s++;break}if(92!==i||e){if(xs(i)&&!e){n+=m.substring(r,s),p|=4,v(ja.Unterminated_string_literal);break}s++}else n+=m.substring(r,s),n+=E(),r=s}return n}function D(e){const t=96===m.charCodeAt(s);let n,r=++s,i="";for(;;){if(s>=c){i+=m.substring(r,s),p|=4,v(ja.Unterminated_template_literal),n=t?14:17;break}const o=m.charCodeAt(s);if(96===o){i+=m.substring(r,s),s++,n=t?14:17;break}if(36===o&&s+1=c)return v(ja.Unexpected_end_of_text),"";const n=m.charCodeAt(s);switch(s++,n){case 48:return e&&s=0?String.fromCharCode(t):(v(ja.Hexadecimal_digit_expected),"")}function F(){const e=C(1,!1),t=e?parseInt(e,16):-1;let n=!1;return t<0?(v(ja.Hexadecimal_digit_expected),n=!0):t>1114111&&(v(ja.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),s>=c?(v(ja.Unexpected_end_of_text),n=!0):125===m.charCodeAt(s)?s++:(v(ja.Unterminated_Unicode_escape_sequence),n=!0),n?"":Ks(t)}function P(){if(s+5=0&&zs(r,e)){s+=3,p|=8,t+=F(),n=s;continue}if(r=P(),!(r>=0&&zs(r,e)))break;p|=1024,t+=m.substring(n,s),t+=Ks(r),n=s+=6}}return t+=m.substring(n,s),t}function L(){const e=d.length;if(e>=2&&e<=12){const e=d.charCodeAt(0);if(e>=97&&e<=122){const e=qa.get(d);if(void 0!==e)return u=e}}return u=79}function M(e){let t="",n=!1,r=!1;for(;;){const i=m.charCodeAt(s);if(95!==i){if(n=!0,!ks(i)||i-48>=e)break;t+=m[s],s++,r=!1}else p|=512,n?(n=!1,r=!0):v(r?ja.Multiple_consecutive_numeric_separators_are_not_permitted:ja.Numeric_separators_are_not_allowed_here,s,1),s++}return 95===m.charCodeAt(s-1)&&v(ja.Numeric_separators_are_not_allowed_here,s-1,1),t}function R(){if(110===m.charCodeAt(s))return d+="n",384&p&&(d=_T(d)+"n"),s++,9;{const e=128&p?parseInt(d.slice(2),2):256&p?parseInt(d.slice(2),8):+d;return d=""+e,8}}function B(){_=s,p=0;let r=!1;for(;;){if(l=s,s>=c)return u=1;const i=ns(m,s);if(35===i&&0===s&&Es(m,s)){if(s=Ns(m,s),t)continue;return u=6}switch(i){case 10:case 13:if(p|=1,t){s++;continue}return 13===i&&s+1=0&&Js(o,e))return s+=3,p|=8,d=F()+O(),u=L();const a=P();return a>=0&&Js(a,e)?(s+=6,p|=1024,d=String.fromCharCode(a)+O(),u=L()):(v(ja.Invalid_character),s++,u=0);case 35:if(0!==s&&"!"===m[s+1])return v(ja.can_only_be_used_at_the_start_of_a_file),s++,u=0;const _=ns(m,s+1);if(92===_){s++;const t=I();if(t>=0&&Js(t,e))return s+=3,p|=8,d="#"+F()+O(),u=80;const n=P();if(n>=0&&Js(n,e))return s+=6,p|=1024,d="#"+String.fromCharCode(n)+O(),u=80;s--}return Js(_,e)?(s++,j(_,e)):(d="#",v(ja.Invalid_character,s++,Vs(i))),u=80;default:const h=j(i,e);if(h)return u=h;if(bs(i)){s+=Vs(i);continue}if(xs(i)){p|=1,s+=Vs(i);continue}const y=Vs(i);return v(ja.Invalid_character,s,y),s+=y,u=0}}}function j(e,t){let n=e;if(Js(n,t)){for(s+=Vs(n);s=c)return u=1;let t=m.charCodeAt(s);if(60===t)return 47===m.charCodeAt(s+1)?(s+=2,u=30):(s++,u=29);if(123===t)return s++,u=18;let n=0;for(;s0)break;vs(t)||(n=s)}s++}return d=m.substring(_,s),-1===n?12:11}function U(){switch(_=s,m.charCodeAt(s)){case 34:case 39:return d=w(!0),u=10;default:return B()}}function q(e,t){const n=s,r=_,i=l,o=u,a=d,c=p,f=e();return f&&!t||(s=n,_=r,l=i,u=o,d=a,p=c),f}function V(e,t,n){m=e||"",c=void 0===n?m.length:t+n,Q(t||0)}function Q(e){In.assert(e>=0),s=e,_=e,l=e,u=0,d=void 0,p=0}}function Vs(e){return e>=65536?2:1}function Qs(e){return In.assert(0<=e&&e<=1114111),e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296,(e-65536)%1024+56320)}function Ks(e){return rs(e)}var Ws,Hs,$s,Gs=b({"src/compiler/scanner.ts"(){XK(),Ua={abstract:126,accessor:127,any:131,as:128,asserts:129,assert:130,bigint:160,boolean:134,break:81,case:82,catch:83,class:84,continue:86,const:85,constructor:135,debugger:87,declare:136,default:88,delete:89,do:90,else:91,enum:92,export:93,extends:94,false:95,finally:96,for:97,from:158,function:98,get:137,if:99,implements:117,import:100,in:101,infer:138,instanceof:102,interface:118,intrinsic:139,is:140,keyof:141,let:119,module:142,namespace:143,never:144,new:103,null:104,number:148,object:149,package:120,private:121,protected:122,public:123,override:161,out:145,readonly:146,require:147,global:159,return:105,satisfies:150,set:151,static:124,string:152,super:106,switch:107,symbol:153,this:108,throw:109,true:110,try:111,type:154,typeof:112,undefined:155,unique:156,unknown:157,var:113,void:114,while:115,with:116,yield:125,async:132,await:133,of:162},qa=new Map(Object.entries(Ua)),Va=new Map(Object.entries({...Ua,"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,">":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61})),Qa=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Ka=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],Wa=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Ha=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],$a=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],Ga=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],Xa=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Ya=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,Za=function(e){const t=[];return e.forEach(((e,n)=>{t[e]=n})),t}(Va),es=7,ts=/^#!.*/,ns=String.prototype.codePointAt?(e,t)=>e.codePointAt(t):function(e,t){const n=e.length;if(t<0||t>=n)return;const r=e.charCodeAt(t);if(r>=55296&&r<=56319&&n>t+1){const n=e.charCodeAt(t+1);if(n>=56320&&n<=57343)return 1024*(r-55296)+n-56320+65536}return r},rs=String.fromCodePoint?e=>String.fromCodePoint(e):Qs}});function Xs(e){return Yo(e)||$o(e)}function Ys(e){return he(e,Ek)}function Zs(e){switch(Rk(e)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function ec(e){return e.start+e.length}function tc(e){return 0===e.length}function nc(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function ic(e,t){return t.start>=e.start&&ec(t)<=ec(e)}function oc(e,t){return void 0!==ac(e,t)}function ac(e,t){const n=uc(e,t);return n&&0===n.length?void 0:n}function sc(e,t){return _c(e.start,e.length,t.start,t.length)}function cc(e,t,n){return _c(e.start,e.length,t,n)}function _c(e,t,n,r){return n<=e+t&&n+r>=e}function lc(e,t){return t<=ec(e)&&t>=e.start}function uc(e,t){const n=Math.max(e.start,t.start),r=Math.min(ec(e),ec(t));return n<=r?pc(n,r):void 0}function dc(e,t){if(e<0)throw Error("start < 0");if(t<0)throw Error("length < 0");return{start:e,length:t}}function pc(e,t){return dc(e,t-e)}function fc(e){return dc(e.span.start,e.newLength)}function mc(e){return tc(e.span)&&0===e.newLength}function gc(e,t){if(t<0)throw Error("newLength < 0");return{span:e,newLength:t}}function hc(e){if(0===e.length)return Ws;if(1===e.length)return e[0];const t=e[0];let n=t.span.start,r=ec(t.span),i=n+t.newLength;for(let t=1;te.flags))}function wc(e,t,n){const r=e.toLowerCase(),i=/^([a-z]+)([_\-]([a-z]+))?$/.exec(r);if(!i)return void(n&&n.push(Tk(ja.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp")));const o=i[1],a=i[3];function s(e,n,r){let i=ma(sa(va(t.getExecutingFilePath())),e);if(n&&(i=i+"-"+n),i=t.resolvePath(ma(i,"diagnosticMessages.generated.json")),!t.fileExists(i))return!1;let o="";try{o=t.readFile(i)}catch(e){return r&&r.push(Tk(ja.Unable_to_open_file_0,i)),!1}try{mk(JSON.parse(o))}catch(e){return r&&r.push(Tk(ja.Corrupted_locale_file_0,i)),!1}return!0}R(Hs,r)&&!s(o,a,n)&&s(o,void 0,n),Ht(e)}function Dc(e,t){if(e)for(;void 0!==e.original;)e=e.original;return e&&t?t(e)?e:void 0:e}function Ec(e,t){for(;e;){const n=t(e);if("quit"===n)return;if(n)return e;e=e.parent}}function Nc(e){return 0==(8&e.flags)}function Fc(e,t){if(void 0===e||Nc(e))return e;for(e=e.original;e;){if(Nc(e))return!t||t(e)?e:void 0;e=e.original}}function Pc(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function Ic(e){const t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function Oc(e){return Ic(e.escapedText)}function Lc(e){const t=ls(e.escapedText);return t?xt(t,fy):void 0}function Mc(e){return e.valueDeclaration&&fl(e.valueDeclaration)?Oc(e.valueDeclaration.name):Ic(e.escapedName)}function Rc(e){const t=e.parent.parent;if(t){if(Nu(t))return Bc(t);switch(t.kind){case 240:if(t.declarationList&&t.declarationList.declarations[0])return Bc(t.declarationList.declarations[0]);break;case 241:let e=t.expression;switch(223===e.kind&&63===e.operatorToken.kind&&(e=e.left),e.kind){case 208:return e.name;case 209:const t=e.argumentExpression;if(Tw(t))return t}break;case 214:return Bc(t.expression);case 253:if(Nu(t.statement)||_u(t.statement))return Bc(t.statement)}}}function Bc(e){const t=qc(e);return t&&Tw(t)?t:void 0}function jc(e,t){return!(!zc(e)||!Tw(e.name)||Oc(e.name)!==Oc(t))||!(!_E(e)||!_e(e.declarationList.declarations,(e=>jc(e,t))))}function Jc(e){return e.name||Rc(e)}function zc(e){return!!e.name}function Uc(e){switch(e.kind){case 79:return e;case 351:case 344:{const{name:t}=e;if(163===t.kind)return t.right;break}case 210:case 223:{const t=e;switch(Hg(t)){case 1:case 4:case 5:case 3:return nh(t.left);case 7:case 8:case 9:return t.arguments[1];default:return}}case 349:return Jc(e);case 343:return Rc(e);case 274:{const{expression:t}=e;return Tw(t)?t:void 0}case 209:const t=e;if(Zg(t))return t.argumentExpression}return e.name}function qc(e){if(void 0!==e)return Uc(e)||(RD(e)||BD(e)||GD(e)?Vc(e):void 0)}function Vc(e){if(e.parent){if(vN(e.parent)||wD(e.parent))return e.parent.name;if(QD(e.parent)&&e===e.parent.right){if(Tw(e.parent.left))return e.parent.left;if(Yx(e.parent.left))return nh(e.parent.left)}else if(wE(e.parent)&&Tw(e.parent.name))return e.parent.name}}function Qc(e){if(gb(e))return z(e.modifiers,qw)}function Kc(e){if(cb(e,126975))return z(e.modifiers,vl)}function Wc(e,t){if(e.name){if(Tw(e.name)){const n=e.name.escapedText;return k_(e.parent,t).filter((e=>rF(e)&&Tw(e.name)&&e.name.escapedText===n))}{const n=e.parent.parameters.indexOf(e);In.assert(n>-1,"Parameters should always be in their parents' parameter list");const r=k_(e.parent,t).filter(rF);if(nsF(e)&&e.typeParameters.some((e=>e.name.escapedText===n))))}function Xc(e){return Gc(e,!1)}function Yc(e){return Gc(e,!0)}function Zc(e){return!!C_(e,rF)}function e_(e){return C_(e,VN)}function t_(e){return A_(e,uF)}function n_(e){return C_(e,KN)}function r_(e){return C_(e,HN)}function i_(e){return C_(e,HN,!0)}function o_(e){return C_(e,$N)}function a_(e){return C_(e,$N,!0)}function s_(e){return C_(e,GN)}function c_(e){return C_(e,GN,!0)}function __(e){return C_(e,XN)}function l_(e){return C_(e,XN,!0)}function u_(e){return C_(e,YN,!0)}function d_(e){return C_(e,eF)}function p_(e){return C_(e,eF,!0)}function f_(e){return C_(e,nF)}function m_(e){return C_(e,oF)}function g_(e){return C_(e,iF)}function h_(e){return C_(e,sF)}function y_(e){return C_(e,dF)}function v_(e){const t=C_(e,aF);if(t&&t.typeExpression&&t.typeExpression.type)return t}function b_(e){let t=C_(e,aF);return!t&&Uw(e)&&(t=P(Hc(e),(e=>!!e.typeExpression))),t&&t.typeExpression&&t.typeExpression.type}function x_(e){const t=g_(e);if(t&&t.typeExpression)return t.typeExpression.type;const n=v_(e);if(n&&n.typeExpression){const e=n.typeExpression.type;if(aD(e)){const t=P(e.members,Yw);return t&&t.type}if(rD(e)||BN(e))return e.type}}function k_(e,t){var n;if(!Ah(e))return r;let i=null==(n=e.jsDoc)?void 0:n.jsDocCache;if(void 0===i||t){const n=wh(e,t);In.assert(n.length<2||n[0]!==n[1]),i=H(n,(e=>zN(e)?e.tags:e)),t||(null!=e.jsDoc||(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function S_(e){return k_(e,!1)}function T_(e){return k_(e,!0)}function C_(e,t,n){return P(k_(e,n),t)}function A_(e,t){return S_(e).filter(t)}function w_(e,t){return S_(e).filter((e=>e.kind===t))}function D_(e){return"string"==typeof e?e:null==e?void 0:e.map((e=>{return 324===e.kind?e.text:`{@${327===(t=e).kind?"link":328===t.kind?"linkcode":"linkplain"} ${t.name?Jf(t.name):""}${t.name&&t.text.startsWith("://")?"":" "}${t.text}}`;var t})).join("")}function E_(e){if(qN(e)){if(ZN(e.parent)){const t=Mh(e.parent);if(t&&S(t.tags))return H(t.tags,(e=>sF(e)?e.typeParameters:void 0))}return r}if(vh(e))return In.assert(323===e.parent.kind),H(e.parent.tags,(e=>sF(e)?e.typeParameters:void 0));if(e.typeParameters)return e.typeParameters;if(cP(e)&&e.typeParameters)return e.typeParameters;if(Sg(e)){const t=$v(e);if(t.length)return t;const n=b_(e);if(n&&rD(n)&&n.typeParameters)return n.typeParameters}return r}function N_(e){return e.constraint?e.constraint:sF(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function F_(e){return 79===e.kind||80===e.kind}function P_(e){return 175===e.kind||174===e.kind}function I_(e){return ND(e)&&!!(32&e.flags)}function O_(e){return FD(e)&&!!(32&e.flags)}function L_(e){return PD(e)&&!!(32&e.flags)}function M_(e){const t=e.kind;return!!(32&e.flags)&&(208===t||209===t||210===t||232===t)}function R_(e){return M_(e)&&!tE(e)&&!!e.questionDotToken}function B_(e){return R_(e.parent)&&e.parent.expression===e}function j_(e){return!M_(e.parent)||R_(e.parent)||e!==e.parent.expression}function J_(e){return 223===e.kind&&60===e.operatorToken.kind}function z_(e){return nD(e)&&Tw(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments}function U_(e){return UF(e,8)}function q_(e){return tE(e)&&!!(32&e.flags)}function V_(e){return 249===e.kind||248===e.kind}function Q_(e){return 277===e.kind||276===e.kind}function K_(e){switch(e.kind){case 305:case 306:return!0;default:return!1}}function W_(e){return K_(e)||303===e.kind||307===e.kind}function H_(e){return 351===e.kind||344===e.kind}function $_(e){return G_(e.kind)}function G_(e){return e>=163}function X_(e){return e>=0&&e<=162}function Y_(e){return X_(e.kind)}function Z_(e){return We(e,"pos")&&We(e,"end")}function el(e){return 8<=e&&e<=14}function tl(e){return el(e.kind)}function nl(e){switch(e.kind){case 207:case 206:case 13:case 215:case 228:return!0}return!1}function rl(e){return 14<=e&&e<=17}function il(e){return rl(e.kind)}function ol(e){const t=e.kind;return 16===t||17===t}function al(e){return WE(e)||XE(e)}function sl(e){switch(e.kind){case 273:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 271:return e.parent.isTypeOnly;case 270:case 268:return e.isTypeOnly}return!1}function cl(e){switch(e.kind){case 278:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 275:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 277:return e.parent.isTypeOnly}return!1}function _l(e){return sl(e)||cl(e)}function ll(e){return sw(e)||Tw(e)}function ul(e){return 10===e.kind||rl(e.kind)}function dl(e){var t;return Tw(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function pl(e){var t;return Cw(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function fl(e){return(Qw(e)||Ol(e))&&Cw(e.name)}function ml(e){return ND(e)&&Cw(e.name)}function gl(e){switch(e){case 126:case 127:case 132:case 85:case 136:case 88:case 93:case 101:case 123:case 121:case 122:case 146:case 124:case 145:case 161:return!0}return!1}function hl(e){return!!(16476&wb(e))}function yl(e){return hl(e)||124===e||161===e||127===e}function vl(e){return gl(e.kind)}function bl(e){const t=e.kind;return 163===t||79===t}function xl(e){const t=e.kind;return 79===t||80===t||10===t||8===t||164===t}function kl(e){const t=e.kind;return 79===t||203===t||204===t}function Sl(e){return!!e&&Dl(e.kind)}function Tl(e){return!!e&&(Dl(e.kind)||Hw(e))}function Cl(e){return e&&wl(e.kind)}function Al(e){return 110===e.kind||95===e.kind}function wl(e){switch(e){case 259:case 171:case 173:case 174:case 175:case 215:case 216:return!0;default:return!1}}function Dl(e){switch(e){case 170:case 176:case 326:case 177:case 178:case 181:case 320:case 182:return!0;default:return wl(e)}}function El(e){return TN(e)||LE(e)||cE(e)&&Sl(e.parent)}function Nl(e){const t=e.kind;return 173===t||169===t||171===t||174===t||175===t||178===t||172===t||237===t}function Fl(e){return e&&(260===e.kind||228===e.kind)}function Pl(e){return e&&(174===e.kind||175===e.kind)}function Il(e){return Qw(e)&&fb(e)}function Ol(e){switch(e.kind){case 171:case 174:case 175:return!0;default:return!1}}function Ll(e){switch(e.kind){case 171:case 174:case 175:case 169:return!0;default:return!1}}function Ml(e){return vl(e)||qw(e)}function Rl(e){const t=e.kind;return 177===t||176===t||168===t||170===t||178===t||174===t||175===t}function Bl(e){return Rl(e)||Nl(e)}function jl(e){const t=e.kind;return 299===t||300===t||301===t||171===t||174===t||175===t}function Jl(e){return Xx(e.kind)}function zl(e){switch(e.kind){case 181:case 182:return!0}return!1}function Ul(e){if(e){const t=e.kind;return 204===t||203===t}return!1}function ql(e){const t=e.kind;return 206===t||207===t}function Vl(e){const t=e.kind;return 205===t||229===t}function Ql(e){switch(e.kind){case 257:case 166:case 205:return!0}return!1}function Kl(e){return wE(e)||Uw(e)||$l(e)||Xl(e)}function Wl(e){return Hl(e)||Gl(e)}function Hl(e){switch(e.kind){case 203:case 207:return!0}return!1}function $l(e){switch(e.kind){case 205:case 299:case 300:case 301:return!0}return!1}function Gl(e){switch(e.kind){case 204:case 206:return!0}return!1}function Xl(e){switch(e.kind){case 205:case 229:case 227:case 206:case 207:case 79:case 208:case 209:return!0}return Rb(e,!0)}function Yl(e){const t=e.kind;return 208===t||163===t||202===t}function Zl(e){const t=e.kind;return 208===t||163===t}function eu(e){switch(e.kind){case 283:case 282:case 210:case 211:case 212:case 167:return!0;default:return!1}}function tu(e){return 210===e.kind||211===e.kind}function nu(e){const t=e.kind;return 225===t||14===t}function ru(e){return iu(U_(e).kind)}function iu(e){switch(e){case 208:case 209:case 211:case 210:case 281:case 282:case 285:case 212:case 206:case 214:case 207:case 228:case 215:case 79:case 80:case 13:case 8:case 9:case 10:case 14:case 225:case 95:case 104:case 108:case 110:case 106:case 232:case 230:case 233:case 100:case 279:return!0;default:return!1}}function ou(e){return au(U_(e).kind)}function au(e){switch(e){case 221:case 222:case 217:case 218:case 219:case 220:case 213:return!0;default:return iu(e)}}function su(e){switch(e.kind){case 222:return!0;case 221:return 45===e.operator||46===e.operator;default:return!1}}function cu(e){switch(e.kind){case 104:case 110:case 95:case 221:return!0;default:return tl(e)}}function _u(e){return function(e){switch(e){case 224:case 226:case 216:case 223:case 227:case 231:case 229:case 357:case 356:case 235:return!0;default:return au(e)}}(U_(e).kind)}function lu(e){const t=e.kind;return 213===t||231===t}function uu(e){return ZE(e)||iE(e)}function du(e,t){switch(e.kind){case 245:case 246:case 247:case 243:case 244:return!0;case 253:return t&&du(e.statement,t)}return!1}function pu(e){return HE(e)||$E(e)}function fu(e){return _e(e,pu)}function mu(e){return!(Pf(e)||HE(e)||cb(e,1)||df(e))}function gu(e){return Pf(e)||HE(e)||cb(e,1)}function hu(e){return 246===e.kind||247===e.kind}function yu(e){return cE(e)||_u(e)}function vu(e){return cE(e)}function bu(e){return DE(e)||_u(e)}function xu(e){const t=e.kind;return 265===t||264===t||79===t}function ku(e){const t=e.kind;return 265===t||264===t}function Su(e){const t=e.kind;return 79===t||264===t}function Tu(e){const t=e.kind;return 272===t||271===t}function Cu(e){return 264===e.kind||263===e.kind}function Au(e){switch(e.kind){case 216:case 223:case 205:case 210:case 176:case 260:case 228:case 172:case 173:case 182:case 177:case 209:case 263:case 302:case 274:case 275:case 278:case 259:case 215:case 181:case 174:case 79:case 270:case 268:case 273:case 178:case 261:case 341:case 343:case 320:case 344:case 351:case 326:case 349:case 325:case 288:case 289:case 290:case 197:case 171:case 170:case 264:case 199:case 277:case 267:case 271:case 211:case 14:case 8:case 207:case 166:case 208:case 299:case 169:case 168:case 175:case 300:case 308:case 301:case 10:case 262:case 184:case 165:case 257:return!0;default:return!1}}function wu(e){switch(e.kind){case 216:case 238:case 176:case 266:case 295:case 172:case 191:case 173:case 182:case 177:case 245:case 246:case 247:case 259:case 215:case 181:case 174:case 178:case 341:case 343:case 320:case 326:case 349:case 197:case 171:case 170:case 264:case 175:case 308:case 262:return!0;default:return!1}}function Du(e){return 259===e||279===e||260===e||261===e||262===e||263===e||264===e||269===e||268===e||275===e||274===e||267===e}function Eu(e){return 249===e||248===e||256===e||243===e||241===e||239===e||246===e||247===e||245===e||242===e||253===e||250===e||252===e||254===e||255===e||240===e||244===e||251===e||355===e||359===e||358===e}function Nu(e){return 165===e.kind?e.parent&&348!==e.parent.kind||Sg(e):216===(t=e.kind)||205===t||260===t||228===t||172===t||173===t||263===t||302===t||278===t||259===t||215===t||174===t||270===t||268===t||273===t||261===t||288===t||171===t||170===t||264===t||267===t||271===t||277===t||166===t||299===t||169===t||168===t||175===t||300===t||262===t||165===t||257===t||349===t||341===t||351===t;var t}function Fu(e){return Du(e.kind)}function Pu(e){return Eu(e.kind)}function Iu(e){const t=e.kind;return Eu(t)||Du(t)||function(e){return 238===e.kind&&(void 0===e.parent||255!==e.parent.kind&&295!==e.parent.kind)&&!Fm(e)}(e)}function Ou(e){const t=e.kind;return Eu(t)||Du(t)||238===t}function Lu(e){const t=e.kind;return 280===t||163===t||79===t}function Mu(e){const t=e.kind;return 108===t||79===t||208===t}function Ru(e){const t=e.kind;return 281===t||291===t||282===t||11===t||285===t}function Bu(e){const t=e.kind;return 288===t||290===t}function ju(e){const t=e.kind;return 10===t||291===t}function Ju(e){const t=e.kind;return 283===t||282===t}function zu(e){const t=e.kind;return 292===t||293===t}function Uu(e){return e.kind>=312&&e.kind<=353}function qu(e){return 323===e.kind||322===e.kind||324===e.kind||td(e)||Vu(e)||UN(e)||qN(e)}function Vu(e){return e.kind>=330&&e.kind<=353}function Qu(e){return 175===e.kind}function Ku(e){return 174===e.kind}function Wu(e){if(!Ah(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function Hu(e){return!!e.type}function $u(e){return!!e.initializer}function Gu(e){switch(e.kind){case 257:case 166:case 205:case 169:case 299:case 302:return!0;default:return!1}}function Xu(e){return 288===e.kind||290===e.kind||jl(e)}function Yu(e){return 180===e.kind||230===e.kind}function Zu(e){let t=$s;for(const n of e){if(!n.length)continue;let e=0;for(;ee.kind===t))}function ip(e){const t=new Map;if(e)for(const n of e)t.set(n.escapedName,n);return t}function op(e){return 0!=(33554432&e.flags)}function ap(e,t){return e.configFilePath!==t.configFilePath||sp(e,t)}function sp(e,t){return _p(e,t,ZI)}function cp(e,t){return _p(e,t,tO)}function _p(e,t,n){return e!==t&&n.some((n=>!cT(lS(e,n),lS(t,n))))}function lp(e,t){for(;;){const n=t(e);if("quit"===n)return;if(void 0!==n)return n;if(TN(e))return;e=e.parent}}function up(e,t){const n=e.entries();for(const[e,r]of n){const n=t(r,e);if(n)return n}}function dp(e,t){const n=e.keys();for(const e of n){const n=t(e);if(n)return n}}function pp(e,t){e.forEach(((e,n)=>{t.set(n,e)}))}function fp(e){const t=cd.getText();try{return e(cd),cd.getText()}finally{cd.clear(),cd.writeKeyword(t)}}function mp(e){return e.end-e.pos}function gp(e,t,n){var r,i;return null==(i=null==(r=null==e?void 0:e.resolvedModules)?void 0:r.get(t,n))?void 0:i.resolvedModule}function hp(e,t,n,r){e.resolvedModules||(e.resolvedModules=FM()),e.resolvedModules.set(t,r,n)}function yp(e,t,n,r){e.resolvedTypeReferenceDirectiveNames||(e.resolvedTypeReferenceDirectiveNames=FM()),e.resolvedTypeReferenceDirectiveNames.set(t,r,n)}function vp(e,t,n){var r,i;return null==(i=null==(r=null==e?void 0:e.resolvedTypeReferenceDirectiveNames)?void 0:r.get(t,n))?void 0:i.resolvedTypeReferenceDirective}function bp(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function xp(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&((n=e.resolvedModule.packageId)===(r=t.resolvedModule.packageId)||!!n&&!!r&&n.name===r.name&&n.subModuleName===r.subModuleName&&n.version===r.version);var n,r}function kp({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function Sp(e){return`${kp(e)}@${e.version}`}function Tp(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function Cp(e,t,n,r,i,o){In.assert(e.length===n.length);for(let a=0;a=0),fs(t)[e]}function Pp(e){const t=wp(e),n=ys(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function Ip(e,t){In.assert(e>=0);const n=fs(t),r=e,i=t.text;if(r+1===n.length)return i.length-1;{const e=n[r];let t=n[r+1]-1;for(In.assert(xs(i.charCodeAt(t)));e<=t&&xs(i.charCodeAt(t));)t--;return t}}function Op(e,t,n){return!(n&&n(t)||e.identifiers.has(t))}function Lp(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function Mp(e){return!Lp(e)}function Rp(e,t){return zw(e)?t===e.expression:Hw(e)?t===e.modifiers:Vw(e)?t===e.initializer:Qw(e)?t===e.questionToken&&Il(e):vN(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Bp(e.modifiers,t,Ml):bN(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Bp(e.modifiers,t,Ml):Ww(e)?t===e.exclamationToken:$w(e)?t===e.typeParameters||t===e.type||Bp(e.typeParameters,t,zw):Gw(e)?t===e.typeParameters||Bp(e.typeParameters,t,zw):Xw(e)?t===e.typeParameters||t===e.type||Bp(e.typeParameters,t,zw):!!RE(e)&&(t===e.modifiers||Bp(e.modifiers,t,Ml))}function Bp(e,t,n){return!(!e||ht(t)||!n(t))&&R(e,t)}function jp(e,t,n){if(void 0===t||0===t.length)return e;let r=0;for(;r[""+ys(e,t.range.end).line,t]))),r=new Map;return{getUnusedExpectations:function(){return Ze(n.entries()).filter((([e,t])=>0===t.type&&!r.get(e))).map((([e,t])=>t))},markUsed:function(e){return!!n.has(""+e)&&(r.set(""+e,!0),!0)}}}function $p(e,t,n){return Lp(e)?e.pos:Uu(e)||11===e.kind?As((t||wp(e)).text,e.pos,!1,!0):n&&Wu(e)?$p(e.jsDoc[0],t):354===e.kind&&e._children.length>0?$p(e._children[0],t,n):As((t||wp(e)).text,e.pos,!1,!1,Ag(e))}function Gp(e,t){const n=!Lp(e)&&LP(e)?I(e.modifiers,qw):void 0;return n?As((t||wp(e)).text,n.end):$p(e,t)}function Xp(e,t,n=!1){return Zp(e.text,t,n)}function Yp(e){return!!($E(e)&&e.exportClause&&QE(e.exportClause)&&"default"===e.exportClause.name.escapedText)}function Zp(e,t,n=!1){if(Lp(t))return"";let r=e.substring(n?t.pos:As(e,t.pos),t.end);return function(e){return!!Ec(e,wN)}(t)&&(r=r.split(/\r\n|\n|\r/).map((e=>h(e.replace(/^\s*\*/,"")))).join("\n")),r}function ef(e,t=!1){return Xp(wp(e),e,t)}function tf(e){return e.pos}function nf(e,t){return Ve(e,t,tf,Jt)}function rf(e){const t=e.emitNode;return t&&t.flags||0}function of(e){const t=e.emitNode;return t&&t.internalFlags||0}function af(){return new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:r})),AsyncIterator:new Map(Object.entries({es2015:r})),Atomics:new Map(Object.entries({es2017:r})),SharedArrayBuffer:new Map(Object.entries({es2017:r})),AsyncIterable:new Map(Object.entries({es2018:r})),AsyncIterableIterator:new Map(Object.entries({es2018:r})),AsyncGenerator:new Map(Object.entries({es2018:r})),AsyncGeneratorFunction:new Map(Object.entries({es2018:r})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:r,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:r})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:r,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:r,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))}function sf(e,t,n){var r;if(t&&function(e,t){return!(Qy(e)||!e.parent||4&t&&e.isUnterminated||(ow(e)&&512&e.numericLiteralFlags?!(8&t):aw(e)))}(e,n))return Xp(t,e);switch(e.kind){case 10:{const t=2&n?sv:1&n||33554432&rf(e)?iv:ov;return e.singleQuote?"'"+t(e.text,39)+"'":'"'+t(e.text,34)+'"'}case 14:case 15:case 16:case 17:{const t=1&n||33554432&rf(e)?iv:ov,i=null!=(r=e.rawText)?r:t(e.text,96).replace(yd,"\\${");switch(e.kind){case 14:return"`"+i+"`";case 15:return"`"+i+"${";case 16:return"}"+i+"${";case 17:return"}"+i+"`"}break}case 8:case 9:return e.text;case 13:return 4&n&&e.isUnterminated?e.text+(92===e.text.charCodeAt(e.text.length-1)?" /":"/"):e.text}return In.fail(`Literal kind '${e.kind}' not accounted for.`)}function cf(e){return vt(e)?'"'+ov(e)+'"':""+e}function _f(e){return ca(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function lf(e){return 0!=(3&Ac(e))||uf(e)}function uf(e){const t=qy(e);return 257===t.kind&&295===t.parent.kind}function df(e){return OE(e)&&(10===e.name.kind||yf(e))}function pf(e){return OE(e)&&10===e.name.kind}function ff(e){return OE(e)&&sw(e.name)}function mf(e){return OE(e)||Tw(e)}function gf(e){return!!(t=e.valueDeclaration)&&264===t.kind&&!t.body;var t}function hf(e){return 308===e.kind||264===e.kind||Tl(e)}function yf(e){return!!(1024&e.flags)}function vf(e){return df(e)&&bf(e)}function bf(e){switch(e.parent.kind){case 308:return wI(e.parent);case 265:return df(e.parent.parent)&&TN(e.parent.parent.parent)&&!wI(e.parent.parent.parent)}return!1}function xf(e){var t;return null==(t=e.declarations)?void 0:t.find((e=>!(vf(e)||OE(e)&&yf(e))))}function kf(e,t){return wI(e)||qk(t)||(1===(n=Bk(t))||100===n||199===n)&&!!e.commonJsModuleIndicator;var n}function Sf(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!(e.isDeclarationFile||!iS(t,"alwaysStrict")&&!MF(e.statements)&&(!wI(e)&&!qk(t)||!(Bk(t)>=5)&&t.noImplicitUseStrict))}function Tf(e){return!!(16777216&e.flags)||cb(e,2)}function Cf(e,t){switch(e.kind){case 308:case 266:case 295:case 264:case 245:case 246:case 247:case 173:case 171:case 174:case 175:case 259:case 215:case 216:case 169:case 172:return!0;case 238:return!Tl(t)}return!1}function Af(e){switch(In.type(e),e.kind){case 341:case 349:case 326:return!0;default:return wf(e)}}function wf(e){switch(In.type(e),e.kind){case 176:case 177:case 170:case 178:case 181:case 182:case 320:case 260:case 228:case 261:case 262:case 348:case 259:case 171:case 173:case 174:case 175:case 215:case 216:return!0;default:return!1}}function Df(e){switch(e.kind){case 269:case 268:return!0;default:return!1}}function Ef(e){return Df(e)||Ng(e)}function Nf(e){switch(e.kind){case 269:case 268:case 240:case 260:case 259:case 264:case 262:case 261:case 263:return!0;default:return!1}}function Ff(e){return Pf(e)||OE(e)||kD(e)||sm(e)}function Pf(e){return Df(e)||$E(e)}function If(e){return Ec(e.parent,(e=>Cf(e,e.parent)))}function Of(e,t){let n=If(e);for(;n;)t(n),n=If(n)}function Lf(e){return e&&0!==mp(e)?ef(e):"(Missing)"}function Mf(e){return e.declaration?Lf(e.declaration.parameters[0].name):void 0}function Rf(e){return 164===e.kind&&!Ty(e.expression)}function Bf(e){var t;switch(e.kind){case 79:case 80:return(null==(t=e.emitNode)?void 0:t.autoGenerate)?void 0:e.escapedText;case 10:case 8:case 14:return Pc(e.text);case 164:return Ty(e.expression)?Pc(e.expression.text):void 0;default:return In.assertNever(e)}}function jf(e){return In.checkDefined(Bf(e))}function Jf(e){switch(e.kind){case 108:return"this";case 80:case 79:return 0===mp(e)?Oc(e):ef(e);case 163:return Jf(e.left)+"."+Jf(e.right);case 208:return Tw(e.name)||Cw(e.name)?Jf(e.expression)+"."+Jf(e.name):In.assertNever(e.name);case 314:return Jf(e.left)+Jf(e.right);default:return In.assertNever(e)}}function zf(e,t,n,r,i,o){return qf(wp(e),e,t,n,r,i,o)}function Uf(e,t,n,r,i,o,a){const s=As(e.text,t.pos);return kk(e,s,t.end-s,n,r,i,o,a)}function qf(e,t,n,r,i,o,a){const s=Zf(e,t);return kk(e,s.start,s.length,n,r,i,o,a)}function Vf(e,t,n,r){const i=Zf(e,t);return Wf(e,i.start,i.length,n,r)}function Qf(e,t,n,r){const i=As(e.text,t.pos);return Wf(e,i,t.end-i,n,r)}function Kf(e,t,n){In.assertGreaterThanOrEqual(t,0),In.assertGreaterThanOrEqual(n,0),e&&(In.assertLessThanOrEqual(t,e.text.length),In.assertLessThanOrEqual(t+n,e.text.length))}function Wf(e,t,n,r,i){return Kf(e,t,n),{file:e,start:t,length:n,code:r.code,category:r.category,messageText:r.next?r:r.messageText,relatedInformation:i}}function Hf(e,t,n){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function $f(e){return"string"==typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Gf(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function Xf(e,t){const n=qs(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),pc(n.getTokenPos(),n.getTextPos())}function Yf(e,t){const n=qs(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function Zf(e,t){let n=t;switch(t.kind){case 308:const r=As(e.text,0,!1);return r===e.text.length?dc(0,0):Xf(e,r);case 257:case 205:case 260:case 228:case 261:case 264:case 263:case 302:case 259:case 215:case 171:case 174:case 175:case 262:case 169:case 168:case 271:n=t.name;break;case 216:return function(e,t){const n=As(e.text,t.pos);if(t.body&&238===t.body.kind){const{line:r}=ys(e,t.body.pos),{line:i}=ys(e,t.body.end);if(r0?t.statements[0].pos:t.end)}if(void 0===n)return Xf(e,t.pos);In.assert(!zN(n));const r=Lp(n),i=r||cw(t)?n.pos:As(e.text,n.pos);return r?(In.assert(i===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),In.assert(i===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(In.assert(i>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),In.assert(i<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),pc(i,n.end)}function em(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)}function tm(e){return 6===e.scriptKind}function nm(e){return!!(2048&Tc(e))}function rm(e){return!(!(64&Tc(e))||vc(e,e.parent))}function im(e){return!!(2&Ac(e))}function om(e){return!!(1&Ac(e))}function am(e){return 210===e.kind&&106===e.expression.kind}function sm(e){return 210===e.kind&&100===e.expression.kind}function cm(e){return nE(e)&&100===e.keywordToken&&"meta"===e.name.escapedText}function _m(e){return kD(e)&&xD(e.argument)&&sw(e.argument.literal)}function lm(e){return 241===e.kind&&10===e.expression.kind}function um(e){return!!(2097152&rf(e))}function dm(e){return um(e)&&EE(e)}function pm(e){return Tw(e.name)&&!e.initializer}function fm(e){return um(e)&&_E(e)&&F(e.declarationList.declarations,pm)}function mm(e,t){return 11!==e.kind?Rs(t.text,e.pos):void 0}function gm(e,t){return z(166===e.kind||165===e.kind||215===e.kind||216===e.kind||214===e.kind||257===e.kind||278===e.kind?ue(Bs(t,e.pos),Rs(t,e.pos)):Rs(t,e.pos),(e=>42===t.charCodeAt(e.pos+1)&&42===t.charCodeAt(e.pos+2)&&47!==t.charCodeAt(e.pos+3)))}function hm(e){if(179<=e.kind&&e.kind<=202)return!0;switch(e.kind){case 131:case 157:case 148:case 160:case 152:case 134:case 153:case 149:case 155:case 144:return!0;case 114:return 219!==e.parent.kind;case 230:return hN(e.parent)&&!Jb(e);case 165:return 197===e.parent.kind||192===e.parent.kind;case 79:(163===e.parent.kind&&e.parent.right===e||208===e.parent.kind&&e.parent.name===e)&&(e=e.parent),In.assert(79===e.kind||163===e.kind||208===e.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 163:case 208:case 108:{const{parent:t}=e;if(183===t.kind)return!1;if(202===t.kind)return!t.isTypeOf;if(179<=t.kind&&t.kind<=202)return!0;switch(t.kind){case 230:return hN(t.parent)&&!Jb(t);case 165:case 348:return e===t.constraint;case 169:case 168:case 166:case 257:case 259:case 215:case 216:case 173:case 171:case 170:case 174:case 175:case 176:case 177:case 178:case 213:return e===t.type;case 210:case 211:return R(t.typeArguments,e);case 212:return!1}}}return!1}function ym(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function vm(e,t){return function e(n){switch(n.kind){case 250:return t(n);case 266:case 238:case 242:case 243:case 244:case 245:case 246:case 247:case 251:case 252:case 292:case 293:case 253:case 255:case 295:return bI(n,e)}}(e)}function bm(e,t){return function e(n){switch(n.kind){case 226:t(n);const r=n.expression;return void(r&&e(r));case 263:case 261:case 264:case 262:return;default:if(Sl(n)){if(n.name&&164===n.name.kind)return void e(n.name.expression)}else hm(n)||bI(n,e)}}(e)}function xm(e){return e&&185===e.kind?e.elementType:e&&180===e.kind?Je(e.typeArguments):void 0}function km(e){switch(e.kind){case 261:case 260:case 228:case 184:return e.members;case 207:return e.properties}}function Sm(e){if(e)switch(e.kind){case 205:case 302:case 166:case 299:case 169:case 168:case 300:case 257:return!0}return!1}function Tm(e){return Sm(e)||Pl(e)}function Cm(e){return 258===e.parent.kind&&240===e.parent.parent.kind}function Am(e){return!!Sg(e)&&(ED(e.parent)&&QD(e.parent.parent)&&2===Hg(e.parent.parent)||wm(e.parent))}function wm(e){return!!Sg(e)&&QD(e)&&1===Hg(e)}function Dm(e){return(wE(e)?im(e)&&Tw(e.name)&&Cm(e):Qw(e)?mb(e)&&lb(e):Vw(e)&&mb(e))||wm(e)}function Em(e){switch(e.kind){case 171:case 170:case 173:case 174:case 175:case 259:case 215:return!0}return!1}function Nm(e,t){for(;;){if(t&&t(e),253!==e.statement.kind)return e.statement;e=e.statement}}function Fm(e){return e&&238===e.kind&&Sl(e.parent)}function Pm(e){return e&&171===e.kind&&207===e.parent.kind}function Im(e){return!(171!==e.kind&&174!==e.kind&&175!==e.kind||207!==e.parent.kind&&228!==e.parent.kind)}function Om(e){return e&&1===e.kind}function Lm(e){return e&&0===e.kind}function Mm(e,t,n){return e.properties.filter((e=>{if(299===e.kind){const r=Bf(e.name);return t===r||!!n&&n===r}return!1}))}function Rm(e,t,n){return A(Mm(e,t),(e=>DD(e.initializer)?P(e.initializer.elements,(e=>sw(e)&&e.text===n)):void 0))}function Bm(e){if(e&&e.statements.length)return xt(e.statements[0].expression,ED)}function jm(e,t,n){return A(Jm(e,t),(e=>DD(e.initializer)?P(e.initializer.elements,(e=>sw(e)&&e.text===n)):void 0))}function Jm(e,t){const n=Bm(e);return n?Mm(n,t):r}function zm(e){return Ec(e.parent,Sl)}function Um(e){return Ec(e.parent,Cl)}function qm(e){return Ec(e.parent,Fl)}function Vm(e){return Ec(e.parent,(e=>Fl(e)||Sl(e)?"quit":Hw(e)))}function Qm(e){return Ec(e.parent,Tl)}function Km(e,t,n){for(In.assert(308!==e.kind);;){if(!(e=e.parent))return In.fail();switch(e.kind){case 164:if(n&&Fl(e.parent.parent))return e;e=e.parent.parent;break;case 167:166===e.parent.kind&&Nl(e.parent.parent)?e=e.parent.parent:Nl(e.parent)&&(e=e.parent);break;case 216:if(!t)continue;case 259:case 215:case 264:case 172:case 169:case 168:case 171:case 170:case 173:case 174:case 175:case 176:case 177:case 178:case 263:case 308:return e}}}function Wm(e){switch(e.kind){case 216:case 259:case 215:case 169:return!0;case 238:switch(e.parent.kind){case 173:case 171:case 174:case 175:return!0;default:return!1}default:return!1}}function Hm(e){return Tw(e)&&(NE(e.parent)||EE(e.parent))&&e.parent.name===e&&(e=e.parent),TN(Km(e,!0,!1))}function $m(e){const t=Km(e,!1,!1);if(t)switch(t.kind){case 173:case 259:case 215:return t}}function Gm(e,t){for(;;){if(!(e=e.parent))return;switch(e.kind){case 164:e=e.parent;break;case 259:case 215:case 216:if(!t)continue;case 169:case 168:case 171:case 170:case 173:case 174:case 175:case 172:return e;case 167:166===e.parent.kind&&Nl(e.parent.parent)?e=e.parent.parent:Nl(e.parent)&&(e=e.parent)}}}function Xm(e){if(215===e.kind||216===e.kind){let t=e,n=e.parent;for(;214===n.kind;)t=n,n=n.parent;if(210===n.kind&&n.expression===t)return n}}function Ym(e){return 106===e.kind||Zm(e)}function Zm(e){const t=e.kind;return(208===t||209===t)&&106===e.expression.kind}function eg(e){const t=e.kind;return(208===t||209===t)&&108===e.expression.kind}function tg(e){var t;return!!e&&wE(e)&&108===(null==(t=e.initializer)?void 0:t.kind)}function ng(e){return!!e&&(bN(e)||vN(e))&&QD(e.parent.parent)&&63===e.parent.parent.operatorToken.kind&&108===e.parent.parent.right.kind}function rg(e){switch(e.kind){case 180:return e.typeName;case 230:return zb(e.expression)?e.expression:void 0;case 79:case 163:return e}}function ig(e){switch(e.kind){case 212:return e.tag;case 283:case 282:return e.tagName;default:return e.expression}}function og(e,t,n,r){if(e&&zc(t)&&Cw(t.name))return!1;switch(t.kind){case 260:return!0;case 228:return!e;case 169:return void 0!==n&&(e?NE(n):Fl(n)&&!db(t)&&!pb(t));case 174:case 175:case 171:return void 0!==t.body&&void 0!==n&&(e?NE(n):Fl(n));case 166:return!!e&&void 0!==n&&void 0!==n.body&&(173===n.kind||171===n.kind||175===n.kind)&&Jv(n)!==t&&void 0!==r&&260===r.kind}return!1}function ag(e,t,n,r){return gb(t)&&og(e,t,n,r)}function sg(e,t,n,r){return ag(e,t,n,r)||cg(e,t,n)}function cg(e,t,n){switch(t.kind){case 260:return _e(t.members,(r=>sg(e,r,t,n)));case 228:return!e&&_e(t.members,(r=>sg(e,r,t,n)));case 171:case 175:case 173:return _e(t.parameters,(r=>ag(e,r,t,n)));default:return!1}}function _g(e,t){if(ag(e,t))return!0;const n=Rv(t);return!!n&&cg(e,n,t)}function lg(e,t,n){let r;if(Pl(t)){const{firstAccessor:e,secondAccessor:i,setAccessor:o}=Qv(n.members,t),a=gb(e)?e:i&&gb(i)?i:void 0;if(!a||t!==a)return!1;r=null==o?void 0:o.parameters}else Ww(t)&&(r=t.parameters);if(ag(e,t,n))return!0;if(r)for(const i of r)if(!zv(i)&&ag(e,i,t,n))return!0;return!1}function ug(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 10:return ug(e.textSourceNode);case 14:return""===e.text}return!1}return""===e.text}function dg(e){const{parent:t}=e;return(283===t.kind||282===t.kind||284===t.kind)&&t.tagName===e}function pg(e){switch(e.kind){case 106:case 104:case 110:case 95:case 13:case 206:case 207:case 208:case 209:case 210:case 211:case 212:case 231:case 213:case 235:case 232:case 214:case 215:case 228:case 216:case 219:case 217:case 218:case 221:case 222:case 223:case 224:case 227:case 225:case 229:case 281:case 282:case 285:case 226:case 220:case 233:return!0;case 230:return!hN(e.parent)&&!VN(e.parent);case 163:for(;163===e.parent.kind;)e=e.parent;return 183===e.parent.kind||td(e.parent)||DN(e.parent)||EN(e.parent)||dg(e);case 314:for(;EN(e.parent);)e=e.parent;return 183===e.parent.kind||td(e.parent)||DN(e.parent)||EN(e.parent)||dg(e);case 80:return QD(e.parent)&&e.parent.left===e&&101===e.parent.operatorToken.kind;case 79:if(183===e.parent.kind||td(e.parent)||DN(e.parent)||EN(e.parent)||dg(e))return!0;case 8:case 9:case 10:case 14:case 108:return fg(e);default:return!1}}function fg(e){const{parent:t}=e;switch(t.kind){case 257:case 166:case 169:case 168:case 302:case 299:case 205:return t.initializer===e;case 241:case 242:case 243:case 244:case 250:case 251:case 252:case 292:case 254:return t.expression===e;case 245:const n=t;return n.initializer===e&&258!==n.initializer.kind||n.condition===e||n.incrementor===e;case 246:case 247:const r=t;return r.initializer===e&&258!==r.initializer.kind||r.expression===e;case 213:case 231:case 236:case 164:case 235:return e===t.expression;case 167:case 291:case 290:case 301:return!0;case 230:return t.expression===e&&!hm(t);case 300:return t.objectAssignmentInitializer===e;default:return pg(t)}}function mg(e){for(;163===e.kind||79===e.kind;)e=e.parent;return 183===e.kind}function gg(e){return QE(e)&&!!e.parent.moduleSpecifier}function hg(e){return 268===e.kind&&280===e.moduleReference.kind}function yg(e){return In.assert(hg(e)),e.moduleReference.expression}function vg(e){return Ng(e)&&nk(e.initializer).arguments[0]}function bg(e){return 268===e.kind&&280!==e.moduleReference.kind}function xg(e){return Sg(e)}function kg(e){return!Sg(e)}function Sg(e){return!!e&&!!(262144&e.flags)}function Tg(e){return!!e&&!!(67108864&e.flags)}function Cg(e){return!tm(e)}function Ag(e){return!!e&&!!(8388608&e.flags)}function wg(e){return nD(e)&&Tw(e.typeName)&&"Object"===e.typeName.escapedText&&e.typeArguments&&2===e.typeArguments.length&&(152===e.typeArguments[0].kind||148===e.typeArguments[0].kind)}function Dg(e,t){if(210!==e.kind)return!1;const{expression:n,arguments:r}=e;if(79!==n.kind||"require"!==n.escapedText)return!1;if(1!==r.length)return!1;const i=r[0];return!t||ed(i)}function Eg(e){return Pg(e,!1)}function Ng(e){return Pg(e,!0)}function Fg(e){return wD(e)&&Ng(e.parent.parent)}function Pg(e,t){return wE(e)&&!!e.initializer&&Dg(t?nk(e.initializer):e.initializer,!0)}function Ig(e){return _E(e)&&e.declarationList.declarations.length>0&&F(e.declarationList.declarations,(e=>Eg(e)))}function Og(e){return 39===e||34===e}function Lg(e,t){return 34===Xp(t,e).charCodeAt(0)}function Mg(e){return QD(e)||Yx(e)||Tw(e)||PD(e)}function Rg(e){return Sg(e)&&e.initializer&&QD(e.initializer)&&(56===e.initializer.operatorToken.kind||60===e.initializer.operatorToken.kind)&&e.name&&zb(e.name)&&qg(e.name,e.initializer.left)?e.initializer.right:e.initializer}function Bg(e){const t=Rg(e);return t&&Jg(t,Kb(e.name))}function jg(e){if(e&&e.parent&&QD(e.parent)&&63===e.parent.operatorToken.kind){const t=Kb(e.parent.left);return Jg(e.parent.right,t)||function(e,t,n){const r=QD(t)&&(56===t.operatorToken.kind||60===t.operatorToken.kind)&&Jg(t.right,n);if(r&&qg(e,t.left))return r}(e.parent.left,e.parent.right,t)}if(e&&PD(e)&&$g(e)){const t=function(e,t){return T(e.properties,(e=>vN(e)&&Tw(e.name)&&"value"===e.name.escapedText&&e.initializer&&Jg(e.initializer,t)))}(e.arguments[2],"prototype"===e.arguments[1].text);if(t)return t}}function Jg(e,t){if(PD(e)){const t=Hh(e.expression);return 215===t.kind||216===t.kind?e:void 0}return 215===e.kind||228===e.kind||216===e.kind||ED(e)&&(0===e.properties.length||t)?e:void 0}function zg(e){const t=wE(e.parent)?e.parent.name:QD(e.parent)&&63===e.parent.operatorToken.kind?e.parent.left:void 0;return t&&Jg(e.right,Kb(t))&&zb(t)&&qg(t,e.left)}function Ug(e){if(QD(e.parent)){const t=56!==e.parent.operatorToken.kind&&60!==e.parent.operatorToken.kind||!QD(e.parent.parent)?e.parent:e.parent.parent;if(63===t.operatorToken.kind&&Tw(t.left))return t.left}else if(wE(e.parent))return e.parent.name}function qg(e,t){return Ey(e)&&Ey(t)?Ny(e)===Ny(t):F_(e)&&Gg(t)&&(108===t.expression.kind||Tw(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))?qg(e,th(t)):!(!Gg(e)||!Gg(t))&&rh(e)===rh(t)&&qg(e.expression,t.expression)}function Vg(e){for(;Rb(e,!0);)e=e.right;return e}function Qg(e){return Tw(e)&&"exports"===e.escapedText}function Kg(e){return Tw(e)&&"module"===e.escapedText}function Wg(e){return(ND(e)||Xg(e))&&Kg(e.expression)&&"exports"===rh(e)}function Hg(e){const t=function(e){if(PD(e)){if(!$g(e))return 0;const t=e.arguments[0];return Qg(t)||Wg(t)?8:Yg(t)&&"prototype"===rh(t)?9:7}return 63!==e.operatorToken.kind||!Yx(e.left)||zD(t=Vg(e))&&ow(t.expression)&&"0"===t.expression.text?0:eh(e.left.expression,!0)&&"prototype"===rh(e.left)&&ED(oh(e))?6:ih(e.left);var t}(e);return 5===t||Sg(e)?t:0}function $g(e){return 3===S(e.arguments)&&ND(e.expression)&&Tw(e.expression.expression)&&"Object"===Oc(e.expression.expression)&&"defineProperty"===Oc(e.expression.name)&&Ty(e.arguments[1])&&eh(e.arguments[0],!0)}function Gg(e){return ND(e)||Xg(e)}function Xg(e){return FD(e)&&Ty(e.argumentExpression)}function Yg(e,t){return ND(e)&&(!t&&108===e.expression.kind||Tw(e.name)&&eh(e.expression,!0))||Zg(e,t)}function Zg(e,t){return Xg(e)&&(!t&&108===e.expression.kind||zb(e.expression)||Yg(e.expression,!0))}function eh(e,t){return zb(e)||Yg(e,t)}function th(e){return ND(e)?e.name:e.argumentExpression}function nh(e){if(ND(e))return e.name;const t=Hh(e.argumentExpression);return ow(t)||ed(t)?t:e}function rh(e){const t=nh(e);if(t){if(Tw(t))return t.escapedText;if(ed(t)||ow(t))return Pc(t.text)}}function ih(e){if(108===e.expression.kind)return 4;if(Wg(e))return 2;if(eh(e.expression,!0)){if(Kb(e.expression))return 3;let t=e;for(;!Tw(t.expression);)t=t.expression;const n=t.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===rh(t))&&Yg(e))return 1;if(eh(e,!0)||FD(e)&&wy(e))return 5}return 0}function oh(e){for(;QD(e.right);)e=e.right;return e.right}function ah(e){return QD(e)&&3===Hg(e)}function sh(e){return Sg(e)&&e.parent&&241===e.parent.kind&&(!FD(e)||Xg(e))&&!!v_(e.parent)}function ch(e,t){const{valueDeclaration:n}=e;(!n||(!(16777216&t.flags)||Sg(t)||16777216&n.flags)&&Mg(n)&&!Mg(t)||n.kind!==t.kind&&mf(n))&&(e.valueDeclaration=t)}function _h(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return 259===t.kind||wE(t)&&t.initializer&&Sl(t.initializer)}function lh(e){var t,n;switch(e.kind){case 257:case 205:return null==(t=Ec(e.initializer,(e=>Dg(e,!0))))?void 0:t.arguments[0];case 269:return xt(e.moduleSpecifier,ed);case 268:return xt(null==(n=xt(e.moduleReference,rN))?void 0:n.expression,ed);case 270:case 277:return xt(e.parent.moduleSpecifier,ed);case 271:case 278:return xt(e.parent.parent.moduleSpecifier,ed);case 273:return xt(e.parent.parent.parent.moduleSpecifier,ed);default:In.assertNever(e)}}function uh(e){return dh(e)||In.failBadSyntaxKind(e.parent)}function dh(e){switch(e.parent.kind){case 269:case 275:return e.parent;case 280:return e.parent.parent;case 210:return sm(e.parent)||Dg(e.parent,!1)?e.parent:void 0;case 198:return In.assert(sw(e)),xt(e.parent.parent,kD);default:return}}function ph(e){switch(e.kind){case 269:case 275:return e.moduleSpecifier;case 268:return 280===e.moduleReference.kind?e.moduleReference.expression:void 0;case 202:return _m(e)?e.argument.literal:void 0;case 210:return e.arguments[0];case 264:return 10===e.name.kind?e.name:void 0;default:return In.assertNever(e)}}function fh(e){switch(e.kind){case 269:return e.importClause&&xt(e.importClause.namedBindings,VE);case 268:return e;case 275:return e.exportClause&&xt(e.exportClause,QE);default:return In.assertNever(e)}}function mh(e){return 269===e.kind&&!!e.importClause&&!!e.importClause.name}function gh(e,t){if(e.name){const n=t(e);if(n)return n}if(e.namedBindings){const n=VE(e.namedBindings)?t(e.namedBindings):T(e.namedBindings.elements,t);if(n)return n}}function hh(e){if(e)switch(e.kind){case 166:case 171:case 170:case 300:case 299:case 169:case 168:return void 0!==e.questionToken}return!1}function yh(e){const t=BN(e)?Oe(e.parameters):void 0,n=xt(t&&t.name,Tw);return!!n&&"new"===n.escapedText}function vh(e){return 349===e.kind||341===e.kind||343===e.kind}function bh(e){return vh(e)||PE(e)}function xh(e){return uE(e)&&QD(e.expression)&&0!==Hg(e.expression)&&QD(e.expression.right)&&(56===e.expression.right.operatorToken.kind||60===e.expression.right.operatorToken.kind)?e.expression.right.right:void 0}function kh(e){switch(e.kind){case 240:const t=Sh(e);return t&&t.initializer;case 169:case 299:return e.initializer}}function Sh(e){return _E(e)?Oe(e.declarationList.declarations):void 0}function Th(e){return OE(e)&&e.body&&264===e.body.kind?e.body:void 0}function Ch(e){if(e.kind>=240&&e.kind<=256)return!0;switch(e.kind){case 79:case 108:case 106:case 163:case 233:case 209:case 208:case 205:case 215:case 216:case 171:case 174:case 175:return!0;default:return!1}}function Ah(e){switch(e.kind){case 216:case 223:case 238:case 249:case 176:case 292:case 260:case 228:case 172:case 173:case 182:case 177:case 248:case 256:case 243:case 209:case 239:case 1:case 263:case 302:case 274:case 275:case 278:case 241:case 246:case 247:case 245:case 259:case 215:case 181:case 174:case 79:case 242:case 269:case 268:case 178:case 261:case 320:case 326:case 253:case 171:case 170:case 264:case 199:case 267:case 207:case 166:case 214:case 208:case 299:case 169:case 168:case 250:case 175:case 300:case 301:case 252:case 254:case 255:case 262:case 165:case 257:case 240:case 244:case 251:return!0;default:return!1}}function wh(e,t){let n;Sm(e)&&$u(e)&&Wu(e.initializer)&&(n=Ae(n,Dh(e,je(e.initializer.jsDoc))));let i=e;for(;i&&i.parent;){if(Wu(i)&&(n=Ae(n,Dh(e,je(i.jsDoc)))),166===i.kind){n=Ae(n,(t?$c:Hc)(i));break}if(165===i.kind){n=Ae(n,(t?Yc:Xc)(i));break}i=Nh(i)}return n||r}function Dh(e,t){if(zN(t)){const n=z(t.tags,(t=>Eh(e,t)));return t.tags===n?[t]:n}return Eh(e,t)?[t]:void 0}function Eh(e,t){return!((aF(t)||dF(t))&&t.parent&&zN(t.parent)&&MD(t.parent.parent)&&t.parent.parent!==e)}function Nh(e){const t=e.parent;return 299===t.kind||274===t.kind||169===t.kind||241===t.kind&&208===e.kind||250===t.kind||Th(t)||QD(e)&&63===e.operatorToken.kind?t:t.parent&&(Sh(t.parent)===e||QD(t)&&63===t.operatorToken.kind)?t.parent:t.parent&&t.parent.parent&&(Sh(t.parent.parent)||kh(t.parent.parent)===e||xh(t.parent.parent))?t.parent.parent:void 0}function Fh(e){if(e.symbol)return e.symbol;if(!Tw(e.name))return;const t=e.name.escapedText,n=Ih(e);if(!n)return;const r=P(n.parameters,(e=>79===e.name.kind&&e.name.escapedText===t));return r&&r.symbol}function Ph(e){if(zN(e.parent)&&e.parent.tags){const t=P(e.parent.tags,vh);if(t)return t}return Ih(e)}function Ih(e){const t=Oh(e);if(t)return Vw(t)&&t.type&&Sl(t.type)?t.type:Sl(t)?t:void 0}function Oh(e){const t=Lh(e);if(t)return xh(t)||function(e){return uE(e)&&QD(e.expression)&&63===e.expression.operatorToken.kind?Vg(e.expression):void 0}(t)||kh(t)||Sh(t)||Th(t)||t}function Lh(e){const t=Mh(e);if(!t)return;const n=t.parent;return n&&n.jsDoc&&t===Be(n.jsDoc)?n:void 0}function Mh(e){return Ec(e.parent,zN)}function Rh(e){const t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&P(n,(e=>e.name.escapedText===t))}function Bh(e){return!!e.typeArguments}function jh(e){let t=e.parent;for(;;){switch(t.kind){case 223:const n=t.operatorToken.kind;return Ob(n)&&t.left===e?63===n||Nb(n)?1:2:0;case 221:case 222:const r=t.operator;return 45===r||46===r?2:0;case 246:case 247:return t.initializer===e?1:0;case 214:case 206:case 227:case 232:e=t;break;case 301:e=t.parent;break;case 300:if(t.name!==e)return 0;e=t.parent;break;case 299:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function Jh(e){return 0!==jh(e)}function zh(e){switch(e.kind){case 238:case 240:case 251:case 242:case 252:case 266:case 292:case 293:case 253:case 245:case 246:case 247:case 243:case 244:case 255:case 295:return!0}return!1}function Uh(e){return RD(e)||BD(e)||Ol(e)||EE(e)||$w(e)}function qh(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function Vh(e){return qh(e,193)}function Qh(e){return qh(e,214)}function Kh(e){let t;for(;e&&193===e.kind;)t=e,e=e.parent;return[t,e]}function Wh(e){for(;gD(e);)e=e.type;return e}function Hh(e,t){return UF(e,t?17:1)}function $h(e){return(208===e.kind||209===e.kind)&&(e=Qh(e.parent))&&217===e.kind}function Gh(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function Xh(e){return!TN(e)&&!Ul(e)&&Nu(e.parent)&&e.parent.name===e}function Yh(e){const t=e.parent;switch(e.kind){case 10:case 14:case 8:if(Jw(t))return t.parent;case 79:if(Nu(t))return t.name===e?t:void 0;if(jw(t)){const e=t.parent;return rF(e)&&e.name===t?e:void 0}{const n=t.parent;return QD(n)&&0!==Hg(n)&&(n.left.symbol||n.symbol)&&qc(n)===e?n:void 0}case 80:return Nu(t)&&t.name===e?t:void 0;default:return}}function Zh(e){return Ty(e)&&164===e.parent.kind&&Nu(e.parent.parent)}function ey(e){const t=e.parent;switch(t.kind){case 169:case 168:case 171:case 170:case 174:case 175:case 302:case 299:case 208:return t.name===e;case 163:return t.right===e;case 205:case 273:return t.propertyName===e;case 278:case 288:case 282:case 283:case 284:return!0}return!1}function ty(e){return!!(268===e.kind||267===e.kind||270===e.kind&&e.name||271===e.kind||277===e.kind||273===e.kind||278===e.kind||274===e.kind&&iy(e))||Sg(e)&&(QD(e)&&2===Hg(e)&&iy(e)||ND(e)&&QD(e.parent)&&e.parent.left===e&&63===e.parent.operatorToken.kind&&ry(e.parent.right))}function ny(e){switch(e.parent.kind){case 270:case 273:case 271:case 278:case 274:case 268:case 277:return e.parent;case 163:do{e=e.parent}while(163===e.parent.kind);return ny(e)}}function ry(e){return zb(e)||GD(e)}function iy(e){return ry(oy(e))}function oy(e){return HE(e)?e.expression:e.right}function ay(e){return 300===e.kind?e.name:299===e.kind?e.initializer:e.parent.right}function sy(e){const t=cy(e);if(t&&Sg(e)){const t=e_(e);if(t)return t.class}return t}function cy(e){const t=dy(e.heritageClauses,94);return t&&t.types.length>0?t.types[0]:void 0}function _y(e){if(Sg(e))return t_(e).map((e=>e.class));{const t=dy(e.heritageClauses,117);return null==t?void 0:t.types}}function ly(e){return FE(e)?uy(e)||r:Fl(e)&&ue(kn(sy(e)),_y(e))||r}function uy(e){const t=dy(e.heritageClauses,94);return t?t.types:void 0}function dy(e,t){if(e)for(const n of e)if(n.token===t)return n}function py(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function fy(e){return 81<=e&&e<=162}function my(e){return 126<=e&&e<=162}function gy(e){return fy(e)&&!my(e)}function hy(e){return 117<=e&&e<=125}function yy(e){const t=ls(e);return void 0!==t&&gy(t)}function vy(e){const t=ls(e);return void 0!==t&&fy(t)}function by(e){const t=Lc(e);return!!t&&!my(t)}function xy(e){return 2<=e&&e<=7}function ky(e){if(!e)return 4;let t=0;switch(e.kind){case 259:case 215:case 171:e.asteriskToken&&(t|=1);case 216:cb(e,512)&&(t|=2)}return e.body||(t|=4),t}function Sy(e){switch(e.kind){case 259:case 215:case 216:case 171:return void 0!==e.body&&void 0===e.asteriskToken&&cb(e,512)}return!1}function Ty(e){return ed(e)||ow(e)}function Cy(e){return qD(e)&&(39===e.operator||40===e.operator)&&ow(e.operand)}function Ay(e){const t=qc(e);return!!t&&wy(t)}function wy(e){if(164!==e.kind&&209!==e.kind)return!1;const t=FD(e)?Hh(e.argumentExpression):e.expression;return!Ty(t)&&!Cy(t)}function Dy(e){switch(e.kind){case 79:case 80:return e.escapedText;case 10:case 8:return Pc(e.text);case 164:const t=e.expression;return Ty(t)?Pc(t.text):Cy(t)?40===t.operator?_s(t.operator)+t.operand.text:t.operand.text:void 0;default:return In.assertNever(e)}}function Ey(e){switch(e.kind){case 79:case 10:case 14:case 8:return!0;default:return!1}}function Ny(e){return F_(e)?Oc(e):e.text}function Fy(e){return F_(e)?e.escapedText:Pc(e.text)}function Py(e){return`__@${VB(e)}@${e.escapedName}`}function Iy(e,t){return`__#${VB(e)}@${t}`}function Oy(e){return fn(e.escapedName,"__@")}function Ly(e){return fn(e.escapedName,"__#")}function My(e){return 79===e.kind&&"Symbol"===e.escapedText}function Ry(e){return Tw(e)?"__proto__"===Oc(e):sw(e)&&"__proto__"===e.text}function By(e,t){switch((e=UF(e)).kind){case 228:case 215:if(e.name)return!1;break;case 216:break;default:return!1}return"function"!=typeof t||t(e)}function jy(e){switch(e.kind){case 299:return!Ry(e.name);case 300:return!!e.objectAssignmentInitializer;case 257:return Tw(e.name)&&!!e.initializer;case 166:case 205:return Tw(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 169:return!!e.initializer;case 223:switch(e.operatorToken.kind){case 63:case 76:case 75:case 77:return Tw(e.left)}break;case 274:return!0}return!1}function Jy(e,t){if(!jy(e))return!1;switch(e.kind){case 299:case 257:case 166:case 205:case 169:return By(e.initializer,t);case 300:return By(e.objectAssignmentInitializer,t);case 223:return By(e.right,t);case 274:return By(e.expression,t)}}function zy(e){return"push"===e.escapedText||"unshift"===e.escapedText}function Uy(e){return 166===qy(e).kind}function qy(e){for(;205===e.kind;)e=e.parent.parent;return e}function Vy(e){const t=e.kind;return 173===t||215===t||259===t||216===t||171===t||174===t||175===t||264===t||308===t}function Qy(e){return HS(e.pos)||HS(e.end)}function Ky(e){return Fc(e,TN)||e}function Wy(e){const t=Gy(e),n=211===e.kind&&void 0!==e.arguments;return Hy(e.kind,t,n)}function Hy(e,t,n){switch(e){case 211:return n?0:1;case 221:case 218:case 219:case 217:case 220:case 224:case 226:return 1;case 223:switch(t){case 42:case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 1}}return 0}function $y(e){const t=Gy(e),n=211===e.kind&&void 0!==e.arguments;return Xy(e.kind,t,n)}function Gy(e){return 223===e.kind?e.operatorToken.kind:221===e.kind||222===e.kind?e.operator:e.kind}function Xy(e,t,n){switch(e){case 357:return 0;case 227:return 1;case 226:return 2;case 224:return 4;case 223:switch(t){case 27:return 0;case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 3;default:return Yy(t)}case 213:case 232:case 221:case 218:case 219:case 217:case 220:return 16;case 222:return 17;case 210:return 18;case 211:return n?19:18;case 212:case 208:case 209:case 233:return 19;case 231:case 235:return 11;case 108:case 106:case 79:case 80:case 104:case 110:case 95:case 8:case 9:case 10:case 206:case 207:case 215:case 216:case 228:case 13:case 14:case 225:case 214:case 229:case 281:case 282:case 285:return 20;default:return-1}}function Yy(e){switch(e){case 60:return 4;case 56:return 5;case 55:return 6;case 51:return 7;case 52:return 8;case 50:return 9;case 34:case 35:case 36:case 37:return 10;case 29:case 31:case 32:case 33:case 102:case 101:case 128:case 150:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}function Zy(e){return z(e,(e=>{switch(e.kind){case 291:return!!e.expression;case 11:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))}function ev(){let e=[];const t=[],n=new Map;let r=!1;return{add:function(i){let o;i.file?(o=n.get(i.file.fileName),o||(o=[],n.set(i.file.fileName,o),ge(t,i.file.fileName,Qt))):(r&&(r=!1,e=e.slice()),o=e),ge(o,i,Nk)},lookup:function(t){let r;if(r=t.file?n.get(t.file.fileName):e,!r)return;const i=Ve(r,t,wt,Nk);return i>=0?r[i]:void 0},getGlobalDiagnostics:function(){return r=!0,e},getDiagnostics:function(r){if(r)return n.get(r)||[];const i=$(t,(e=>n.get(e)));return e.length?(i.unshift(...e),i):i}}}function tv(e){return e&&!!(lw(e)?e.templateFlags:e.head.templateFlags||_e(e.templateSpans,(e=>!!e.literal.templateFlags)))}function nv(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function rv(e,t,n){if(0===e.charCodeAt(0)){const r=n.charCodeAt(t+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return kd.get(e)||nv(e.charCodeAt(0))}function iv(e,t){const n=96===t?xd:39===t?bd:vd;return e.replace(n,rv)}function ov(e,t){return e=iv(e,t),Sd.test(e)?e.replace(Sd,(e=>nv(e.charCodeAt(0)))):e}function av(e){return 0===e.charCodeAt(0)?"�":Ad.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function sv(e,t){const n=39===t?Cd:Td;return e.replace(n,av)}function cv(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(39===(n=e.charCodeAt(0))||34===n||96===n)?e.substring(1,t-1):e;var n}function _v(e){const t=e.charCodeAt(0);return t>=97&&t<=122||rn(e,"-")||rn(e,":")}function lv(e){const t=wd[1];for(let n=wd.length;n<=e;n++)wd.push(wd[n-1]+t);return wd[e]}function uv(){return wd[1].length}function dv(){return rn(t,"-dev")||rn(t,"-insiders")}function pv(e){var t,n,r,i,o,a=!1;function s(e){const n=us(e);n.length>1?(i=i+n.length-1,o=t.length-e.length+je(n),r=o-t.length==0):r=!1}function c(e){e&&e.length&&(r&&(e=lv(n)+e,r=!1),t+=e,s(e))}function _(e){e&&(a=!1),c(e)}function l(){t="",n=0,r=!0,i=0,o=0,a=!1}return l(),{write:_,rawWrite:function(e){void 0!==e&&(t+=e,s(e),a=!1)},writeLiteral:function(e){e&&e.length&&_(e)},writeLine:function(n){r&&!n||(i++,o=(t+=e).length,r=!0,a=!1)},increaseIndent:()=>{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>t.length,getLine:()=>i,getColumn:()=>r?n*uv():t.length-o,getText:()=>t,isAtStartOfLine:()=>r,hasTrailingComment:()=>a,hasTrailingWhitespace:()=>!!t.length&&vs(t.charCodeAt(t.length-1)),clear:l,writeKeyword:_,writeOperator:_,writeParameter:_,writeProperty:_,writePunctuation:_,writeSpace:_,writeStringLiteral:_,writeSymbol:(e,t)=>_(e),writeTrailingSemicolon:_,writeComment:function(e){e&&(a=!0),c(e)},getTextPosWithWriteLine:function(){return r?t.length:t.length+e.length}}}function fv(e){let t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(t){n(),e.writeLiteral(t)},writeStringLiteral(t){n(),e.writeStringLiteral(t)},writeSymbol(t,r){n(),e.writeSymbol(t,r)},writePunctuation(t){n(),e.writePunctuation(t)},writeKeyword(t){n(),e.writeKeyword(t)},writeOperator(t){n(),e.writeOperator(t)},writeParameter(t){n(),e.writeParameter(t)},writeSpace(t){n(),e.writeSpace(t)},writeProperty(t){n(),e.writeProperty(t)},writeComment(t){n(),e.writeComment(t)},writeLine(){n(),e.writeLine()},increaseIndent(){n(),e.increaseIndent()},decreaseIndent(){n(),e.decreaseIndent()}}}function mv(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function gv(e){return ln(mv(e))}function hv(e,t,n){return t.moduleName||bv(e,t.fileName,n&&n.fileName)}function yv(e,t){return e.getCanonicalFileName(ya(t,e.getCurrentDirectory()))}function vv(e,t,n){const r=t.getExternalModuleFileFromDeclaration(n);if(!r||r.isDeclarationFile)return;const i=ph(n);return i&&ed(i)&&!Yo(i.text)&&-1===yv(e,r.path).indexOf(yv(e,Sa(e.getCommonSourceDirectory())))?void 0:hv(e,r)}function bv(e,t,n){const r=t=>e.getCanonicalFileName(t),i=xa(n?sa(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),r),o=US(Ma(i,ya(t,e.getCurrentDirectory()),i,r,!1));return n?Ta(o):o}function xv(e,t,n){const r=t.getCompilerOptions();let i;return i=r.outDir?US(Nv(e,t,r.outDir)):US(e),i+n}function kv(e,t){return Sv(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e)))}function Sv(e,t,n,r,i){const o=t.declarationDir||t.outDir,a=o?Fv(e,o,n,r,i):e,s=Tv(a);return US(a)+s}function Tv(e){return na(e,[".mjs",".mts"])?".d.mts":na(e,[".cjs",".cts"])?".d.cts":na(e,[".json"])?".d.json.ts":".d.ts"}function Cv(e){return na(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:na(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:na(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Av(e){return e.outFile||e.out}function wv(e,t){var n,r;if(e.paths)return null!=(r=e.baseUrl)?r:In.checkDefined(e.pathsBasePath||(null==(n=t.getCurrentDirectory)?void 0:n.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function Dv(e,t,n){const r=e.getCompilerOptions();if(Av(r)){const t=Bk(r),i=r.emitDeclarationOnly||2===t||4===t;return z(e.getSourceFiles(),(t=>(i||!wI(t))&&Ev(t,e,n)))}return z(void 0===t?e.getSourceFiles():[t],(t=>Ev(t,e,n)))}function Ev(e,t,n){return!(t.getCompilerOptions().noEmitForJsFiles&&xg(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(n||!(tm(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function Nv(e,t,n){return Fv(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e)))}function Fv(e,t,n,r,i){let o=ya(e,n);return o=0===i(o).indexOf(i(r))?o.substring(r.length):o,ma(t,o)}function Pv(e,t,n,r,i,o,a){e.writeFile(n,r,i,(e=>{t.add(Tk(ja.Could_not_write_file_0_Colon_1,n,e))}),o,a)}function Iv(e,t,n){e.length>aa(e)&&!n(e)&&(Iv(sa(e),t,n),t(e))}function Ov(e,t,n,r,i,o){try{r(e,t,n)}catch(a){Iv(sa(va(e)),i,o),r(e,t,n)}}function Lv(e,t){return gs(fs(e),t)}function Mv(e,t){return gs(e,t)}function Rv(e){return P(e.members,(e=>$w(e)&&Mp(e.body)))}function Bv(e){if(e&&e.parameters.length>0){const t=2===e.parameters.length&&zv(e.parameters[0]);return e.parameters[t?1:0]}}function jv(e){const t=Bv(e);return t&&t.type}function Jv(e){if(e.parameters.length&&!qN(e)){const t=e.parameters[0];if(zv(t))return t}}function zv(e){return Uv(e.name)}function Uv(e){return!!e&&79===e.kind&&Vv(e)}function qv(e){if(!Uv(e))return!1;for(;jw(e.parent)&&e.parent.left===e;)e=e.parent;return 183===e.parent.kind}function Vv(e){return"this"===e.escapedText}function Qv(e,t){let n,r,i,o;return Ay(t)?(n=t,174===t.kind?i=t:175===t.kind?o=t:In.fail("Accessor has wrong kind")):T(e,(e=>{Pl(e)&&_b(e)===_b(t)&&Dy(e.name)===Dy(t.name)&&(n?r||(r=e):n=e,174!==e.kind||i||(i=e),175!==e.kind||o||(o=e))})),{firstAccessor:n,secondAccessor:r,getAccessor:i,setAccessor:o}}function Kv(e){if(!Sg(e)&&EE(e))return;const t=e.type;return t||!Sg(e)?t:H_(e)?e.typeExpression&&e.typeExpression.type:b_(e)}function Wv(e){return e.type}function Hv(e){return qN(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Sg(e)?x_(e):void 0)}function $v(e){return H(S_(e),(e=>function(e){return sF(e)&&!(323===e.parent.kind&&(e.parent.tags.some(vh)||e.parent.tags.some(ZN)))}(e)?e.typeParameters:void 0))}function Gv(e){const t=Bv(e);return t&&Kv(t)}function Xv(e,t,n,r){Yv(e,t,n.pos,r)}function Yv(e,t,n,r){r&&r.length&&n!==r[0].pos&&Mv(e,n)!==Mv(e,r[0].pos)&&t.writeLine()}function Zv(e,t,n,r){n!==r&&Mv(e,n)!==Mv(e,r)&&t.writeLine()}function eb(e,t,n,r,i,o,a,s){if(r&&r.length>0){i&&n.writeSpace(" ");let c=!1;for(const i of r)c&&(n.writeSpace(" "),c=!1),s(e,t,n,i.pos,i.end,a),i.hasTrailingNewLine?n.writeLine():c=!0;c&&o&&n.writeSpace(" ")}}function tb(e,t,n,r,i,o,a){let s,c;if(a?0===i.pos&&(s=z(Rs(e,i.pos),(function(t){return Wp(e,t.pos)}))):s=Rs(e,i.pos),s){const a=[];let _;for(const e of s){if(_){const n=Mv(t,_.end);if(Mv(t,e.pos)>=n+2)break}a.push(e),_=e}if(a.length){const _=Mv(t,je(a).end);Mv(t,As(e,i.pos))>=_+2&&(Xv(t,n,i,s),eb(e,t,n,a,!1,!0,o,r),c={nodePos:i.pos,detachedCommentEndPos:je(a).end})}}return c}function nb(e,t,n,r,i,o){if(42===e.charCodeAt(r+1)){const a=ms(t,r),s=t.length;let c;for(let _=r,l=a.line;_0){let e=i%uv();const t=lv((i-e)/uv());for(n.rawWrite(t);e;)n.rawWrite(" "),e--}else n.rawWrite("")}rb(e,i,n,o,_,u),_=u}}else n.writeComment(e.substring(r,i))}function rb(e,t,n,r,i,o){const a=Math.min(t,o-1),s=m(e.substring(i,a));s?(n.writeComment(s),a!==t&&n.writeLine()):n.rawWrite(r)}function ib(e,t,n){let r=0;for(;t=0&&e.kind<=162?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Cb(e)),!t||4096&e.modifierFlagsCache||!n&&!Sg(e)||!e.parent||(e.modifierFlagsCache|=4096|Sb(e)),-536875009&e.modifierFlagsCache)}function bb(e){return vb(e,!0)}function xb(e){return vb(e,!0,!0)}function kb(e){return vb(e,!1)}function Sb(e){let t=0;return e.parent&&!Uw(e)&&(Sg(e)&&(i_(e)&&(t|=4),a_(e)&&(t|=8),c_(e)&&(t|=16),l_(e)&&(t|=64),u_(e)&&(t|=16384)),p_(e)&&(t|=8192)),t}function Tb(e){return Cb(e)|Sb(e)}function Cb(e){let t=LP(e)?Ab(e.modifiers):0;return(4&e.flags||79===e.kind&&2048&e.flags)&&(t|=1),t}function Ab(e){let t=0;if(e)for(const n of e)t|=wb(n.kind);return t}function wb(e){switch(e){case 124:return 32;case 123:return 4;case 122:return 16;case 121:return 8;case 126:return 256;case 127:return 128;case 93:return 1;case 136:return 2;case 85:return 2048;case 88:return 1024;case 132:return 512;case 146:return 64;case 161:return 16384;case 101:return 32768;case 145:return 65536;case 167:return 131072}return 0}function Db(e){return 56===e||55===e}function Eb(e){return Db(e)||53===e}function Nb(e){return 75===e||76===e||77===e}function Fb(e){return QD(e)&&Nb(e.operatorToken.kind)}function Pb(e){return Db(e)||60===e}function Ib(e){return QD(e)&&Pb(e.operatorToken.kind)}function Ob(e){return e>=63&&e<=78}function Lb(e){const t=Mb(e);return t&&!t.isImplements?t.class:void 0}function Mb(e){if(YD(e)){if(hN(e.parent)&&Fl(e.parent.parent))return{class:e.parent.parent,isImplements:117===e.parent.token};if(VN(e.parent)){const t=Oh(e.parent);if(t&&Fl(t))return{class:t,isImplements:!1}}}}function Rb(e,t){return QD(e)&&(t?63===e.operatorToken.kind:Ob(e.operatorToken.kind))&&ru(e.left)}function Bb(e){return Rb(e.parent)&&e.parent.left===e}function jb(e){if(Rb(e,!0)){const t=e.left.kind;return 207===t||206===t}return!1}function Jb(e){return void 0!==Lb(e)}function zb(e){return 79===e.kind||Vb(e)}function Ub(e){switch(e.kind){case 79:return e;case 163:do{e=e.left}while(79!==e.kind);return e;case 208:do{e=e.expression}while(79!==e.kind);return e}}function qb(e){return 79===e.kind||108===e.kind||106===e.kind||233===e.kind||208===e.kind&&qb(e.expression)||214===e.kind&&qb(e.expression)}function Vb(e){return ND(e)&&Tw(e.name)&&zb(e.expression)}function Qb(e){if(ND(e)){const t=Qb(e.expression);if(void 0!==t)return t+"."+Jf(e.name)}else if(FD(e)){const t=Qb(e.expression);if(void 0!==t&&xl(e.argumentExpression))return t+"."+Dy(e.argumentExpression)}else if(Tw(e))return Ic(e.escapedText)}function Kb(e){return Yg(e)&&"prototype"===rh(e)}function Wb(e){return 163===e.parent.kind&&e.parent.right===e||208===e.parent.kind&&e.parent.name===e}function Hb(e){return ND(e.parent)&&e.parent.name===e||FD(e.parent)&&e.parent.argumentExpression===e}function $b(e){return jw(e.parent)&&e.parent.right===e||ND(e.parent)&&e.parent.name===e||EN(e.parent)&&e.parent.right===e}function Gb(e){return 207===e.kind&&0===e.properties.length}function Xb(e){return 206===e.kind&&0===e.elements.length}function Yb(e){if(function(e){return e&&S(e.declarations)>0&&cb(e.declarations[0],1024)}(e)&&e.declarations)for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}function Zb(e){return P(Qd,(t=>ta(e,t)))}function ex(e){let t="";const n=function(e){const t=[],n=e.length;for(let r=0;r>6|192),t.push(63&n|128)):n<65536?(t.push(n>>12|224),t.push(n>>6&63|128),t.push(63&n|128)):n<131072?(t.push(n>>18|240),t.push(n>>12&63|128),t.push(n>>6&63|128),t.push(63&n|128)):In.assert(!1,"Unexpected code point")}return t}(e);let r=0;const i=n.length;let o,a,s,c;for(;r>2,a=(3&n[r])<<4|n[r+1]>>4,s=(15&n[r+1])<<2|n[r+2]>>6,c=63&n[r+2],r+1>=i?s=c=64:r+2>=i&&(c=64),t+=Dd.charAt(o)+Dd.charAt(a)+Dd.charAt(s)+Dd.charAt(c),r+=3;return t}function tx(e,t){return e&&e.base64encode?e.base64encode(t):ex(t)}function nx(e,t){if(e&&e.base64decode)return e.base64decode(t);const n=t.length,r=[];let i=0;for(;i>4&3,c=(15&n)<<4|o>>2&15,_=(3&o)<<6|63&a;0===c&&0!==o?r.push(s):0===_&&0!==a?r.push(s,c):r.push(s,c,_),i+=4}return function(e){let t="",n=0;const r=e.length;for(;n=e||-1===t),{pos:e,end:t}}function cx(e,t){return sx(e.pos,t)}function _x(e,t){return sx(t,e.end)}function lx(e){const t=LP(e)?I(e.modifiers,qw):void 0;return t&&!HS(t.end)?_x(e,t.end):e}function ux(e){if(Qw(e)||Ww(e))return _x(e,e.name.pos);const t=LP(e)?Be(e.modifiers):void 0;return t&&!HS(t.end)?_x(e,t.end):lx(e)}function dx(e){return e.pos===e.end}function px(e,t){return sx(e,e+_s(t).length)}function fx(e,t){return hx(e,e,t)}function mx(e,t,n){return kx(Sx(e,n,!1),Sx(t,n,!1),n)}function gx(e,t,n){return kx(e.end,t.end,n)}function hx(e,t,n){return kx(Sx(e,n,!1),t.end,n)}function yx(e,t,n){return kx(e.end,Sx(t,n,!1),n)}function vx(e,t,n,r){const i=Sx(t,n,r);return hs(n,e.end,i)}function bx(e,t,n){return hs(n,e.end,t.end)}function xx(e,t){return!kx(e.pos,e.end,t)}function kx(e,t,n){return 0===hs(n,e,t)}function Sx(e,t,n){return HS(e.pos)?-1:As(t.text,e.pos,!1,n)}function Tx(e,t,n,r){const i=As(n.text,e,!1,r),o=function(e,t=0,n){for(;e-- >t;)if(!vs(n.text.charCodeAt(e)))return e}(i,t,n);return hs(n,null!=o?o:t,i)}function Cx(e,t,n,r){const i=As(n.text,e,!1,r);return hs(n,e,Math.min(t,i))}function Ax(e){const t=Fc(e);if(t)switch(t.parent.kind){case 263:case 264:return t===t.parent.name}return!1}function wx(e){return z(e.declarations,Dx)}function Dx(e){return wE(e)&&void 0!==e.initializer}function Ex(e){return e.watch&&We(e,"watch")}function Nx(e){e.close()}function Fx(e){return 33554432&e.flags?e.links.checkFlags:0}function Px(e,t=!1){if(e.valueDeclaration){const n=Tc(t&&e.declarations&&P(e.declarations,Xw)||32768&e.flags&&P(e.declarations,Gw)||e.valueDeclaration);return e.parent&&32&e.parent.flags?n:-29&n}if(6&Fx(e)){const t=e.links.checkFlags;return(1024&t?8:256&t?4:16)|(2048&t?32:0)}return 4194304&e.flags?36:0}function Ix(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e}function Ox(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function Lx(e){return 1===Rx(e)}function Mx(e){return 0!==Rx(e)}function Rx(e){const{parent:t}=e;if(!t)return 0;switch(t.kind){case 214:case 206:return Rx(t);case 222:case 221:const{operator:r}=t;return 45===r||46===r?n():0;case 223:const{left:i,operatorToken:o}=t;return i===e&&Ob(o.kind)?63===o.kind?1:n():0;case 208:return t.name!==e?0:Rx(t);case 299:{const n=Rx(t.parent);return e===t.name?function(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return In.assertNever(e)}}(n):n}case 300:return e===t.objectAssignmentInitializer?0:Rx(t.parent);default:return 0}function n(){return t.parent&&241===Qh(t.parent).kind?1:2}}function Bx(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if("object"==typeof e[n]){if(!Bx(e[n],t[n]))return!1}else if("function"!=typeof e[n]&&e[n]!==t[n])return!1;return!0}function jx(e,t){e.forEach(t),e.clear()}function Jx(e,t,n){const{onDeleteValue:r,onExistingValue:i}=n;e.forEach(((n,o)=>{const a=t.get(o);void 0===a?(e.delete(o),r(n,o)):i&&i(n,a,o)}))}function zx(e,t,n){Jx(e,t,n);const{createNewValue:r}=n;t.forEach(((t,n)=>{e.has(n)||e.set(n,r(n,t))}))}function Ux(e){if(32&e.flags){const t=qx(e);return!!t&&cb(t,256)}return!1}function qx(e){var t;return null==(t=e.declarations)?void 0:t.find(Fl)}function Vx(e){return 3899393&e.flags?e.objectFlags:0}function Qx(e,t){return!!Ra(e,(e=>!!t(e)||void 0))}function Kx(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&RE(e.declarations[0])}function Wx({moduleSpecifier:e}){return sw(e)?e.text:ef(e)}function Hx(e){let t;return bI(e,(e=>{Mp(e)&&(t=e)}),(e=>{for(let n=e.length-1;n>=0;n--)if(Mp(e[n])){t=e[n];break}})),t}function $x(e,t,n=!0){return!e.has(t)&&(e.set(t,n),!0)}function Gx(e){return Fl(e)||FE(e)||aD(e)}function Xx(e){return e>=179&&e<=202||131===e||157===e||148===e||160===e||149===e||134===e||152===e||153===e||114===e||155===e||144===e||139===e||230===e||315===e||316===e||317===e||318===e||319===e||320===e||321===e}function Yx(e){return 208===e.kind||209===e.kind}function Zx(e){return 208===e.kind?e.name:(In.assert(209===e.kind),e.argumentExpression)}function ek(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function tk(e){return 272===e.kind||276===e.kind}function nk(e){for(;Yx(e);)e=e.expression;return e}function rk(e,t){if(Yx(e.parent)&&Hb(e))return function e(n){if(208===n.kind){const e=t(n.name);if(void 0!==e)return e}else if(209===n.kind){if(!Tw(n.argumentExpression)&&!ed(n.argumentExpression))return;{const e=t(n.argumentExpression);if(void 0!==e)return e}}return Yx(n.expression)?e(n.expression):Tw(n.expression)?t(n.expression):void 0}(e.parent)}function ik(e,t){for(;;){switch(e.kind){case 222:e=e.operand;continue;case 223:e=e.left;continue;case 224:e=e.condition;continue;case 212:e=e.tag;continue;case 210:if(t)return e;case 231:case 209:case 208:case 232:case 356:case 235:e=e.expression;continue}return e}}function ok(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.isAssigned=void 0,this.links=void 0}function ak(e,t){this.flags=t,(In.isDebugging||Ur)&&(this.checker=e)}function sk(e,t){this.flags=t,In.isDebugging&&(this.checker=e)}function ck(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function _k(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function lk(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function uk(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}function dk(e){Pd.push(e),e(Fd)}function pk(e){Object.assign(Fd,e),T(Pd,(e=>e(Fd)))}function fk(e,t,n=0){return e.replace(/{(\d+)}/g,((e,r)=>""+In.checkDefined(t[+r+n])))}function mk(e){Id=e}function gk(e){!Id&&e&&(Id=e())}function hk(e){return Id&&Id[e.key]||e.message}function yk(e,t,n,r){Kf(void 0,t,n);let i=hk(r);return arguments.length>4&&(i=fk(i,arguments,4)),{file:void 0,start:t,length:n,messageText:i,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,fileName:e}}function vk(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function bk(e,t){const n=t.fileName||"",r=t.text.length;In.assertEqual(e.fileName,n),In.assertLessThanOrEqual(e.start,r),In.assertLessThanOrEqual(e.start+e.length,r);const i={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){i.relatedInformation=[];for(const o of e.relatedInformation)vk(o)&&o.fileName===n?(In.assertLessThanOrEqual(o.start,r),In.assertLessThanOrEqual(o.start+o.length,r),i.relatedInformation.push(bk(o,t))):i.relatedInformation.push(o)}return i}function xk(e,t){const n=[];for(const r of e)n.push(bk(r,t));return n}function kk(e,t,n,r){Kf(e,t,n);let i=hk(r);return arguments.length>4&&(i=fk(i,arguments,4)),{file:e,start:t,length:n,messageText:i,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated}}function Sk(e,t){let n=hk(t);return arguments.length>2&&(n=fk(n,arguments,2)),n}function Tk(e){let t=hk(e);return arguments.length>1&&(t=fk(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function Ck(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function Ak(e,t){let n=hk(t);return arguments.length>2&&(n=fk(n,arguments,2)),{messageText:n,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}}function wk(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function Dk(e){return e.file?e.file.path:void 0}function Ek(e,t){return Nk(e,t)||function(e,t){return e.relatedInformation||t.relatedInformation?e.relatedInformation&&t.relatedInformation?Jt(e.relatedInformation.length,t.relatedInformation.length)||T(e.relatedInformation,((e,n)=>Ek(e,t.relatedInformation[n])))||0:e.relatedInformation?-1:1:0}(e,t)||0}function Nk(e,t){return Qt(Dk(e),Dk(t))||Jt(e.start,t.start)||Jt(e.length,t.length)||Jt(e.code,t.code)||Fk(e.messageText,t.messageText)||0}function Fk(e,t){if("string"==typeof e&&"string"==typeof t)return Qt(e,t);if("string"==typeof e)return-1;if("string"==typeof t)return 1;let n=Qt(e.messageText,t.messageText);if(n)return n;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;const r=Math.min(e.next.length,t.next.length);for(let i=0;it.next.length?1:0}function Pk(e){return 4===e||2===e||1===e||6===e?1:0}function Ik(e){if(2&e.transformFlags)return Ju(e)||cN(e)?e:bI(e,Ik)}function Ok(e){return e.isDeclarationFile?void 0:Ik(e)}function Lk(e){return!(99!==e.impliedNodeFormat&&!na(e.fileName,[".cjs",".cts",".mjs",".mts"])||e.isDeclarationFile)||void 0}function Mk(e){switch(zk(e)){case 3:return e=>{e.externalModuleIndicator=eI(e)||!e.isDeclarationFile||void 0};case 1:return e=>{e.externalModuleIndicator=eI(e)};case 2:const t=[eI];4!==e.jsx&&5!==e.jsx||t.push(Ok),t.push(Lk);const n=vn(...t);return e=>{e.externalModuleIndicator=n(e)}}}function Rk(e){var t;return null!=(t=e.target)?t:(100===e.module?9:199===e.module&&99)||1}function Bk(e){return"number"==typeof e.module?e.module:Rk(e)>=2?5:1}function jk(e){return e>=5&&e<=99}function Jk(e){let t=e.moduleResolution;if(void 0===t)switch(Bk(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;default:t=1}return t}function zk(e){return e.moduleDetection||(100===Bk(e)||199===Bk(e)?3:2)}function Uk(e){switch(Bk(e)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function qk(e){return!(!e.isolatedModules&&!e.verbatimModuleSyntax)}function Vk(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function Qk(e){return!1===e.allowUnreachableCode}function Kk(e){return!1===e.allowUnusedLabels}function Wk(e){return!(!tS(e)||!e.declarationMap)}function Hk(e){if(void 0!==e.esModuleInterop)return e.esModuleInterop;switch(Bk(e)){case 100:case 199:return!0}}function $k(e){return void 0!==e.allowSyntheticDefaultImports?e.allowSyntheticDefaultImports:Hk(e)||4===Bk(e)||100===Jk(e)}function Gk(e){return e>=3&&e<=99||100===e}function Xk(e){return!!e.noDtsResolution||100!==Jk(e)}function Yk(e){const t=Jk(e);if(!Gk(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function Zk(e){const t=Jk(e);if(!Gk(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function eS(e){return void 0!==e.resolveJsonModule?e.resolveJsonModule:100===Jk(e)}function tS(e){return!(!e.declaration&&!e.composite)}function nS(e){return!(!e.preserveConstEnums&&!qk(e))}function rS(e){return!(!e.incremental&&!e.composite)}function iS(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function oS(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function aS(e){return void 0===e.useDefineForClassFields?Rk(e)>=9:e.useDefineForClassFields}function sS(e,t){return _p(t,e,GI)}function cS(e,t){return _p(t,e,XI)}function _S(e,t){return _p(t,e,YI)}function lS(e,t){return t.strictFlag?iS(e,t.name):e[t.name]}function uS(e){const t=e.jsx;return 2===t||4===t||5===t}function dS(e,t){const n=null==t?void 0:t.pragmas.get("jsximportsource"),r=ht(n)?n[n.length-1]:n;return 4===e.jsx||5===e.jsx||e.jsxImportSource||r?(null==r?void 0:r.arguments.factory)||e.jsxImportSource||"react":void 0}function pS(e,t){return e?`${e}/${5===t.jsx?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function fS(e){let t=!1;for(let n=0;no,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(e,t)=>(o||(o=new Map)).set(e,t),setSymlinkedDirectory:(r,o)=>{let a=xa(r,e,t);DT(a)||(a=Sa(a),!1===o||(null==n?void 0:n.has(a))||(i||(i=ut())).add(Sa(o.realPath),r),(n||(n=new Map)).set(a,o))},setSymlinksFromResolutions(e,t){var n,r;In.assert(!a),a=!0;for(const t of e)null==(n=t.resolvedModules)||n.forEach((e=>s(this,e.resolvedModule))),null==(r=t.resolvedTypeReferenceDirectiveNames)||r.forEach((e=>s(this,e.resolvedTypeReferenceDirective)));t.forEach((e=>s(this,e.resolvedTypeReferenceDirective)))},hasProcessedResolutions:()=>a};function s(n,i){if(!i||!i.originalPath||!i.resolvedFileName)return;const{resolvedFileName:o,originalPath:a}=i;n.setSymlinkedFile(xa(a,e,t),o);const[s,c]=function(e,t,n,r){const i=ua(ya(e,n)),o=ua(ya(t,n));let a=!1;for(;i.length>=2&&o.length>=2&&!gS(i[i.length-2],r)&&!gS(o[o.length-2],r)&&r(i[i.length-1])===r(o[o.length-1]);)i.pop(),o.pop(),a=!0;return a?[da(i),da(o)]:void 0}(o,a,e,t)||r;s&&c&&n.setSymlinkedDirectory(c,{real:s,realPath:xa(s,e,t)})}}function gS(e,t){return void 0!==e&&("node_modules"===t(e)||fn(e,"@"))}function hS(e,t,n){const r=gn(e,t,n);return void 0===r?void 0:Wo((i=r).charCodeAt(0))?i.slice(1):void 0;var i}function yS(e){return e.replace(Od,vS)}function vS(e){return"\\"+e}function bS(e,t,n){const r=xS(e,t,n);if(r&&r.length)return`^(${r.map((e=>`(${e})`)).join("|")})${"exclude"===n?"($|/)":"$"}`}function xS(e,t,n){if(void 0!==e&&0!==e.length)return H(e,(e=>e&&TS(e,t,n,zd[n])))}function kS(e){return!/[.*?]/.test(e)}function SS(e,t,n){const r=e&&TS(e,t,n,zd[n]);return r&&`^(${r})${"exclude"===n?"($|/)":"$"}`}function TS(e,t,n,{singleAsteriskRegexFragment:r,doubleAsteriskRegexFragment:i,replaceWildcardCharacter:o}){let a="",s=!1;const c=ha(e,t),_=je(c);if("exclude"!==n&&"**"===_)return;c[0]=ka(c[0]),kS(_)&&c.push("**","*");let l=0;for(let e of c){if("**"===e)a+=i;else if("directories"===n&&(a+="(",l++),s&&(a+=zo),"exclude"!==n){let t="";42===e.charCodeAt(0)?(t+="([^./]"+r+")?",e=e.substr(1)):63===e.charCodeAt(0)&&(t+="[^./]",e=e.substr(1)),t+=e.replace(Od,o),t!==e&&(a+=Rd),a+=t}else a+=e.replace(Od,o);s=!0}for(;l>0;)a+=")?",l--;return a}function CS(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function AS(e,t,n,r,i){e=va(e);const o=ma(i=va(i),e);return{includeFilePatterns:V(xS(n,o,"files"),(e=>`^${e}$`)),includeFilePattern:bS(n,o,"files"),includeDirectoryPattern:bS(n,o,"directories"),excludePattern:bS(t,o,"exclude"),basePaths:ES(e,n,r)}}function wS(e,t){return RegExp(e,t?"":"i")}function DS(e,t,n,r,i,o,a,s,c){e=va(e),o=va(o);const _=AS(e,n,r,i,o),l=_.includeFilePatterns&&_.includeFilePatterns.map((e=>wS(e,i))),u=_.includeDirectoryPattern&&wS(_.includeDirectoryPattern,i),d=_.excludePattern&&wS(_.excludePattern,i),p=l?l.map((()=>[])):[[]],f=new Map,m=ln(i);for(const e of _.basePaths)g(e,ma(o,e),a);return W(p);function g(e,n,r){const i=m(c(n));if(f.has(i))return;f.set(i,!0);const{files:o,directories:a}=s(e);for(const r of Ne(o,Qt)){const i=ma(e,r),o=ma(n,r);if((!t||na(i,t))&&(!d||!d.test(o)))if(l){const e=O(l,(e=>e.test(o)));-1!==e&&p[e].push(i)}else p[0].push(i)}if(void 0===r||0!=--r)for(const t of Ne(a,Qt)){const i=ma(e,t),o=ma(n,t);u&&!u.test(o)||d&&d.test(o)||g(i,o,r)}}}function ES(e,t,n){const r=[e];if(t){const i=[];for(const n of t){const t=$o(n)?n:va(ma(e,n));i.push(NS(t))}i.sort(Kt(!n));for(const t of i)F(r,(r=>!Na(r,t,e,!n)))&&r.push(t)}return r}function NS(e){const t=j(e,Ld);return t<0?ea(e)?ka(sa(e)):e:e.substring(0,e.lastIndexOf(zo,t))}function FS(e,t){return t||PS(e)||3}function PS(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function IS(e,t){const n=e&&oS(e);if(!t||0===t.length)return n?Hd:Ud;const r=n?Hd:Ud,i=W(r);return[...r,...Z(t,(e=>{return 7===e.scriptKind||n&&(1===(t=e.scriptKind)||2===t)&&-1===i.indexOf(e.extension)?[e.extension]:void 0;var t}))]}function OS(e,t){return e&&eS(e)?t===Hd?$d:t===Ud?Vd:[...t,[".json"]]:t}function LS(e){return _e(Wd,(t=>ta(e,t)))}function MS(e){return _e(qd,(t=>ta(e,t)))}function RS({imports:e},t=vn(LS,MS)){return A(e,(({text:e})=>Yo(e)?t(e):void 0))||!1}function BS(e,t,n,i){return"js"===e||99===t?FR(n)&&2!==o()?3:2:"minimal"===e?0:"index"===e?1:FR(n)?o():RS(i)?2:0;function o(){let e=!1;const t=i.imports.length?i.imports.map((e=>e.text)):xg(i)?function(e){let t,n=0;for(const r of e.statements){if(n>3)break;Ig(r)?t=ue(t,r.declarationList.declarations.map((e=>e.initializer))):uE(r)&&Dg(r.expression,!0)?t=Se(t,r.expression):n++}return t||r}(i).map((e=>e.arguments[0].text)):r;for(const n of t)if(Yo(n)){if(MS(n))return 3;LS(n)&&(e=!0)}return e?2:0}}function jS(e,t,n){if(!e)return!1;const r=IS(t,n);for(const n of W(OS(t,r)))if(ta(e,n))return!0;return!1}function JS(e){const t=e.match(/\//g);return t?t.length:0}function zS(e,t){return Jt(JS(e),JS(t))}function US(e){for(const t of Zd){const n=qS(e,t);if(void 0!==n)return n}return e}function qS(e,t){return ta(e,t)?VS(e,t):void 0}function VS(e,t){return e.substring(0,e.length-t.length)}function QS(e,t){return Ca(e,t,Zd,!1)}function KS(e){const t=e.indexOf("*");return-1===t?e:-1!==e.indexOf("*",t+1)?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function WS(e){return Z($e(e),(e=>KS(e)))}function HS(e){return!(e>=0)}function $S(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e||fn(e,".d.")&&en(e,".ts")}function GS(e){return $S(e)||".json"===e}function XS(e){const t=ZS(e);return void 0!==t?t:In.fail(`File ${e} has unknown extension.`)}function YS(e){return void 0!==ZS(e)}function ZS(e){return P(Zd,(t=>ta(e,t)))}function eT(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function tT(e,t){const n=[];for(const r of e){if(r===t)return t;vt(r)||n.push(r)}return pn(n,(e=>e),t)}function nT(e,t){const n=e.indexOf(t);return In.assert(-1!==n),e.slice(n)}function rT(e,...t){return t.length?(e.relatedInformation||(e.relatedInformation=[]),In.assert(e.relatedInformation!==r,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t),e):e}function iT(e,t){In.assert(0!==e.length);let n=t(e[0]),r=n;for(let i=1;ir&&(r=o)}return{min:n,max:r}}function oT(e){return{pos:$p(e),end:e.end}}function aT(e,t){return{pos:t.pos-1,end:Math.min(e.text.length,As(e.text,t.end)+1)}}function sT(e,t,n){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||n.isSourceOfProjectReferenceRedirect(e.fileName)}function cT(e,t){return e===t||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&tt(e,t,cT)}function _T(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const n=e.length-1;let r=0;for(;48===e.charCodeAt(r);)r++;return e.slice(r,n)||"0"}const n=e.length-1,r=(n-2)*t,i=new Uint16Array((r>>>4)+(15&r?1:0));for(let r=n-1,o=0;r>=2;r--,o+=t){const t=o>>>4,n=e.charCodeAt(r),a=(n<=57?n-48:10+n-(n<=70?65:97))<<(15&o);i[t]|=a;const s=a>>>16;s&&(i[t+1]|=s)}let o="",a=i.length-1,s=!0;for(;s;){let e=0;s=!1;for(let t=a;t>=0;t--){const n=e<<16|i[t],r=n/10|0;i[t]=r,e=n-10*r,r&&!s&&(a=t,s=!0)}o=e+o}return o}function lT({negative:e,base10Value:t}){return(e&&"0"!==t?"-":"")+t}function uT(e){if(pT(e,!1))return dT(e)}function dT(e){const t=e.startsWith("-");return{negative:t,base10Value:_T((t?e.slice(1):e)+"n")}}function pT(e,t){if(""===e)return!1;const n=qs(99,!1);let r=!0;n.setOnError((()=>r=!1)),n.setText(e+"n");let i=n.scan();const o=40===i;o&&(i=n.scan());const a=n.getTokenFlags();return r&&9===i&&n.getTextPos()===e.length+1&&!(512&a)&&(!t||e===lT({negative:o,base10Value:_T(n.getTokenValue())}))}function fT(e){return!!(16777216&e.flags)||mg(e)||function(e){if(79!==e.kind)return!1;const t=Ec(e.parent,(e=>{switch(e.kind){case 294:return!0;case 208:case 230:return!1;default:return"quit"}}));return 117===(null==t?void 0:t.token)||261===(null==t?void 0:t.parent.kind)}(e)||function(e){for(;79===e.kind||208===e.kind;)e=e.parent;if(164!==e.kind)return!1;if(cb(e.parent,256))return!0;const t=e.parent.parent.kind;return 261===t||184===t}(e)||!(pg(e)||function(e){return Tw(e)&&bN(e.parent)&&e.parent.name===e}(e))}function mT(e){return nD(e)&&Tw(e.typeName)}function gT(e,t=Mt){if(e.length<2)return!0;const n=e[0];for(let r=1,i=e.length;rrn(e,t)))}function ET(e){if(!e.parent)return;switch(e.kind){case 165:const{parent:t}=e;return 192===t.kind?void 0:t.typeParameters;case 166:return e.parent.parameters;case 201:case 236:return e.parent.templateSpans;case 167:{const{parent:t}=e;return MP(t)?t.modifiers:void 0}case 294:return e.parent.heritageClauses}const{parent:t}=e;if(Vu(e))return UN(e.parent)?void 0:e.parent.tags;switch(t.kind){case 184:case 261:return Rl(e)?t.members:void 0;case 189:case 190:return t.types;case 186:case 206:case 357:case 272:case 276:return t.elements;case 207:case 289:return t.properties;case 210:case 211:return Jl(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 281:case 285:return Ru(e)?t.children:void 0;case 283:case 282:return Jl(e)?t.typeArguments:void 0;case 238:case 292:case 293:case 265:case 308:return t.statements;case 266:return t.clauses;case 260:case 228:return Nl(e)?t.members:void 0;case 263:return kN(e)?t.members:void 0}}function NT(e){if(!e.typeParameters){if(_e(e.parameters,(e=>!Kv(e))))return!0;if(216!==e.kind){const t=Oe(e.parameters);if(!t||!zv(t))return!0}}return!1}function FT(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function PT(e){return 257===e.kind&&295===e.parent.kind}function IT(e){const t=e.valueDeclaration&&qy(e.valueDeclaration);return!!t&&(Uw(t)||PT(t))}function OT(e){return 215===e.kind||216===e.kind}function LT(e){return e.replace(/\$/gm,(()=>"\\$"))}function MT(e){return""+ +e===e}function RT(e,t,n,r){return Us(e,t)?dC.createIdentifier(e):!r&&MT(e)&&+e>=0?dC.createNumericLiteral(+e):dC.createStringLiteral(e,!!n)}function BT(e){return!!(262144&e.flags&&e.isThisType)}function jT(e){let t,n=0,r=0,i=0,o=0;var a;(a=t||(t={}))[a.BeforeNodeModules=0]="BeforeNodeModules",a[a.NodeModules=1]="NodeModules",a[a.Scope=2]="Scope",a[a.PackageContent=3]="PackageContent";let s=0,c=0,_=0;for(;c>=0;)switch(s=c,c=e.indexOf("/",s+1),_){case 0:e.indexOf(nM,s)===s&&(n=s,r=c,_=1);break;case 1:case 2:1===_&&"@"===e.charAt(s+1)?_=2:(i=c,_=3);break;case 3:_=e.indexOf(nM,s)===s?1:3}return o=s,_>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function JT(e){var t;return 344===e.kind?null==(t=e.typeExpression)?void 0:t.type:e.type}function zT(e){switch(e.kind){case 165:case 260:case 261:case 262:case 263:case 349:case 341:case 343:return!0;case 270:return e.isTypeOnly;case 273:case 278:return e.parent.parent.isTypeOnly;default:return!1}}function UT(e){return IE(e)||_E(e)||EE(e)||NE(e)||FE(e)||zT(e)||OE(e)&&!vf(e)&&!yf(e)}function qT(e){if(!H_(e))return!1;const{isBracketed:t,typeExpression:n}=e;return t||!!n&&319===n.type.kind}function VT(e,t){if(0===e.length)return!1;const n=e.charCodeAt(0);return 35===n?e.length>1&&Js(e.charCodeAt(1),t):Js(n,t)}function QT(e){var t;return 0===(null==(t=_A(e))?void 0:t.kind)}function KT(e){return Sg(e)&&(e.type&&319===e.type.kind||Hc(e).some((({isBracketed:e,typeExpression:t})=>e||!!t&&319===t.type.kind)))}function WT(e){switch(e.kind){case 169:case 168:return!!e.questionToken;case 166:return!!e.questionToken||KT(e);case 351:case 344:return qT(e);default:return!1}}function HT(e){const t=e.kind;return(208===t||209===t)&&tE(e.expression)}function $T(e){return Sg(e)&&MD(e)&&Wu(e)&&!!y_(e)}function GT(e){return In.checkDefined(XT(e))}function XT(e){const t=y_(e);return t&&t.typeExpression&&t.typeExpression.type}var YT=b({"src/compiler/utilities.ts"(){XK(),id=[],od="tslib",ad=160,sd=1e6,cd=function(){var e="";const t=t=>e+=t;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(e,n)=>t(e),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&vs(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:St,decreaseIndent:St,clear:()=>e=""}}(),_d=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(_d||{}),ld=/^(\/\/\/\s*/,ud=/^(\/\/\/\s*/,dd=/^(\/\/\/\s*/,pd=/^(\/\/\/\s*/,fd=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(fd||{}),md=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(md||{}),gd=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(gd||{}),hd=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(hd||{}),yd=/\$\{/g,vd=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,bd=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,xd=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,kd=new Map(Object.entries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"})),Sd=/[^\u0000-\u007F]/g,Td=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Cd=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Ad=new Map(Object.entries({'"':""","'":"'"})),wd=[""," "],Dd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ed="\r\n",Nd="\n",Fd={getNodeConstructor:()=>ck,getTokenConstructor:()=>_k,getIdentifierConstructor:()=>lk,getPrivateIdentifierConstructor:()=>ck,getSourceFileConstructor:()=>ck,getSymbolConstructor:()=>ok,getTypeConstructor:()=>ak,getSignatureConstructor:()=>sk,getSourceMapSourceConstructor:()=>uk},Pd=[],Od=/[^\w\s\/]/g,Ld=[42,63],Rd=`(?!(${(Md=["node_modules","bower_components","jspm_packages"]).join("|")})(/|$))`,zd={files:Bd={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${Rd}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>CS(e,Bd.singleAsteriskRegexFragment)},directories:jd={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${Rd}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>CS(e,jd.singleAsteriskRegexFragment)},exclude:Jd={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>CS(e,Jd.singleAsteriskRegexFragment)}},qd=W(Ud=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]]),Vd=[...Ud,[".json"]],Qd=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx",".cts",".mts"],Wd=W(Kd=[[".js",".jsx"],[".mjs"],[".cjs"]]),Hd=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],$d=[...Hd,[".json"]],Gd=[".d.ts",".d.cts",".d.mts"],Xd=[".ts",".cts",".mts",".tsx"],Yd=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(Yd||{}),Zd=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],ep={files:r,directories:r}}});function ZT(){let e,t,n,r,i;return{createBaseSourceFileNode:function(e){return new(i||(i=Fd.getSourceFileConstructor()))(e,-1,-1)},createBaseIdentifierNode:function(e){return new(n||(n=Fd.getIdentifierConstructor()))(e,-1,-1)},createBasePrivateIdentifierNode:function(e){return new(r||(r=Fd.getPrivateIdentifierConstructor()))(e,-1,-1)},createBaseTokenNode:function(e){return new(t||(t=Fd.getTokenConstructor()))(e,-1,-1)},createBaseNode:function(t){return new(e||(e=Fd.getNodeConstructor()))(t,-1,-1)}}}var eC,tC=b({"src/compiler/factory/baseNodeFactory.ts"(){XK()}});function nC(e){let t,n;return{getParenthesizeLeftSideOfBinaryForOperator:function(e){t||(t=new Map);let n=t.get(e);return n||(n=t=>o(e,t),t.set(e,n)),n},getParenthesizeRightSideOfBinaryForOperator:function(e){n||(n=new Map);let t=n.get(e);return t||(t=t=>a(e,void 0,t),n.set(e,t)),t},parenthesizeLeftSideOfBinary:o,parenthesizeRightSideOfBinary:a,parenthesizeExpressionOfComputedPropertyName:function(t){return BF(t)?e.createParenthesizedExpression(t):t},parenthesizeConditionOfConditionalExpression:function(t){const n=Xy(224,57);return 1!==Jt($y(U_(t)),n)?e.createParenthesizedExpression(t):t},parenthesizeBranchOfConditionalExpression:function(t){return BF(U_(t))?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfExportDefault:function(t){const n=U_(t);let r=BF(n);if(!r)switch(ik(n,!1).kind){case 228:case 215:r=!0}return r?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfNew:function(t){const n=ik(t,!0);switch(n.kind){case 210:return e.createParenthesizedExpression(t);case 211:return n.arguments?t:e.createParenthesizedExpression(t)}return s(t)},parenthesizeLeftSideOfAccess:s,parenthesizeOperandOfPostfixUnary:function(t){return ru(t)?t:OP(e.createParenthesizedExpression(t),t)},parenthesizeOperandOfPrefixUnary:function(t){return ou(t)?t:OP(e.createParenthesizedExpression(t),t)},parenthesizeExpressionsOfCommaDelimitedList:function(t){const n=K(t,c);return OP(e.createNodeArray(n,t.hasTrailingComma),t)},parenthesizeExpressionForDisallowedComma:c,parenthesizeExpressionOfExpressionStatement:function(t){const n=U_(t);if(PD(n)){const r=n.expression,i=U_(r).kind;if(215===i||216===i){const i=e.updateCallExpression(n,OP(e.createParenthesizedExpression(r),r),n.typeArguments,n.arguments);return e.restoreOuterExpressions(t,i,8)}}const r=ik(n,!1).kind;return 207===r||215===r?OP(e.createParenthesizedExpression(t),t):t},parenthesizeConciseBodyOfArrowFunction:function(t){return cE(t)||!BF(t)&&207!==ik(t,!1).kind?t:OP(e.createParenthesizedExpression(t),t)},parenthesizeCheckTypeOfConditionalType:_,parenthesizeExtendsTypeOfConditionalType:function(t){return 191===t.kind?e.createParenthesizedType(t):t},parenthesizeConstituentTypesOfUnionType:function(t){return e.createNodeArray(K(t,l))},parenthesizeConstituentTypeOfUnionType:l,parenthesizeConstituentTypesOfIntersectionType:function(t){return e.createNodeArray(K(t,u))},parenthesizeConstituentTypeOfIntersectionType:u,parenthesizeOperandOfTypeOperator:d,parenthesizeOperandOfReadonlyTypeOperator:function(t){return 195===t.kind?e.createParenthesizedType(t):d(t)},parenthesizeNonArrayTypeOfPostfixType:p,parenthesizeElementTypesOfTupleType:function(t){return e.createNodeArray(K(t,f))},parenthesizeElementTypeOfTupleType:f,parenthesizeTypeOfOptionalType:function(t){return m(t)?e.createParenthesizedType(t):p(t)},parenthesizeTypeArguments:function(t){if(_e(t))return e.createNodeArray(K(t,h))},parenthesizeLeadingTypeArgument:g};function r(e){if(el((e=U_(e)).kind))return e.kind;if(223===e.kind&&39===e.operatorToken.kind){if(void 0!==e.cachedLiteralKind)return e.cachedLiteralKind;const t=r(e.left),n=el(t)&&t===r(e.right)?t:0;return e.cachedLiteralKind=n,n}return 0}function i(t,n,i,o){return 214===U_(n).kind?n:function(e,t,n,i){const o=Xy(223,e),a=Hy(223,e),s=U_(t);if(!n&&216===t.kind&&o>3)return!0;switch(Jt($y(s),o)){case-1:return!(!n&&1===a&&226===t.kind);case 1:return!1;case 0:if(n)return 1===a;if(QD(s)&&s.operatorToken.kind===e){if(function(e){return 41===e||51===e||50===e||52===e||27===e}(e))return!1;if(39===e){const e=i?r(i):0;if(el(e)&&e===r(s))return!1}}return 0===Wy(s)}}(t,n,i,o)?e.createParenthesizedExpression(n):n}function o(e,t){return i(e,t,!0)}function a(e,t,n){return i(e,n,!1,t)}function s(t,n){const r=U_(t);return!ru(r)||211===r.kind&&!r.arguments||!n&&M_(r)?OP(e.createParenthesizedExpression(t),t):t}function c(t){return $y(U_(t))>Xy(223,27)?t:OP(e.createParenthesizedExpression(t),t)}function _(t){switch(t.kind){case 181:case 182:case 191:return e.createParenthesizedType(t)}return t}function l(t){switch(t.kind){case 189:case 190:return e.createParenthesizedType(t)}return _(t)}function u(t){switch(t.kind){case 189:case 190:return e.createParenthesizedType(t)}return l(t)}function d(t){return 190===t.kind?e.createParenthesizedType(t):u(t)}function p(t){switch(t.kind){case 192:case 195:case 183:return e.createParenthesizedType(t)}return d(t)}function f(t){return m(t)?e.createParenthesizedType(t):t}function m(e){return LN(e)?e.postfix:_D(e)||rD(e)||iD(e)||yD(e)?m(e.type):fD(e)?m(e.falseType):dD(e)||pD(e)?m(je(e.types)):!!mD(e)&&!!e.typeParameter.constraint&&m(e.typeParameter.constraint)}function g(t){return zl(t)&&t.typeParameters?e.createParenthesizedType(t):t}function h(e,t){return 0===t?g(e):e}}var rC,iC=b({"src/compiler/factory/parenthesizerRules.ts"(){XK(),eC={getParenthesizeLeftSideOfBinaryForOperator:e=>wt,getParenthesizeRightSideOfBinaryForOperator:e=>wt,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,n)=>n,parenthesizeExpressionOfComputedPropertyName:wt,parenthesizeConditionOfConditionalExpression:wt,parenthesizeBranchOfConditionalExpression:wt,parenthesizeExpressionOfExportDefault:wt,parenthesizeExpressionOfNew:e=>kt(e,ru),parenthesizeLeftSideOfAccess:e=>kt(e,ru),parenthesizeOperandOfPostfixUnary:e=>kt(e,ru),parenthesizeOperandOfPrefixUnary:e=>kt(e,ou),parenthesizeExpressionsOfCommaDelimitedList:e=>kt(e,Z_),parenthesizeExpressionForDisallowedComma:wt,parenthesizeExpressionOfExpressionStatement:wt,parenthesizeConciseBodyOfArrowFunction:wt,parenthesizeCheckTypeOfConditionalType:wt,parenthesizeExtendsTypeOfConditionalType:wt,parenthesizeConstituentTypesOfUnionType:e=>kt(e,Z_),parenthesizeConstituentTypeOfUnionType:wt,parenthesizeConstituentTypesOfIntersectionType:e=>kt(e,Z_),parenthesizeConstituentTypeOfIntersectionType:wt,parenthesizeOperandOfTypeOperator:wt,parenthesizeOperandOfReadonlyTypeOperator:wt,parenthesizeNonArrayTypeOfPostfixType:wt,parenthesizeElementTypesOfTupleType:e=>kt(e,Z_),parenthesizeElementTypeOfTupleType:wt,parenthesizeTypeOfOptionalType:wt,parenthesizeTypeArguments:e=>e&&kt(e,Z_),parenthesizeLeadingTypeArgument:wt}}});function oC(e){return{convertToFunctionBlock:function(t,n){if(cE(t))return t;const r=e.createReturnStatement(t);OP(r,t);const i=e.createBlock([r],n);return OP(i,t),i},convertToFunctionExpression:function(t){if(!t.body)return In.fail("Cannot convert a FunctionDeclaration without a body");const n=e.createFunctionExpression(Kc(t),t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return PC(n,t),OP(n,t),QC(t)&&KC(n,!0),n},convertToArrayAssignmentElement:t,convertToObjectAssignmentElement:n,convertToAssignmentPattern:r,convertToObjectAssignmentPattern:i,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:a};function t(t){if(wD(t)){if(t.dotDotDotToken)return In.assertNode(t.name,Tw),PC(OP(e.createSpreadElement(t.name),t),t);const n=a(t.name);return t.initializer?PC(OP(e.createAssignment(n,t.initializer),t),t):n}return kt(t,_u)}function n(t){if(wD(t)){if(t.dotDotDotToken)return In.assertNode(t.name,Tw),PC(OP(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){const n=a(t.name);return PC(OP(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(n,t.initializer):n),t),t)}return In.assertNode(t.name,Tw),PC(OP(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return kt(t,jl)}function r(e){switch(e.kind){case 204:case 206:return o(e);case 203:case 207:return i(e)}}function i(t){return CD(t)?PC(OP(e.createObjectLiteralExpression(V(t.elements,n)),t),t):kt(t,ED)}function o(n){return AD(n)?PC(OP(e.createArrayLiteralExpression(V(n.elements,t)),n),n):kt(n,DD)}function a(e){return Ul(e)?r(e):kt(e,_u)}}var aC,sC,cC,_C,lC,uC,dC,pC,fC=b({"src/compiler/factory/nodeConverters.ts"(){XK(),rC={convertToFunctionBlock:Nt,convertToFunctionExpression:Nt,convertToArrayAssignmentElement:Nt,convertToObjectAssignmentElement:Nt,convertToAssignmentPattern:Nt,convertToObjectAssignmentPattern:Nt,convertToArrayAssignmentPattern:Nt,convertToAssignmentElementTarget:Nt}}});function mC(e){cC.push(e)}function gC(e,t){const n=8&e?hC:yC,i=Ft((()=>1&e?eC:nC(y))),o=Ft((()=>2&e?rC:oC(y))),a=Pt((e=>(t,n)=>Nt(t,e,n))),s=Pt((e=>t=>Dt(e,t))),c=Pt((e=>t=>Et(t,e))),_=Pt((e=>()=>function(e){return b(e)}(e))),l=Pt((e=>t=>sr(e,t))),u=Pt((e=>(t,r)=>function(e,t,r){return t.type!==r?n(sr(e,r),t):t}(e,t,r))),d=Pt((e=>(t,n)=>ar(e,t,n))),p=Pt((e=>(t,r)=>function(e,t,r){return t.type!==r?n(ar(e,r,t.postfix),t):t}(e,t,r))),f=Pt((e=>(t,n)=>Er(e,t,n))),m=Pt((e=>(t,r,i)=>function(e,t,r=dr(t),i){return t.tagName!==r||t.comment!==i?n(Er(e,r,i),t):t}(e,t,r,i))),g=Pt((e=>(t,n,r)=>Nr(e,t,n,r))),h=Pt((e=>(t,r,i,o)=>function(e,t,r=dr(t),i,o){return t.tagName!==r||t.typeExpression!==i||t.comment!==o?n(Nr(e,r,i,o),t):t}(e,t,r,i,o))),y={get parenthesizer(){return i()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:v,createNumericLiteral:S,createBigIntLiteral:C,createStringLiteral:w,createStringLiteralFromNode:function(e){const t=A(Ny(e),void 0);return t.textSourceNode=e,t},createRegularExpressionLiteral:D,createLiteralLikeNode:function(e,t){switch(e){case 8:return S(t,0);case 9:return C(t);case 10:return w(t,void 0);case 11:return Jr(t,!1);case 12:return Jr(t,!0);case 13:return D(t);case 14:return jt(e,t,void 0,0)}},createIdentifier:P,createTempVariable:I,createLoopVariable:function(e){let t=2;return e&&(t|=8),N("",t,void 0,void 0)},createUniqueName:function(e,t=0,n,r){return In.assert(!(7&t),"Argument out of range: flags"),In.assert(32!=(48&t),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),N(e,3|t,n,r)},getGeneratedNameForNode:O,createPrivateIdentifier:function(e){return fn(e,"#")||In.fail("First character of private identifier must be #: "+e),L(Pc(e))},createUniquePrivateName:function(e,t,n){return e&&!fn(e,"#")&&In.fail("First character of private identifier must be #: "+e),M(null!=e?e:"",8|(e?3:1),t,n)},getGeneratedPrivateNameForNode:function(e,t,n){const r=M(F_(e)?CP(!0,t,e,n,Oc):"#generated@"+qB(e),4|(t||n?16:0),t,n);return r.original=e,r},createToken:B,createSuper:function(){return B(106)},createThis:j,createNull:function(){return B(104)},createTrue:J,createFalse:z,createModifier:U,createModifiersFromModifierFlags:q,createQualifiedName:V,updateQualifiedName:function(e,t,r){return e.left!==t||e.right!==r?n(V(t,r),e):e},createComputedPropertyName:Q,updateComputedPropertyName:function(e,t){return e.expression!==t?n(Q(t),e):e},createTypeParameterDeclaration:K,updateTypeParameterDeclaration:W,createParameterDeclaration:H,updateParameterDeclaration:$,createDecorator:G,updateDecorator:function(e,t){return e.expression!==t?n(G(t),e):e},createPropertySignature:Y,updatePropertySignature:Z,createPropertyDeclaration:ee,updatePropertyDeclaration:te,createMethodSignature:ne,updateMethodSignature:re,createMethodDeclaration:ie,updateMethodDeclaration:oe,createConstructorDeclaration:se,updateConstructorDeclaration:ce,createGetAccessorDeclaration:le,updateGetAccessorDeclaration:ue,createSetAccessorDeclaration:de,updateSetAccessorDeclaration:pe,createCallSignature:fe,updateCallSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?k(fe(t,n,r),e):e},createConstructSignature:me,updateConstructSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?k(me(t,n,r),e):e},createIndexSignature:ge,updateIndexSignature:he,createClassStaticBlockDeclaration:ae,updateClassStaticBlockDeclaration:function(e,t){return e.body!==t?((r=ae(t))!==(i=e)&&(r.modifiers=i.modifiers),n(r,i)):e;var r,i},createTemplateLiteralTypeSpan:ye,updateTemplateLiteralTypeSpan:function(e,t,r){return e.type!==t||e.literal!==r?n(ye(t,r),e):e},createKeywordTypeNode:function(e){return B(e)},createTypePredicateNode:ve,updateTypePredicateNode:function(e,t,r,i){return e.assertsModifier!==t||e.parameterName!==r||e.type!==i?n(ve(t,r,i),e):e},createTypeReferenceNode:be,updateTypeReferenceNode:function(e,t,r){return e.typeName!==t||e.typeArguments!==r?n(be(t,r),e):e},createFunctionTypeNode:xe,updateFunctionTypeNode:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?((i=xe(t,n,r))!==(o=e)&&(i.modifiers=o.modifiers),k(i,o)):e;var i,o},createConstructorTypeNode:ke,updateConstructorTypeNode:function(...e){return 5===e.length?Ce(...e):4===e.length?function(e,t,n,r){return Ce(e,e.modifiers,t,n,r)}(...e):In.fail("Incorrect number of arguments specified.")},createTypeQueryNode:Ae,updateTypeQueryNode:function(e,t,r){return e.exprName!==t||e.typeArguments!==r?n(Ae(t,r),e):e},createTypeLiteralNode:we,updateTypeLiteralNode:function(e,t){return e.members!==t?n(we(t),e):e},createArrayTypeNode:De,updateArrayTypeNode:function(e,t){return e.elementType!==t?n(De(t),e):e},createTupleTypeNode:Ee,updateTupleTypeNode:function(e,t){return e.elements!==t?n(Ee(t),e):e},createNamedTupleMember:Ne,updateNamedTupleMember:function(e,t,r,i,o){return e.dotDotDotToken!==t||e.name!==r||e.questionToken!==i||e.type!==o?n(Ne(t,r,i,o),e):e},createOptionalTypeNode:Fe,updateOptionalTypeNode:function(e,t){return e.type!==t?n(Fe(t),e):e},createRestTypeNode:Pe,updateRestTypeNode:function(e,t){return e.type!==t?n(Pe(t),e):e},createUnionTypeNode:function(e){return Ie(189,e,i().parenthesizeConstituentTypesOfUnionType)},updateUnionTypeNode:function(e,t){return Oe(e,t,i().parenthesizeConstituentTypesOfUnionType)},createIntersectionTypeNode:function(e){return Ie(190,e,i().parenthesizeConstituentTypesOfIntersectionType)},updateIntersectionTypeNode:function(e,t){return Oe(e,t,i().parenthesizeConstituentTypesOfIntersectionType)},createConditionalTypeNode:Le,updateConditionalTypeNode:function(e,t,r,i,o){return e.checkType!==t||e.extendsType!==r||e.trueType!==i||e.falseType!==o?n(Le(t,r,i,o),e):e},createInferTypeNode:Me,updateInferTypeNode:function(e,t){return e.typeParameter!==t?n(Me(t),e):e},createImportTypeNode:je,updateImportTypeNode:function(e,t,r,i,o,a=e.isTypeOf){return e.argument!==t||e.assertions!==r||e.qualifier!==i||e.typeArguments!==o||e.isTypeOf!==a?n(je(t,r,i,o,a),e):e},createParenthesizedType:ze,updateParenthesizedType:function(e,t){return e.type!==t?n(ze(t),e):e},createThisTypeNode:function(){const e=b(194);return e.transformFlags=1,e},createTypeOperatorNode:Ue,updateTypeOperatorNode:function(e,t){return e.type!==t?n(Ue(e.operator,t),e):e},createIndexedAccessTypeNode:qe,updateIndexedAccessTypeNode:function(e,t,r){return e.objectType!==t||e.indexType!==r?n(qe(t,r),e):e},createMappedTypeNode:Ve,updateMappedTypeNode:function(e,t,r,i,o,a,s){return e.readonlyToken!==t||e.typeParameter!==r||e.nameType!==i||e.questionToken!==o||e.type!==a||e.members!==s?n(Ve(t,r,i,o,a,s),e):e},createLiteralTypeNode:Qe,updateLiteralTypeNode:function(e,t){return e.literal!==t?n(Qe(t),e):e},createTemplateLiteralType:Re,updateTemplateLiteralType:function(e,t,r){return e.head!==t||e.templateSpans!==r?n(Re(t,r),e):e},createObjectBindingPattern:He,updateObjectBindingPattern:function(e,t){return e.elements!==t?n(He(t),e):e},createArrayBindingPattern:$e,updateArrayBindingPattern:function(e,t){return e.elements!==t?n($e(t),e):e},createBindingElement:Ge,updateBindingElement:function(e,t,r,i,o){return e.propertyName!==r||e.dotDotDotToken!==t||e.name!==i||e.initializer!==o?n(Ge(t,r,i,o),e):e},createArrayLiteralExpression:Xe,updateArrayLiteralExpression:function(e,t){return e.elements!==t?n(Xe(t,e.multiLine),e):e},createObjectLiteralExpression:Ye,updateObjectLiteralExpression:function(e,t){return e.properties!==t?n(Ye(t,e.multiLine),e):e},createPropertyAccessExpression:4&e?(e,t)=>RC(et(e,t),262144):et,updatePropertyAccessExpression:function(e,t,r){return I_(e)?nt(e,t,e.questionDotToken,kt(r,Tw)):e.expression!==t||e.name!==r?n(et(t,r),e):e},createPropertyAccessChain:4&e?(e,t,n)=>RC(tt(e,t,n),262144):tt,updatePropertyAccessChain:nt,createElementAccessExpression:it,updateElementAccessExpression:function(e,t,r){return O_(e)?at(e,t,e.questionDotToken,r):e.expression!==t||e.argumentExpression!==r?n(it(t,r),e):e},createElementAccessChain:ot,updateElementAccessChain:at,createCallExpression:ct,updateCallExpression:function(e,t,r,i){return L_(e)?lt(e,t,e.questionDotToken,r,i):e.expression!==t||e.typeArguments!==r||e.arguments!==i?n(ct(t,r,i),e):e},createCallChain:_t,updateCallChain:lt,createNewExpression:ut,updateNewExpression:function(e,t,r,i){return e.expression!==t||e.typeArguments!==r||e.arguments!==i?n(ut(t,r,i),e):e},createTaggedTemplateExpression:dt,updateTaggedTemplateExpression:function(e,t,r,i){return e.tag!==t||e.typeArguments!==r||e.template!==i?n(dt(t,r,i),e):e},createTypeAssertion:pt,updateTypeAssertion:ft,createParenthesizedExpression:mt,updateParenthesizedExpression:gt,createFunctionExpression:yt,updateFunctionExpression:vt,createArrowFunction:bt,updateArrowFunction:xt,createDeleteExpression:St,updateDeleteExpression:function(e,t){return e.expression!==t?n(St(t),e):e},createTypeOfExpression:Tt,updateTypeOfExpression:function(e,t){return e.expression!==t?n(Tt(t),e):e},createVoidExpression:At,updateVoidExpression:function(e,t){return e.expression!==t?n(At(t),e):e},createAwaitExpression:wt,updateAwaitExpression:function(e,t){return e.expression!==t?n(wt(t),e):e},createPrefixUnaryExpression:Dt,updatePrefixUnaryExpression:function(e,t){return e.operand!==t?n(Dt(e.operator,t),e):e},createPostfixUnaryExpression:Et,updatePostfixUnaryExpression:function(e,t){return e.operand!==t?n(Et(t,e.operator),e):e},createBinaryExpression:Nt,updateBinaryExpression:function(e,t,r,i){return e.left!==t||e.operatorToken!==r||e.right!==i?n(Nt(t,r,i),e):e},createConditionalExpression:Ot,updateConditionalExpression:function(e,t,r,i,o,a){return e.condition!==t||e.questionToken!==r||e.whenTrue!==i||e.colonToken!==o||e.whenFalse!==a?n(Ot(t,r,i,o,a),e):e},createTemplateExpression:Lt,updateTemplateExpression:function(e,t,r){return e.head!==t||e.templateSpans!==r?n(Lt(t,r),e):e},createTemplateHead:function(e,t,n){return jt(15,e=Mt(15,e,t,n),t,n)},createTemplateMiddle:function(e,t,n){return jt(16,e=Mt(15,e,t,n),t,n)},createTemplateTail:function(e,t,n){return jt(17,e=Mt(15,e,t,n),t,n)},createNoSubstitutionTemplateLiteral:function(e,t,n){return Bt(14,e=Mt(15,e,t,n),t,n)},createTemplateLiteralLikeNode:jt,createYieldExpression:Jt,updateYieldExpression:function(e,t,r){return e.expression!==r||e.asteriskToken!==t?n(Jt(t,r),e):e},createSpreadElement:zt,updateSpreadElement:function(e,t){return e.expression!==t?n(zt(t),e):e},createClassExpression:Ut,updateClassExpression:qt,createOmittedExpression:function(){return b(229)},createExpressionWithTypeArguments:Vt,updateExpressionWithTypeArguments:function(e,t,r){return e.expression!==t||e.typeArguments!==r?n(Vt(t,r),e):e},createAsExpression:Qt,updateAsExpression:Kt,createNonNullExpression:Wt,updateNonNullExpression:Ht,createSatisfiesExpression:$t,updateSatisfiesExpression:Gt,createNonNullChain:Xt,updateNonNullChain:Yt,createMetaProperty:Zt,updateMetaProperty:function(e,t){return e.name!==t?n(Zt(e.keywordToken,t),e):e},createTemplateSpan:en,updateTemplateSpan:function(e,t,r){return e.expression!==t||e.literal!==r?n(en(t,r),e):e},createSemicolonClassElement:function(){const e=b(237);return e.transformFlags|=1024,e},createBlock:tn,updateBlock:function(e,t){return e.statements!==t?n(tn(t,e.multiLine),e):e},createVariableStatement:nn,updateVariableStatement:rn,createEmptyStatement:on,createExpressionStatement:an,updateExpressionStatement:function(e,t){return e.expression!==t?n(an(t),e):e},createIfStatement:sn,updateIfStatement:function(e,t,r,i){return e.expression!==t||e.thenStatement!==r||e.elseStatement!==i?n(sn(t,r,i),e):e},createDoStatement:cn,updateDoStatement:function(e,t,r){return e.statement!==t||e.expression!==r?n(cn(t,r),e):e},createWhileStatement:_n,updateWhileStatement:function(e,t,r){return e.expression!==t||e.statement!==r?n(_n(t,r),e):e},createForStatement:ln,updateForStatement:function(e,t,r,i,o){return e.initializer!==t||e.condition!==r||e.incrementor!==i||e.statement!==o?n(ln(t,r,i,o),e):e},createForInStatement:un,updateForInStatement:function(e,t,r,i){return e.initializer!==t||e.expression!==r||e.statement!==i?n(un(t,r,i),e):e},createForOfStatement:dn,updateForOfStatement:function(e,t,r,i,o){return e.awaitModifier!==t||e.initializer!==r||e.expression!==i||e.statement!==o?n(dn(t,r,i,o),e):e},createContinueStatement:pn,updateContinueStatement:function(e,t){return e.label!==t?n(pn(t),e):e},createBreakStatement:mn,updateBreakStatement:function(e,t){return e.label!==t?n(mn(t),e):e},createReturnStatement:gn,updateReturnStatement:function(e,t){return e.expression!==t?n(gn(t),e):e},createWithStatement:hn,updateWithStatement:function(e,t,r){return e.expression!==t||e.statement!==r?n(hn(t,r),e):e},createSwitchStatement:yn,updateSwitchStatement:function(e,t,r){return e.expression!==t||e.caseBlock!==r?n(yn(t,r),e):e},createLabeledStatement:vn,updateLabeledStatement:bn,createThrowStatement:xn,updateThrowStatement:function(e,t){return e.expression!==t?n(xn(t),e):e},createTryStatement:kn,updateTryStatement:function(e,t,r,i){return e.tryBlock!==t||e.catchClause!==r||e.finallyBlock!==i?n(kn(t,r,i),e):e},createDebuggerStatement:function(){const e=b(256);return e.jsDoc=void 0,e.flowNode=void 0,e},createVariableDeclaration:Sn,updateVariableDeclaration:function(e,t,r,i,o){return e.name!==t||e.type!==i||e.exclamationToken!==r||e.initializer!==o?n(Sn(t,r,i,o),e):e},createVariableDeclarationList:Tn,updateVariableDeclarationList:function(e,t){return e.declarations!==t?n(Tn(t,e.flags),e):e},createFunctionDeclaration:Cn,updateFunctionDeclaration:An,createClassDeclaration:wn,updateClassDeclaration:Dn,createInterfaceDeclaration:En,updateInterfaceDeclaration:Nn,createTypeAliasDeclaration:Fn,updateTypeAliasDeclaration:Pn,createEnumDeclaration:On,updateEnumDeclaration:Ln,createModuleDeclaration:Mn,updateModuleDeclaration:Rn,createModuleBlock:Bn,updateModuleBlock:function(e,t){return e.statements!==t?n(Bn(t),e):e},createCaseBlock:jn,updateCaseBlock:function(e,t){return e.clauses!==t?n(jn(t),e):e},createNamespaceExportDeclaration:Jn,updateNamespaceExportDeclaration:function(e,t){return e.name!==t?((r=Jn(t))!==(i=e)&&(r.modifiers=i.modifiers),n(r,i)):e;var r,i},createImportEqualsDeclaration:zn,updateImportEqualsDeclaration:Un,createImportDeclaration:qn,updateImportDeclaration:Vn,createImportClause:Qn,updateImportClause:function(e,t,r,i){return e.isTypeOnly!==t||e.name!==r||e.namedBindings!==i?n(Qn(t,r,i),e):e},createAssertClause:Kn,updateAssertClause:function(e,t,r){return e.elements!==t||e.multiLine!==r?n(Kn(t,r),e):e},createAssertEntry:Wn,updateAssertEntry:function(e,t,r){return e.name!==t||e.value!==r?n(Wn(t,r),e):e},createImportTypeAssertionContainer:Hn,updateImportTypeAssertionContainer:function(e,t,r){return e.assertClause!==t||e.multiLine!==r?n(Hn(t,r),e):e},createNamespaceImport:$n,updateNamespaceImport:function(e,t){return e.name!==t?n($n(t),e):e},createNamespaceExport:Gn,updateNamespaceExport:function(e,t){return e.name!==t?n(Gn(t),e):e},createNamedImports:Xn,updateNamedImports:function(e,t){return e.elements!==t?n(Xn(t),e):e},createImportSpecifier:Yn,updateImportSpecifier:function(e,t,r,i){return e.isTypeOnly!==t||e.propertyName!==r||e.name!==i?n(Yn(t,r,i),e):e},createExportAssignment:Zn,updateExportAssignment:er,createExportDeclaration:tr,updateExportDeclaration:nr,createNamedExports:rr,updateNamedExports:function(e,t){return e.elements!==t?n(rr(t),e):e},createExportSpecifier:ir,updateExportSpecifier:function(e,t,r,i){return e.isTypeOnly!==t||e.propertyName!==r||e.name!==i?n(ir(t,r,i),e):e},createMissingDeclaration:function(){const e=x(279);return e.jsDoc=void 0,e},createExternalModuleReference:or,updateExternalModuleReference:function(e,t){return e.expression!==t?n(or(t),e):e},get createJSDocAllType(){return _(315)},get createJSDocUnknownType(){return _(316)},get createJSDocNonNullableType(){return d(318)},get updateJSDocNonNullableType(){return p(318)},get createJSDocNullableType(){return d(317)},get updateJSDocNullableType(){return p(317)},get createJSDocOptionalType(){return l(319)},get updateJSDocOptionalType(){return u(319)},get createJSDocVariadicType(){return l(321)},get updateJSDocVariadicType(){return u(321)},get createJSDocNamepathType(){return l(322)},get updateJSDocNamepathType(){return u(322)},createJSDocFunctionType:cr,updateJSDocFunctionType:function(e,t,r){return e.parameters!==t||e.type!==r?n(cr(t,r),e):e},createJSDocTypeLiteral:_r,updateJSDocTypeLiteral:function(e,t,r){return e.jsDocPropertyTags!==t||e.isArrayType!==r?n(_r(t,r),e):e},createJSDocTypeExpression:lr,updateJSDocTypeExpression:function(e,t){return e.type!==t?n(lr(t),e):e},createJSDocSignature:ur,updateJSDocSignature:function(e,t,r,i){return e.typeParameters!==t||e.parameters!==r||e.type!==i?n(ur(t,r,i),e):e},createJSDocTemplateTag:mr,updateJSDocTemplateTag:function(e,t=dr(e),r,i,o){return e.tagName!==t||e.constraint!==r||e.typeParameters!==i||e.comment!==o?n(mr(t,r,i,o),e):e},createJSDocTypedefTag:gr,updateJSDocTypedefTag:function(e,t=dr(e),r,i,o){return e.tagName!==t||e.typeExpression!==r||e.fullName!==i||e.comment!==o?n(gr(t,r,i,o),e):e},createJSDocParameterTag:hr,updateJSDocParameterTag:function(e,t=dr(e),r,i,o,a,s){return e.tagName!==t||e.name!==r||e.isBracketed!==i||e.typeExpression!==o||e.isNameFirst!==a||e.comment!==s?n(hr(t,r,i,o,a,s),e):e},createJSDocPropertyTag:yr,updateJSDocPropertyTag:function(e,t=dr(e),r,i,o,a,s){return e.tagName!==t||e.name!==r||e.isBracketed!==i||e.typeExpression!==o||e.isNameFirst!==a||e.comment!==s?n(yr(t,r,i,o,a,s),e):e},createJSDocCallbackTag:vr,updateJSDocCallbackTag:function(e,t=dr(e),r,i,o){return e.tagName!==t||e.typeExpression!==r||e.fullName!==i||e.comment!==o?n(vr(t,r,i,o),e):e},createJSDocOverloadTag:br,updateJSDocOverloadTag:function(e,t=dr(e),r,i){return e.tagName!==t||e.typeExpression!==r||e.comment!==i?n(br(t,r,i),e):e},createJSDocAugmentsTag:xr,updateJSDocAugmentsTag:function(e,t=dr(e),r,i){return e.tagName!==t||e.class!==r||e.comment!==i?n(xr(t,r,i),e):e},createJSDocImplementsTag:kr,updateJSDocImplementsTag:function(e,t=dr(e),r,i){return e.tagName!==t||e.class!==r||e.comment!==i?n(kr(t,r,i),e):e},createJSDocSeeTag:Sr,updateJSDocSeeTag:function(e,t,r,i){return e.tagName!==t||e.name!==r||e.comment!==i?n(Sr(t,r,i),e):e},createJSDocNameReference:Tr,updateJSDocNameReference:function(e,t){return e.name!==t?n(Tr(t),e):e},createJSDocMemberName:Cr,updateJSDocMemberName:function(e,t,r){return e.left!==t||e.right!==r?n(Cr(t,r),e):e},createJSDocLink:Ar,updateJSDocLink:function(e,t,r){return e.name!==t?n(Ar(t,r),e):e},createJSDocLinkCode:wr,updateJSDocLinkCode:function(e,t,r){return e.name!==t?n(wr(t,r),e):e},createJSDocLinkPlain:Dr,updateJSDocLinkPlain:function(e,t,r){return e.name!==t?n(Dr(t,r),e):e},get createJSDocTypeTag(){return g(347)},get updateJSDocTypeTag(){return h(347)},get createJSDocReturnTag(){return g(345)},get updateJSDocReturnTag(){return h(345)},get createJSDocThisTag(){return g(346)},get updateJSDocThisTag(){return h(346)},get createJSDocAuthorTag(){return f(333)},get updateJSDocAuthorTag(){return m(333)},get createJSDocClassTag(){return f(335)},get updateJSDocClassTag(){return m(335)},get createJSDocPublicTag(){return f(336)},get updateJSDocPublicTag(){return m(336)},get createJSDocPrivateTag(){return f(337)},get updateJSDocPrivateTag(){return m(337)},get createJSDocProtectedTag(){return f(338)},get updateJSDocProtectedTag(){return m(338)},get createJSDocReadonlyTag(){return f(339)},get updateJSDocReadonlyTag(){return m(339)},get createJSDocOverrideTag(){return f(340)},get updateJSDocOverrideTag(){return m(340)},get createJSDocDeprecatedTag(){return f(334)},get updateJSDocDeprecatedTag(){return m(334)},get createJSDocThrowsTag(){return g(352)},get updateJSDocThrowsTag(){return h(352)},get createJSDocSatisfiesTag(){return g(353)},get updateJSDocSatisfiesTag(){return h(353)},createJSDocEnumTag:Pr,updateJSDocEnumTag:function(e,t=dr(e),r,i){return e.tagName!==t||e.typeExpression!==r||e.comment!==i?n(Pr(t,r,i),e):e},createJSDocUnknownTag:Fr,updateJSDocUnknownTag:function(e,t,r){return e.tagName!==t||e.comment!==r?n(Fr(t,r),e):e},createJSDocText:Ir,updateJSDocText:function(e,t){return e.text!==t?n(Ir(t),e):e},createJSDocComment:Or,updateJSDocComment:function(e,t,r){return e.comment!==t||e.tags!==r?n(Or(t,r),e):e},createJsxElement:Lr,updateJsxElement:function(e,t,r,i){return e.openingElement!==t||e.children!==r||e.closingElement!==i?n(Lr(t,r,i),e):e},createJsxSelfClosingElement:Mr,updateJsxSelfClosingElement:function(e,t,r,i){return e.tagName!==t||e.typeArguments!==r||e.attributes!==i?n(Mr(t,r,i),e):e},createJsxOpeningElement:Rr,updateJsxOpeningElement:function(e,t,r,i){return e.tagName!==t||e.typeArguments!==r||e.attributes!==i?n(Rr(t,r,i),e):e},createJsxClosingElement:Br,updateJsxClosingElement:function(e,t){return e.tagName!==t?n(Br(t),e):e},createJsxFragment:jr,createJsxText:Jr,updateJsxText:function(e,t,r){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==r?n(Jr(t,r),e):e},createJsxOpeningFragment:function(){const e=b(286);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){const e=b(287);return e.transformFlags|=2,e},updateJsxFragment:function(e,t,r,i){return e.openingFragment!==t||e.children!==r||e.closingFragment!==i?n(jr(t,r,i),e):e},createJsxAttribute:zr,updateJsxAttribute:function(e,t,r){return e.name!==t||e.initializer!==r?n(zr(t,r),e):e},createJsxAttributes:Ur,updateJsxAttributes:function(e,t){return e.properties!==t?n(Ur(t),e):e},createJsxSpreadAttribute:qr,updateJsxSpreadAttribute:function(e,t){return e.expression!==t?n(qr(t),e):e},createJsxExpression:Vr,updateJsxExpression:function(e,t){return e.expression!==t?n(Vr(e.dotDotDotToken,t),e):e},createCaseClause:Qr,updateCaseClause:function(e,t,r){return e.expression!==t||e.statements!==r?n(Qr(t,r),e):e},createDefaultClause:Kr,updateDefaultClause:function(e,t){return e.statements!==t?n(Kr(t),e):e},createHeritageClause:Wr,updateHeritageClause:function(e,t){return e.types!==t?n(Wr(e.token,t),e):e},createCatchClause:Hr,updateCatchClause:function(e,t,r){return e.variableDeclaration!==t||e.block!==r?n(Hr(t,r),e):e},createPropertyAssignment:$r,updatePropertyAssignment:function(e,t,r){return e.name!==t||e.initializer!==r?((i=$r(t,r))!==(o=e)&&(i.modifiers=o.modifiers,i.questionToken=o.questionToken,i.exclamationToken=o.exclamationToken),n(i,o)):e;var i,o},createShorthandPropertyAssignment:Gr,updateShorthandPropertyAssignment:function(e,t,r){return e.name!==t||e.objectAssignmentInitializer!==r?((i=Gr(t,r))!==(o=e)&&(i.modifiers=o.modifiers,i.questionToken=o.questionToken,i.exclamationToken=o.exclamationToken,i.equalsToken=o.equalsToken),n(i,o)):e;var i,o},createSpreadAssignment:Xr,updateSpreadAssignment:function(e,t){return e.expression!==t?n(Xr(t),e):e},createEnumMember:Yr,updateEnumMember:function(e,t,r){return e.name!==t||e.initializer!==r?n(Yr(t,r),e):e},createSourceFile:function(e,n,r){const i=t.createBaseSourceFileNode(308);return i.statements=v(e),i.endOfFileToken=n,i.flags|=r,i.text="",i.fileName="",i.path="",i.resolvedPath="",i.originalFileName="",i.languageVersion=0,i.languageVariant=0,i.scriptKind=0,i.isDeclarationFile=!1,i.hasNoDefaultLib=!1,i.transformFlags|=SC(i.statements)|kC(i.endOfFileToken),i.locals=void 0,i.nextContainer=void 0,i.endFlowNode=void 0,i.nodeCount=0,i.identifierCount=0,i.symbolCount=0,i.parseDiagnostics=void 0,i.bindDiagnostics=void 0,i.bindSuggestionDiagnostics=void 0,i.lineMap=void 0,i.externalModuleIndicator=void 0,i.setExternalModuleIndicator=void 0,i.pragmas=void 0,i.checkJsDirective=void 0,i.referencedFiles=void 0,i.typeReferenceDirectives=void 0,i.libReferenceDirectives=void 0,i.amdDependencies=void 0,i.commentDirectives=void 0,i.identifiers=void 0,i.packageJsonLocations=void 0,i.packageJsonScope=void 0,i.imports=void 0,i.moduleAugmentations=void 0,i.ambientModuleNames=void 0,i.resolvedModules=void 0,i.classifiableNames=void 0,i.impliedNodeFormat=void 0,i},updateSourceFile:function(e,t,r=e.isDeclarationFile,i=e.referencedFiles,o=e.typeReferenceDirectives,a=e.hasNoDefaultLib,s=e.libReferenceDirectives){return e.statements!==t||e.isDeclarationFile!==r||e.referencedFiles!==i||e.typeReferenceDirectives!==o||e.hasNoDefaultLib!==a||e.libReferenceDirectives!==s?n(function(e,t,n,r,i,o,a){const s=ei(e);return s.statements=v(t),s.isDeclarationFile=n,s.referencedFiles=r,s.typeReferenceDirectives=i,s.hasNoDefaultLib=o,s.libReferenceDirectives=a,s.transformFlags=SC(s.statements)|kC(s.endOfFileToken),s}(e,t,r,i,o,a,s),e):e},createRedirectedSourceFile:Zr,createBundle:ti,updateBundle:function(e,t,i=r){return e.sourceFiles!==t||e.prepends!==i?n(ti(t,i),e):e},createUnparsedSource:function(e,t,n){const i=b(310);return i.prologues=e,i.syntheticReferences=t,i.texts=n,i.fileName="",i.text="",i.referencedFiles=r,i.libReferenceDirectives=r,i.getLineAndCharacterOfPosition=e=>ys(i,e),i},createUnparsedPrologue:function(e){return ni(303,e)},createUnparsedPrepend:function(e,t){const n=ni(304,e);return n.texts=t,n},createUnparsedTextLike:function(e,t){return ni(t?306:305,e)},createUnparsedSyntheticReference:function(e){const t=b(307);return t.data=e.data,t.section=e,t},createInputFiles:function(){const e=b(311);return e.javascriptText="",e.declarationText="",e},createSyntheticExpression:function(e,t=!1,n){const r=b(234);return r.type=e,r.isSpread=t,r.tupleNameSource=n,r},createSyntaxList:function(e){const t=b(354);return t._children=e,t},createNotEmittedStatement:function(e){const t=b(355);return t.original=e,OP(t,e),t},createPartiallyEmittedExpression:ri,updatePartiallyEmittedExpression:ii,createCommaListExpression:ai,updateCommaListExpression:function(e,t){return e.elements!==t?n(ai(t),e):e},createEndOfDeclarationMarker:function(e){const t=b(359);return t.emitNode={},t.original=e,t},createMergeDeclarationMarker:function(e){const t=b(358);return t.emitNode={},t.original=e,t},createSyntheticReferenceExpression:si,updateSyntheticReferenceExpression:function(e,t,r){return e.expression!==t||e.thisArg!==r?n(si(t,r),e):e},cloneNode:ci,get createComma(){return a(27)},get createAssignment(){return a(63)},get createLogicalOr(){return a(56)},get createLogicalAnd(){return a(55)},get createBitwiseOr(){return a(51)},get createBitwiseXor(){return a(52)},get createBitwiseAnd(){return a(50)},get createStrictEquality(){return a(36)},get createStrictInequality(){return a(37)},get createEquality(){return a(34)},get createInequality(){return a(35)},get createLessThan(){return a(29)},get createLessThanEquals(){return a(32)},get createGreaterThan(){return a(31)},get createGreaterThanEquals(){return a(33)},get createLeftShift(){return a(47)},get createRightShift(){return a(48)},get createUnsignedRightShift(){return a(49)},get createAdd(){return a(39)},get createSubtract(){return a(40)},get createMultiply(){return a(41)},get createDivide(){return a(43)},get createModulo(){return a(44)},get createExponent(){return a(42)},get createPrefixPlus(){return s(39)},get createPrefixMinus(){return s(40)},get createPrefixIncrement(){return s(45)},get createPrefixDecrement(){return s(46)},get createBitwiseNot(){return s(54)},get createLogicalNot(){return s(53)},get createPostfixIncrement(){return c(45)},get createPostfixDecrement(){return c(46)},createImmediatelyInvokedFunctionExpression:function(e,t,n){return ct(yt(void 0,void 0,void 0,void 0,t?[t]:[],void 0,tn(e,!0)),void 0,n?[n]:[])},createImmediatelyInvokedArrowFunction:function(e,t,n){return ct(bt(void 0,void 0,t?[t]:[],void 0,void 0,tn(e,!0)),void 0,n?[n]:[])},createVoidZero:_i,createExportDefault:function(e){return Zn(void 0,!1,e)},createExternalModuleExport:function(e){return tr(void 0,!1,rr([ir(!1,void 0,e)]))},createTypeCheck:function(e,t){return"undefined"===t?y.createStrictEquality(e,_i()):y.createStrictEquality(Tt(e),w(t))},createMethodCall:li,createGlobalMethodCall:ui,createFunctionBindCall:function(e,t,n){return li(e,"bind",[t,...n])},createFunctionCallCall:function(e,t,n){return li(e,"call",[t,...n])},createFunctionApplyCall:function(e,t,n){return li(e,"apply",[t,n])},createArraySliceCall:function(e,t){return li(e,"slice",void 0===t?[]:[Si(t)])},createArrayConcatCall:function(e,t){return li(e,"concat",t)},createObjectDefinePropertyCall:function(e,t,n){return ui("Object","defineProperty",[e,Si(t),n])},createObjectGetOwnPropertyDescriptorCall:function(e,t){return ui("Object","getOwnPropertyDescriptor",[e,Si(t)])},createReflectGetCall:function(e,t,n){return ui("Reflect","get",n?[e,t,n]:[e,t])},createReflectSetCall:function(e,t,n,r){return ui("Reflect","set",r?[e,t,n,r]:[e,t,n])},createPropertyDescriptor:function(e,t){const n=[];di(n,"enumerable",Si(e.enumerable)),di(n,"configurable",Si(e.configurable));let r=di(n,"writable",Si(e.writable));r=di(n,"value",e.value)||r;let i=di(n,"get",e.get);return i=di(n,"set",e.set)||i,In.assert(!(r&&i),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ye(n,!t)},createCallBinding:function(e,t,n,r=!1){const o=UF(e,15);let a,s;return Zm(o)?(a=j(),s=o):Mw(o)?(a=j(),s=void 0!==n&&n<2?OP(P("_super"),o):o):8192&rf(o)?(a=_i(),s=i().parenthesizeLeftSideOfAccess(o,!1)):ND(o)?pi(o.expression,r)?(a=I(t),s=et(OP(y.createAssignment(a,o.expression),o.expression),o.name),OP(s,o)):(a=o.expression,s=o):FD(o)?pi(o.expression,r)?(a=I(t),s=it(OP(y.createAssignment(a,o.expression),o.expression),o.argumentExpression),OP(s,o)):(a=o.expression,s=o):(a=_i(),s=i().parenthesizeLeftSideOfAccess(e,!1)),{target:s,thisArg:a}},createAssignmentTargetWrapper:function(e,t){return et(mt(Ye([de(void 0,"value",[H(void 0,void 0,e,void 0,void 0,void 0)],tn([an(t)]))])),"value")},inlineExpressions:function(e){return e.length>10?ai(e):Ke(e,y.createComma)},getInternalName:function(e,t,n){return fi(e,t,n,98304)},getLocalName:function(e,t,n){return fi(e,t,n,32768)},getExportName:mi,getDeclarationName:function(e,t,n){return fi(e,t,n)},getNamespaceMemberName:gi,getExternalModuleOrNamespaceExportName:function(e,t,n,r){return e&&cb(t,1)?gi(e,fi(t),n,r):mi(t,n,r)},restoreOuterExpressions:function e(t,n,r=15){return!t||!zF(t,r)||MD(i=t)&&Qy(i)&&Qy(zC(i))&&Qy(WC(i))&&!_e($C(i))&&!_e(YC(i))?n:function(e,t){switch(e.kind){case 214:return gt(e,t);case 213:return ft(e,e.type,t);case 231:return Kt(e,t,e.type);case 235:return Gt(e,t,e.type);case 232:return Ht(e,t);case 356:return ii(e,t)}}(t,e(t.expression,n));var i},restoreEnclosingLabel:function e(t,n,r){if(!n)return t;const i=bn(n,n.label,SE(n.statement)?e(t,n.statement):t);return r&&r(n),i},createUseStrictPrologue:hi,copyPrologue:function(e,t,n,r){return vi(e,t,yi(e,t,0,n),r)},copyStandardPrologue:yi,copyCustomPrologue:vi,ensureUseStrict:function(e){return LF(e)?e:OP(v([hi(),...e]),e)},liftToBlock:function(e){return In.assert(F(e,Ou),"Cannot lift nodes to a Block."),Je(e)||tn(e)},mergeLexicalEnvironment:function(e,t){if(!_e(t))return e;const n=bi(e,lm,0),r=bi(e,dm,n),i=bi(e,fm,r),o=bi(t,lm,0),a=bi(t,dm,o),s=bi(t,fm,a),c=bi(t,um,s);In.assert(c===t.length,"Expected declarations to be valid standard or custom prologues");const _=Z_(e)?e.slice():e;if(c>s&&_.splice(i,0,...t.slice(s,c)),s>a&&_.splice(r,0,...t.slice(a,s)),a>o&&_.splice(n,0,...t.slice(o,a)),o>0)if(0===n)_.splice(0,0,...t.slice(0,o));else{const r=new Map;for(let t=0;t=0;e--){const n=t[e];r.has(n.expression.text)||_.unshift(n)}}return Z_(e)?OP(v(_,e.hasTrailingComma),e):e},updateModifiers:function(e,t){var n;let r;return r="number"==typeof t?q(t):t,zw(e)?W(e,r,e.name,e.constraint,e.default):Uw(e)?$(e,r,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):iD(e)?Ce(e,r,e.typeParameters,e.parameters,e.type):Vw(e)?Z(e,r,e.name,e.questionToken,e.type):Qw(e)?te(e,r,e.name,null!=(n=e.questionToken)?n:e.exclamationToken,e.type,e.initializer):Kw(e)?re(e,r,e.name,e.questionToken,e.typeParameters,e.parameters,e.type):Ww(e)?oe(e,r,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):$w(e)?ce(e,r,e.parameters,e.body):Gw(e)?ue(e,r,e.name,e.parameters,e.type,e.body):Xw(e)?pe(e,r,e.name,e.parameters,e.body):eD(e)?he(e,r,e.parameters,e.type):RD(e)?vt(e,r,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):BD(e)?xt(e,r,e.typeParameters,e.parameters,e.type,e.equalsGreaterThanToken,e.body):GD(e)?qt(e,r,e.name,e.typeParameters,e.heritageClauses,e.members):_E(e)?rn(e,r,e.declarationList):EE(e)?An(e,r,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):NE(e)?Dn(e,r,e.name,e.typeParameters,e.heritageClauses,e.members):FE(e)?Nn(e,r,e.name,e.typeParameters,e.heritageClauses,e.members):PE(e)?Pn(e,r,e.name,e.typeParameters,e.type):IE(e)?Ln(e,r,e.name,e.members):OE(e)?Rn(e,r,e.name,e.body):BE(e)?Un(e,r,e.isTypeOnly,e.name,e.moduleReference):jE(e)?Vn(e,r,e.importClause,e.moduleSpecifier,e.assertClause):HE(e)?er(e,r,e.expression):$E(e)?nr(e,r,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.assertClause):In.assertNever(e)}};return T(cC,(e=>e(y))),y;function v(e,t){if(void 0===e||e===r)e=[];else if(Z_(e)){if(void 0===t||e.hasTrailingComma===t)return void 0===e.transformFlags&&TC(e),In.attachNodeArrayDebugInfo(e),e;const n=e.slice();return n.pos=e.pos,n.end=e.end,n.hasTrailingComma=t,n.transformFlags=e.transformFlags,In.attachNodeArrayDebugInfo(n),n}const n=e.length,i=n>=1&&n<=4?e.slice():e;return i.pos=-1,i.end=-1,i.hasTrailingComma=!!t,i.transformFlags=0,TC(i),In.attachNodeArrayDebugInfo(i),i}function b(e){return t.createBaseNode(e)}function x(e){const t=b(e);return t.symbol=void 0,t.localSymbol=void 0,t}function k(e,t){return e!==t&&(e.typeArguments=t.typeArguments),n(e,t)}function S(e,t=0){const n=x(8);return n.text="number"==typeof e?e+"":e,n.numericLiteralFlags=t,384&t&&(n.transformFlags|=1024),n}function C(e){const t=R(9);return t.text="string"==typeof e?e:lT(e)+"n",t.transformFlags|=4,t}function A(e,t){const n=x(10);return n.text=e,n.singleQuote=t,n}function w(e,t,n){const r=A(e,t);return r.hasExtendedUnicodeEscape=n,n&&(r.transformFlags|=1024),r}function D(e){const t=R(13);return t.text=e,t}function E(e){const n=t.createBaseIdentifierNode(79);return n.escapedText=e,n.jsDoc=void 0,n.flowNode=void 0,n.symbol=void 0,n}function N(e,t,n,r){const i=E(Pc(e));return gA(i,{flags:t,id:aC,prefix:n,suffix:r}),aC++,i}function P(e,t,n){void 0===t&&e&&(t=ls(e)),79===t&&(t=void 0);const r=E(Pc(e));return n&&(r.flags|=128),"await"===r.escapedText&&(r.transformFlags|=67108864),128&r.flags&&(r.transformFlags|=1024),r}function I(e,t,n,r){let i=1;t&&(i|=8);const o=N("",i,n,r);return e&&e(o),o}function O(e,t=0,n,r){In.assert(!(7&t),"Argument out of range: flags"),(n||r)&&(t|=16);const i=N(e?F_(e)?CP(!1,n,e,r,Oc):"generated@"+qB(e):"",4|t,n,r);return i.original=e,i}function L(e){const n=t.createBasePrivateIdentifierNode(80);return n.escapedText=e,n.transformFlags|=16777216,n}function M(e,t,n,r){const i=L(Pc(e));return gA(i,{flags:t,id:aC,prefix:n,suffix:r}),aC++,i}function R(e){return t.createBaseTokenNode(e)}function B(e){In.assert(e>=0&&e<=162,"Invalid token"),In.assert(e<=14||e>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),In.assert(e<=8||e>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),In.assert(79!==e,"Invalid token. Use 'createIdentifier' to create identifiers");const t=R(e);let n=0;switch(e){case 132:n=384;break;case 123:case 121:case 122:case 146:case 126:case 136:case 85:case 131:case 148:case 160:case 144:case 149:case 101:case 145:case 161:case 152:case 134:case 153:case 114:case 157:case 155:n=1;break;case 106:n=134218752,t.flowNode=void 0;break;case 124:n=1024;break;case 127:n=16777216;break;case 108:n=16384,t.flowNode=void 0}return n&&(t.transformFlags|=n),t}function j(){return B(108)}function J(){return B(110)}function z(){return B(95)}function U(e){return B(e)}function q(e){const t=[];return 1&e&&t.push(U(93)),2&e&&t.push(U(136)),1024&e&&t.push(U(88)),2048&e&&t.push(U(85)),4&e&&t.push(U(123)),8&e&&t.push(U(121)),16&e&&t.push(U(122)),256&e&&t.push(U(126)),32&e&&t.push(U(124)),16384&e&&t.push(U(161)),64&e&&t.push(U(146)),128&e&&t.push(U(127)),512&e&&t.push(U(132)),32768&e&&t.push(U(101)),65536&e&&t.push(U(145)),t.length?t:void 0}function V(e,t){const n=b(163);return n.left=e,n.right=ki(t),n.transformFlags|=kC(n.left)|xC(n.right),n.flowNode=void 0,n}function Q(e){const t=b(164);return t.expression=i().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=132096|kC(t.expression),t}function K(e,t,n,r){const i=x(165);return i.modifiers=xi(e),i.name=ki(t),i.constraint=n,i.default=r,i.transformFlags=1,i.expression=void 0,i.jsDoc=void 0,i}function W(e,t,r,i,o){return e.modifiers!==t||e.name!==r||e.constraint!==i||e.default!==o?n(K(t,r,i,o),e):e}function H(e,t,n,r,i,o){var a,s;const c=x(166);return c.modifiers=xi(e),c.dotDotDotToken=t,c.name=ki(n),c.questionToken=r,c.type=i,c.initializer=Ti(o),Uv(c.name)?c.transformFlags=1:c.transformFlags=SC(c.modifiers)|kC(c.dotDotDotToken)|bC(c.name)|kC(c.questionToken)|kC(c.initializer)|((null!=(a=c.questionToken)?a:c.type)?1:0)|((null!=(s=c.dotDotDotToken)?s:c.initializer)?1024:0)|(16476&Ab(c.modifiers)?8192:0),c.jsDoc=void 0,c}function $(e,t,r,i,o,a,s){return e.modifiers!==t||e.dotDotDotToken!==r||e.name!==i||e.questionToken!==o||e.type!==a||e.initializer!==s?n(H(t,r,i,o,a,s),e):e}function G(e){const t=b(167);return t.expression=i().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=33562625|kC(t.expression),t}function Y(e,t,n,r){const i=x(168);return i.modifiers=xi(e),i.name=ki(t),i.type=r,i.questionToken=n,i.transformFlags=1,i.initializer=void 0,i.jsDoc=void 0,i}function Z(e,t,r,i,o){return e.modifiers!==t||e.name!==r||e.questionToken!==i||e.type!==o?((a=Y(t,r,i,o))!==(s=e)&&(a.initializer=s.initializer),n(a,s)):e;var a,s}function ee(e,t,n,r,i){const o=x(169);o.modifiers=xi(e),o.name=ki(t),o.questionToken=n&&bw(n)?n:void 0,o.exclamationToken=n&&vw(n)?n:void 0,o.type=r,o.initializer=Ti(i);const a=16777216&o.flags||2&Ab(o.modifiers);return o.transformFlags=SC(o.modifiers)|bC(o.name)|kC(o.initializer)|(a||o.questionToken||o.exclamationToken||o.type?1:0)|(Jw(o.name)||32&Ab(o.modifiers)&&o.initializer?8192:0)|16777216,o.jsDoc=void 0,o}function te(e,t,r,i,o,a){return e.modifiers!==t||e.name!==r||e.questionToken!==(void 0!==i&&bw(i)?i:void 0)||e.exclamationToken!==(void 0!==i&&vw(i)?i:void 0)||e.type!==o||e.initializer!==a?n(ee(t,r,i,o,a),e):e}function ne(e,t,n,r,i,o){const a=x(170);return a.modifiers=xi(e),a.name=ki(t),a.questionToken=n,a.typeParameters=xi(r),a.parameters=xi(i),a.type=o,a.transformFlags=1,a.jsDoc=void 0,a.locals=void 0,a.nextContainer=void 0,a.typeArguments=void 0,a}function re(e,t,n,r,i,o,a){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.typeParameters!==i||e.parameters!==o||e.type!==a?k(ne(t,n,r,i,o,a),e):e}function ie(e,t,n,r,i,o,a,s){const c=x(171);if(c.modifiers=xi(e),c.asteriskToken=t,c.name=ki(n),c.questionToken=r,c.exclamationToken=void 0,c.typeParameters=xi(i),c.parameters=v(o),c.type=a,c.body=s,c.body){const e=512&Ab(c.modifiers),t=!!c.asteriskToken,n=e&&t;c.transformFlags=SC(c.modifiers)|kC(c.asteriskToken)|bC(c.name)|kC(c.questionToken)|SC(c.typeParameters)|SC(c.parameters)|kC(c.type)|-67108865&kC(c.body)|(n?128:e?256:t?2048:0)|(c.questionToken||c.typeParameters||c.type?1:0)|1024}else c.transformFlags=1;return c.typeArguments=void 0,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.flowNode=void 0,c.endFlowNode=void 0,c.returnFlowNode=void 0,c}function oe(e,t,r,i,o,a,s,c,_){return e.modifiers!==t||e.asteriskToken!==r||e.name!==i||e.questionToken!==o||e.typeParameters!==a||e.parameters!==s||e.type!==c||e.body!==_?((l=ie(t,r,i,o,a,s,c,_))!==(u=e)&&(l.exclamationToken=u.exclamationToken),n(l,u)):e;var l,u}function ae(e){const t=x(172);return t.body=e,t.transformFlags=16777216|kC(e),t.modifiers=void 0,t.jsDoc=void 0,t.locals=void 0,t.nextContainer=void 0,t.endFlowNode=void 0,t.returnFlowNode=void 0,t}function se(e,t,n){const r=x(173);return r.modifiers=xi(e),r.parameters=v(t),r.body=n,r.transformFlags=SC(r.modifiers)|SC(r.parameters)|-67108865&kC(r.body)|1024,r.typeParameters=void 0,r.type=void 0,r.typeArguments=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.endFlowNode=void 0,r.returnFlowNode=void 0,r}function ce(e,t,n,r){return e.modifiers!==t||e.parameters!==n||e.body!==r?((i=se(t,n,r))!==(o=e)&&(i.typeParameters=o.typeParameters,i.type=o.type),k(i,o)):e;var i,o}function le(e,t,n,r,i){const o=x(174);return o.modifiers=xi(e),o.name=ki(t),o.parameters=v(n),o.type=r,o.body=i,o.body?o.transformFlags=SC(o.modifiers)|bC(o.name)|SC(o.parameters)|kC(o.type)|-67108865&kC(o.body)|(o.type?1:0):o.transformFlags=1,o.typeArguments=void 0,o.typeParameters=void 0,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o.endFlowNode=void 0,o.returnFlowNode=void 0,o}function ue(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.type!==i||e.body!==o?((a=le(t,n,r,i,o))!==(s=e)&&(a.typeParameters=s.typeParameters),k(a,s)):e;var a,s}function de(e,t,n,r){const i=x(175);return i.modifiers=xi(e),i.name=ki(t),i.parameters=v(n),i.body=r,i.body?i.transformFlags=SC(i.modifiers)|bC(i.name)|SC(i.parameters)|-67108865&kC(i.body)|(i.type?1:0):i.transformFlags=1,i.typeArguments=void 0,i.typeParameters=void 0,i.type=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function pe(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.body!==i?((o=de(t,n,r,i))!==(a=e)&&(o.typeParameters=a.typeParameters,o.type=a.type),k(o,a)):e;var o,a}function fe(e,t,n){const r=x(176);return r.typeParameters=xi(e),r.parameters=xi(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function me(e,t,n){const r=x(177);return r.typeParameters=xi(e),r.parameters=xi(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ge(e,t,n){const r=x(178);return r.modifiers=xi(e),r.parameters=xi(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function he(e,t,n,r){return e.parameters!==n||e.type!==r||e.modifiers!==t?k(ge(t,n,r),e):e}function ye(e,t){const n=b(201);return n.type=e,n.literal=t,n.transformFlags=1,n}function ve(e,t,n){const r=b(179);return r.assertsModifier=e,r.parameterName=ki(t),r.type=n,r.transformFlags=1,r}function be(e,t){const n=b(180);return n.typeName=ki(e),n.typeArguments=t&&i().parenthesizeTypeArguments(v(t)),n.transformFlags=1,n}function xe(e,t,n){const r=x(181);return r.typeParameters=xi(e),r.parameters=xi(t),r.type=n,r.transformFlags=1,r.modifiers=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ke(...e){return 4===e.length?Te(...e):3===e.length?function(e,t,n){return Te(void 0,e,t,n)}(...e):In.fail("Incorrect number of arguments specified.")}function Te(e,t,n,r){const i=x(182);return i.modifiers=xi(e),i.typeParameters=xi(t),i.parameters=xi(n),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.typeArguments=void 0,i}function Ce(e,t,n,r,i){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i?k(ke(t,n,r,i),e):e}function Ae(e,t){const n=b(183);return n.exprName=e,n.typeArguments=t&&i().parenthesizeTypeArguments(t),n.transformFlags=1,n}function we(e){const t=x(184);return t.members=v(e),t.transformFlags=1,t}function De(e){const t=b(185);return t.elementType=i().parenthesizeNonArrayTypeOfPostfixType(e),t.transformFlags=1,t}function Ee(e){const t=b(186);return t.elements=v(i().parenthesizeElementTypesOfTupleType(e)),t.transformFlags=1,t}function Ne(e,t,n,r){const i=x(199);return i.dotDotDotToken=e,i.name=t,i.questionToken=n,i.type=r,i.transformFlags=1,i.jsDoc=void 0,i}function Fe(e){const t=b(187);return t.type=i().parenthesizeTypeOfOptionalType(e),t.transformFlags=1,t}function Pe(e){const t=b(188);return t.type=e,t.transformFlags=1,t}function Ie(e,t,n){const r=b(e);return r.types=y.createNodeArray(n(t)),r.transformFlags=1,r}function Oe(e,t,r){return e.types!==t?n(Ie(e.kind,t,r),e):e}function Le(e,t,n,r){const o=b(191);return o.checkType=i().parenthesizeCheckTypeOfConditionalType(e),o.extendsType=i().parenthesizeExtendsTypeOfConditionalType(t),o.trueType=n,o.falseType=r,o.transformFlags=1,o.locals=void 0,o.nextContainer=void 0,o}function Me(e){const t=b(192);return t.typeParameter=e,t.transformFlags=1,t}function Re(e,t){const n=b(200);return n.head=e,n.templateSpans=v(t),n.transformFlags=1,n}function je(e,t,n,r,o=!1){const a=b(202);return a.argument=e,a.assertions=t,a.qualifier=n,a.typeArguments=r&&i().parenthesizeTypeArguments(r),a.isTypeOf=o,a.transformFlags=1,a}function ze(e){const t=b(193);return t.type=e,t.transformFlags=1,t}function Ue(e,t){const n=b(195);return n.operator=e,n.type=146===e?i().parenthesizeOperandOfReadonlyTypeOperator(t):i().parenthesizeOperandOfTypeOperator(t),n.transformFlags=1,n}function qe(e,t){const n=b(196);return n.objectType=i().parenthesizeNonArrayTypeOfPostfixType(e),n.indexType=t,n.transformFlags=1,n}function Ve(e,t,n,r,i,o){const a=x(197);return a.readonlyToken=e,a.typeParameter=t,a.nameType=n,a.questionToken=r,a.type=i,a.members=o&&v(o),a.transformFlags=1,a.locals=void 0,a.nextContainer=void 0,a}function Qe(e){const t=b(198);return t.literal=e,t.transformFlags=1,t}function He(e){const t=b(203);return t.elements=v(e),t.transformFlags|=525312|SC(t.elements),32768&t.transformFlags&&(t.transformFlags|=65664),t}function $e(e){const t=b(204);return t.elements=v(e),t.transformFlags|=525312|SC(t.elements),t}function Ge(e,t,n,r){const i=x(205);return i.dotDotDotToken=e,i.propertyName=ki(t),i.name=ki(n),i.initializer=Ti(r),i.transformFlags|=kC(i.dotDotDotToken)|bC(i.propertyName)|bC(i.name)|kC(i.initializer)|(i.dotDotDotToken?32768:0)|1024,i.flowNode=void 0,i}function Xe(e,t){const n=b(206),r=e&&Be(e),o=v(e,!(!r||!XD(r))||void 0);return n.elements=i().parenthesizeExpressionsOfCommaDelimitedList(o),n.multiLine=t,n.transformFlags|=SC(n.elements),n}function Ye(e,t){const n=x(207);return n.properties=v(e),n.multiLine=t,n.transformFlags|=SC(n.properties),n.jsDoc=void 0,n}function Ze(e,t,n){const r=x(208);return r.expression=e,r.questionDotToken=t,r.name=n,r.transformFlags=kC(r.expression)|kC(r.questionDotToken)|(Tw(r.name)?xC(r.name):536870912|kC(r.name)),r.jsDoc=void 0,r.flowNode=void 0,r}function et(e,t){const n=Ze(i().parenthesizeLeftSideOfAccess(e,!1),void 0,ki(t));return Mw(e)&&(n.transformFlags|=384),n}function tt(e,t,n){const r=Ze(i().parenthesizeLeftSideOfAccess(e,!0),t,ki(n));return r.flags|=32,r.transformFlags|=32,r}function nt(e,t,r,i){return In.assert(!!(32&e.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),e.expression!==t||e.questionDotToken!==r||e.name!==i?n(tt(t,r,i),e):e}function rt(e,t,n){const r=x(209);return r.expression=e,r.questionDotToken=t,r.argumentExpression=n,r.transformFlags|=kC(r.expression)|kC(r.questionDotToken)|kC(r.argumentExpression),r.jsDoc=void 0,r.flowNode=void 0,r}function it(e,t){const n=rt(i().parenthesizeLeftSideOfAccess(e,!1),void 0,Si(t));return Mw(e)&&(n.transformFlags|=384),n}function ot(e,t,n){const r=rt(i().parenthesizeLeftSideOfAccess(e,!0),t,Si(n));return r.flags|=32,r.transformFlags|=32,r}function at(e,t,r,i){return In.assert(!!(32&e.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),e.expression!==t||e.questionDotToken!==r||e.argumentExpression!==i?n(ot(t,r,i),e):e}function st(e,t,n,r){const i=x(210);return i.expression=e,i.questionDotToken=t,i.typeArguments=n,i.arguments=r,i.transformFlags|=kC(i.expression)|kC(i.questionDotToken)|SC(i.typeArguments)|SC(i.arguments),i.typeArguments&&(i.transformFlags|=1),Zm(i.expression)&&(i.transformFlags|=16384),i}function ct(e,t,n){const r=st(i().parenthesizeLeftSideOfAccess(e,!1),void 0,xi(t),i().parenthesizeExpressionsOfCommaDelimitedList(v(n)));return Rw(r.expression)&&(r.transformFlags|=8388608),r}function _t(e,t,n,r){const o=st(i().parenthesizeLeftSideOfAccess(e,!0),t,xi(n),i().parenthesizeExpressionsOfCommaDelimitedList(v(r)));return o.flags|=32,o.transformFlags|=32,o}function lt(e,t,r,i,o){return In.assert(!!(32&e.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),e.expression!==t||e.questionDotToken!==r||e.typeArguments!==i||e.arguments!==o?n(_t(t,r,i,o),e):e}function ut(e,t,n){const r=x(211);return r.expression=i().parenthesizeExpressionOfNew(e),r.typeArguments=xi(t),r.arguments=n?i().parenthesizeExpressionsOfCommaDelimitedList(n):void 0,r.transformFlags|=kC(r.expression)|SC(r.typeArguments)|SC(r.arguments)|32,r.typeArguments&&(r.transformFlags|=1),r}function dt(e,t,n){const r=b(212);return r.tag=i().parenthesizeLeftSideOfAccess(e,!1),r.typeArguments=xi(t),r.template=n,r.transformFlags|=kC(r.tag)|SC(r.typeArguments)|kC(r.template)|1024,r.typeArguments&&(r.transformFlags|=1),tv(r.template)&&(r.transformFlags|=128),r}function pt(e,t){const n=b(213);return n.expression=i().parenthesizeOperandOfPrefixUnary(t),n.type=e,n.transformFlags|=kC(n.expression)|kC(n.type)|1,n}function ft(e,t,r){return e.type!==t||e.expression!==r?n(pt(t,r),e):e}function mt(e){const t=b(214);return t.expression=e,t.transformFlags=kC(t.expression),t.jsDoc=void 0,t}function gt(e,t){return e.expression!==t?n(mt(t),e):e}function yt(e,t,n,r,i,o,a){const s=x(215);s.modifiers=xi(e),s.asteriskToken=t,s.name=ki(n),s.typeParameters=xi(r),s.parameters=v(i),s.type=o,s.body=a;const c=512&Ab(s.modifiers),_=!!s.asteriskToken,l=c&&_;return s.transformFlags=SC(s.modifiers)|kC(s.asteriskToken)|bC(s.name)|SC(s.typeParameters)|SC(s.parameters)|kC(s.type)|-67108865&kC(s.body)|(l?128:c?256:_?2048:0)|(s.typeParameters||s.type?1:0)|4194304,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function vt(e,t,n,r,i,o,a,s){return e.name!==r||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==i||e.parameters!==o||e.type!==a||e.body!==s?k(yt(t,n,r,i,o,a,s),e):e}function bt(e,t,n,r,o,a){const s=x(216);s.modifiers=xi(e),s.typeParameters=xi(t),s.parameters=v(n),s.type=r,s.equalsGreaterThanToken=null!=o?o:B(38),s.body=i().parenthesizeConciseBodyOfArrowFunction(a);const c=512&Ab(s.modifiers);return s.transformFlags=SC(s.modifiers)|SC(s.typeParameters)|SC(s.parameters)|kC(s.type)|kC(s.equalsGreaterThanToken)|-67108865&kC(s.body)|(s.typeParameters||s.type?1:0)|(c?16640:0)|1024,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function xt(e,t,n,r,i,o,a){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i||e.equalsGreaterThanToken!==o||e.body!==a?k(bt(t,n,r,i,o,a),e):e}function St(e){const t=b(217);return t.expression=i().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=kC(t.expression),t}function Tt(e){const t=b(218);return t.expression=i().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=kC(t.expression),t}function At(e){const t=b(219);return t.expression=i().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=kC(t.expression),t}function wt(e){const t=b(220);return t.expression=i().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=2097536|kC(t.expression),t}function Dt(e,t){const n=b(221);return n.operator=e,n.operand=i().parenthesizeOperandOfPrefixUnary(t),n.transformFlags|=kC(n.operand),45!==e&&46!==e||!Tw(n.operand)||dl(n.operand)||PF(n.operand)||(n.transformFlags|=268435456),n}function Et(e,t){const n=b(222);return n.operator=t,n.operand=i().parenthesizeOperandOfPostfixUnary(e),n.transformFlags|=kC(n.operand),!Tw(n.operand)||dl(n.operand)||PF(n.operand)||(n.transformFlags|=268435456),n}function Nt(e,t,n){const r=x(223),o="number"==typeof(a=t)?B(a):a;var a;const s=o.kind;return r.left=i().parenthesizeLeftSideOfBinary(s,e),r.operatorToken=o,r.right=i().parenthesizeRightSideOfBinary(s,r.left,n),r.transformFlags|=kC(r.left)|kC(r.operatorToken)|kC(r.right),60===s?r.transformFlags|=32:63===s?ED(r.left)?r.transformFlags|=5248|It(r.left):DD(r.left)&&(r.transformFlags|=5120|It(r.left)):42===s||67===s?r.transformFlags|=512:Nb(s)&&(r.transformFlags|=16),101===s&&Cw(r.left)&&(r.transformFlags|=536870912),r.jsDoc=void 0,r}function It(e){return PP(e)?65536:0}function Ot(e,t,n,r,o){const a=b(224);return a.condition=i().parenthesizeConditionOfConditionalExpression(e),a.questionToken=null!=t?t:B(57),a.whenTrue=i().parenthesizeBranchOfConditionalExpression(n),a.colonToken=null!=r?r:B(58),a.whenFalse=i().parenthesizeBranchOfConditionalExpression(o),a.transformFlags|=kC(a.condition)|kC(a.questionToken)|kC(a.whenTrue)|kC(a.colonToken)|kC(a.whenFalse),a}function Lt(e,t){const n=b(225);return n.head=e,n.templateSpans=v(t),n.transformFlags|=kC(n.head)|SC(n.templateSpans)|1024,n}function Mt(e,t,n,r=0){let i;if(In.assert(!(-2049&r),"Unsupported template flags."),void 0!==n&&n!==t&&(i=function(e,t){switch(_C||(_C=qs(99,!1,0)),e){case 14:_C.setText("`"+t+"`");break;case 15:_C.setText("`"+t+"${");break;case 16:_C.setText("}"+t+"${");break;case 17:_C.setText("}"+t+"`")}let n,r=_C.scan();if(19===r&&(r=_C.reScanTemplateToken(!1)),_C.isUnterminated())return _C.setText(void 0),lC;switch(r){case 14:case 15:case 16:case 17:n=_C.getTokenValue()}return void 0===n||1!==_C.scan()?(_C.setText(void 0),lC):(_C.setText(void 0),n)}(e,n),"object"==typeof i))return In.fail("Invalid raw text");if(void 0===t){if(void 0===i)return In.fail("Arguments 'text' and 'rawText' may not both be undefined.");t=i}else void 0!==i&&In.assert(t===i,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return t}function Rt(e){let t=1024;return e&&(t|=128),t}function Bt(e,t,n,r){const i=x(e);return i.text=t,i.rawText=n,i.templateFlags=2048&r,i.transformFlags=Rt(i.templateFlags),i}function jt(e,t,n,r){return 14===e?Bt(e,t,n,r):function(e,t,n,r){const i=R(e);return i.text=t,i.rawText=n,i.templateFlags=2048&r,i.transformFlags=Rt(i.templateFlags),i}(e,t,n,r)}function Jt(e,t){In.assert(!e||!!t,"A `YieldExpression` with an asteriskToken must have an expression.");const n=b(226);return n.expression=t&&i().parenthesizeExpressionForDisallowedComma(t),n.asteriskToken=e,n.transformFlags|=kC(n.expression)|kC(n.asteriskToken)|1049728,n}function zt(e){const t=b(227);return t.expression=i().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=33792|kC(t.expression),t}function Ut(e,t,n,r,i){const o=x(228);return o.modifiers=xi(e),o.name=ki(t),o.typeParameters=xi(n),o.heritageClauses=xi(r),o.members=v(i),o.transformFlags|=SC(o.modifiers)|bC(o.name)|SC(o.typeParameters)|SC(o.heritageClauses)|SC(o.members)|(o.typeParameters?1:0)|1024,o.jsDoc=void 0,o}function qt(e,t,r,i,o,a){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.heritageClauses!==o||e.members!==a?n(Ut(t,r,i,o,a),e):e}function Vt(e,t){const n=b(230);return n.expression=i().parenthesizeLeftSideOfAccess(e,!1),n.typeArguments=t&&i().parenthesizeTypeArguments(t),n.transformFlags|=kC(n.expression)|SC(n.typeArguments)|1024,n}function Qt(e,t){const n=b(231);return n.expression=e,n.type=t,n.transformFlags|=kC(n.expression)|kC(n.type)|1,n}function Kt(e,t,r){return e.expression!==t||e.type!==r?n(Qt(t,r),e):e}function Wt(e){const t=b(232);return t.expression=i().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=1|kC(t.expression),t}function Ht(e,t){return q_(e)?Yt(e,t):e.expression!==t?n(Wt(t),e):e}function $t(e,t){const n=b(235);return n.expression=e,n.type=t,n.transformFlags|=kC(n.expression)|kC(n.type)|1,n}function Gt(e,t,r){return e.expression!==t||e.type!==r?n($t(t,r),e):e}function Xt(e){const t=b(232);return t.flags|=32,t.expression=i().parenthesizeLeftSideOfAccess(e,!0),t.transformFlags|=1|kC(t.expression),t}function Yt(e,t){return In.assert(!!(32&e.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),e.expression!==t?n(Xt(t),e):e}function Zt(e,t){const n=b(233);switch(n.keywordToken=e,n.name=t,n.transformFlags|=kC(n.name),e){case 103:n.transformFlags|=1024;break;case 100:n.transformFlags|=4;break;default:return In.assertNever(e)}return n.flowNode=void 0,n}function en(e,t){const n=b(236);return n.expression=e,n.literal=t,n.transformFlags|=kC(n.expression)|kC(n.literal)|1024,n}function tn(e,t){const n=b(238);return n.statements=v(e),n.multiLine=t,n.transformFlags|=SC(n.statements),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n}function nn(e,t){const n=b(240);return n.modifiers=xi(e),n.declarationList=ht(t)?Tn(t):t,n.transformFlags|=SC(n.modifiers)|kC(n.declarationList),2&Ab(n.modifiers)&&(n.transformFlags=1),n.jsDoc=void 0,n.flowNode=void 0,n}function rn(e,t,r){return e.modifiers!==t||e.declarationList!==r?n(nn(t,r),e):e}function on(){const e=b(239);return e.jsDoc=void 0,e}function an(e){const t=b(241);return t.expression=i().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=kC(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function sn(e,t,n){const r=b(242);return r.expression=e,r.thenStatement=Ci(t),r.elseStatement=Ci(n),r.transformFlags|=kC(r.expression)|kC(r.thenStatement)|kC(r.elseStatement),r.jsDoc=void 0,r.flowNode=void 0,r}function cn(e,t){const n=b(243);return n.statement=Ci(e),n.expression=t,n.transformFlags|=kC(n.statement)|kC(n.expression),n.jsDoc=void 0,n.flowNode=void 0,n}function _n(e,t){const n=b(244);return n.expression=e,n.statement=Ci(t),n.transformFlags|=kC(n.expression)|kC(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function ln(e,t,n,r){const i=b(245);return i.initializer=e,i.condition=t,i.incrementor=n,i.statement=Ci(r),i.transformFlags|=kC(i.initializer)|kC(i.condition)|kC(i.incrementor)|kC(i.statement),i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i}function un(e,t,n){const r=b(246);return r.initializer=e,r.expression=t,r.statement=Ci(n),r.transformFlags|=kC(r.initializer)|kC(r.expression)|kC(r.statement),r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.flowNode=void 0,r}function dn(e,t,n,r){const o=b(247);return o.awaitModifier=e,o.initializer=t,o.expression=i().parenthesizeExpressionForDisallowedComma(n),o.statement=Ci(r),o.transformFlags|=kC(o.awaitModifier)|kC(o.initializer)|kC(o.expression)|kC(o.statement)|1024,e&&(o.transformFlags|=128),o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o}function pn(e){const t=b(248);return t.label=ki(e),t.transformFlags|=4194304|kC(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function mn(e){const t=b(249);return t.label=ki(e),t.transformFlags|=4194304|kC(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function gn(e){const t=b(250);return t.expression=e,t.transformFlags|=4194432|kC(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function hn(e,t){const n=b(251);return n.expression=e,n.statement=Ci(t),n.transformFlags|=kC(n.expression)|kC(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function yn(e,t){const n=b(252);return n.expression=i().parenthesizeExpressionForDisallowedComma(e),n.caseBlock=t,n.transformFlags|=kC(n.expression)|kC(n.caseBlock),n.jsDoc=void 0,n.flowNode=void 0,n.possiblyExhaustive=!1,n}function vn(e,t){const n=b(253);return n.label=ki(e),n.statement=Ci(t),n.transformFlags|=kC(n.label)|kC(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function bn(e,t,r){return e.label!==t||e.statement!==r?n(vn(t,r),e):e}function xn(e){const t=b(254);return t.expression=e,t.transformFlags|=kC(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function kn(e,t,n){const r=b(255);return r.tryBlock=e,r.catchClause=t,r.finallyBlock=n,r.transformFlags|=kC(r.tryBlock)|kC(r.catchClause)|kC(r.finallyBlock),r.jsDoc=void 0,r.flowNode=void 0,r}function Sn(e,t,n,r){var i;const o=x(257);return o.name=ki(e),o.exclamationToken=t,o.type=n,o.initializer=Ti(r),o.transformFlags|=bC(o.name)|kC(o.initializer)|((null!=(i=o.exclamationToken)?i:o.type)?1:0),o.jsDoc=void 0,o}function Tn(e,t=0){const n=b(258);return n.flags|=3&t,n.declarations=v(e),n.transformFlags|=4194304|SC(n.declarations),3&t&&(n.transformFlags|=263168),n}function Cn(e,t,n,r,i,o,a){const s=x(259);if(s.modifiers=xi(e),s.asteriskToken=t,s.name=ki(n),s.typeParameters=xi(r),s.parameters=v(i),s.type=o,s.body=a,!s.body||2&Ab(s.modifiers))s.transformFlags=1;else{const e=512&Ab(s.modifiers),t=!!s.asteriskToken,n=e&&t;s.transformFlags=SC(s.modifiers)|kC(s.asteriskToken)|bC(s.name)|SC(s.typeParameters)|SC(s.parameters)|kC(s.type)|-67108865&kC(s.body)|(n?128:e?256:t?2048:0)|(s.typeParameters||s.type?1:0)|4194304}return s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function An(e,t,n,r,i,o,a,s){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.typeParameters!==i||e.parameters!==o||e.type!==a||e.body!==s?((c=Cn(t,n,r,i,o,a,s))!==(_=e)&&c.modifiers===_.modifiers&&(c.modifiers=_.modifiers),k(c,_)):e;var c,_}function wn(e,t,n,r,i){const o=x(260);return o.modifiers=xi(e),o.name=ki(t),o.typeParameters=xi(n),o.heritageClauses=xi(r),o.members=v(i),2&Ab(o.modifiers)?o.transformFlags=1:(o.transformFlags|=SC(o.modifiers)|bC(o.name)|SC(o.typeParameters)|SC(o.heritageClauses)|SC(o.members)|(o.typeParameters?1:0)|1024,8192&o.transformFlags&&(o.transformFlags|=1)),o.jsDoc=void 0,o}function Dn(e,t,r,i,o,a){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.heritageClauses!==o||e.members!==a?n(wn(t,r,i,o,a),e):e}function En(e,t,n,r,i){const o=x(261);return o.modifiers=xi(e),o.name=ki(t),o.typeParameters=xi(n),o.heritageClauses=xi(r),o.members=v(i),o.transformFlags=1,o.jsDoc=void 0,o}function Nn(e,t,r,i,o,a){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.heritageClauses!==o||e.members!==a?n(En(t,r,i,o,a),e):e}function Fn(e,t,n,r){const i=x(262);return i.modifiers=xi(e),i.name=ki(t),i.typeParameters=xi(n),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function Pn(e,t,r,i,o){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.type!==o?n(Fn(t,r,i,o),e):e}function On(e,t,n){const r=x(263);return r.modifiers=xi(e),r.name=ki(t),r.members=v(n),r.transformFlags|=SC(r.modifiers)|kC(r.name)|SC(r.members)|1,r.transformFlags&=-67108865,r.jsDoc=void 0,r}function Ln(e,t,r,i){return e.modifiers!==t||e.name!==r||e.members!==i?n(On(t,r,i),e):e}function Mn(e,t,n,r=0){const i=x(264);return i.modifiers=xi(e),i.flags|=1044&r,i.name=t,i.body=n,2&Ab(i.modifiers)?i.transformFlags=1:i.transformFlags|=SC(i.modifiers)|kC(i.name)|kC(i.body)|1,i.transformFlags&=-67108865,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function Rn(e,t,r,i){return e.modifiers!==t||e.name!==r||e.body!==i?n(Mn(t,r,i,e.flags),e):e}function Bn(e){const t=b(265);return t.statements=v(e),t.transformFlags|=SC(t.statements),t.jsDoc=void 0,t}function jn(e){const t=b(266);return t.clauses=v(e),t.transformFlags|=SC(t.clauses),t.locals=void 0,t.nextContainer=void 0,t}function Jn(e){const t=x(267);return t.name=ki(e),t.transformFlags|=1|xC(t.name),t.modifiers=void 0,t.jsDoc=void 0,t}function zn(e,t,n,r){const i=x(268);return i.modifiers=xi(e),i.name=ki(n),i.isTypeOnly=t,i.moduleReference=r,i.transformFlags|=SC(i.modifiers)|xC(i.name)|kC(i.moduleReference),rN(i.moduleReference)||(i.transformFlags|=1),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Un(e,t,r,i,o){return e.modifiers!==t||e.isTypeOnly!==r||e.name!==i||e.moduleReference!==o?n(zn(t,r,i,o),e):e}function qn(e,t,n,r){const i=b(269);return i.modifiers=xi(e),i.importClause=t,i.moduleSpecifier=n,i.assertClause=r,i.transformFlags|=kC(i.importClause)|kC(i.moduleSpecifier),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Vn(e,t,r,i,o){return e.modifiers!==t||e.importClause!==r||e.moduleSpecifier!==i||e.assertClause!==o?n(qn(t,r,i,o),e):e}function Qn(e,t,n){const r=x(270);return r.isTypeOnly=e,r.name=t,r.namedBindings=n,r.transformFlags|=kC(r.name)|kC(r.namedBindings),e&&(r.transformFlags|=1),r.transformFlags&=-67108865,r}function Kn(e,t){const n=b(296);return n.elements=v(e),n.multiLine=t,n.transformFlags|=4,n}function Wn(e,t){const n=b(297);return n.name=e,n.value=t,n.transformFlags|=4,n}function Hn(e,t){const n=b(298);return n.assertClause=e,n.multiLine=t,n}function $n(e){const t=x(271);return t.name=e,t.transformFlags|=kC(t.name),t.transformFlags&=-67108865,t}function Gn(e){const t=x(277);return t.name=e,t.transformFlags|=4|kC(t.name),t.transformFlags&=-67108865,t}function Xn(e){const t=b(272);return t.elements=v(e),t.transformFlags|=SC(t.elements),t.transformFlags&=-67108865,t}function Yn(e,t,n){const r=x(273);return r.isTypeOnly=e,r.propertyName=t,r.name=n,r.transformFlags|=kC(r.propertyName)|kC(r.name),r.transformFlags&=-67108865,r}function Zn(e,t,n){const r=x(274);return r.modifiers=xi(e),r.isExportEquals=t,r.expression=t?i().parenthesizeRightSideOfBinary(63,void 0,n):i().parenthesizeExpressionOfExportDefault(n),r.transformFlags|=SC(r.modifiers)|kC(r.expression),r.transformFlags&=-67108865,r.jsDoc=void 0,r}function er(e,t,r){return e.modifiers!==t||e.expression!==r?n(Zn(t,e.isExportEquals,r),e):e}function tr(e,t,n,r,i){const o=x(275);return o.modifiers=xi(e),o.isTypeOnly=t,o.exportClause=n,o.moduleSpecifier=r,o.assertClause=i,o.transformFlags|=SC(o.modifiers)|kC(o.exportClause)|kC(o.moduleSpecifier),o.transformFlags&=-67108865,o.jsDoc=void 0,o}function nr(e,t,r,i,o,a){return e.modifiers!==t||e.isTypeOnly!==r||e.exportClause!==i||e.moduleSpecifier!==o||e.assertClause!==a?((s=tr(t,r,i,o,a))!==(c=e)&&s.modifiers===c.modifiers&&(s.modifiers=c.modifiers),n(s,c)):e;var s,c}function rr(e){const t=b(276);return t.elements=v(e),t.transformFlags|=SC(t.elements),t.transformFlags&=-67108865,t}function ir(e,t,n){const r=b(278);return r.isTypeOnly=e,r.propertyName=ki(t),r.name=ki(n),r.transformFlags|=kC(r.propertyName)|kC(r.name),r.transformFlags&=-67108865,r.jsDoc=void 0,r}function or(e){const t=b(280);return t.expression=e,t.transformFlags|=kC(t.expression),t.transformFlags&=-67108865,t}function ar(e,t,n=!1){const r=sr(e,n?t&&i().parenthesizeNonArrayTypeOfPostfixType(t):t);return r.postfix=n,r}function sr(e,t){const n=b(e);return n.type=t,n}function cr(e,t){const n=x(320);return n.parameters=xi(e),n.type=t,n.transformFlags=SC(n.parameters)|(n.type?1:0),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n.typeArguments=void 0,n}function _r(e,t=!1){const n=x(325);return n.jsDocPropertyTags=xi(e),n.isArrayType=t,n}function lr(e){const t=b(312);return t.type=e,t}function ur(e,t,n){const r=x(326);return r.typeParameters=xi(e),r.parameters=v(t),r.type=n,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r}function dr(e){const t=vC(e.kind);return e.tagName.escapedText===Pc(t)?e.tagName:P(t)}function pr(e,t,n){const r=b(e);return r.tagName=t,r.comment=n,r}function fr(e,t,n){const r=x(e);return r.tagName=t,r.comment=n,r}function mr(e,t,n,r){const i=pr(348,null!=e?e:P("template"),r);return i.constraint=t,i.typeParameters=v(n),i}function gr(e,t,n,r){const i=fr(349,null!=e?e:P("typedef"),r);return i.typeExpression=t,i.fullName=n,i.name=aP(n),i.locals=void 0,i.nextContainer=void 0,i}function hr(e,t,n,r,i,o){const a=fr(344,null!=e?e:P("param"),o);return a.typeExpression=r,a.name=t,a.isNameFirst=!!i,a.isBracketed=n,a}function yr(e,t,n,r,i,o){const a=fr(351,null!=e?e:P("prop"),o);return a.typeExpression=r,a.name=t,a.isNameFirst=!!i,a.isBracketed=n,a}function vr(e,t,n,r){const i=fr(341,null!=e?e:P("callback"),r);return i.typeExpression=t,i.fullName=n,i.name=aP(n),i.locals=void 0,i.nextContainer=void 0,i}function br(e,t,n){const r=pr(342,null!=e?e:P("overload"),n);return r.typeExpression=t,r}function xr(e,t,n){const r=pr(331,null!=e?e:P("augments"),n);return r.class=t,r}function kr(e,t,n){const r=pr(332,null!=e?e:P("implements"),n);return r.class=t,r}function Sr(e,t,n){const r=pr(350,null!=e?e:P("see"),n);return r.name=t,r}function Tr(e){const t=b(313);return t.name=e,t}function Cr(e,t){const n=b(314);return n.left=e,n.right=t,n.transformFlags|=kC(n.left)|kC(n.right),n}function Ar(e,t){const n=b(327);return n.name=e,n.text=t,n}function wr(e,t){const n=b(328);return n.name=e,n.text=t,n}function Dr(e,t){const n=b(329);return n.name=e,n.text=t,n}function Er(e,t,n){return pr(e,null!=t?t:P(vC(e)),n)}function Nr(e,t,n,r){const i=pr(e,null!=t?t:P(vC(e)),r);return i.typeExpression=n,i}function Fr(e,t){return pr(330,e,t)}function Pr(e,t,n){const r=fr(343,null!=e?e:P(vC(343)),n);return r.typeExpression=t,r.locals=void 0,r.nextContainer=void 0,r}function Ir(e){const t=b(324);return t.text=e,t}function Or(e,t){const n=b(323);return n.comment=e,n.tags=xi(t),n}function Lr(e,t,n){const r=b(281);return r.openingElement=e,r.children=v(t),r.closingElement=n,r.transformFlags|=kC(r.openingElement)|SC(r.children)|kC(r.closingElement)|2,r}function Mr(e,t,n){const r=b(282);return r.tagName=e,r.typeArguments=xi(t),r.attributes=n,r.transformFlags|=kC(r.tagName)|SC(r.typeArguments)|kC(r.attributes)|2,r.typeArguments&&(r.transformFlags|=1),r}function Rr(e,t,n){const r=b(283);return r.tagName=e,r.typeArguments=xi(t),r.attributes=n,r.transformFlags|=kC(r.tagName)|SC(r.typeArguments)|kC(r.attributes)|2,t&&(r.transformFlags|=1),r}function Br(e){const t=b(284);return t.tagName=e,t.transformFlags|=2|kC(t.tagName),t}function jr(e,t,n){const r=b(285);return r.openingFragment=e,r.children=v(t),r.closingFragment=n,r.transformFlags|=kC(r.openingFragment)|SC(r.children)|kC(r.closingFragment)|2,r}function Jr(e,t){const n=b(11);return n.text=e,n.containsOnlyTriviaWhiteSpaces=!!t,n.transformFlags|=2,n}function zr(e,t){const n=x(288);return n.name=e,n.initializer=t,n.transformFlags|=kC(n.name)|kC(n.initializer)|2,n}function Ur(e){const t=x(289);return t.properties=v(e),t.transformFlags|=2|SC(t.properties),t}function qr(e){const t=b(290);return t.expression=e,t.transformFlags|=2|kC(t.expression),t}function Vr(e,t){const n=b(291);return n.dotDotDotToken=e,n.expression=t,n.transformFlags|=kC(n.dotDotDotToken)|kC(n.expression)|2,n}function Qr(e,t){const n=b(292);return n.expression=i().parenthesizeExpressionForDisallowedComma(e),n.statements=v(t),n.transformFlags|=kC(n.expression)|SC(n.statements),n.jsDoc=void 0,n}function Kr(e){const t=b(293);return t.statements=v(e),t.transformFlags=SC(t.statements),t}function Wr(e,t){const n=b(294);switch(n.token=e,n.types=v(t),n.transformFlags|=SC(n.types),e){case 94:n.transformFlags|=1024;break;case 117:n.transformFlags|=1;break;default:return In.assertNever(e)}return n}function Hr(e,t){const n=b(295);return n.variableDeclaration=function(e){return"string"==typeof e||e&&!wE(e)?Sn(e,void 0,void 0,void 0):e}(e),n.block=t,n.transformFlags|=kC(n.variableDeclaration)|kC(n.block)|(e?0:64),n.locals=void 0,n.nextContainer=void 0,n}function $r(e,t){const n=x(299);return n.name=ki(e),n.initializer=i().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=bC(n.name)|kC(n.initializer),n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function Gr(e,t){const n=x(300);return n.name=ki(e),n.objectAssignmentInitializer=t&&i().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=xC(n.name)|kC(n.objectAssignmentInitializer)|1024,n.equalsToken=void 0,n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function Xr(e){const t=x(301);return t.expression=i().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=65664|kC(t.expression),t.jsDoc=void 0,t}function Yr(e,t){const n=x(302);return n.name=ki(e),n.initializer=t&&i().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=kC(n.name)|kC(n.initializer)|1,n.jsDoc=void 0,n}function Zr(e){const t=Object.create(e.redirectTarget);return Object.defineProperties(t,{id:{get(){return this.redirectInfo.redirectTarget.id},set(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(e){this.redirectInfo.redirectTarget.symbol=e}}}),t.redirectInfo=e,t}function ei(e){const n=e.redirectInfo?function(e){const t=Zr(e.redirectInfo);return t.flags|=-9&e.flags,t.fileName=e.fileName,t.path=e.path,t.resolvedPath=e.resolvedPath,t.originalFileName=e.originalFileName,t.packageJsonLocations=e.packageJsonLocations,t.packageJsonScope=e.packageJsonScope,t.emitNode=void 0,t}(e):function(e){const n=t.createBaseSourceFileNode(308);n.flags|=-9&e.flags;for(const t in e)!We(n,t)&&We(e,t)&&("emitNode"!==t?n[t]=e[t]:n.emitNode=void 0);return n}(e);return PC(n,e),n}function ti(e,t=r){const n=b(309);return n.prepends=t,n.sourceFiles=e,n.syntheticFileReferences=void 0,n.syntheticTypeReferences=void 0,n.syntheticLibReferences=void 0,n.hasNoDefaultLib=void 0,n}function ni(e,t){const n=b(e);return n.data=t,n}function ri(e,t){const n=b(356);return n.expression=e,n.original=t,n.transformFlags|=1|kC(n.expression),OP(n,t),n}function ii(e,t){return e.expression!==t?n(ri(t,e.original),e):e}function oi(e){if(Qy(e)&&!Nc(e)&&!e.original&&!e.emitNode&&!e.id){if(oE(e))return e.elements;if(QD(e)&&mw(e.operatorToken))return[e.left,e.right]}return e}function ai(e){const t=b(357);return t.elements=v(X(e,oi)),t.transformFlags|=SC(t.elements),t}function si(e,t){const n=b(360);return n.expression=e,n.thisArg=t,n.transformFlags|=kC(n.expression)|kC(n.thisArg),n}function ci(e){if(void 0===e)return e;if(TN(e))return ei(e);if(dl(e))return function(e){const t=E(e.escapedText);return t.flags|=-9&e.flags,t.transformFlags=e.transformFlags,PC(t,e),gA(t,{...e.emitNode.autoGenerate}),t}(e);if(Tw(e))return function(e){const t=E(e.escapedText);t.flags|=-9&e.flags,t.jsDoc=e.jsDoc,t.flowNode=e.flowNode,t.symbol=e.symbol,t.transformFlags=e.transformFlags,PC(t,e);const n=mA(e);return n&&fA(t,n),t}(e);if(pl(e))return function(e){const t=L(e.escapedText);return t.flags|=-9&e.flags,t.transformFlags=e.transformFlags,PC(t,e),gA(t,{...e.emitNode.autoGenerate}),t}(e);if(Cw(e))return function(e){const t=L(e.escapedText);return t.flags|=-9&e.flags,t.transformFlags=e.transformFlags,PC(t,e),t}(e);const n=G_(e.kind)?t.createBaseNode(e.kind):t.createBaseTokenNode(e.kind);n.flags|=-9&e.flags,n.transformFlags=e.transformFlags,PC(n,e);for(const t in e)!We(n,t)&&We(e,t)&&(n[t]=e[t]);return n}function _i(){return At(S("0"))}function li(e,t,n){return L_(e)?_t(tt(e,void 0,t),void 0,void 0,n):ct(et(e,t),void 0,n)}function ui(e,t,n){return li(P(e),t,n)}function di(e,t,n){return!!n&&(e.push($r(t,n)),!0)}function pi(e,t){const n=Hh(e);switch(n.kind){case 79:return t;case 108:case 8:case 9:case 10:return!1;case 206:return 0!==n.elements.length;case 207:return n.properties.length>0;default:return!0}}function fi(e,t,n,r=0){const i=qc(e);if(i&&Tw(i)&&!dl(i)){const e=kT(OP(ci(i),i),i.parent);return r|=rf(i),n||(r|=96),t||(r|=3072),r&&RC(e,r),e}return O(e)}function mi(e,t,n){return fi(e,t,n,16384)}function gi(e,t,n,r){const i=et(e,Qy(t)?t:ci(t));OP(i,t);let o=0;return r||(o|=96),n||(o|=3072),o&&RC(i,o),i}function hi(){return QF(an(w("use strict")))}function yi(e,t,n=0,r){In.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");let i=!1;const o=e.length;for(;n=179&&e<=202)return-2;switch(e){case 210:case 211:case 206:case 203:case 204:return-2147450880;case 264:return-1941676032;case 166:case 213:case 235:case 231:case 356:case 214:case 106:case 208:case 209:default:return-2147483648;case 216:return-2072174592;case 215:case 259:return-1937940480;case 258:return-2146893824;case 260:case 228:return-2147344384;case 173:return-1937948672;case 169:return-2013249536;case 171:case 174:case 175:return-2005057536;case 131:case 148:case 160:case 144:case 152:case 149:case 134:case 153:case 114:case 165:case 168:case 170:case 176:case 177:case 178:case 261:case 262:return-2;case 207:return-2147278848;case 295:return-2147418112}}function AC(e){return e.flags|=8,e}function wC(e,t,n){let i,o,a,s,c,_,l,u,d,p;vt(e)?(a="",s=e,c=e.length,_=t,l=n):(In.assert("js"===t||"dts"===t),a=("js"===t?e.javascriptPath:e.declarationPath)||"",_="js"===t?e.javascriptMapPath:e.declarationMapPath,u=()=>"js"===t?e.javascriptText:e.declarationText,d=()=>"js"===t?e.javascriptMapText:e.declarationMapText,c=()=>u().length,e.buildInfo&&e.buildInfo.bundle&&(In.assert(void 0===n||"boolean"==typeof n),i=n,o="js"===t?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,p=e.oldFileOfCurrentEmit));const f=p?function(e){let t,n;for(const r of e.sections)switch(r.kind){case"internal":case"text":t=Se(t,OP(dC.createUnparsedTextLike(r.data,"internal"===r.kind),r));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":n=Se(n,OP(dC.createUnparsedSyntheticReference(r),r));break;case"prologue":case"emitHelpers":case"prepend":break;default:In.assertNever(r)}const i=dC.createUnparsedSource(r,n,null!=t?t:r);return ST(n,i),ST(t,i),i.helpers=V(e.sources&&e.sources.helpers,(e=>nw().get(e))),i}(In.checkDefined(o)):function(e,t,n){let i,o,a,s,c,_,l,u;for(const n of e?e.sections:r)switch(n.kind){case"prologue":i=Se(i,OP(dC.createUnparsedPrologue(n.data),n));break;case"emitHelpers":o=Se(o,nw().get(n.data));break;case"no-default-lib":u=!0;break;case"reference":a=Se(a,{pos:-1,end:-1,fileName:n.data});break;case"type":s=Se(s,{pos:-1,end:-1,fileName:n.data});break;case"type-import":s=Se(s,{pos:-1,end:-1,fileName:n.data,resolutionMode:99});break;case"type-require":s=Se(s,{pos:-1,end:-1,fileName:n.data,resolutionMode:1});break;case"lib":c=Se(c,{pos:-1,end:-1,fileName:n.data});break;case"prepend":let e;for(const r of n.texts)t&&"internal"===r.kind||(e=Se(e,OP(dC.createUnparsedTextLike(r.data,"internal"===r.kind),r)));_=Ae(_,e),l=Se(l,dC.createUnparsedPrepend(n.data,null!=e?e:r));break;case"internal":if(t){l||(l=[]);break}case"text":l=Se(l,OP(dC.createUnparsedTextLike(n.data,"internal"===n.kind),n));break;default:In.assertNever(n)}if(!l){const e=dC.createUnparsedTextLike(void 0,!1);bT(e,0,"function"==typeof n?n():n),l=[e]}const d=qP.createUnparsedSource(null!=i?i:r,void 0,l);return ST(i,d),ST(l,d),ST(_,d),d.hasNoDefaultLib=u,d.helpers=o,d.referencedFiles=a||r,d.typeReferenceDirectives=s,d.libReferenceDirectives=c||r,d}(o,i,c);return f.fileName=a,f.sourceMapPath=_,f.oldFileOfCurrentEmit=p,u&&d?(Object.defineProperty(f,"text",{get:u}),Object.defineProperty(f,"sourceMapText",{get:d})):(In.assert(!p),f.text=null!=s?s:"",f.sourceMapText=l),f}function DC(e,t,n,r,i,o){return vt(e)?NC(void 0,e,n,r,void 0,t,i,o):EC(e,t,n,r,i,o)}function EC(e,t,n,r,i,o,a,s){const c=qP.createInputFiles();c.javascriptPath=t,c.javascriptMapPath=n,c.declarationPath=r,c.declarationMapPath=i,c.buildInfoPath=o;const _=new Map,l=t=>{if(void 0===t)return;let n=_.get(t);return void 0===n&&(n=e(t),_.set(t,void 0!==n&&n)),!1!==n?n:void 0},u=e=>{const t=l(e);return void 0!==t?t:`/* Input file ${e} was missing */\r\n`};let d;return Object.defineProperties(c,{javascriptText:{get:()=>u(t)},javascriptMapText:{get:()=>l(n)},declarationText:{get:()=>u(In.checkDefined(r))},declarationMapText:{get:()=>l(i)},buildInfo:{get:()=>{var e,t;if(void 0===d&&o)if(null==a?void 0:a.getBuildInfo)d=null!=(e=a.getBuildInfo(o,s.configFilePath))&&e;else{const e=l(o);d=void 0!==e&&null!=(t=mU(o,e))&&t}return d||void 0}}}),c}function NC(e,t,n,r,i,o,a,s,c,_,l){const u=qP.createInputFiles();return u.javascriptPath=e,u.javascriptText=t,u.javascriptMapPath=n,u.javascriptMapText=r,u.declarationPath=i,u.declarationText=o,u.declarationMapPath=a,u.declarationMapText=s,u.buildInfoPath=c,u.buildInfo=_,u.oldFileOfCurrentEmit=l,u}function FC(e,t,n){return new(pC||(pC=Fd.getSourceMapSourceConstructor()))(e,t,n)}function PC(e,t){if(e.original=t,t){const n=t.emitNode;n&&(e.emitNode=function(e,t){const{flags:n,internalFlags:r,leadingComments:i,trailingComments:o,commentRange:a,sourceMapRange:s,tokenSourceMapRanges:c,constantValue:_,helpers:l,startsOnNewLine:u,snippetElement:d}=e;if(t||(t={}),i&&(t.leadingComments=Ae(i.slice(),t.leadingComments)),o&&(t.trailingComments=Ae(o.slice(),t.trailingComments)),n&&(t.flags=n),r&&(t.internalFlags=-9&r),a&&(t.commentRange=a),s&&(t.sourceMapRange=s),c&&(t.tokenSourceMapRanges=function(e,t){t||(t=[]);for(const n in e)t[n]=e[n];return t}(c,t.tokenSourceMapRanges)),void 0!==_&&(t.constantValue=_),l)for(const e of l)t.helpers=De(t.helpers,e);return void 0!==u&&(t.startsOnNewLine=u),void 0!==d&&(t.snippetElement=d),t}(n,e.emitNode))}return e}var IC=b({"src/compiler/factory/nodeFactory.ts"(){XK(),aC=0,sC=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(sC||{}),cC=[],lC={},uC=ZT(),dC=gC(4,{createBaseSourceFileNode:e=>AC(uC.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>AC(uC.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>AC(uC.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>AC(uC.createBaseTokenNode(e)),createBaseNode:e=>AC(uC.createBaseNode(e))})}});function OC(e){var t;if(e.emitNode)In.assert(!(8&e.emitNode.internalFlags),"Invalid attempt to mutate an immutable node.");else{if(Nc(e)){if(308===e.kind)return e.emitNode={annotatedNodes:[e]};OC(null!=(t=wp(Fc(wp(e))))?t:In.fail("Could not determine parsed source file.")).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function LC(e){var t,n;const r=null==(n=null==(t=wp(Fc(e)))?void 0:t.emitNode)?void 0:n.annotatedNodes;if(r)for(const e of r)e.emitNode=void 0}function MC(e){const t=OC(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function RC(e,t){return OC(e).flags=t,e}function BC(e,t){const n=OC(e);return n.flags=n.flags|t,e}function jC(e,t){return OC(e).internalFlags=t,e}function JC(e,t){const n=OC(e);return n.internalFlags=n.internalFlags|t,e}function zC(e){var t,n;return null!=(n=null==(t=e.emitNode)?void 0:t.sourceMapRange)?n:e}function UC(e,t){return OC(e).sourceMapRange=t,e}function qC(e,t){var n,r;return null==(r=null==(n=e.emitNode)?void 0:n.tokenSourceMapRanges)?void 0:r[t]}function VC(e,t,n){var r;const i=OC(e);return(null!=(r=i.tokenSourceMapRanges)?r:i.tokenSourceMapRanges=[])[t]=n,e}function QC(e){var t;return null==(t=e.emitNode)?void 0:t.startsOnNewLine}function KC(e,t){return OC(e).startsOnNewLine=t,e}function WC(e){var t,n;return null!=(n=null==(t=e.emitNode)?void 0:t.commentRange)?n:e}function HC(e,t){return OC(e).commentRange=t,e}function $C(e){var t;return null==(t=e.emitNode)?void 0:t.leadingComments}function GC(e,t){return OC(e).leadingComments=t,e}function XC(e,t,n,r){return GC(e,Se($C(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function YC(e){var t;return null==(t=e.emitNode)?void 0:t.trailingComments}function ZC(e,t){return OC(e).trailingComments=t,e}function eA(e,t,n,r){return ZC(e,Se(YC(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function tA(e,t){GC(e,$C(t)),ZC(e,YC(t));const n=OC(t);return n.leadingComments=void 0,n.trailingComments=void 0,e}function nA(e){var t;return null==(t=e.emitNode)?void 0:t.constantValue}function rA(e,t){return OC(e).constantValue=t,e}function iA(e,t){const n=OC(e);return n.helpers=Se(n.helpers,t),e}function oA(e,t){if(_e(t)){const n=OC(e);for(const e of t)n.helpers=De(n.helpers,e)}return e}function aA(e,t){var n;const r=null==(n=e.emitNode)?void 0:n.helpers;return!!r&&an(r,t)}function sA(e){var t;return null==(t=e.emitNode)?void 0:t.helpers}function cA(e,t,n){const r=e.emitNode,i=r&&r.helpers;if(!_e(i))return;const o=OC(t);let a=0;for(let e=0;e0&&(i[e-a]=t)}a>0&&(i.length-=a)}function _A(e){var t;return null==(t=e.emitNode)?void 0:t.snippetElement}function lA(e,t){return OC(e).snippetElement=t,e}function uA(e){return OC(e).internalFlags|=4,e}function dA(e,t){return OC(e).typeNode=t,e}function pA(e){var t;return null==(t=e.emitNode)?void 0:t.typeNode}function fA(e,t){return OC(e).identifierTypeArguments=t,e}function mA(e){var t;return null==(t=e.emitNode)?void 0:t.identifierTypeArguments}function gA(e,t){return OC(e).autoGenerate=t,e}function hA(e){var t;return null==(t=e.emitNode)?void 0:t.autoGenerate}function yA(e,t){return OC(e).generatedImportReference=t,e}function vA(e){var t;return null==(t=e.emitNode)?void 0:t.generatedImportReference}var bA,xA,kA,SA,TA,CA,AA,wA,DA,EA,NA,FA,PA,IA,OA,LA,MA,RA,BA,jA,JA,zA,UA,qA,VA,QA,KA,WA,HA,$A,GA,XA,YA=b({"src/compiler/factory/emitNode.ts"(){XK()}});function ZA(e){const t=e.factory,n=Ft((()=>jC(t.createTrue(),8))),r=Ft((()=>jC(t.createFalse(),8)));return{getUnscopedHelperName:i,createDecorateHelper:function(n,r,o,a){e.requestEmitHelper(xA);const s=[];return s.push(t.createArrayLiteralExpression(n,!0)),s.push(r),o&&(s.push(o),a&&s.push(a)),t.createCallExpression(i("__decorate"),void 0,s)},createMetadataHelper:function(n,r){return e.requestEmitHelper(kA),t.createCallExpression(i("__metadata"),void 0,[t.createStringLiteral(n),r])},createParamHelper:function(n,r,o){return e.requestEmitHelper(SA),OP(t.createCallExpression(i("__param"),void 0,[t.createNumericLiteral(r+""),n]),o)},createESDecorateHelper:function(n,r,o,s,c,_){return e.requestEmitHelper(TA),t.createCallExpression(i("__esDecorate"),void 0,[null!=n?n:t.createNull(),null!=r?r:t.createNull(),o,a(s),c,_])},createRunInitializersHelper:function(n,r,o){return e.requestEmitHelper(CA),t.createCallExpression(i("__runInitializers"),void 0,o?[n,r,o]:[n,r])},createAssignHelper:function(n){return Rk(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,n):(e.requestEmitHelper(AA),t.createCallExpression(i("__assign"),void 0,n))},createAwaitHelper:function(n){return e.requestEmitHelper(wA),t.createCallExpression(i("__await"),void 0,[n])},createAsyncGeneratorHelper:function(n,r){return e.requestEmitHelper(wA),e.requestEmitHelper(DA),(n.emitNode||(n.emitNode={})).flags|=1572864,t.createCallExpression(i("__asyncGenerator"),void 0,[r?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),n])},createAsyncDelegatorHelper:function(n){return e.requestEmitHelper(wA),e.requestEmitHelper(EA),t.createCallExpression(i("__asyncDelegator"),void 0,[n])},createAsyncValuesHelper:function(n){return e.requestEmitHelper(NA),t.createCallExpression(i("__asyncValues"),void 0,[n])},createRestHelper:function(n,r,o,a){e.requestEmitHelper(FA);const s=[];let c=0;for(let e=0;e{let r="";for(let i=0;ie.name)))}function rw(e,t){return PD(e)&&Tw(e.expression)&&0!=(8192&rf(e.expression))&&e.expression.escapedText===t}var iw=b({"src/compiler/factory/emitHelpers.ts"(){XK(),bA=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(bA||{}),xA={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:'\n var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},kA={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},SA={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},TA={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:'\n var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }\n var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";\n var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === "accessor") {\n if (result === void 0) continue;\n if (result === null || typeof result !== "object") throw new TypeError("Object expected");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.push(_);\n }\n else if (_ = accept(result)) {\n if (kind === "field") initializers.push(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n };'},CA={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:"\n var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n };"},AA={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},DA={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[wA={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"}],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},EA={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[wA],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n };'},NA={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},FA={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},PA={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},IA={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},OA={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},LA={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},MA={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},RA={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:'\n var __propKey = (this && this.__propKey) || function (x) {\n return typeof x === "symbol" ? x : "".concat(x);\n };'},BA={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:'\n var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {\n if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";\n return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });\n };'},jA={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},JA={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},qA={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[zA={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:'\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));'},UA={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'}],priority:2,text:'\n var __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n };'},VA={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},QA={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[zA],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},KA={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},WA={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},HA={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},GA={name:"typescript:async-super",scoped:!0,text:tw` + const ${"_superIndex"} = name => super[name];`},XA={name:"typescript:advanced-async-super",scoped:!0,text:tw` + const ${"_superIndex"} = (function (geti, seti) { + const cache = Object.create(null); + return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); + })(name => super[name], (name, value) => super[name] = value);`}}});function ow(e){return 8===e.kind}function aw(e){return 9===e.kind}function sw(e){return 10===e.kind}function cw(e){return 11===e.kind}function _w(e){return 13===e.kind}function lw(e){return 14===e.kind}function uw(e){return 15===e.kind}function dw(e){return 16===e.kind}function pw(e){return 17===e.kind}function fw(e){return 25===e.kind}function mw(e){return 27===e.kind}function gw(e){return 39===e.kind}function hw(e){return 40===e.kind}function yw(e){return 41===e.kind}function vw(e){return 53===e.kind}function bw(e){return 57===e.kind}function xw(e){return 58===e.kind}function kw(e){return 28===e.kind}function Sw(e){return 38===e.kind}function Tw(e){return 79===e.kind}function Cw(e){return 80===e.kind}function Aw(e){return 93===e.kind}function ww(e){return 88===e.kind}function Dw(e){return 132===e.kind}function Ew(e){return 129===e.kind}function Nw(e){return 133===e.kind}function Fw(e){return 146===e.kind}function Pw(e){return 124===e.kind}function Iw(e){return 126===e.kind}function Ow(e){return 161===e.kind}function Lw(e){return 127===e.kind}function Mw(e){return 106===e.kind}function Rw(e){return 100===e.kind}function Bw(e){return 82===e.kind}function jw(e){return 163===e.kind}function Jw(e){return 164===e.kind}function zw(e){return 165===e.kind}function Uw(e){return 166===e.kind}function qw(e){return 167===e.kind}function Vw(e){return 168===e.kind}function Qw(e){return 169===e.kind}function Kw(e){return 170===e.kind}function Ww(e){return 171===e.kind}function Hw(e){return 172===e.kind}function $w(e){return 173===e.kind}function Gw(e){return 174===e.kind}function Xw(e){return 175===e.kind}function Yw(e){return 176===e.kind}function Zw(e){return 177===e.kind}function eD(e){return 178===e.kind}function tD(e){return 179===e.kind}function nD(e){return 180===e.kind}function rD(e){return 181===e.kind}function iD(e){return 182===e.kind}function oD(e){return 183===e.kind}function aD(e){return 184===e.kind}function sD(e){return 185===e.kind}function cD(e){return 186===e.kind}function _D(e){return 199===e.kind}function lD(e){return 187===e.kind}function uD(e){return 188===e.kind}function dD(e){return 189===e.kind}function pD(e){return 190===e.kind}function fD(e){return 191===e.kind}function mD(e){return 192===e.kind}function gD(e){return 193===e.kind}function hD(e){return 194===e.kind}function yD(e){return 195===e.kind}function vD(e){return 196===e.kind}function bD(e){return 197===e.kind}function xD(e){return 198===e.kind}function kD(e){return 202===e.kind}function SD(e){return 201===e.kind}function TD(e){return 200===e.kind}function CD(e){return 203===e.kind}function AD(e){return 204===e.kind}function wD(e){return 205===e.kind}function DD(e){return 206===e.kind}function ED(e){return 207===e.kind}function ND(e){return 208===e.kind}function FD(e){return 209===e.kind}function PD(e){return 210===e.kind}function ID(e){return 211===e.kind}function OD(e){return 212===e.kind}function LD(e){return 213===e.kind}function MD(e){return 214===e.kind}function RD(e){return 215===e.kind}function BD(e){return 216===e.kind}function jD(e){return 217===e.kind}function JD(e){return 218===e.kind}function zD(e){return 219===e.kind}function UD(e){return 220===e.kind}function qD(e){return 221===e.kind}function VD(e){return 222===e.kind}function QD(e){return 223===e.kind}function KD(e){return 224===e.kind}function WD(e){return 225===e.kind}function HD(e){return 226===e.kind}function $D(e){return 227===e.kind}function GD(e){return 228===e.kind}function XD(e){return 229===e.kind}function YD(e){return 230===e.kind}function ZD(e){return 231===e.kind}function eE(e){return 235===e.kind}function tE(e){return 232===e.kind}function nE(e){return 233===e.kind}function rE(e){return 234===e.kind}function iE(e){return 356===e.kind}function oE(e){return 357===e.kind}function aE(e){return 236===e.kind}function sE(e){return 237===e.kind}function cE(e){return 238===e.kind}function _E(e){return 240===e.kind}function lE(e){return 239===e.kind}function uE(e){return 241===e.kind}function dE(e){return 242===e.kind}function pE(e){return 243===e.kind}function fE(e){return 244===e.kind}function mE(e){return 245===e.kind}function gE(e){return 246===e.kind}function hE(e){return 247===e.kind}function yE(e){return 248===e.kind}function vE(e){return 249===e.kind}function bE(e){return 250===e.kind}function xE(e){return 251===e.kind}function kE(e){return 252===e.kind}function SE(e){return 253===e.kind}function TE(e){return 254===e.kind}function CE(e){return 255===e.kind}function AE(e){return 256===e.kind}function wE(e){return 257===e.kind}function DE(e){return 258===e.kind}function EE(e){return 259===e.kind}function NE(e){return 260===e.kind}function FE(e){return 261===e.kind}function PE(e){return 262===e.kind}function IE(e){return 263===e.kind}function OE(e){return 264===e.kind}function LE(e){return 265===e.kind}function ME(e){return 266===e.kind}function RE(e){return 267===e.kind}function BE(e){return 268===e.kind}function jE(e){return 269===e.kind}function JE(e){return 270===e.kind}function zE(e){return 298===e.kind}function UE(e){return 296===e.kind}function qE(e){return 297===e.kind}function VE(e){return 271===e.kind}function QE(e){return 277===e.kind}function KE(e){return 272===e.kind}function WE(e){return 273===e.kind}function HE(e){return 274===e.kind}function $E(e){return 275===e.kind}function GE(e){return 276===e.kind}function XE(e){return 278===e.kind}function YE(e){return 279===e.kind}function ZE(e){return 355===e.kind}function eN(e){return 360===e.kind}function tN(e){return 358===e.kind}function nN(e){return 359===e.kind}function rN(e){return 280===e.kind}function iN(e){return 281===e.kind}function oN(e){return 282===e.kind}function aN(e){return 283===e.kind}function sN(e){return 284===e.kind}function cN(e){return 285===e.kind}function _N(e){return 286===e.kind}function lN(e){return 287===e.kind}function uN(e){return 288===e.kind}function dN(e){return 289===e.kind}function pN(e){return 290===e.kind}function fN(e){return 291===e.kind}function mN(e){return 292===e.kind}function gN(e){return 293===e.kind}function hN(e){return 294===e.kind}function yN(e){return 295===e.kind}function vN(e){return 299===e.kind}function bN(e){return 300===e.kind}function xN(e){return 301===e.kind}function kN(e){return 302===e.kind}function SN(e){return 304===e.kind}function TN(e){return 308===e.kind}function CN(e){return 309===e.kind}function AN(e){return 310===e.kind}function wN(e){return 312===e.kind}function DN(e){return 313===e.kind}function EN(e){return 314===e.kind}function NN(e){return 327===e.kind}function FN(e){return 328===e.kind}function PN(e){return 329===e.kind}function IN(e){return 315===e.kind}function ON(e){return 316===e.kind}function LN(e){return 317===e.kind}function MN(e){return 318===e.kind}function RN(e){return 319===e.kind}function BN(e){return 320===e.kind}function jN(e){return 321===e.kind}function JN(e){return 322===e.kind}function zN(e){return 323===e.kind}function UN(e){return 325===e.kind}function qN(e){return 326===e.kind}function VN(e){return 331===e.kind}function QN(e){return 333===e.kind}function KN(e){return 335===e.kind}function WN(e){return 341===e.kind}function HN(e){return 336===e.kind}function $N(e){return 337===e.kind}function GN(e){return 338===e.kind}function XN(e){return 339===e.kind}function YN(e){return 340===e.kind}function ZN(e){return 342===e.kind}function eF(e){return 334===e.kind}function tF(e){return 350===e.kind}function nF(e){return 343===e.kind}function rF(e){return 344===e.kind}function iF(e){return 345===e.kind}function oF(e){return 346===e.kind}function aF(e){return 347===e.kind}function sF(e){return 348===e.kind}function cF(e){return 349===e.kind}function _F(e){return 330===e.kind}function lF(e){return 351===e.kind}function uF(e){return 332===e.kind}function dF(e){return 353===e.kind}function pF(e){return 352===e.kind}function fF(e){return 354===e.kind}var mF,gF,hF=b({"src/compiler/factory/nodeTests.ts"(){XK()}});function yF(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function vF(e,t,n,r){if(Jw(n))return OP(e.createElementAccessExpression(t,n.expression),r);{const r=OP(F_(n)?e.createPropertyAccessExpression(t,n):e.createElementAccessExpression(t,n),n);return BC(r,128),r}}function bF(e,t){const n=qP.createIdentifier(e||"React");return kT(n,Fc(t)),n}function xF(e,t,n){if(jw(t)){const r=xF(e,t.left,n),i=e.createIdentifier(Oc(t.right));return i.escapedText=t.right.escapedText,e.createPropertyAccessExpression(r,i)}return bF(Oc(t),n)}function kF(e,t,n,r){return t?xF(e,t,r):e.createPropertyAccessExpression(bF(n,r),"createElement")}function SF(e,t,n,r,i,o){const a=[n];if(r&&a.push(r),i&&i.length>0)if(r||a.push(e.createNull()),i.length>1)for(const e of i)QF(e),a.push(e);else a.push(i[0]);return OP(e.createCallExpression(t,void 0,a),o)}function TF(e,t,n,r,i,o,a){const s=function(e,t,n,r){return t?xF(e,t,r):e.createPropertyAccessExpression(bF(n,r),"Fragment")}(e,n,r,o),c=[s,e.createNull()];if(i&&i.length>0)if(i.length>1)for(const e of i)QF(e),c.push(e);else c.push(i[0]);return OP(e.createCallExpression(kF(e,t,r,o),void 0,c),a)}function CF(e,t,n){if(DE(t)){const r=Me(t.declarations),i=e.updateVariableDeclaration(r,r.name,void 0,void 0,n);return OP(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}{const r=OP(e.createAssignment(t,n),t);return OP(e.createExpressionStatement(r),t)}}function AF(e,t,n){return cE(t)?e.updateBlock(t,OP(e.createNodeArray([n,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,n]),!0)}function wF(e,t){if(jw(t)){const n=wF(e,t.left),r=kT(OP(e.cloneNode(t.right),t.right),t.right.parent);return OP(e.createPropertyAccessExpression(n,r),t)}return kT(OP(e.cloneNode(t),t),t.parent)}function DF(e,t){return Tw(t)?e.createStringLiteralFromNode(t):Jw(t)?kT(OP(e.cloneNode(t.expression),t.expression),t.expression.parent):kT(OP(e.cloneNode(t),t),t.parent)}function EF(e,t,n,r){switch(n.name&&Cw(n.name)&&In.failBadSyntaxKind(n.name,"Private identifiers are not allowed in object literals."),n.kind){case 174:case 175:return function(e,t,n,r,i){const{firstAccessor:o,getAccessor:a,setAccessor:s}=Qv(t,n);if(n===o)return OP(e.createObjectDefinePropertyCall(r,DF(e,n.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:a&&OP(PC(e.createFunctionExpression(Kc(a),void 0,void 0,void 0,a.parameters,void 0,a.body),a),a),set:s&&OP(PC(e.createFunctionExpression(Kc(s),void 0,void 0,void 0,s.parameters,void 0,s.body),s),s)},!i)),o)}(e,t.properties,n,r,!!t.multiLine);case 299:return function(e,t,n){return PC(OP(e.createAssignment(vF(e,n,t.name,t.name),t.initializer),t),t)}(e,n,r);case 300:return function(e,t,n){return PC(OP(e.createAssignment(vF(e,n,t.name,t.name),e.cloneNode(t.name)),t),t)}(e,n,r);case 171:return function(e,t,n){return PC(OP(e.createAssignment(vF(e,n,t.name,t.name),PC(OP(e.createFunctionExpression(Kc(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}(e,n,r)}}function NF(e,t,n,r,i){const o=t.operator;In.assert(45===o||46===o,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const a=e.createTempVariable(r);OP(n=e.createAssignment(a,n),t.operand);let s=qD(t)?e.createPrefixUnaryExpression(o,a):e.createPostfixUnaryExpression(a,o);return OP(s,t),i&&(s=e.createAssignment(i,s),OP(s,t)),OP(n=e.createComma(n,s),t),VD(t)&&OP(n=e.createComma(n,a),t),n}function FF(e){return 0!=(65536&rf(e))}function PF(e){return 0!=(32768&rf(e))}function IF(e){return 0!=(16384&rf(e))}function OF(e){return sw(e.expression)&&"use strict"===e.expression.text}function LF(e){for(const t of e){if(!lm(t))break;if(OF(t))return t}}function MF(e){const t=Oe(e);return void 0!==t&&lm(t)&&OF(t)}function RF(e){return 223===e.kind&&27===e.operatorToken.kind}function BF(e){return RF(e)||oE(e)}function jF(e){return MD(e)&&Sg(e)&&!!v_(e)}function JF(e){const t=b_(e);return In.assertIsDefined(t),t}function zF(e,t=15){switch(e.kind){case 214:return!(16&t&&jF(e))&&0!=(1&t);case 213:case 231:case 230:case 235:return 0!=(2&t);case 232:return 0!=(4&t);case 356:return 0!=(8&t)}return!1}function UF(e,t=15){for(;zF(e,t);)e=e.expression;return e}function qF(e,t=15){let n=e.parent;for(;zF(n,t);)n=n.parent,In.assert(n);return n}function VF(e){return UF(e,6)}function QF(e){return KC(e,!0)}function KF(e){const t=Dc(e,TN),n=t&&t.emitNode;return n&&n.externalHelpersModuleName}function WF(e){const t=Dc(e,TN),n=t&&t.emitNode;return!(!n||!n.externalHelpersModuleName&&!n.externalHelpers)}function HF(e,t,n,r,i,o,a){if(r.importHelpers&&kf(n,r)){let s;const c=Bk(r);if(c>=5&&c<=99||99===n.impliedNodeFormat){const r=sA(n);if(r){const i=[];for(const e of r)if(!e.scoped){const t=e.importName;t&&we(i,t)}_e(i)&&(i.sort(Qt),s=e.createNamedImports(V(i,(r=>Op(n,r)?e.createImportSpecifier(!1,void 0,e.createIdentifier(r)):e.createImportSpecifier(!1,e.createIdentifier(r),t.getUnscopedHelperName(r))))),OC(Dc(n,TN)).externalHelpers=!0)}}else{const t=$F(e,n,r,i,o||a);t&&(s=e.createNamespaceImport(t))}if(s){const t=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,s),e.createStringLiteral(od),void 0);return JC(t,2),t}}}function $F(e,t,n,r,i){if(n.importHelpers&&kf(t,n)){const o=KF(t);if(o)return o;const a=Bk(n);let s=(r||Hk(n)&&i)&&4!==a&&(a<5||1===t.impliedNodeFormat);if(!s){const e=sA(t);if(e)for(const t of e)if(!t.scoped){s=!0;break}}if(s){const n=OC(Dc(t,TN));return n.externalHelpersModuleName||(n.externalHelpersModuleName=e.createUniqueName(od))}}}function GF(e,t,n){const r=fh(t);if(r&&!mh(t)&&!Yp(t)){const t=r.name;return dl(t)?t:e.createIdentifier(Xp(n,t)||Oc(t))}return 269===t.kind&&t.importClause||275===t.kind&&t.moduleSpecifier?e.getGeneratedNameForNode(t):void 0}function XF(e,t,n,r,i,o){const a=ph(t);if(a&&sw(a))return function(e,t,n,r,i){return YF(n,r.getExternalModuleFileFromDeclaration(e),t,i)}(t,r,e,i,o)||function(e,t,n){const r=n.renamedDependencies&&n.renamedDependencies.get(t.text);return r?e.createStringLiteral(r):void 0}(e,a,n)||e.cloneNode(a)}function YF(e,t,n,r){if(t)return t.moduleName?e.createStringLiteral(t.moduleName):!t.isDeclarationFile&&Av(r)?e.createStringLiteral(bv(n,t.fileName)):void 0}function ZF(e){if(Ql(e))return e.initializer;if(vN(e)){const t=e.initializer;return Rb(t,!0)?t.right:void 0}return bN(e)?e.objectAssignmentInitializer:Rb(e,!0)?e.right:$D(e)?ZF(e.expression):void 0}function eP(e){if(Ql(e))return e.name;if(!jl(e))return Rb(e,!0)?eP(e.left):$D(e)?eP(e.expression):e;switch(e.kind){case 299:return eP(e.initializer);case 300:return e.name;case 301:return eP(e.expression)}}function tP(e){switch(e.kind){case 166:case 205:return e.dotDotDotToken;case 227:case 301:return e}}function nP(e){const t=rP(e);return In.assert(!!t||xN(e),"Invalid property name for binding element."),t}function rP(e){switch(e.kind){case 205:if(e.propertyName){const t=e.propertyName;return Cw(t)?In.failBadSyntaxKind(t):Jw(t)&&iP(t.expression)?t.expression:t}break;case 299:if(e.name){const t=e.name;return Cw(t)?In.failBadSyntaxKind(t):Jw(t)&&iP(t.expression)?t.expression:t}break;case 301:return e.name&&Cw(e.name)?In.failBadSyntaxKind(e.name):e.name}const t=eP(e);if(t&&xl(t))return t}function iP(e){const t=e.kind;return 10===t||8===t}function oP(e){switch(e.kind){case 203:case 204:case 206:return e.elements;case 207:return e.properties}}function aP(e){if(e){let t=e;for(;;){if(Tw(t)||!t.body)return Tw(t)?t:t.name;t=t.body}}}function sP(e){const t=e.kind;return 173===t||175===t}function cP(e){const t=e.kind;return 173===t||174===t||175===t}function _P(e){const t=e.kind;return 299===t||300===t||259===t||173===t||178===t||172===t||279===t||240===t||261===t||262===t||263===t||264===t||268===t||269===t||267===t||275===t||274===t}function lP(e){const t=e.kind;return 172===t||299===t||300===t||279===t||267===t}function uP(e){return bw(e)||vw(e)}function dP(e){return Tw(e)||hD(e)}function pP(e){return Fw(e)||gw(e)||hw(e)}function fP(e){return bw(e)||gw(e)||hw(e)}function mP(e){return Tw(e)||sw(e)}function gP(e){const t=e.kind;return 104===t||110===t||95===t||tl(e)||qD(e)}function hP(e){return function(e){return 60===e||function(e){return function(e){return 55===e||56===e}(e)||function(e){return function(e){return 50===e||51===e||52===e}(e)||function(e){return function(e){return 34===e||36===e||35===e||37===e}(e)||function(e){return function(e){return 29===e||32===e||31===e||33===e||102===e||101===e}(e)||function(e){return function(e){return 47===e||48===e||49===e}(e)||function(e){return function(e){return 39===e||40===e}(e)||function(e){return function(e){return 42===e}(e)||function(e){return 41===e||43===e||44===e}(e)}(e)}(e)}(e)}(e)}(e)}(e)}(e)||Ob(e)}(t=e.kind)||27===t;var t}function yP(e,t,n,r,i,o){const a=new gF(e,t,n,r,i,o);return function(e,t){const n={value:void 0},r=[mF.enter],i=[e],o=[void 0];let s=0;for(;r[s]!==mF.done;)s=r[s](a,s,r,i,o,n,t);return In.assertEqual(s,0),n.value}}function vP(e){return 93===e||88===e}function bP(e){return vP(e.kind)}function xP(e){const t=e.kind;return gl(t)&&!vP(t)}function kP(e,t){if(void 0!==t)return 0===t.length?t:OP(e.createNodeArray([],t.hasTrailingComma),t)}function SP(e){var t;const n=e.emitNode.autoGenerate;if(4&n.flags){const r=n.id;let i=e,o=i.original;for(;o;){i=o;const e=null==(t=i.emitNode)?void 0:t.autoGenerate;if(F_(i)&&(void 0===e||4&e.flags&&e.id!==r))break;o=i.original}return i}return e}function TP(e,t){return"object"==typeof e?CP(!1,e.prefix,e.node,e.suffix,t):"string"==typeof e?e.length>0&&35===e.charCodeAt(0)?e.slice(1):e:""}function CP(e,t,n,r,i){return t=TP(t,i),r=TP(r,i),`${e?"#":""}${t}${n=function(e,t){return"string"==typeof e?e:function(e,t){return pl(e)?t(e).slice(1):dl(e)?t(e):Cw(e)?e.escapedText.slice(1):Oc(e)}(e,In.checkDefined(t))}(n,i)}${r}`}function AP(e,t,n,r){return e.updatePropertyDeclaration(t,n,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,r)}function wP(e,t,n,r){return e.createGetAccessorDeclaration(n,r,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function DP(e,t,n,r){return e.createSetAccessorDeclaration(n,r,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function EP(e){let t=e.expression;for(;;)if(t=UF(t),oE(t))t=je(t.elements);else{if(!RF(t)){if(Rb(t,!0)&&dl(t.left))return t;break}t=t.right}}function NP(e,t){if(function(e){return MD(e)&&Qy(e)&&!e.emitNode}(e))NP(e.expression,t);else if(RF(e))NP(e.left,t),NP(e.right,t);else if(oE(e))for(const n of e.elements)NP(n,t);else t.push(e)}function FP(e){const t=[];return NP(e,t),t}function PP(e){if(65536&e.transformFlags)return!0;if(128&e.transformFlags)for(const t of oP(e)){const e=eP(t);if(e&&ql(e)){if(65536&e.transformFlags)return!0;if(128&e.transformFlags&&PP(e))return!0}}return!1}var IP=b({"src/compiler/factory/utilities.ts"(){XK(),(e=>{function t(e,n,r,i,o,a,c){const _=n>0?o[n-1]:void 0;return In.assertEqual(r[n],t),o[n]=e.onEnter(i[n],_,c),r[n]=s(e,t),n}function n(e,t,r,i,o,a,l){In.assertEqual(r[t],n),In.assertIsDefined(e.onLeft),r[t]=s(e,n);const u=e.onLeft(i[t].left,o[t],i[t]);return u?(_(t,i,u),c(t,r,i,o,u)):t}function r(e,t,n,i,o,a,c){return In.assertEqual(n[t],r),In.assertIsDefined(e.onOperator),n[t]=s(e,r),e.onOperator(i[t].operatorToken,o[t],i[t]),t}function i(e,t,n,r,o,a,l){In.assertEqual(n[t],i),In.assertIsDefined(e.onRight),n[t]=s(e,i);const u=e.onRight(r[t].right,o[t],r[t]);return u?(_(t,r,u),c(t,n,r,o,u)):t}function o(e,t,n,r,i,a,c){In.assertEqual(n[t],o),n[t]=s(e,o);const _=e.onExit(r[t],i[t]);if(t>0){if(t--,e.foldState){const r=n[t]===o?"right":"left";i[t]=e.foldState(i[t],_,r)}}else a.value=_;return t}function a(e,t,n,r,i,o,s){return In.assertEqual(n[t],a),t}function s(e,s){switch(s){case t:if(e.onLeft)return n;case n:if(e.onOperator)return r;case r:if(e.onRight)return i;case i:return o;case o:case a:return a;default:In.fail("Invalid state")}}function c(e,n,r,i,o){return n[++e]=t,r[e]=o,i[e]=void 0,e}function _(e,t,n){if(In.shouldAssert(2))for(;e>=0;)In.assert(t[e]!==n,"Circular traversal detected."),e--}e.enter=t,e.left=n,e.operator=r,e.right=i,e.exit=o,e.done=a,e.nextState=s})(mF||(mF={})),gF=class{constructor(e,t,n,r,i,o){this.onEnter=e,this.onLeft=t,this.onOperator=n,this.onRight=r,this.onExit=i,this.foldState=o}}}});function OP(e,t){return t?vT(e,t.pos,t.end):e}function LP(e){const t=e.kind;return 165===t||166===t||168===t||169===t||170===t||171===t||173===t||174===t||175===t||178===t||182===t||215===t||216===t||228===t||240===t||259===t||260===t||261===t||262===t||263===t||264===t||268===t||269===t||274===t||275===t}function MP(e){const t=e.kind;return 166===t||169===t||171===t||174===t||175===t||228===t||260===t}var RP,BP,jP,JP,zP,UP,qP,VP,QP,KP,WP,HP,$P,GP=b({"src/compiler/factory/utilitiesPublic.ts"(){XK()}});function XP(e,t){return t&&e(t)}function YP(e,t,n){if(n){if(t)return t(n);for(const t of n){const n=e(t);if(n)return n}}}function ZP(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function eI(e){return T(e.statements,tI)||function(e){return 4194304&e.flags?nI(e):void 0}(e)}function tI(e){return LP(e)&&function(e,t){return _e(e.modifiers,(e=>93===e.kind))}(e)||BE(e)&&rN(e.moduleReference)||jE(e)||HE(e)||$E(e)?e:void 0}function nI(e){return function(e){return nE(e)&&100===e.keywordToken&&"meta"===e.name.escapedText}(e)?e:bI(e,nI)}function rI(e,t,n){return YP(t,n,e.typeParameters)||YP(t,n,e.parameters)||XP(t,e.type)}function iI(e,t,n){return YP(t,n,e.types)}function oI(e,t,n){return XP(t,e.type)}function aI(e,t,n){return YP(t,n,e.elements)}function sI(e,t,n){return XP(t,e.expression)||XP(t,e.questionDotToken)||YP(t,n,e.typeArguments)||YP(t,n,e.arguments)}function cI(e,t,n){return YP(t,n,e.statements)}function _I(e,t,n){return XP(t,e.label)}function lI(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.name)||YP(t,n,e.typeParameters)||YP(t,n,e.heritageClauses)||YP(t,n,e.members)}function uI(e,t,n){return YP(t,n,e.elements)}function dI(e,t,n){return XP(t,e.propertyName)||XP(t,e.name)}function pI(e,t,n){return XP(t,e.tagName)||YP(t,n,e.typeArguments)||XP(t,e.attributes)}function fI(e,t,n){return XP(t,e.type)}function mI(e,t,n){return XP(t,e.tagName)||(e.isNameFirst?XP(t,e.name)||XP(t,e.typeExpression):XP(t,e.typeExpression)||XP(t,e.name))||("string"==typeof e.comment?void 0:YP(t,n,e.comment))}function gI(e,t,n){return XP(t,e.tagName)||XP(t,e.typeExpression)||("string"==typeof e.comment?void 0:YP(t,n,e.comment))}function hI(e,t,n){return XP(t,e.name)}function yI(e,t,n){return XP(t,e.tagName)||("string"==typeof e.comment?void 0:YP(t,n,e.comment))}function vI(e,t,n){return XP(t,e.expression)}function bI(e,t,n){if(void 0===e||e.kind<=162)return;const r=VP[e.kind];return void 0===r?void 0:r(e,t,n)}function xI(e,t,n){const r=kI(e),i=[];for(;i.length=0;--t)r.push(e[t]),i.push(o)}else{const n=t(e,o);if(n){if("skip"===n)continue;return n}if(e.kind>=163)for(const t of kI(e))r.push(t),i.push(e)}}}function kI(e){const t=[];return bI(e,n,n),t;function n(e){t.unshift(e)}}function SI(e){e.externalModuleIndicator=eI(e)}function TI(e,t,n,r=!1,i){var o,a;let s;null==(o=Ur)||o.push(Ur.Phase.Parse,"createSourceFile",{path:e},!0),Er("beforeParse"),gr.logStartParseSourceFile(e);const{languageVersion:c,setExternalModuleIndicator:_,impliedNodeFormat:l}="object"==typeof n?n:{languageVersion:n};if(100===c)s=QP.parseSourceFile(e,t,c,void 0,r,6,St);else{const n=void 0===l?_:e=>(e.impliedNodeFormat=l,(_||SI)(e));s=QP.parseSourceFile(e,t,c,void 0,r,i,n)}return gr.logStopParseSourceFile(),Er("afterParse"),Nr("Parse","beforeParse","afterParse"),null==(a=Ur)||a.pop(),s}function CI(e,t){return QP.parseIsolatedEntityName(e,t)}function AI(e,t){return QP.parseJsonText(e,t)}function wI(e){return void 0!==e.externalModuleIndicator}function DI(e,t,n,r=!1){const i=KP.updateSourceFile(e,t,n,r);return i.flags|=6291456&e.flags,i}function EI(e,t,n){const r=QP.JSDocParser.parseIsolatedJSDocComment(e,t,n);return r&&r.jsDoc&&QP.fixupParentReferences(r.jsDoc),r}function NI(e,t,n){return QP.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)}function FI(e){return na(e,Gd)||ta(e,".ts")&&rn(ca(e),".d.")}function PI(e,t){const n=[];for(const e of Rs(t,0)||r)LI(n,e,t.substring(e.pos,e.end));e.pragmas=new Map;for(const t of n)if(e.pragmas.has(t.name)){const n=e.pragmas.get(t.name);n instanceof Array?n.push(t.args):e.pragmas.set(t.name,[n,t.args])}else e.pragmas.set(t.name,t.args)}function II(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach(((n,r)=>{switch(r){case"reference":{const r=e.referencedFiles,i=e.typeReferenceDirectives,o=e.libReferenceDirectives;T(yt(n),(n=>{const{types:a,lib:s,path:c,"resolution-mode":_}=n.arguments;if(n.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(a){const e=function(e,t,n,r){if(e)return"import"===e?99:"require"===e?1:void r(t,n-t,ja.resolution_mode_should_be_either_require_or_import)}(_,a.pos,a.end,t);i.push({pos:a.pos,end:a.end,fileName:a.value,...e?{resolutionMode:e}:{}})}else s?o.push({pos:s.pos,end:s.end,fileName:s.value}):c?r.push({pos:c.pos,end:c.end,fileName:c.value}):t(n.range.pos,n.range.end-n.range.pos,ja.Invalid_reference_directive_syntax)}));break}case"amd-dependency":e.amdDependencies=V(yt(n),(e=>({name:e.arguments.name,path:e.arguments.path})));break;case"amd-module":if(n instanceof Array)for(const r of n)e.moduleName&&t(r.range.pos,r.range.end-r.range.pos,ja.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=r.arguments.name;else e.moduleName=n.arguments.name;break;case"ts-nocheck":case"ts-check":T(yt(n),(t=>{(!e.checkJsDirective||t.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:"ts-check"===r,end:t.range.end,pos:t.range.pos})}));break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:In.fail("Unhandled pragma kind")}}))}function OI(e){if(WP.has(e))return WP.get(e);const t=RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return WP.set(e,t),t}function LI(e,t,n){const r=2===t.kind&&HP.exec(n);if(r){const i=r[1].toLowerCase(),o=_o[i];if(!(o&&1&o.kind))return;if(o.args){const r={};for(const e of o.args){const i=OI(e.name).exec(n);if(!i&&!e.optional)return;if(i){const n=i[2]||i[3];if(e.captureSpan){const o=t.pos+i.index+i[1].length+1;r[e.name]={value:n,pos:o,end:o+n.length}}else r[e.name]=n}}e.push({name:i,args:{arguments:r,range:t}})}else e.push({name:i,args:{arguments:{},range:t}});return}const i=2===t.kind&&$P.exec(n);if(i)return MI(e,t,2,i);if(3===t.kind){const r=/@(\S+)(\s+.*)?$/gim;let i;for(;i=r.exec(n);)MI(e,t,4,i)}}function MI(e,t,n,r){if(!r)return;const i=r[1].toLowerCase(),o=_o[i];if(!(o&&o.kind&n))return;const a=function(e,t){if(!t)return{};if(!e.args)return{};const n=m(t).split(/\s+/),r={};for(let t=0;tnew(zP||(zP=Fd.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(jP||(jP=Fd.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(JP||(JP=Fd.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(BP||(BP=Fd.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(RP||(RP=Fd.getNodeConstructor()))(e,-1,-1)}),VP={163:function(e,t,n){return XP(t,e.left)||XP(t,e.right)},165:function(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.name)||XP(t,e.constraint)||XP(t,e.default)||XP(t,e.expression)},300:function(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.name)||XP(t,e.questionToken)||XP(t,e.exclamationToken)||XP(t,e.equalsToken)||XP(t,e.objectAssignmentInitializer)},301:function(e,t,n){return XP(t,e.expression)},166:function(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.dotDotDotToken)||XP(t,e.name)||XP(t,e.questionToken)||XP(t,e.type)||XP(t,e.initializer)},169:function(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.name)||XP(t,e.questionToken)||XP(t,e.exclamationToken)||XP(t,e.type)||XP(t,e.initializer)},168:function(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.name)||XP(t,e.questionToken)||XP(t,e.type)||XP(t,e.initializer)},299:function(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.name)||XP(t,e.questionToken)||XP(t,e.exclamationToken)||XP(t,e.initializer)},257:function(e,t,n){return XP(t,e.name)||XP(t,e.exclamationToken)||XP(t,e.type)||XP(t,e.initializer)},205:function(e,t,n){return XP(t,e.dotDotDotToken)||XP(t,e.propertyName)||XP(t,e.name)||XP(t,e.initializer)},178:function(e,t,n){return YP(t,n,e.modifiers)||YP(t,n,e.typeParameters)||YP(t,n,e.parameters)||XP(t,e.type)},182:function(e,t,n){return YP(t,n,e.modifiers)||YP(t,n,e.typeParameters)||YP(t,n,e.parameters)||XP(t,e.type)},181:function(e,t,n){return YP(t,n,e.modifiers)||YP(t,n,e.typeParameters)||YP(t,n,e.parameters)||XP(t,e.type)},176:rI,177:rI,171:function(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.asteriskToken)||XP(t,e.name)||XP(t,e.questionToken)||XP(t,e.exclamationToken)||YP(t,n,e.typeParameters)||YP(t,n,e.parameters)||XP(t,e.type)||XP(t,e.body)},170:function(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.name)||XP(t,e.questionToken)||YP(t,n,e.typeParameters)||YP(t,n,e.parameters)||XP(t,e.type)},173:function(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.name)||YP(t,n,e.typeParameters)||YP(t,n,e.parameters)||XP(t,e.type)||XP(t,e.body)},174:function(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.name)||YP(t,n,e.typeParameters)||YP(t,n,e.parameters)||XP(t,e.type)||XP(t,e.body)},175:function(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.name)||YP(t,n,e.typeParameters)||YP(t,n,e.parameters)||XP(t,e.type)||XP(t,e.body)},259:function(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.asteriskToken)||XP(t,e.name)||YP(t,n,e.typeParameters)||YP(t,n,e.parameters)||XP(t,e.type)||XP(t,e.body)},215:function(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.asteriskToken)||XP(t,e.name)||YP(t,n,e.typeParameters)||YP(t,n,e.parameters)||XP(t,e.type)||XP(t,e.body)},216:function(e,t,n){return YP(t,n,e.modifiers)||YP(t,n,e.typeParameters)||YP(t,n,e.parameters)||XP(t,e.type)||XP(t,e.equalsGreaterThanToken)||XP(t,e.body)},172:function(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.body)},180:function(e,t,n){return XP(t,e.typeName)||YP(t,n,e.typeArguments)},179:function(e,t,n){return XP(t,e.assertsModifier)||XP(t,e.parameterName)||XP(t,e.type)},183:function(e,t,n){return XP(t,e.exprName)||YP(t,n,e.typeArguments)},184:function(e,t,n){return YP(t,n,e.members)},185:function(e,t,n){return XP(t,e.elementType)},186:function(e,t,n){return YP(t,n,e.elements)},189:iI,190:iI,191:function(e,t,n){return XP(t,e.checkType)||XP(t,e.extendsType)||XP(t,e.trueType)||XP(t,e.falseType)},192:function(e,t,n){return XP(t,e.typeParameter)},202:function(e,t,n){return XP(t,e.argument)||XP(t,e.assertions)||XP(t,e.qualifier)||YP(t,n,e.typeArguments)},298:function(e,t,n){return XP(t,e.assertClause)},193:oI,195:oI,196:function(e,t,n){return XP(t,e.objectType)||XP(t,e.indexType)},197:function(e,t,n){return XP(t,e.readonlyToken)||XP(t,e.typeParameter)||XP(t,e.nameType)||XP(t,e.questionToken)||XP(t,e.type)||YP(t,n,e.members)},198:function(e,t,n){return XP(t,e.literal)},199:function(e,t,n){return XP(t,e.dotDotDotToken)||XP(t,e.name)||XP(t,e.questionToken)||XP(t,e.type)},203:aI,204:aI,206:function(e,t,n){return YP(t,n,e.elements)},207:function(e,t,n){return YP(t,n,e.properties)},208:function(e,t,n){return XP(t,e.expression)||XP(t,e.questionDotToken)||XP(t,e.name)},209:function(e,t,n){return XP(t,e.expression)||XP(t,e.questionDotToken)||XP(t,e.argumentExpression)},210:sI,211:sI,212:function(e,t,n){return XP(t,e.tag)||XP(t,e.questionDotToken)||YP(t,n,e.typeArguments)||XP(t,e.template)},213:function(e,t,n){return XP(t,e.type)||XP(t,e.expression)},214:function(e,t,n){return XP(t,e.expression)},217:function(e,t,n){return XP(t,e.expression)},218:function(e,t,n){return XP(t,e.expression)},219:function(e,t,n){return XP(t,e.expression)},221:function(e,t,n){return XP(t,e.operand)},226:function(e,t,n){return XP(t,e.asteriskToken)||XP(t,e.expression)},220:function(e,t,n){return XP(t,e.expression)},222:function(e,t,n){return XP(t,e.operand)},223:function(e,t,n){return XP(t,e.left)||XP(t,e.operatorToken)||XP(t,e.right)},231:function(e,t,n){return XP(t,e.expression)||XP(t,e.type)},232:function(e,t,n){return XP(t,e.expression)},235:function(e,t,n){return XP(t,e.expression)||XP(t,e.type)},233:function(e,t,n){return XP(t,e.name)},224:function(e,t,n){return XP(t,e.condition)||XP(t,e.questionToken)||XP(t,e.whenTrue)||XP(t,e.colonToken)||XP(t,e.whenFalse)},227:function(e,t,n){return XP(t,e.expression)},238:cI,265:cI,308:function(e,t,n){return YP(t,n,e.statements)||XP(t,e.endOfFileToken)},240:function(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.declarationList)},258:function(e,t,n){return YP(t,n,e.declarations)},241:function(e,t,n){return XP(t,e.expression)},242:function(e,t,n){return XP(t,e.expression)||XP(t,e.thenStatement)||XP(t,e.elseStatement)},243:function(e,t,n){return XP(t,e.statement)||XP(t,e.expression)},244:function(e,t,n){return XP(t,e.expression)||XP(t,e.statement)},245:function(e,t,n){return XP(t,e.initializer)||XP(t,e.condition)||XP(t,e.incrementor)||XP(t,e.statement)},246:function(e,t,n){return XP(t,e.initializer)||XP(t,e.expression)||XP(t,e.statement)},247:function(e,t,n){return XP(t,e.awaitModifier)||XP(t,e.initializer)||XP(t,e.expression)||XP(t,e.statement)},248:_I,249:_I,250:function(e,t,n){return XP(t,e.expression)},251:function(e,t,n){return XP(t,e.expression)||XP(t,e.statement)},252:function(e,t,n){return XP(t,e.expression)||XP(t,e.caseBlock)},266:function(e,t,n){return YP(t,n,e.clauses)},292:function(e,t,n){return XP(t,e.expression)||YP(t,n,e.statements)},293:function(e,t,n){return YP(t,n,e.statements)},253:function(e,t,n){return XP(t,e.label)||XP(t,e.statement)},254:function(e,t,n){return XP(t,e.expression)},255:function(e,t,n){return XP(t,e.tryBlock)||XP(t,e.catchClause)||XP(t,e.finallyBlock)},295:function(e,t,n){return XP(t,e.variableDeclaration)||XP(t,e.block)},167:function(e,t,n){return XP(t,e.expression)},260:lI,228:lI,261:function(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.name)||YP(t,n,e.typeParameters)||YP(t,n,e.heritageClauses)||YP(t,n,e.members)},262:function(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.name)||YP(t,n,e.typeParameters)||XP(t,e.type)},263:function(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.name)||YP(t,n,e.members)},302:function(e,t,n){return XP(t,e.name)||XP(t,e.initializer)},264:function(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.name)||XP(t,e.body)},268:function(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.name)||XP(t,e.moduleReference)},269:function(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.importClause)||XP(t,e.moduleSpecifier)||XP(t,e.assertClause)},270:function(e,t,n){return XP(t,e.name)||XP(t,e.namedBindings)},296:function(e,t,n){return YP(t,n,e.elements)},297:function(e,t,n){return XP(t,e.name)||XP(t,e.value)},267:function(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.name)},271:function(e,t,n){return XP(t,e.name)},277:function(e,t,n){return XP(t,e.name)},272:uI,276:uI,275:function(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.exportClause)||XP(t,e.moduleSpecifier)||XP(t,e.assertClause)},273:dI,278:dI,274:function(e,t,n){return YP(t,n,e.modifiers)||XP(t,e.expression)},225:function(e,t,n){return XP(t,e.head)||YP(t,n,e.templateSpans)},236:function(e,t,n){return XP(t,e.expression)||XP(t,e.literal)},200:function(e,t,n){return XP(t,e.head)||YP(t,n,e.templateSpans)},201:function(e,t,n){return XP(t,e.type)||XP(t,e.literal)},164:function(e,t,n){return XP(t,e.expression)},294:function(e,t,n){return YP(t,n,e.types)},230:function(e,t,n){return XP(t,e.expression)||YP(t,n,e.typeArguments)},280:function(e,t,n){return XP(t,e.expression)},279:function(e,t,n){return YP(t,n,e.modifiers)},357:function(e,t,n){return YP(t,n,e.elements)},281:function(e,t,n){return XP(t,e.openingElement)||YP(t,n,e.children)||XP(t,e.closingElement)},285:function(e,t,n){return XP(t,e.openingFragment)||YP(t,n,e.children)||XP(t,e.closingFragment)},282:pI,283:pI,289:function(e,t,n){return YP(t,n,e.properties)},288:function(e,t,n){return XP(t,e.name)||XP(t,e.initializer)},290:function(e,t,n){return XP(t,e.expression)},291:function(e,t,n){return XP(t,e.dotDotDotToken)||XP(t,e.expression)},284:function(e,t,n){return XP(t,e.tagName)},187:fI,188:fI,312:fI,318:fI,317:fI,319:fI,321:fI,320:function(e,t,n){return YP(t,n,e.parameters)||XP(t,e.type)},323:function(e,t,n){return("string"==typeof e.comment?void 0:YP(t,n,e.comment))||YP(t,n,e.tags)},350:function(e,t,n){return XP(t,e.tagName)||XP(t,e.name)||("string"==typeof e.comment?void 0:YP(t,n,e.comment))},313:function(e,t,n){return XP(t,e.name)},314:function(e,t,n){return XP(t,e.left)||XP(t,e.right)},344:mI,351:mI,333:function(e,t,n){return XP(t,e.tagName)||("string"==typeof e.comment?void 0:YP(t,n,e.comment))},332:function(e,t,n){return XP(t,e.tagName)||XP(t,e.class)||("string"==typeof e.comment?void 0:YP(t,n,e.comment))},331:function(e,t,n){return XP(t,e.tagName)||XP(t,e.class)||("string"==typeof e.comment?void 0:YP(t,n,e.comment))},348:function(e,t,n){return XP(t,e.tagName)||XP(t,e.constraint)||YP(t,n,e.typeParameters)||("string"==typeof e.comment?void 0:YP(t,n,e.comment))},349:function(e,t,n){return XP(t,e.tagName)||(e.typeExpression&&312===e.typeExpression.kind?XP(t,e.typeExpression)||XP(t,e.fullName)||("string"==typeof e.comment?void 0:YP(t,n,e.comment)):XP(t,e.fullName)||XP(t,e.typeExpression)||("string"==typeof e.comment?void 0:YP(t,n,e.comment)))},341:function(e,t,n){return XP(t,e.tagName)||XP(t,e.fullName)||XP(t,e.typeExpression)||("string"==typeof e.comment?void 0:YP(t,n,e.comment))},345:gI,347:gI,346:gI,343:gI,353:gI,352:gI,342:gI,326:function(e,t,n){return T(e.typeParameters,t)||T(e.parameters,t)||XP(t,e.type)},327:hI,328:hI,329:hI,325:function(e,t,n){return T(e.jsDocPropertyTags,t)},330:yI,335:yI,336:yI,337:yI,338:yI,339:yI,334:yI,340:yI,356:vI},(e=>{var t,n,o,a,s,c=qs(99,!0);function _(e){return b++,e}var l,u,d,p,f,m,g,h,y,v,b,x,k,S,T,C,A=gC(11,{createBaseSourceFileNode:e=>_(new s(e,0,0)),createBaseIdentifierNode:e=>_(new o(e,0,0)),createBasePrivateIdentifierNode:e=>_(new a(e,0,0)),createBaseTokenNode:e=>_(new n(e,0,0)),createBaseNode:e=>_(new t(e,0,0))}),{createNodeArray:w,createNumericLiteral:D,createStringLiteral:E,createLiteralLikeNode:N,createIdentifier:F,createPrivateIdentifier:P,createToken:I,createArrayLiteralExpression:L,createObjectLiteralExpression:M,createPropertyAccessExpression:R,createPropertyAccessChain:B,createElementAccessExpression:j,createElementAccessChain:J,createCallExpression:z,createCallChain:U,createNewExpression:q,createParenthesizedExpression:V,createBlock:Q,createVariableStatement:K,createExpressionStatement:W,createIfStatement:H,createWhileStatement:$,createForStatement:G,createForOfStatement:X,createVariableDeclaration:Y,createVariableDeclarationList:ee}=A,te=!0,ne=!1;function re(e,t,n=2,r,i=!1){ie(e,t,n,r,6),u=C,Qe();const o=Je();let a,s;if(1===Ue())a=yt([],o,o),s=pt();else{let e;for(;1!==Ue();){let t;switch(Ue()){case 22:t=ti();break;case 110:case 95:case 104:t=pt();break;case 40:t=et((()=>8===Qe()&&58!==Qe()))?Nr():ri();break;case 8:case 10:if(et((()=>58!==Qe()))){t=ln();break}default:t=ri()}e&&ht(e)?e.push(t):e?e=[e,t]:(e=t,1!==Ue()&&Ie(ja.Unexpected_token))}const t=ht(e)?vt(L(e),o):In.checkDefined(e),n=W(t);vt(n,o),a=yt([n],o),s=dt(1,ja.Unexpected_token)}const c=de(e,2,6,!1,a,s,u,St);i&&le(c),c.nodeCount=b,c.identifierCount=k,c.identifiers=x,c.parseDiagnostics=xk(g,c),h&&(c.jsDocDiagnostics=xk(h,c));const _=c;return oe(),_}function ie(e,r,i,_,h){switch(t=Fd.getNodeConstructor(),n=Fd.getTokenConstructor(),o=Fd.getIdentifierConstructor(),a=Fd.getPrivateIdentifierConstructor(),s=Fd.getSourceFileConstructor(),l=va(e),d=r,p=i,y=_,f=h,m=Pk(h),g=[],S=0,x=new Map,k=0,b=0,u=0,te=!0,f){case 1:case 2:C=262144;break;case 6:C=67371008;break;default:C=0}ne=!1,c.setText(d),c.setOnError(je),c.setScriptTarget(p),c.setLanguageVariant(m)}function oe(){c.clearCommentDirectives(),c.setText(""),c.setOnError(void 0),d=void 0,p=void 0,y=void 0,f=void 0,m=void 0,u=0,g=void 0,h=void 0,S=0,x=void 0,T=void 0,te=!0}function ae(e,t){return t?ce(e):e}e.parseSourceFile=function(e,t,n,o,a=!1,s,_){var p;if(6===(s=FS(e,s))){const s=re(e,t,n,o,a);return ZO(s,null==(p=s.statements[0])?void 0:p.expression,s.parseDiagnostics,!1,void 0,void 0),s.referencedFiles=r,s.typeReferenceDirectives=r,s.libReferenceDirectives=r,s.amdDependencies=r,s.hasNoDefaultLib=!1,s.pragmas=i,s}ie(e,t,n,o,s);const f=function(e,t,n,r){const i=FI(l);i&&(C|=16777216),u=C,Qe();const o=Kt(0,yi);In.assert(1===Ue());const a=ce(pt()),s=de(l,e,n,i,o,a,u,r);return PI(s,d),II(s,(function(e,t,n){g.push(yk(l,e,t,n))})),s.commentDirectives=c.getCommentDirectives(),s.nodeCount=b,s.identifierCount=k,s.identifiers=x,s.parseDiagnostics=xk(g,s),h&&(s.jsDocDiagnostics=xk(h,s)),t&&le(s),s}(n,a,s,_||SI);return oe(),f},e.parseIsolatedEntityName=function(e,t){ie("",e,t,void 0,1),Qe();const n=nn(!0),r=1===Ue()&&!g.length;return oe(),r?n:void 0},e.parseJsonText=re;let se=!1;function ce(e){In.assert(!e.jsDoc);const t=Z(gm(e,d),(t=>go.parseJSDocComment(e,t.pos,t.end-t.pos)));return t.length&&(e.jsDoc=t),se&&(se=!1,e.flags|=268435456),e}function le(e){TT(e,!0)}function de(e,t,n,r,i,o,a,s){let _=A.createSourceFile(i,o,a);return bT(_,0,d.length),l(_),!r&&wI(_)&&67108864&_.transformFlags&&(_=function(e){const t=y,n=KP.createSyntaxCursor(e);y={currentNode:function(e){const t=n.currentNode(e);return te&&t&&s(t)&&(t.intersectsChange=!0),t}};const r=[],i=g;g=[];let o=0,a=_(e.statements,0);for(;-1!==a;){const t=e.statements[o],n=e.statements[a];Ae(r,e.statements,o,a),o=l(e.statements,a);const s=O(i,(e=>e.start>=t.pos)),u=s>=0?O(i,(e=>e.start>=n.pos),s):-1;s>=0&&Ae(g,i,s,u>=0?u:void 0),Ze((()=>{const t=C;for(C|=32768,c.setTextPos(n.pos),Qe();1!==Ue();){const t=c.getStartPos(),n=Wt(0,yi);if(r.push(n),t===c.getStartPos()&&Qe(),o>=0){const t=e.statements[o];if(n.end===t.pos)break;n.end>t.pos&&(o=l(e.statements,o+1))}}C=t}),2),a=o>=0?_(e.statements,o):-1}if(o>=0){const t=e.statements[o];Ae(r,e.statements,o);const n=O(i,(e=>e.start>=t.pos));n>=0&&Ae(g,i,n)}return y=t,A.updateSourceFile(e,OP(w(r),e.statements));function s(e){return!(32768&e.flags||!(67108864&e.transformFlags))}function _(e,t){for(let n=t;n116}function rt(){return 79===Ue()||(125!==Ue()||!De())&&(133!==Ue()||!Pe())&&Ue()>116}function it(e,t,n=!0){return Ue()===e?(n&&Qe(),!0):(t?Ie(t):Ie(ja._0_expected,_s(e)),!1)}e.fixupParentReferences=le;const ot=Object.keys(Ua).filter((e=>e.length>2));function at(e){var t;if(OD(e))return void Me(As(d,e.template.pos),e.template.end,ja.Module_declaration_names_may_only_use_or_quoted_strings);const n=Tw(e)?Oc(e):void 0;if(!n||!Us(n,p))return void Ie(ja._0_expected,_s(26));const r=As(d,e.pos);switch(n){case"const":case"let":case"var":return void Me(r,e.end,ja.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void st(ja.Interface_name_cannot_be_0,ja.Interface_must_be_given_a_name,18);case"is":return void Me(r,c.getTextPos(),ja.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void st(ja.Namespace_name_cannot_be_0,ja.Namespace_must_be_given_a_name,18);case"type":return void st(ja.Type_alias_name_cannot_be_0,ja.Type_alias_must_be_given_a_name,63)}const i=null!=(t=Yt(n,ot,(e=>e)))?t:function(e){for(const t of ot)if(e.length>t.length+2&&fn(e,t))return`${t} ${e.slice(t.length)}`}(n);i?Me(r,e.end,ja.Unknown_keyword_or_identifier_Did_you_mean_0,i):0!==Ue()&&Me(r,e.end,ja.Unexpected_keyword_or_identifier)}function st(e,t,n){Ue()===n?Ie(t):Ie(e,c.getTokenValue())}function ct(e){return Ue()===e?(Ke(),!0):(Ie(ja._0_expected,_s(e)),!1)}function _t(e,t,n,r){if(Ue()===t)return void Qe();const i=Ie(ja._0_expected,_s(t));n&&i&&rT(i,yk(l,r,1,ja.The_parser_expected_to_find_a_1_to_match_the_0_token_here,_s(e),_s(t)))}function lt(e){return Ue()===e&&(Qe(),!0)}function ut(e){if(Ue()===e)return pt()}function dt(e,t,n){return ut(e)||bt(e,!1,t||ja._0_expected,n||_s(e))}function pt(){const e=Je(),t=Ue();return Qe(),vt(I(t),e)}function ft(){return 26===Ue()||19===Ue()||1===Ue()||c.hasPrecedingLineBreak()}function mt(){return!!ft()&&(26===Ue()&&Qe(),!0)}function gt(){return mt()||it(26)}function yt(e,t,n,r){const i=w(e,r);return vT(i,t,null!=n?n:c.getStartPos()),i}function vt(e,t,n){return vT(e,t,null!=n?n:c.getStartPos()),C&&(e.flags|=C),ne&&(ne=!1,e.flags|=131072),e}function bt(e,t,n,r){t?Le(c.getStartPos(),0,n,r):n&&Ie(n,r);const i=Je();return vt(79===e?F("",void 0):rl(e)?A.createTemplateLiteralLikeNode(e,"","",void 0):8===e?D("",void 0):10===e?E("",void 0):279===e?A.createMissingDeclaration():I(e),i)}function xt(e){let t=x.get(e);return void 0===t&&x.set(e,t=e),t}function kt(e,t,n){if(e){k++;const e=Je(),t=Ue(),n=xt(c.getTokenValue()),r=c.hasExtendedUnicodeEscape();return qe(),vt(F(n,t,r),e)}if(80===Ue())return Ie(n||ja.Private_identifiers_are_not_allowed_outside_class_bodies),kt(!0);if(0===Ue()&&c.tryScan((()=>79===c.reScanInvalidIdentifier())))return kt(!0);k++;const r=1===Ue(),i=c.isReservedWord(),o=c.getTokenText(),a=i?ja.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:ja.Identifier_expected;return bt(79,r,t||a,o)}function Tt(e){return kt(nt(),void 0,e)}function Ct(e,t){return kt(rt(),e,t)}function At(e){return kt(os(Ue()),e)}function wt(){return os(Ue())||10===Ue()||8===Ue()}function Dt(){return function(e){if(10===Ue()||8===Ue()){const e=ln();return e.text=xt(e.text),e}return e&&22===Ue()?function(){const e=Je();it(22);const t=be(gr);return it(23),vt(A.createComputedPropertyName(t),e)}():80===Ue()?Et():At()}(!0)}function Et(){const e=Je(),t=P(xt(c.getTokenValue()));return Qe(),vt(t,e)}function Nt(e){return Ue()===e&&tt(Pt)}function Ft(){return Qe(),!c.hasPrecedingLineBreak()&&Lt()}function Pt(){switch(Ue()){case 85:return 92===Qe();case 93:return Qe(),88===Ue()?et(Mt):154===Ue()?et(Ot):It();case 88:return Mt();case 124:case 137:case 151:return Qe(),Lt();default:return Ft()}}function It(){return 59===Ue()||41!==Ue()&&128!==Ue()&&18!==Ue()&&Lt()}function Ot(){return Qe(),It()}function Lt(){return 22===Ue()||18===Ue()||41===Ue()||25===Ue()||wt()}function Mt(){return Qe(),84===Ue()||98===Ue()||118===Ue()||59===Ue()||126===Ue()&&et(ui)||132===Ue()&&et(di)}function Rt(e,t){if(Ht(e))return!0;switch(e){case 0:case 1:case 3:return!(26===Ue()&&t)&&gi();case 2:return 82===Ue()||88===Ue();case 4:return et(Ln);case 5:return et(Ri)||26===Ue()&&!t;case 6:return 22===Ue()||wt();case 12:switch(Ue()){case 22:case 41:case 25:case 24:return!0;default:return wt()}case 18:return wt();case 9:return 22===Ue()||25===Ue()||wt();case 24:return os(Ue())||10===Ue();case 7:return 18===Ue()?et(Bt):t?rt()&&!Ut():fr()&&!Ut();case 8:return Ci();case 10:return 27===Ue()||25===Ue()||Ci();case 19:return 101===Ue()||85===Ue()||rt();case 15:switch(Ue()){case 27:case 24:return!0}case 11:return 25===Ue()||mr();case 16:return Sn(!1);case 17:return Sn(!0);case 20:case 21:return 27===Ue()||Zn();case 22:return Gi();case 23:return os(Ue());case 13:return os(Ue())||18===Ue();case 14:return!0}return In.fail("Non-exhaustive case in 'isListElement'.")}function Bt(){if(In.assert(18===Ue()),19===Qe()){const e=Qe();return 27===e||18===e||94===e||117===e}return!0}function jt(){return Qe(),rt()}function Jt(){return Qe(),os(Ue())}function zt(){return Qe(),as(Ue())}function Ut(){return(117===Ue()||94===Ue())&&et(qt)}function qt(){return Qe(),mr()}function Vt(){return Qe(),Zn()}function Qt(e){if(1===Ue())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 19===Ue();case 3:return 19===Ue()||82===Ue()||88===Ue();case 7:return 18===Ue()||94===Ue()||117===Ue();case 8:return!!ft()||!!Cr(Ue())||38===Ue();case 19:return 31===Ue()||20===Ue()||18===Ue()||94===Ue()||117===Ue();case 11:return 21===Ue()||26===Ue();case 15:case 21:case 10:return 23===Ue();case 17:case 16:case 18:return 21===Ue()||23===Ue();case 20:return 27!==Ue();case 22:return 18===Ue()||19===Ue();case 13:return 31===Ue()||43===Ue();case 14:return 29===Ue()&&et(ro);default:return!1}}function Kt(e,t){const n=S;S|=1<=0)}function Zt(e){return 6===e?ja.An_enum_member_name_must_be_followed_by_a_or:void 0}function en(){const e=yt([],Je());return e.isMissingList=!0,e}function tn(e,t,n,r){if(it(n)){const n=Xt(e,t);return it(r),n}return en()}function nn(e,t){const n=Je();let r=e?At(t):Ct(t);for(;lt(24)&&29!==Ue();)r=vt(A.createQualifiedName(r,on(e,!1)),n);return r}function rn(e,t){return vt(A.createQualifiedName(e,t),e.pos)}function on(e,t){if(c.hasPrecedingLineBreak()&&os(Ue())&&et(li))return bt(79,!0,ja.Identifier_expected);if(80===Ue()){const e=Et();return t?e:bt(79,!0,ja.Identifier_expected)}return e?At():Ct()}function an(e){const t=Je();return vt(A.createTemplateExpression(un(e),function(e){const t=Je(),n=[];let r;do{r=_n(e),n.push(r)}while(16===r.literal.kind);return yt(n,t)}(e)),t)}function sn(){const e=Je();return vt(A.createTemplateLiteralTypeSpan(dr(),cn(!1)),e)}function cn(e){return 19===Ue()?(function(e){v=c.reScanTemplateToken(e)}(e),function(){const e=dn(Ue());return In.assert(16===e.kind||17===e.kind,"Template fragment has wrong token kind"),e}()):dt(17,ja._0_expected,_s(19))}function _n(e){const t=Je();return vt(A.createTemplateSpan(be(gr),cn(e)),t)}function ln(){return dn(Ue())}function un(e){e&&He();const t=dn(Ue());return In.assert(15===t.kind,"Template head has wrong token kind"),t}function dn(e){const t=Je(),n=rl(e)?A.createTemplateLiteralLikeNode(e,c.getTokenValue(),function(e){const t=14===e||17===e,n=c.getTokenText();return n.substring(1,n.length-(c.isUnterminated()?0:t?1:2))}(e),2048&c.getTokenFlags()):8===e?D(c.getTokenValue(),c.getNumericLiteralFlags()):10===e?E(c.getTokenValue(),void 0,c.hasExtendedUnicodeEscape()):el(e)?N(e,c.getTokenValue()):In.fail();return c.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),c.isUnterminated()&&(n.isUnterminated=!0),Qe(),vt(n,t)}function pn(){return nn(!0,ja.Type_expected)}function mn(){if(!c.hasPrecedingLineBreak()&&29===$e())return tn(20,dr,29,31)}function gn(){const e=Je();return vt(A.createTypeReferenceNode(pn(),mn()),e)}function hn(e){switch(e.kind){case 180:return Lp(e.typeName);case 181:case 182:{const{parameters:t,type:n}=e;return!!t.isMissingList||hn(n)}case 193:return hn(e.type);default:return!1}}function yn(){const e=Je();return Qe(),vt(A.createThisTypeNode(),e)}function vn(){const e=Je();let t;return 108!==Ue()&&103!==Ue()||(t=At(),it(58)),vt(A.createParameterDeclaration(void 0,void 0,t,void 0,bn(),void 0),e)}function bn(){c.setInJSDocType(!0);const e=Je();if(lt(142)){const t=A.createJSDocNamepathType(void 0);e:for(;;)switch(Ue()){case 19:case 1:case 27:case 5:break e;default:Ke()}return c.setInJSDocType(!1),vt(t,e)}const t=lt(25);let n=lr();return c.setInJSDocType(!1),t&&(n=vt(A.createJSDocVariadicType(n),e)),63===Ue()?(Qe(),vt(A.createJSDocOptionalType(n),e)):n}function xn(){const e=Je(),t=zi(!1,!0),n=Ct();let r,i;lt(94)&&(Zn()||!mr()?r=dr():i=Fr());const o=lt(63)?dr():void 0,a=A.createTypeParameterDeclaration(t,n,r,o);return a.expression=i,vt(a,e)}function kn(){if(29===Ue())return tn(19,xn,29,31)}function Sn(e){return 25===Ue()||Ci()||gl(Ue())||59===Ue()||Zn(!e)}function Tn(e){return Cn(e)}function Cn(e,t=!0){const n=Je(),r=ze(),i=e?Te((()=>zi(!0))):Ce((()=>zi(!0)));if(108===Ue()){const e=A.createParameterDeclaration(i,void 0,kt(!0),void 0,pr(),void 0),t=Oe(i);return t&&Re(t,ja.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),ae(vt(e,n),r)}const o=te;te=!1;const a=ut(25);if(!t&&!nt()&&22!==Ue()&&18!==Ue())return;const s=ae(vt(A.createParameterDeclaration(i,a,function(e){const t=Ai(ja.Private_identifiers_cannot_be_used_as_parameters);return 0===mp(t)&&!_e(e)&&gl(Ue())&&Qe(),t}(i),ut(57),pr(),hr()),n),r);return te=o,s}function An(e,t){if(function(e,t){return 38===e?(it(e),!0):!!lt(58)||!(!t||38!==Ue())&&(Ie(ja._0_expected,_s(58)),Qe(),!0)}(e,t))return xe(lr)}function wn(e,t){const n=De(),r=Pe();me(!!(1&e)),he(!!(2&e));const i=32&e?Xt(17,vn):Xt(16,(()=>t?Tn(r):Cn(r,!1)));return me(n),he(r),i}function Dn(e){if(!it(20))return en();const t=wn(e,!0);return it(21),t}function En(){lt(27)||gt()}function Nn(e){const t=Je(),n=ze();177===e&&it(103);const r=kn(),i=Dn(4),o=An(58,!0);return En(),ae(vt(176===e?A.createCallSignature(r,i,o):A.createConstructSignature(r,i,o),t),n)}function Fn(){return 22===Ue()&&et(Pn)}function Pn(){if(Qe(),25===Ue()||23===Ue())return!0;if(gl(Ue())){if(Qe(),rt())return!0}else{if(!rt())return!1;Qe()}return 58===Ue()||27===Ue()||57===Ue()&&(Qe(),58===Ue()||27===Ue()||23===Ue())}function On(e,t,n){const r=tn(16,(()=>Tn(!1)),22,23),i=pr();return En(),ae(vt(A.createIndexSignature(n,r,i),e),t)}function Ln(){if(20===Ue()||29===Ue()||137===Ue()||151===Ue())return!0;let e=!1;for(;gl(Ue());)e=!0,Qe();return 22===Ue()||(wt()&&(e=!0,Qe()),!!e&&(20===Ue()||29===Ue()||57===Ue()||58===Ue()||27===Ue()||ft()))}function Mn(){if(20===Ue()||29===Ue())return Nn(176);if(103===Ue()&&et(Rn))return Nn(177);const e=Je(),t=ze(),n=zi(!1);return Nt(137)?Mi(e,t,n,174,4):Nt(151)?Mi(e,t,n,175,4):Fn()?On(e,t,n):function(e,t,n){const r=Dt(),i=ut(57);let o;if(20===Ue()||29===Ue()){const e=kn(),t=Dn(4),a=An(58,!0);o=A.createMethodSignature(n,r,i,e,t,a)}else{const e=pr();o=A.createPropertySignature(n,r,i,e),63===Ue()&&(o.initializer=hr())}return En(),ae(vt(o,e),t)}(e,t,n)}function Rn(){return Qe(),20===Ue()||29===Ue()}function Bn(){return 24===Qe()}function jn(){switch(Qe()){case 20:case 29:case 24:return!0}return!1}function Jn(){let e;return it(18)?(e=Kt(4,Mn),it(19)):e=en(),e}function zn(){return Qe(),39===Ue()||40===Ue()?146===Qe():(146===Ue()&&Qe(),22===Ue()&&jt()&&101===Qe())}function Un(){const e=Je();if(lt(25))return vt(A.createRestTypeNode(dr()),e);const t=dr();if(LN(t)&&t.pos===t.type.pos){const e=A.createOptionalTypeNode(t.type);return OP(e,t),e.flags=t.flags,e}return t}function qn(){return 58===Qe()||57===Ue()&&58===Qe()}function Vn(){return 25===Ue()?os(Qe())&&qn():os(Ue())&&qn()}function Qn(){if(et(Vn)){const e=Je(),t=ze(),n=ut(25),r=At(),i=ut(57);it(58);const o=Un();return ae(vt(A.createNamedTupleMember(n,r,i,o),e),t)}return Un()}function Kn(){const e=Je(),t=ze(),n=function(){let e;if(126===Ue()){const t=Je();Qe(),e=yt([vt(I(126),t)],t)}return e}(),r=lt(103);In.assert(!n||r,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const i=kn(),o=Dn(4),a=An(38,!1);return ae(vt(r?A.createConstructorTypeNode(n,i,o,a):A.createFunctionTypeNode(i,o,a),e),t)}function Wn(){const e=pt();return 24===Ue()?void 0:e}function Hn(e){const t=Je();e&&Qe();let n=110===Ue()||95===Ue()||104===Ue()?pt():dn(Ue());return e&&(n=vt(A.createPrefixUnaryExpression(40,n),t)),vt(A.createLiteralTypeNode(n),t)}function $n(){return Qe(),100===Ue()}function Gn(){u|=2097152;const e=Je(),t=lt(112);it(100),it(20);const n=dr();let r;lt(27)&&(r=function(){const e=Je(),t=c.getTokenPos();it(18);const n=c.hasPrecedingLineBreak();it(130),it(58);const r=oo(!0);if(!it(19)){const e=Be(g);e&&e.code===ja._0_expected.code&&rT(e,yk(l,t,1,ja.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return vt(A.createImportTypeAssertionContainer(r,n),e)}()),it(21);const i=lt(24)?pn():void 0,o=mn();return vt(A.createImportTypeNode(n,r,i,o,t),e)}function Xn(){return Qe(),8===Ue()||9===Ue()}function Yn(){switch(Ue()){case 131:case 157:case 152:case 148:case 160:case 153:case 134:case 155:case 144:case 149:return tt(Wn)||gn();case 66:c.reScanAsteriskEqualsToken();case 41:return function(){const e=Je();return Qe(),vt(A.createJSDocAllType(),e)}();case 60:c.reScanQuestionToken();case 57:return function(){const e=Je();return Qe(),27===Ue()||19===Ue()||21===Ue()||31===Ue()||63===Ue()||51===Ue()?vt(A.createJSDocUnknownType(),e):vt(A.createJSDocNullableType(dr(),!1),e)}();case 98:return function(){const e=Je(),t=ze();if(et(to)){Qe();const n=Dn(36),r=An(58,!1);return ae(vt(A.createJSDocFunctionType(n,r),e),t)}return vt(A.createTypeReferenceNode(At(),void 0),e)}();case 53:return function(){const e=Je();return Qe(),vt(A.createJSDocNonNullableType(Yn(),!1),e)}();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return Hn();case 40:return et(Xn)?Hn(!0):gn();case 114:return pt();case 108:{const t=yn();return 140!==Ue()||c.hasPrecedingLineBreak()?t:(e=t,Qe(),vt(A.createTypePredicateNode(void 0,e,dr()),e.pos))}case 112:return et($n)?Gn():function(){const e=Je();it(112);const t=nn(!0),n=c.hasPrecedingLineBreak()?void 0:$i();return vt(A.createTypeQueryNode(t,n),e)}();case 18:return et(zn)?function(){const e=Je();let t;it(18),146!==Ue()&&39!==Ue()&&40!==Ue()||(t=pt(),146!==t.kind&&it(146)),it(22);const n=function(){const e=Je(),t=At();it(101);const n=dr();return vt(A.createTypeParameterDeclaration(void 0,t,n,void 0),e)}(),r=lt(128)?dr():void 0;let i;it(23),57!==Ue()&&39!==Ue()&&40!==Ue()||(i=pt(),57!==i.kind&&it(57));const o=pr();gt();const a=Kt(4,Mn);return it(19),vt(A.createMappedTypeNode(t,n,r,i,o,a),e)}():function(){const e=Je();return vt(A.createTypeLiteralNode(Jn()),e)}();case 22:return function(){const e=Je();return vt(A.createTupleTypeNode(tn(21,Qn,22,23)),e)}();case 20:return function(){const e=Je();it(20);const t=dr();return it(21),vt(A.createParenthesizedType(t),e)}();case 100:return Gn();case 129:return et(li)?function(){const e=Je(),t=dt(129),n=108===Ue()?yn():Ct(),r=lt(140)?dr():void 0;return vt(A.createTypePredicateNode(t,n,r),e)}():gn();case 15:return function(){const e=Je();return vt(A.createTemplateLiteralType(un(!1),function(){const e=Je(),t=[];let n;do{n=sn(),t.push(n)}while(16===n.literal.kind);return yt(t,e)}()),e)}();default:return gn()}var e}function Zn(e){switch(Ue()){case 131:case 157:case 152:case 148:case 160:case 134:case 146:case 153:case 156:case 114:case 155:case 104:case 108:case 112:case 144:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 149:case 41:case 57:case 53:case 25:case 138:case 100:case 129:case 14:case 15:return!0;case 98:return!e;case 40:return!e&&et(Xn);case 20:return!e&&et(er);default:return rt()}}function er(){return Qe(),21===Ue()||Sn(!1)||Zn()}function tr(){const e=Je();let t=Yn();for(;!c.hasPrecedingLineBreak();)switch(Ue()){case 53:Qe(),t=vt(A.createJSDocNonNullableType(t,!0),e);break;case 57:if(et(Vt))return t;Qe(),t=vt(A.createJSDocNullableType(t,!0),e);break;case 22:if(it(22),Zn()){const n=dr();it(23),t=vt(A.createIndexedAccessTypeNode(t,n),e)}else it(23),t=vt(A.createArrayTypeNode(t),e);break;default:return t}return t}function nr(){if(lt(94)){const e=ke(dr);if(Ne()||57!==Ue())return e}}function rr(){const e=Ue();switch(e){case 141:case 156:case 146:return function(e){const t=Je();return it(e),vt(A.createTypeOperatorNode(e,rr()),t)}(e);case 138:return function(){const e=Je();return it(138),vt(A.createInferTypeNode(function(){const e=Je(),t=Ct(),n=tt(nr);return vt(A.createTypeParameterDeclaration(void 0,t,n),e)}()),e)}()}return xe(tr)}function ir(e){if(cr()){const t=Kn();let n;return n=rD(t)?e?ja.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:ja.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:e?ja.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:ja.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Re(t,n),t}}function or(e,t,n){const r=Je(),i=51===e,o=lt(e);let a=o&&ir(i)||t();if(Ue()===e||o){const o=[a];for(;lt(e);)o.push(ir(i)||t());a=vt(n(yt(o,r)),r)}return a}function ar(){return or(50,rr,A.createIntersectionTypeNode)}function sr(){return Qe(),103===Ue()}function cr(){return 29===Ue()||!(20!==Ue()||!et(_r))||103===Ue()||126===Ue()&&et(sr)}function _r(){if(Qe(),21===Ue()||25===Ue())return!0;if(function(){if(gl(Ue())&&zi(!1),rt()||108===Ue())return Qe(),!0;if(22===Ue()||18===Ue()){const e=g.length;return Ai(),e===g.length}return!1}()){if(58===Ue()||27===Ue()||57===Ue()||63===Ue())return!0;if(21===Ue()&&(Qe(),38===Ue()))return!0}return!1}function lr(){const e=Je(),t=rt()&&tt(ur),n=dr();return t?vt(A.createTypePredicateNode(void 0,t,n),e):n}function ur(){const e=Ct();if(140===Ue()&&!c.hasPrecedingLineBreak())return Qe(),e}function dr(){if(40960&C)return ye(40960,dr);if(cr())return Kn();const e=Je(),t=or(51,ar,A.createUnionTypeNode);if(!Ne()&&!c.hasPrecedingLineBreak()&<(94)){const n=ke(dr);it(57);const r=xe(dr);it(58);const i=xe(dr);return vt(A.createConditionalTypeNode(t,n,r,i),e)}return t}function pr(){return lt(58)?dr():void 0}function fr(){switch(Ue()){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return!0;case 100:return et(jn);default:return rt()}}function mr(){if(fr())return!0;switch(Ue()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 133:case 125:case 80:case 59:return!0;default:return!!wr()||rt()}}function gr(){const e=Fe();e&&ge(!1);const t=Je();let n,r=yr(!0);for(;n=ut(27);)r=Dr(r,n,yr(!0),t);return e&&ge(!0),r}function hr(){return lt(63)?yr(!0):void 0}function yr(e){if(125===Ue()&&(De()||et(pi)))return function(){const e=Je();return Qe(),c.hasPrecedingLineBreak()||41!==Ue()&&!mr()?vt(A.createYieldExpression(void 0,void 0),e):vt(A.createYieldExpression(ut(41),yr(!0)),e)}();const t=function(e){const t=20===Ue()||29===Ue()||132===Ue()?et(br):38===Ue()?1:0;if(0!==t)return 1===t?kr(!0,!0):tt((()=>function(e){const t=c.getTokenPos();if(null==T?void 0:T.has(t))return;const n=kr(!1,e);return n||(T||(T=new Set)).add(t),n}(e)))}(e)||function(e){if(132===Ue()&&1===et(xr)){const t=Je(),n=Ui();return vr(t,Tr(0),e,n)}}(e);if(t)return t;const n=Je(),r=Tr(0);return 79===r.kind&&38===Ue()?vr(n,r,e,void 0):ru(r)&&Ob(We())?Dr(r,pt(),yr(e),n):function(e,t,n){const r=ut(57);if(!r)return e;let i;return vt(A.createConditionalExpression(e,r,ye(20480,(()=>yr(!1))),i=dt(58),Mp(i)?yr(n):bt(79,!1,ja._0_expected,_s(58))),t)}(r,n,e)}function vr(e,t,n,r){In.assert(38===Ue(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const i=A.createParameterDeclaration(void 0,void 0,t,void 0,void 0,void 0);vt(i,t.pos);const o=yt([i],i.pos,i.end),a=dt(38),s=Sr(!!r,n);return ce(vt(A.createArrowFunction(r,void 0,o,void 0,a,s),e))}function br(){if(132===Ue()){if(Qe(),c.hasPrecedingLineBreak())return 0;if(20!==Ue()&&29!==Ue())return 0}const e=Ue(),t=Qe();if(20===e){if(21===t)switch(Qe()){case 38:case 58:case 18:return 1;default:return 0}if(22===t||18===t)return 2;if(25===t)return 1;if(gl(t)&&132!==t&&et(jt))return 128===Qe()?0:1;if(!rt()&&108!==t)return 0;switch(Qe()){case 58:return 1;case 57:return Qe(),58===Ue()||27===Ue()||63===Ue()||21===Ue()?1:0;case 27:case 63:case 21:return 2}return 0}return In.assert(29===e),rt()||85===Ue()?1===m?et((()=>{lt(85);const e=Qe();if(94===e)switch(Qe()){case 63:case 31:case 43:return!1;default:return!0}else if(27===e||63===e)return!0;return!1}))?1:0:2:0}function xr(){if(132===Ue()){if(Qe(),c.hasPrecedingLineBreak()||38===Ue())return 0;const e=Tr(0);if(!c.hasPrecedingLineBreak()&&79===e.kind&&38===Ue())return 1}return 0}function kr(e,t){const n=Je(),r=ze(),i=Ui(),o=_e(i,Dw)?2:0,a=kn();let s;if(it(20)){if(e)s=wn(o,e);else{const t=wn(o,e);if(!t)return;s=t}if(!it(21)&&!e)return}else{if(!e)return;s=en()}const c=58===Ue(),_=An(58,!1);if(_&&!e&&hn(_))return;let l=_;for(;193===(null==l?void 0:l.kind);)l=l.type;const u=l&&BN(l);if(!e&&38!==Ue()&&(u||18!==Ue()))return;const d=Ue(),p=dt(38),f=38===d||18===d?Sr(_e(i,Dw),t):Ct();return t||!c||58===Ue()?ae(vt(A.createArrowFunction(i,a,s,_,p,f),n),r):void 0}function Sr(e,t){if(18===Ue())return si(e?2:0);if(26!==Ue()&&98!==Ue()&&84!==Ue()&&gi()&&(18===Ue()||98===Ue()||84===Ue()||59===Ue()||!mr()))return si(16|(e?2:0));const n=te;te=!1;const r=e?Te((()=>yr(t))):Ce((()=>yr(t)));return te=n,r}function Tr(e){const t=Je();return Ar(e,Fr(),t)}function Cr(e){return 101===e||162===e}function Ar(e,t,n){for(;;){We();const o=Yy(Ue());if(!(42===Ue()?o>=e:o>e))break;if(101===Ue()&&Ee())break;if(128===Ue()||150===Ue()){if(c.hasPrecedingLineBreak())break;{const e=Ue();Qe(),t=150===e?(r=t,i=dr(),vt(A.createSatisfiesExpression(r,i),r.pos)):Er(t,dr())}}else t=Dr(t,pt(),Tr(o),n)}var r,i;return t}function wr(){return(!Ee()||101!==Ue())&&Yy(Ue())>0}function Dr(e,t,n,r){return vt(A.createBinaryExpression(e,t,n),r)}function Er(e,t){return vt(A.createAsExpression(e,t),e.pos)}function Nr(){const e=Je();return vt(A.createPrefixUnaryExpression(Ue(),Ve(Pr)),e)}function Fr(){if(function(){switch(Ue()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 133:return!1;case 29:if(1!==m)return!1;default:return!0}}()){const e=Je(),t=Ir();return 42===Ue()?Ar(Yy(Ue()),t,e):t}const e=Ue(),t=Pr();if(42===Ue()){const n=As(d,t.pos),{end:r}=t;213===t.kind?Me(n,r,ja.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):Me(n,r,ja.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,_s(e))}return t}function Pr(){switch(Ue()){case 39:case 40:case 54:case 53:return Nr();case 89:return function(){const e=Je();return vt(A.createDeleteExpression(Ve(Pr)),e)}();case 112:return function(){const e=Je();return vt(A.createTypeOfExpression(Ve(Pr)),e)}();case 114:return function(){const e=Je();return vt(A.createVoidExpression(Ve(Pr)),e)}();case 29:return 1===m?Mr(!0,void 0,void 0,!0):function(){In.assert(1!==m,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const e=Je();it(29);const t=dr();it(31);const n=Pr();return vt(A.createTypeAssertion(t,n),e)}();case 133:if(133===Ue()&&(Pe()||et(pi)))return function(){const e=Je();return vt(A.createAwaitExpression(Ve(Pr)),e)}();default:return Ir()}}function Ir(){if(45===Ue()||46===Ue()){const e=Je();return vt(A.createPrefixUnaryExpression(Ue(),Ve(Or)),e)}if(1===m&&29===Ue()&&et(zt))return Mr(!0);const e=Or();if(In.assert(ru(e)),(45===Ue()||46===Ue())&&!c.hasPrecedingLineBreak()){const t=Ue();return Qe(),vt(A.createPostfixUnaryExpression(e,t),e.pos)}return e}function Or(){const e=Je();let t;return 100===Ue()?et(Rn)?(u|=2097152,t=pt()):et(Bn)?(Qe(),Qe(),t=vt(A.createMetaProperty(100,At()),e),u|=4194304):t=Lr():t=106===Ue()?function(){const e=Je();let t=pt();if(29===Ue()){const e=Je(),n=tt(Xr);void 0!==n&&(Me(e,Je(),ja.super_may_not_use_type_arguments),Wr()||(t=A.createExpressionWithTypeArguments(t,n)))}return 20===Ue()||24===Ue()||22===Ue()?t:(dt(24,ja.super_must_be_followed_by_an_argument_list_or_member_access),vt(R(t,on(!0,!0)),e))}():Lr(),$r(e,t)}function Lr(){return Kr(Je(),Yr(),!0)}function Mr(e,t,n,r=!1){const i=Je(),o=function(e){const t=Je();if(it(29),31===Ue())return Ye(),vt(A.createJsxOpeningFragment(),t);const n=jr(),r=0==(262144&C)?$i():void 0,i=function(){const e=Je();return vt(A.createJsxAttributes(Kt(13,zr)),e)}();let o;return 31===Ue()?(Ye(),o=A.createJsxOpeningElement(n,r,i)):(it(43),it(31,void 0,!1)&&(e?Qe():Ye()),o=A.createJsxSelfClosingElement(n,r,i)),vt(o,t)}(e);let a;if(283===o.kind){let t,r=Br(o);const s=r[r.length-1];if(281===(null==s?void 0:s.kind)&&!RI(s.openingElement.tagName,s.closingElement.tagName)&&RI(o.tagName,s.closingElement.tagName)){const e=s.children.end,n=vt(A.createJsxElement(s.openingElement,s.children,vt(A.createJsxClosingElement(vt(F(""),e,e)),e,e)),s.openingElement.pos,e);r=yt([...r.slice(0,r.length-1),n],r.pos,e),t=s.closingElement}else t=function(e,t){const n=Je();it(30);const r=jr();return it(31,void 0,!1)&&(t||!RI(e.tagName,r)?Qe():Ye()),vt(A.createJsxClosingElement(r),n)}(o,e),RI(o.tagName,t.tagName)||(n&&aN(n)&&RI(t.tagName,n.tagName)?Re(o.tagName,ja.JSX_element_0_has_no_corresponding_closing_tag,Zp(d,o.tagName)):Re(t.tagName,ja.Expected_corresponding_JSX_closing_tag_for_0,Zp(d,o.tagName)));a=vt(A.createJsxElement(o,r,t),i)}else 286===o.kind?a=vt(A.createJsxFragment(o,Br(o),function(e){const t=Je();return it(30),it(31,ja.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(e?Qe():Ye()),vt(A.createJsxJsxClosingFragment(),t)}(e)),i):(In.assert(282===o.kind),a=o);if(!r&&e&&29===Ue()){const e=void 0===t?a.pos:t,n=tt((()=>Mr(!0,e)));if(n){const t=bt(27,!1);return bT(t,n.pos,0),Me(As(d,e),n.end,ja.JSX_expressions_must_have_one_parent_element),vt(A.createBinaryExpression(a,t,n),i)}}return a}function Rr(e,t){switch(t){case 1:if(_N(e))Re(e,ja.JSX_fragment_has_no_corresponding_closing_tag);else{const t=e.tagName;Me(As(d,t.pos),t.end,ja.JSX_element_0_has_no_corresponding_closing_tag,Zp(d,e.tagName))}return;case 30:case 7:return;case 11:case 12:return function(){const e=Je(),t=A.createJsxText(c.getTokenValue(),12===v);return v=c.scanJsxToken(),vt(t,e)}();case 18:return Jr(!1);case 29:return Mr(!1,void 0,e);default:return In.assertNever(t)}}function Br(e){const t=[],n=Je(),r=S;for(S|=16384;;){const n=Rr(e,v=c.reScanJsxToken());if(!n)break;if(t.push(n),aN(e)&&281===(null==n?void 0:n.kind)&&!RI(n.openingElement.tagName,n.closingElement.tagName)&&RI(e.tagName,n.closingElement.tagName))break}return S=r,yt(t,n)}function jr(){const e=Je();Xe();let t=108===Ue()?pt():At();for(;lt(24);)t=vt(R(t,on(!0,!1)),e);return t}function Jr(e){const t=Je();if(!it(18))return;let n,r;return 19!==Ue()&&(n=ut(25),r=gr()),e?it(19):it(19,void 0,!1)&&Ye(),vt(A.createJsxExpression(n,r),t)}function zr(){if(18===Ue())return function(){const e=Je();it(18),it(25);const t=gr();return it(19),vt(A.createJsxSpreadAttribute(t),e)}();Xe();const e=Je();return vt(A.createJsxAttribute(At(),function(){if(63===Ue()){if(10===(v=c.scanJsxAttributeValue()))return ln();if(18===Ue())return Jr(!0);if(29===Ue())return Mr(!0);Ie(ja.or_JSX_element_expected)}}()),e)}function Ur(){return Qe(),os(Ue())||22===Ue()||Wr()}function qr(e){if(32&e.flags)return!0;if(tE(e)){let t=e.expression;for(;tE(t)&&!(32&t.flags);)t=t.expression;if(32&t.flags){for(;tE(e);)e.flags|=32,e=e.expression;return!0}}return!1}function Vr(e,t,n){const r=on(!0,!0),i=n||qr(t),o=i?B(t,n,r):R(t,r);return i&&Cw(o.name)&&Re(o.name,ja.An_optional_chain_cannot_contain_private_identifiers),YD(t)&&t.typeArguments&&Me(t.typeArguments.pos-1,As(d,t.typeArguments.end)+1,ja.An_instantiation_expression_cannot_be_followed_by_a_property_access),vt(o,e)}function Qr(e,t,n){let r;if(23===Ue())r=bt(79,!0,ja.An_element_access_expression_should_take_an_argument);else{const e=be(gr);Ty(e)&&(e.text=xt(e.text)),r=e}return it(23),vt(n||qr(t)?J(t,n,r):j(t,r),e)}function Kr(e,t,n){for(;;){let r,i=!1;if(n&&28===Ue()&&et(Ur)?(r=dt(28),i=os(Ue())):i=lt(24),i)t=Vr(e,t,r);else if(!r&&Fe()||!lt(22)){if(!Wr()){if(!r){if(53===Ue()&&!c.hasPrecedingLineBreak()){Qe(),t=vt(A.createNonNullExpression(t),e);continue}const n=tt(Xr);if(n){t=vt(A.createExpressionWithTypeArguments(t,n),e);continue}}return t}t=r||230!==t.kind?Hr(e,t,r,void 0):Hr(e,t.expression,r,t.typeArguments)}else t=Qr(e,t,r)}}function Wr(){return 14===Ue()||15===Ue()}function Hr(e,t,n,r){const i=A.createTaggedTemplateExpression(t,r,14===Ue()?(He(),ln()):an(!0));return(n||32&t.flags)&&(i.flags|=32),i.questionDotToken=n,vt(i,e)}function $r(e,t){for(;;){let n;t=Kr(e,t,!0);const r=ut(28);if(r&&(n=tt(Xr),Wr()))t=Hr(e,t,r,n);else{if(!n&&20!==Ue()){if(r){const n=bt(79,!1,ja.Identifier_expected);t=vt(B(t,r,n),e)}break}{r||230!==t.kind||(n=t.typeArguments,t=t.expression);const i=Gr();t=vt(r||qr(t)?U(t,r,n,i):z(t,n,i),e)}}}return t}function Gr(){it(20);const e=Xt(11,ei);return it(21),e}function Xr(){if(0!=(262144&C))return;if(29!==$e())return;Qe();const e=Xt(20,dr);return 31===We()?(Qe(),e&&function(){switch(Ue()){case 20:case 14:case 15:return!0;case 29:case 31:case 39:case 40:return!1}return c.hasPrecedingLineBreak()||wr()||!mr()}()?e:void 0):void 0}function Yr(){switch(Ue()){case 8:case 9:case 10:case 14:return ln();case 108:case 106:case 104:case 110:case 95:return pt();case 20:return function(){const e=Je(),t=ze();it(20);const n=be(gr);return it(21),ae(vt(V(n),e),t)}();case 22:return ti();case 18:return ri();case 132:if(!et(di))break;return ii();case 59:return function(){const e=Je(),t=ze(),n=zi(!0);if(84===Ue())return Qi(e,t,n,228);const r=bt(279,!0,ja.Expression_expected);return hT(r,e),r.modifiers=n,r}();case 84:return Qi(Je(),ze(),void 0,228);case 98:return ii();case 103:return function(){const e=Je();if(it(103),lt(24)){const t=At();return vt(A.createMetaProperty(103,t),e)}let t,n=Kr(Je(),Yr(),!1);230===n.kind&&(t=n.typeArguments,n=n.expression),28===Ue()&&Ie(ja.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,Zp(d,n));const r=20===Ue()?Gr():void 0;return vt(q(n,t,r),e)}();case 43:case 68:if(13===(v=c.reScanSlashToken()))return ln();break;case 15:return an(!1);case 80:return Et()}return Ct(ja.Expression_expected)}function Zr(){return 25===Ue()?function(){const e=Je();it(25);const t=yr(!0);return vt(A.createSpreadElement(t),e)}():27===Ue()?vt(A.createOmittedExpression(),Je()):yr(!0)}function ei(){return ye(20480,Zr)}function ti(){const e=Je(),t=c.getTokenPos(),n=it(22),r=c.hasPrecedingLineBreak(),i=Xt(15,Zr);return _t(22,23,n,t),vt(L(i,r),e)}function ni(){const e=Je(),t=ze();if(ut(25)){const n=yr(!0);return ae(vt(A.createSpreadAssignment(n),e),t)}const n=zi(!0);if(Nt(137))return Mi(e,t,n,174,0);if(Nt(151))return Mi(e,t,n,175,0);const r=ut(41),i=rt(),o=Dt(),a=ut(57),s=ut(53);if(r||20===Ue()||29===Ue())return Ii(e,t,n,r,o,a,s);let c;if(i&&58!==Ue()){const e=ut(63),t=e?be((()=>yr(!0))):void 0;c=A.createShorthandPropertyAssignment(o,t),c.equalsToken=e}else{it(58);const e=be((()=>yr(!0)));c=A.createPropertyAssignment(o,e)}return c.modifiers=n,c.questionToken=a,c.exclamationToken=s,ae(vt(c,e),t)}function ri(){const e=Je(),t=c.getTokenPos(),n=it(18),r=c.hasPrecedingLineBreak(),i=Xt(12,ni,!0);return _t(18,19,n,t),vt(M(i,r),e)}function ii(){const e=Fe();ge(!1);const t=Je(),n=ze(),r=zi(!1);it(98);const i=ut(41),o=i?1:0,a=_e(r,Dw)?2:0,s=o&&a?ve(40960,oi):o?ve(8192,oi):a?Te(oi):oi(),c=kn(),_=Dn(o|a),l=An(58,!1),u=si(o|a);return ge(e),ae(vt(A.createFunctionExpression(r,i,s,c,_,l,u),t),n)}function oi(){return nt()?Tt():void 0}function ai(e,t){const n=Je(),r=ze(),i=c.getTokenPos(),o=it(18,t);if(o||e){const e=c.hasPrecedingLineBreak(),t=Kt(1,yi);_t(18,19,o,i);const a=ae(vt(Q(t,e),n),r);return 63===Ue()&&(Ie(ja.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),Qe()),a}{const e=en();return ae(vt(Q(e,void 0),n),r)}}function si(e,t){const n=De();me(!!(1&e));const r=Pe();he(!!(2&e));const i=te;te=!1;const o=Fe();o&&ge(!1);const a=ai(!!(16&e),t);return o&&ge(!0),te=i,me(n),he(r),a}function ci(e){const t=Je(),n=ze();it(249===e?81:86);const r=ft()?void 0:Ct();return gt(),ae(vt(249===e?A.createBreakStatement(r):A.createContinueStatement(r),t),n)}function _i(){return 82===Ue()?function(){const e=Je(),t=ze();it(82);const n=be(gr);it(58);const r=Kt(3,yi);return ae(vt(A.createCaseClause(n,r),e),t)}():function(){const e=Je();it(88),it(58);const t=Kt(3,yi);return vt(A.createDefaultClause(t),e)}()}function li(){return Qe(),os(Ue())&&!c.hasPrecedingLineBreak()}function ui(){return Qe(),84===Ue()&&!c.hasPrecedingLineBreak()}function di(){return Qe(),98===Ue()&&!c.hasPrecedingLineBreak()}function pi(){return Qe(),(os(Ue())||8===Ue()||9===Ue()||10===Ue())&&!c.hasPrecedingLineBreak()}function fi(){for(;;)switch(Ue()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 154:return Qe(),!c.hasPrecedingLineBreak()&&rt();case 142:case 143:return Qe(),!c.hasPrecedingLineBreak()&&(rt()||10===Ue());case 126:case 127:case 132:case 136:case 121:case 122:case 123:case 146:if(Qe(),c.hasPrecedingLineBreak())return!1;continue;case 159:return Qe(),18===Ue()||79===Ue()||93===Ue();case 100:return Qe(),10===Ue()||41===Ue()||18===Ue()||os(Ue());case 93:let e=Qe();if(154===e&&(e=et(Qe)),63===e||41===e||18===e||88===e||128===e||59===e)return!0;continue;case 124:Qe();continue;default:return!1}}function mi(){return et(fi)}function gi(){switch(Ue()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:case 132:case 136:case 118:case 142:case 143:case 154:case 159:return!0;case 100:return mi()||et(jn);case 85:case 93:return mi();case 127:case 123:case 121:case 122:case 124:case 146:return mi()||!et(li);default:return mr()}}function hi(){return Qe(),nt()||18===Ue()||22===Ue()}function yi(){switch(Ue()){case 26:return function(){const e=Je(),t=ze();return it(26),ae(vt(A.createEmptyStatement(),e),t)}();case 18:return ai(!1);case 113:return Fi(Je(),ze(),void 0);case 119:if(et(hi))return Fi(Je(),ze(),void 0);break;case 98:return Pi(Je(),ze(),void 0);case 84:return Vi(Je(),ze(),void 0);case 99:return function(){const e=Je(),t=ze();it(99);const n=c.getTokenPos(),r=it(20),i=be(gr);_t(20,21,r,n);const o=yi(),a=lt(91)?yi():void 0;return ae(vt(H(i,o,a),e),t)}();case 90:return function(){const e=Je(),t=ze();it(90);const n=yi();it(115);const r=c.getTokenPos(),i=it(20),o=be(gr);return _t(20,21,i,r),lt(26),ae(vt(A.createDoStatement(n,o),e),t)}();case 115:return function(){const e=Je(),t=ze();it(115);const n=c.getTokenPos(),r=it(20),i=be(gr);_t(20,21,r,n);const o=yi();return ae(vt($(i,o),e),t)}();case 97:return function(){const e=Je(),t=ze();it(97);const n=ut(133);let r,i;if(it(20),26!==Ue()&&(r=113===Ue()||119===Ue()||85===Ue()?Ei(!0):ve(4096,gr)),n?it(162):lt(162)){const e=be((()=>yr(!0)));it(21),i=X(n,r,e,yi())}else if(lt(101)){const e=be(gr);it(21),i=A.createForInStatement(r,e,yi())}else{it(26);const e=26!==Ue()&&21!==Ue()?be(gr):void 0;it(26);const t=21!==Ue()?be(gr):void 0;it(21),i=G(r,e,t,yi())}return ae(vt(i,e),t)}();case 86:return ci(248);case 81:return ci(249);case 105:return function(){const e=Je(),t=ze();it(105);const n=ft()?void 0:be(gr);return gt(),ae(vt(A.createReturnStatement(n),e),t)}();case 116:return function(){const e=Je(),t=ze();it(116);const n=c.getTokenPos(),r=it(20),i=be(gr);_t(20,21,r,n);const o=ve(33554432,yi);return ae(vt(A.createWithStatement(i,o),e),t)}();case 107:return function(){const e=Je(),t=ze();it(107),it(20);const n=be(gr);it(21);const r=function(){const e=Je();it(18);const t=Kt(2,_i);return it(19),vt(A.createCaseBlock(t),e)}();return ae(vt(A.createSwitchStatement(n,r),e),t)}();case 109:return function(){const e=Je(),t=ze();it(109);let n=c.hasPrecedingLineBreak()?void 0:be(gr);return void 0===n&&(k++,n=vt(F(""),Je())),mt()||at(n),ae(vt(A.createThrowStatement(n),e),t)}();case 111:case 83:case 96:return function(){const e=Je(),t=ze();it(111);const n=ai(!1),r=83===Ue()?function(){const e=Je();let t;it(83),lt(20)?(t=Di(),it(21)):t=void 0;const n=ai(!1);return vt(A.createCatchClause(t,n),e)}():void 0;let i;return r&&96!==Ue()||(it(96,ja.catch_or_finally_expected),i=ai(!1)),ae(vt(A.createTryStatement(n,r,i),e),t)}();case 87:return function(){const e=Je(),t=ze();return it(87),gt(),ae(vt(A.createDebuggerStatement(),e),t)}();case 59:return bi();case 132:case 118:case 154:case 142:case 143:case 136:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 127:case 124:case 146:case 159:if(mi())return bi()}return function(){const e=Je();let t,n=ze();const r=20===Ue(),i=be(gr);return Tw(i)&<(58)?t=A.createLabeledStatement(i,yi()):(mt()||at(i),t=W(i),r&&(n=!1)),ae(vt(t,e),n)}()}function vi(e){return 136===e.kind}function bi(){const e=Je(),t=ze(),n=zi(!0);if(_e(n,vi)){const r=function(e){return ve(16777216,(()=>{const t=Ht(S,e);if(t)return $t(t)}))}(e);if(r)return r;for(const e of n)e.flags|=16777216;return ve(16777216,(()=>xi(e,t,n)))}return xi(e,t,n)}function xi(e,t,n){switch(Ue()){case 113:case 119:case 85:return Fi(e,t,n);case 98:return Pi(e,t,n);case 84:return Vi(e,t,n);case 118:return function(e,t,n){it(118);const r=Ct(),i=kn(),o=Ki(),a=Jn();return ae(vt(A.createInterfaceDeclaration(n,r,i,o,a),e),t)}(e,t,n);case 154:return function(e,t,n){it(154);const r=Ct(),i=kn();it(63);const o=139===Ue()&&tt(Wn)||dr();return gt(),ae(vt(A.createTypeAliasDeclaration(n,r,i,o),e),t)}(e,t,n);case 92:return function(e,t,n){it(92);const r=Ct();let i;return it(18)?(i=ye(40960,(()=>Xt(6,Xi))),it(19)):i=en(),ae(vt(A.createEnumDeclaration(n,r,i),e),t)}(e,t,n);case 159:case 142:case 143:return function(e,t,n){let r=0;if(159===Ue())return eo(e,t,n);if(lt(143))r|=16;else if(it(142),10===Ue())return eo(e,t,n);return Zi(e,t,n,r)}(e,t,n);case 100:return function(e,t,n){it(100);const r=c.getStartPos();let i;rt()&&(i=Ct());let o,a=!1;if(158===Ue()||"type"!==(null==i?void 0:i.escapedText)||!rt()&&41!==Ue()&&18!==Ue()||(a=!0,i=rt()?Ct():void 0),i&&27!==Ue()&&158!==Ue())return function(e,t,n,r,i){it(63);const o=147===Ue()&&et(to)?function(){const e=Je();it(147),it(20);const t=ao();return it(21),vt(A.createExternalModuleReference(t),e)}():nn(!1);gt();return ae(vt(A.createImportEqualsDeclaration(n,i,r,o),e),t)}(e,t,n,i,a);(i||41===Ue()||18===Ue())&&(o=function(e,t,n){let r;return e&&!lt(27)||(r=41===Ue()?function(){const e=Je();it(41),it(128);const t=Ct();return vt(A.createNamespaceImport(t),e)}():so(272)),vt(A.createImportClause(n,e,r),t)}(i,r,a),it(158));const s=ao();let _;return 130!==Ue()||c.hasPrecedingLineBreak()||(_=oo()),gt(),ae(vt(A.createImportDeclaration(n,o,s,_),e),t)}(e,t,n);case 93:switch(Qe(),Ue()){case 88:case 63:return function(e,t,n){const r=Pe();let i;he(!0),lt(63)?i=!0:it(88);const o=yr(!0);return gt(),he(r),ae(vt(A.createExportAssignment(n,i,o),e),t)}(e,t,n);case 128:return function(e,t,n){it(128),it(143);const r=Ct();gt();const i=A.createNamespaceExportDeclaration(r);return i.modifiers=n,ae(vt(i,e),t)}(e,t,n);default:return function(e,t,n){const r=Pe();let i,o,a;he(!0);const s=lt(154),_=Je();return lt(41)?(lt(128)&&(i=function(e){return vt(A.createNamespaceExport(At()),e)}(_)),it(158),o=ao()):(i=so(276),(158===Ue()||10===Ue()&&!c.hasPrecedingLineBreak())&&(it(158),o=ao())),o&&130===Ue()&&!c.hasPrecedingLineBreak()&&(a=oo()),gt(),he(r),ae(vt(A.createExportDeclaration(n,s,i,o,a),e),t)}(e,t,n)}default:if(n){const t=bt(279,!0,ja.Declaration_expected);return hT(t,e),t.modifiers=n,t}return}}function ki(e,t){if(18!==Ue()){if(4&e)return void En();if(ft())return void gt()}return si(e,t)}function Si(){const e=Je();if(27===Ue())return vt(A.createOmittedExpression(),e);const t=ut(25),n=Ai(),r=hr();return vt(A.createBindingElement(t,void 0,n,r),e)}function Ti(){const e=Je(),t=ut(25),n=nt();let r,i=Dt();n&&58!==Ue()?(r=i,i=void 0):(it(58),r=Ai());const o=hr();return vt(A.createBindingElement(t,i,r,o),e)}function Ci(){return 18===Ue()||22===Ue()||80===Ue()||nt()}function Ai(e){return 22===Ue()?function(){const e=Je();it(22);const t=Xt(10,Si);return it(23),vt(A.createArrayBindingPattern(t),e)}():18===Ue()?function(){const e=Je();it(18);const t=Xt(9,Ti);return it(19),vt(A.createObjectBindingPattern(t),e)}():Tt(e)}function wi(){return Di(!0)}function Di(e){const t=Je(),n=ze(),r=Ai(ja.Private_identifiers_are_not_allowed_in_variable_declarations);let i;e&&79===r.kind&&53===Ue()&&!c.hasPrecedingLineBreak()&&(i=pt());const o=pr(),a=Cr(Ue())?void 0:hr();return ae(vt(Y(r,i,o,a),t),n)}function Ei(e){const t=Je();let n,r=0;switch(Ue()){case 113:break;case 119:r|=1;break;case 85:r|=2;break;default:In.fail()}if(Qe(),162===Ue()&&et(Ni))n=en();else{const t=Ee();fe(e),n=Xt(8,e?Di:wi),fe(t)}return vt(ee(n,r),t)}function Ni(){return jt()&&21===Qe()}function Fi(e,t,n){const r=Ei(!1);return gt(),ae(vt(K(n,r),e),t)}function Pi(e,t,n){const r=Pe(),i=Ab(n);it(98);const o=ut(41),a=1024&i?oi():Tt(),s=o?1:0,c=512&i?2:0,_=kn();1&i&&he(!0);const l=Dn(s|c),u=An(58,!1),d=ki(s|c,ja.or_expected);return he(r),ae(vt(A.createFunctionDeclaration(n,o,a,_,l,u,d),e),t)}function Ii(e,t,n,r,i,o,a,s){const c=r?1:0,_=_e(n,Dw)?2:0,l=kn(),u=Dn(c|_),d=An(58,!1),p=ki(c|_,s),f=A.createMethodDeclaration(n,r,i,o,l,u,d,p);return f.exclamationToken=a,ae(vt(f,e),t)}function Oi(e,t,n,r,i){const o=i||c.hasPrecedingLineBreak()?void 0:ut(53),a=pr(),s=ye(45056,hr);return function(e,t,n){if(59!==Ue()||c.hasPrecedingLineBreak())return 20===Ue()?(Ie(ja.Cannot_start_a_function_call_in_a_type_annotation),void Qe()):void(!t||ft()?mt()||(n?Ie(ja._0_expected,_s(26)):at(e)):n?Ie(ja._0_expected,_s(26)):Ie(ja.Expected_for_property_initializer));Ie(ja.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations)}(r,a,s),ae(vt(A.createPropertyDeclaration(n,r,i||o,a,s),e),t)}function Li(e,t,n){const r=ut(41),i=Dt(),o=ut(57);return r||20===Ue()||29===Ue()?Ii(e,t,n,r,i,o,void 0,ja.or_expected):Oi(e,t,n,i,o)}function Mi(e,t,n,r,i){const o=Dt(),a=kn(),s=Dn(0),c=An(58,!1),_=ki(i),l=174===r?A.createGetAccessorDeclaration(n,o,s,c,_):A.createSetAccessorDeclaration(n,o,s,_);return l.typeParameters=a,Xw(l)&&(l.type=c),ae(vt(l,e),t)}function Ri(){let e;if(59===Ue())return!0;for(;gl(Ue());){if(e=Ue(),yl(e))return!0;Qe()}if(41===Ue())return!0;if(wt()&&(e=Ue(),Qe()),22===Ue())return!0;if(void 0!==e){if(!fy(e)||151===e||137===e)return!0;switch(Ue()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return ft()}}return!1}function Bi(){if(Pe()&&133===Ue()){const e=Je(),t=Ct(ja.Expression_expected);return Qe(),$r(e,Kr(e,t,!0))}return Or()}function ji(){const e=Je();if(!lt(59))return;const t=ve(16384,Bi);return vt(A.createDecorator(t),e)}function Ji(e,t,n){const r=Je(),i=Ue();if(85===Ue()&&t){if(!tt(Ft))return}else{if(n&&124===Ue()&&et(no))return;if(e&&124===Ue())return;if(!gl(Ue())||!tt(Pt))return}return vt(I(i),r)}function zi(e,t,n){const r=Je();let i,o,a,s=!1,c=!1,_=!1;if(e&&59===Ue())for(;o=ji();)i=Se(i,o);for(;a=Ji(s,t,n);)124===a.kind&&(s=!0),i=Se(i,a),c=!0;if(c&&e&&59===Ue())for(;o=ji();)i=Se(i,o),_=!0;if(_)for(;a=Ji(s,t,n);)124===a.kind&&(s=!0),i=Se(i,a);return i&&yt(i,r)}function Ui(){let e;if(132===Ue()){const t=Je();Qe(),e=yt([vt(I(132),t)],t)}return e}function qi(){const e=Je();if(26===Ue())return Qe(),vt(A.createSemicolonClassElement(),e);const t=ze(),n=zi(!0,!0,!0);if(124===Ue()&&et(no))return function(e,t,n){dt(124);const r=function(){const e=De(),t=Pe();me(!1),he(!0);const n=ai(!1);return me(e),he(t),n}(),i=ae(vt(A.createClassStaticBlockDeclaration(r),e),t);return i.modifiers=n,i}(e,t,n);if(Nt(137))return Mi(e,t,n,174,0);if(Nt(151))return Mi(e,t,n,175,0);if(135===Ue()||10===Ue()){const r=function(e,t,n){return tt((()=>{if(135===Ue()?it(135):10===Ue()&&20===et(Qe)?tt((()=>{const e=ln();return"constructor"===e.text?e:void 0})):void 0){const r=kn(),i=Dn(0),o=An(58,!1),a=ki(0,ja.or_expected),s=A.createConstructorDeclaration(n,i,a);return s.typeParameters=r,s.type=o,ae(vt(s,e),t)}}))}(e,t,n);if(r)return r}if(Fn())return On(e,t,n);if(os(Ue())||10===Ue()||8===Ue()||41===Ue()||22===Ue()){if(_e(n,vi)){for(const e of n)e.flags|=16777216;return ve(16777216,(()=>Li(e,t,n)))}return Li(e,t,n)}if(n){const r=bt(79,!0,ja.Declaration_expected);return Oi(e,t,n,r,void 0)}return In.fail("Should not have attempted to parse class member declaration.")}function Vi(e,t,n){return Qi(e,t,n,260)}function Qi(e,t,n,r){const i=Pe();it(84);const o=!nt()||117===Ue()&&et(Jt)?void 0:kt(nt()),a=kn();_e(n,Aw)&&he(!0);const s=Ki();let c;return it(18)?(c=Kt(5,qi),it(19)):c=en(),he(i),ae(vt(260===r?A.createClassDeclaration(n,o,a,s,c):A.createClassExpression(n,o,a,s,c),e),t)}function Ki(){if(Gi())return Kt(22,Wi)}function Wi(){const e=Je(),t=Ue();In.assert(94===t||117===t),Qe();const n=Xt(7,Hi);return vt(A.createHeritageClause(t,n),e)}function Hi(){const e=Je(),t=Or();if(230===t.kind)return t;const n=$i();return vt(A.createExpressionWithTypeArguments(t,n),e)}function $i(){return 29===Ue()?tn(20,dr,29,31):void 0}function Gi(){return 94===Ue()||117===Ue()}function Xi(){const e=Je(),t=ze(),n=Dt(),r=be(hr);return ae(vt(A.createEnumMember(n,r),e),t)}function Yi(){const e=Je();let t;return it(18)?(t=Kt(1,yi),it(19)):t=en(),vt(A.createModuleBlock(t),e)}function Zi(e,t,n,r){const i=16&r,o=Ct(),a=lt(24)?Zi(Je(),!1,void 0,4|i):Yi();return ae(vt(A.createModuleDeclaration(n,o,a,r),e),t)}function eo(e,t,n){let r,i,o=0;return 159===Ue()?(r=Ct(),o|=1024):(r=ln(),r.text=xt(r.text)),18===Ue()?i=Yi():gt(),ae(vt(A.createModuleDeclaration(n,r,i,o),e),t)}function to(){return 20===Qe()}function no(){return 18===Qe()}function ro(){return 43===Qe()}function io(){const e=Je(),t=os(Ue())?At():dn(10);it(58);const n=yr(!0);return vt(A.createAssertEntry(t,n),e)}function oo(e){const t=Je();e||it(130);const n=c.getTokenPos();if(it(18)){const e=c.hasPrecedingLineBreak(),r=Xt(24,io,!0);if(!it(19)){const e=Be(g);e&&e.code===ja._0_expected.code&&rT(e,yk(l,n,1,ja.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return vt(A.createAssertClause(r,e),t)}{const e=yt([],Je(),void 0,!1);return vt(A.createAssertClause(e,!1),t)}}function ao(){if(10===Ue()){const e=ln();return e.text=xt(e.text),e}return gr()}function so(e){const t=Je();return vt(272===e?A.createNamedImports(tn(23,_o,18,19)):A.createNamedExports(tn(23,co,18,19)),t)}function co(){const e=ze();return ae(lo(278),e)}function _o(){return lo(273)}function lo(e){const t=Je();let n,r=fy(Ue())&&!rt(),i=c.getTokenPos(),o=c.getTextPos(),a=!1,s=!0,_=At();if("type"===_.escapedText)if(128===Ue()){const e=At();if(128===Ue()){const t=At();os(Ue())?(a=!0,n=e,_=l(),s=!1):(n=_,_=t,s=!1)}else os(Ue())?(n=_,s=!1,_=l()):(a=!0,_=e)}else os(Ue())&&(a=!0,_=l());return s&&128===Ue()&&(n=_,it(128),_=l()),273===e&&r&&Me(i,o,ja.Identifier_expected),vt(273===e?A.createImportSpecifier(a,n,_):A.createExportSpecifier(a,n,_),t);function l(){return r=fy(Ue())&&!rt(),i=c.getTokenPos(),o=c.getTextPos(),At()}}let uo;var po;let fo;var mo;let go;(po=uo||(uo={}))[po.SourceElements=0]="SourceElements",po[po.BlockStatements=1]="BlockStatements",po[po.SwitchClauses=2]="SwitchClauses",po[po.SwitchClauseStatements=3]="SwitchClauseStatements",po[po.TypeMembers=4]="TypeMembers",po[po.ClassMembers=5]="ClassMembers",po[po.EnumMembers=6]="EnumMembers",po[po.HeritageClauseElement=7]="HeritageClauseElement",po[po.VariableDeclarations=8]="VariableDeclarations",po[po.ObjectBindingElements=9]="ObjectBindingElements",po[po.ArrayBindingElements=10]="ArrayBindingElements",po[po.ArgumentExpressions=11]="ArgumentExpressions",po[po.ObjectLiteralMembers=12]="ObjectLiteralMembers",po[po.JsxAttributes=13]="JsxAttributes",po[po.JsxChildren=14]="JsxChildren",po[po.ArrayLiteralMembers=15]="ArrayLiteralMembers",po[po.Parameters=16]="Parameters",po[po.JSDocParameters=17]="JSDocParameters",po[po.RestProperties=18]="RestProperties",po[po.TypeParameters=19]="TypeParameters",po[po.TypeArguments=20]="TypeArguments",po[po.TupleElementTypes=21]="TupleElementTypes",po[po.HeritageClauses=22]="HeritageClauses",po[po.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",po[po.AssertEntries=24]="AssertEntries",po[po.Count=25]="Count",(mo=fo||(fo={}))[mo.False=0]="False",mo[mo.True=1]="True",mo[mo.Unknown=2]="Unknown",(e=>{function t(e){const t=Je(),n=(e?lt:it)(18),r=ve(8388608,bn);e&&!n||ct(19);const i=A.createJSDocTypeExpression(r);return le(i),vt(i,t)}function n(){const e=Je(),t=lt(18),n=Je();let r=nn(!1);for(;80===Ue();)Ge(),Ke(),r=vt(A.createJSDocMemberName(r,Ct()),n);t&&ct(19);const i=A.createJSDocNameReference(r);return le(i),vt(i,e)}let r;var i;let o;var a;function s(e=0,r){const i=d,o=void 0===r?i.length:e+r;if(r=o-e,In.assert(e>=0),In.assert(e<=o),In.assert(o<=i.length),!ZP(i,e))return;let a,s,_,u,p,f=[];const m=[];return c.scanRange(e+3,r-5,(()=>{let t,n=1,r=e-(i.lastIndexOf("\n",e)+1)+4;function l(e){t||(t=r),f.push(e),r+=e.length}for(Ke();W(5););W(4)&&(n=0,r=0);e:for(;;){switch(Ue()){case 59:0===n||1===n?(h(f),p||(p=Je()),(d=x(r))&&(a?a.push(d):(a=[d],s=d.pos),_=d.end),n=0,t=void 0):l(c.getTokenText());break;case 4:f.push(c.getTokenText()),n=0,r=0;break;case 41:const i=c.getTokenText();1===n||2===n?(n=2,l(i)):(n=1,r+=i.length);break;case 5:const o=c.getTokenText();2===n?f.push(o):void 0!==t&&r+o.length>t&&f.push(o.slice(t-r)),r+=o.length;break;case 1:break e;case 18:n=2;const y=c.getStartPos(),v=w(c.getTextPos()-1);if(v){u||g(f),m.push(vt(A.createJSDocText(f.join("")),null!=u?u:e,y)),m.push(v),f=[],u=c.getTextPos();break}default:n=2,l(c.getTokenText())}Ke()}var d;h(f),m.length&&f.length&&m.push(vt(A.createJSDocText(f.join("")),null!=u?u:e,p)),m.length&&a&&In.assertIsDefined(p,"having parsed tags implies that the end of the comment span should be set");const y=a&&yt(a,s,_);return vt(A.createJSDocComment(m.length?yt(m,e,p):f.length?f.join(""):void 0,y),e,o)}));function g(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function h(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function y(){for(;;){if(Ke(),1===Ue())return!0;if(5!==Ue()&&4!==Ue())return!1}}function v(){if(5!==Ue()&&4!==Ue()||!et(y))for(;5===Ue()||4===Ue();)Ke()}function b(){if((5===Ue()||4===Ue())&&et(y))return"";let e=c.hasPrecedingLineBreak(),t=!1,n="";for(;e&&41===Ue()||5===Ue()||4===Ue();)n+=c.getTokenText(),4===Ue()?(e=!0,t=!0,n=""):41===Ue()&&(e=!1),Ke();return t?n:""}function x(e){In.assert(59===Ue());const r=c.getTokenPos();Ke();const i=H(void 0),o=b();let s;switch(i.escapedText){case"author":s=function(e,t,n,r){const i=Je(),o=function(){const e=[];let t=!1,n=c.getToken();for(;1!==n&&4!==n;){if(29===n)t=!0;else{if(59===n&&!t)break;if(31===n&&t){e.push(c.getTokenText()),c.setTextPos(c.getTokenPos()+1);break}}e.push(c.getTokenText()),n=Ke()}return A.createJSDocText(e.join(""))}();let a=c.getStartPos();const s=S(e,a,n,r);s||(a=c.getStartPos());const _="string"!=typeof s?yt(ue([vt(o,i,a)],s),i):o.text+s;return vt(A.createJSDocAuthorTag(t,_),e)}(r,i,e,o);break;case"implements":s=function(e,t,n,r){const i=B();return vt(A.createJSDocImplementsTag(t,i,S(e,Je(),n,r)),e)}(r,i,e,o);break;case"augments":case"extends":s=function(e,t,n,r){const i=B();return vt(A.createJSDocAugmentsTag(t,i,S(e,Je(),n,r)),e)}(r,i,e,o);break;case"class":case"constructor":s=j(r,A.createJSDocClassTag,i,e,o);break;case"public":s=j(r,A.createJSDocPublicTag,i,e,o);break;case"private":s=j(r,A.createJSDocPrivateTag,i,e,o);break;case"protected":s=j(r,A.createJSDocProtectedTag,i,e,o);break;case"readonly":s=j(r,A.createJSDocReadonlyTag,i,e,o);break;case"override":s=j(r,A.createJSDocOverrideTag,i,e,o);break;case"deprecated":se=!0,s=j(r,A.createJSDocDeprecatedTag,i,e,o);break;case"this":s=function(e,n,r,i){const o=t(!0);return v(),vt(A.createJSDocThisTag(n,o,S(e,Je(),r,i)),e)}(r,i,e,o);break;case"enum":s=function(e,n,r,i){const o=t(!0);return v(),vt(A.createJSDocEnumTag(n,o,S(e,Je(),r,i)),e)}(r,i,e,o);break;case"arg":case"argument":case"param":return L(r,i,2,e);case"return":case"returns":s=function(e,t,n,r){_e(a,iF)&&Me(t.pos,c.getTokenPos(),ja._0_tag_already_specified,t.escapedText);const i=N();return vt(A.createJSDocReturnTag(t,i,S(e,Je(),n,r)),e)}(r,i,e,o);break;case"template":s=function(e,n,r,i){const o=18===Ue()?t():void 0,a=function(){const e=Je(),t=[];do{v();const e=K();void 0!==e&&t.push(e),b()}while(W(27));return yt(t,e)}();return vt(A.createJSDocTemplateTag(n,o,a,S(e,Je(),r,i)),e)}(r,i,e,o);break;case"type":s=M(r,i,e,o);break;case"typedef":s=function(e,t,n,r){var i;let o=N();b();const a=J();v();let s,c=T(n);if(!o||O(o.type)){let t,r,i,a=!1;for(;t=tt((()=>q(n)));)if(a=!0,347===t.kind){if(r){const e=Ie(ja.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);e&&rT(e,yk(l,0,0,ja.The_tag_was_first_specified_here));break}r=t}else i=Se(i,t);if(a){const t=o&&185===o.type.kind,n=A.createJSDocTypeLiteral(i,t);o=r&&r.typeExpression&&!O(r.typeExpression.type)?r.typeExpression:vt(n,e),s=o.end}}return s=s||void 0!==c?Je():(null!=(i=null!=a?a:o)?i:t).end,c||(c=S(e,s,n,r)),vt(A.createJSDocTypedefTag(t,o,a,c),e,s)}(r,i,e,o);break;case"callback":s=function(e,t,n,r){const i=J();v();let o=T(n);const a=z(e,n);o||(o=S(e,Je(),n,r));const s=void 0!==o?Je():a.end;return vt(A.createJSDocCallbackTag(t,a,i,o),e,s)}(r,i,e,o);break;case"overload":s=function(e,t,n,r){v();let i=T(n);const o=z(e,n);i||(i=S(e,Je(),n,r));const a=void 0!==i?Je():o.end;return vt(A.createJSDocOverloadTag(t,o,i),e,a)}(r,i,e,o);break;case"satisfies":s=function(e,n,r,i){const o=t(!1),a=void 0!==r&&void 0!==i?S(e,Je(),r,i):void 0;return vt(A.createJSDocSatisfiesTag(n,o,a),e)}(r,i,e,o);break;case"see":s=function(e,t,r,i){const o=22===Ue()||et((()=>59===Ke()&&os(Ke())&&E(c.getTokenValue())))?void 0:n(),a=void 0!==r&&void 0!==i?S(e,Je(),r,i):void 0;return vt(A.createJSDocSeeTag(t,o,a),e)}(r,i,e,o);break;case"exception":case"throws":s=function(e,t,n,r){const i=N(),o=S(e,Je(),n,r);return vt(A.createJSDocThrowsTag(t,i,o),e)}(r,i,e,o);break;default:s=function(e,t,n,r){return vt(A.createJSDocUnknownTag(t,S(e,Je(),n,r)),e)}(r,i,e,o)}return s}function S(e,t,n,r){return r||(n+=t-e),T(n,r.slice(n))}function T(e,t){const n=Je();let r=[];const i=[];let o,a,s=0,_=!0;function l(t){a||(a=e),r.push(t),e+=t.length}void 0!==t&&(""!==t&&l(t),s=1);let u=Ue();e:for(;;){switch(u){case 4:s=0,r.push(c.getTokenText()),e=0;break;case 59:if(3===s||2===s&&(!_||et(C))){r.push(c.getTokenText());break}c.setTextPos(c.getTextPos()-1);case 1:break e;case 5:if(2===s||3===s)l(c.getTokenText());else{const t=c.getTokenText();void 0!==a&&e+t.length>a&&r.push(t.slice(a-e)),e+=t.length}break;case 18:s=2;const t=c.getStartPos(),u=w(c.getTextPos()-1);u?(i.push(vt(A.createJSDocText(r.join("")),null!=o?o:n,t)),i.push(u),r=[],o=c.getTextPos()):l(c.getTokenText());break;case 61:s=3===s?2:3,l(c.getTokenText());break;case 41:if(0===s){s=1,e+=1;break}default:3!==s&&(s=2),l(c.getTokenText())}_=5===Ue(),u=Ke()}return g(r),h(r),i.length?(r.length&&i.push(vt(A.createJSDocText(r.join("")),null!=o?o:n)),yt(i,n,c.getTextPos())):r.length?r.join(""):void 0}function C(){const e=Ke();return 5===e||4===e}function w(e){const t=tt(D);if(!t)return;Ke(),v();const n=Je();let r=os(Ue())?nn(!0):void 0;if(r)for(;80===Ue();)Ge(),Ke(),r=vt(A.createJSDocMemberName(r,Ct()),n);const i=[];for(;19!==Ue()&&4!==Ue()&&1!==Ue();)i.push(c.getTokenText()),Ke();return vt(("link"===t?A.createJSDocLink:"linkcode"===t?A.createJSDocLinkCode:A.createJSDocLinkPlain)(r,i.join("")),e,c.getTextPos())}function D(){if(b(),18===Ue()&&59===Ke()&&os(Ke())){const e=c.getTokenValue();if(E(e))return e}}function E(e){return"link"===e||"linkcode"===e||"linkplain"===e}function N(){return b(),18===Ue()?t():void 0}function P(){const e=W(22);e&&v();const t=W(61),n=function(){let e=H();for(lt(22)&&it(23);lt(24);){const t=H();lt(22)&&it(23),e=rn(e,t)}return e}();return t&&(function(e){if(Ue()===e)return function(){const e=Je(),t=Ue();return Ke(),vt(I(t),e)}()}(61)||bt(61,!1,ja._0_expected,_s(61))),e&&(v(),ut(63)&&gr(),it(23)),{name:n,isBracketed:e}}function O(e){switch(e.kind){case 149:return!0;case 185:return O(e.elementType);default:return nD(e)&&Tw(e.typeName)&&"Object"===e.typeName.escapedText&&!e.typeArguments}}function L(e,t,n,r){let i=N(),o=!i;b();const{name:a,isBracketed:s}=P(),c=b();o&&!et(D)&&(i=N());const _=S(e,Je(),r,c),l=4!==n&&function(e,t,n,r){if(e&&O(e.type)){const i=Je();let o,a;for(;o=tt((()=>V(n,r,t)));)344!==o.kind&&351!==o.kind||(a=Se(a,o));if(a){const t=vt(A.createJSDocTypeLiteral(a,185===e.type.kind),i);return vt(A.createJSDocTypeExpression(t),i)}}}(i,a,n,r);return l&&(i=l,o=!0),vt(1===n?A.createJSDocPropertyTag(t,a,s,i,o,_):A.createJSDocParameterTag(t,a,s,i,o,_),e)}function M(e,n,r,i){_e(a,aF)&&Me(n.pos,c.getTokenPos(),ja._0_tag_already_specified,n.escapedText);const o=t(!0),s=void 0!==r&&void 0!==i?S(e,Je(),r,i):void 0;return vt(A.createJSDocTypeTag(n,o,s),e)}function B(){const e=lt(18),t=Je(),n=function(){const e=Je();let t=H();for(;lt(24);){const n=H();t=vt(R(t,n),e)}return t}(),r=$i(),i=vt(A.createExpressionWithTypeArguments(n,r),t);return e&&it(19),i}function j(e,t,n,r,i){return vt(t(n,S(e,Je(),r,i)),e)}function J(e){const t=c.getTokenPos();if(!os(Ue()))return;const n=H();if(lt(24)){const r=J(!0);return vt(A.createModuleDeclaration(void 0,n,r,e?4:void 0),t)}return e&&(n.flags|=2048),n}function z(e,t){const n=function(e){const t=Je();let n,r;for(;n=tt((()=>V(4,e)));)r=Se(r,n);return yt(r||[],t)}(t),r=tt((()=>{if(W(59)){const e=x(t);if(e&&345===e.kind)return e}}));return vt(A.createJSDocSignature(void 0,n,r),e)}function U(e,t){for(;!Tw(e)||!Tw(t);){if(Tw(e)||Tw(t)||e.right.escapedText!==t.right.escapedText)return!1;e=e.left,t=t.left}return e.escapedText===t.escapedText}function q(e){return V(1,e)}function V(e,t,n){let r=!0,i=!1;for(;;)switch(Ke()){case 59:if(r){const r=Q(e,t);return!(r&&(344===r.kind||351===r.kind)&&4!==e&&n&&(Tw(r.name)||!U(n,r.name.left)))&&r}i=!1;break;case 4:r=!0,i=!1;break;case 41:i&&(r=!1),i=!0;break;case 79:r=!1;break;case 1:return!1}}function Q(e,t){In.assert(59===Ue());const n=c.getStartPos();Ke();const r=H();let i;switch(v(),r.escapedText){case"type":return 1===e&&M(n,r);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(e&i)&&L(n,r,e,t)}function K(){const e=Je(),t=W(22);t&&v();const n=H(ja.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let r;if(t&&(v(),it(63),r=ve(8388608,bn),it(23)),!Lp(n))return vt(A.createTypeParameterDeclaration(void 0,n,void 0,r),e)}function W(e){return Ue()===e&&(Ke(),!0)}function H(e){if(!os(Ue()))return bt(79,!e,e||ja.Identifier_expected);k++;const t=c.getTokenPos(),n=c.getTextPos(),r=Ue(),i=xt(c.getTokenValue()),o=vt(F(i,r),t,n);return Ke(),o}}e.parseJSDocTypeExpressionForTests=function(e,n,r){ie("file.js",e,99,void 0,1),c.setText(e,n,r),v=c.scan();const i=t(),o=de("file.js",99,1,!1,[],I(1),0,St),a=xk(g,o);return h&&(o.jsDocDiagnostics=xk(h,o)),oe(),i?{jsDocTypeExpression:i,diagnostics:a}:void 0},e.parseJSDocTypeExpression=t,e.parseJSDocNameReference=n,e.parseIsolatedJSDocComment=function(e,t,n){ie("",e,99,void 0,1);const r=ve(8388608,(()=>s(t,n))),i=xk(g,{languageVariant:0,text:e});return oe(),r?{jsDoc:r,diagnostics:i}:void 0},e.parseJSDocComment=function(e,t,n){const r=v,i=g.length,o=ne,a=ve(8388608,(()=>s(t,n)));return kT(a,e),262144&C&&(h||(h=[]),h.push(...g)),v=r,g.length=i,ne=o,a},(i=r||(r={}))[i.BeginningOfLine=0]="BeginningOfLine",i[i.SawAsterisk=1]="SawAsterisk",i[i.SavingComments=2]="SavingComments",i[i.SavingBackticks=3]="SavingBackticks",(a=o||(o={}))[a.Property=1]="Property",a[a.Parameter=2]="Parameter",a[a.CallbackParameter=4]="CallbackParameter"})(go=e.JSDocParser||(e.JSDocParser={}))})(QP||(QP={})),(e=>{function t(e,t,r,o,a,s){return void(t?_(e):c(e));function c(e){let t="";if(s&&n(e)&&(t=o.substring(e.pos,e.end)),e._children&&(e._children=void 0),vT(e,e.pos+r,e.end+r),s&&n(e)&&In.assert(t===a.substring(e.pos,e.end)),bI(e,c,_),Wu(e))for(const t of e.jsDoc)c(t);i(e,s)}function _(e){e._children=void 0,vT(e,e.pos+r,e.end+r);for(const t of e)c(t)}}function n(e){switch(e.kind){case 10:case 8:case 79:return!0}return!1}function r(e,t,n,r,i){In.assert(e.end>=t,"Adjusting an element that was entirely before the change range"),In.assert(e.pos<=n,"Adjusting an element that was entirely after the change range"),In.assert(e.pos<=e.end);const o=Math.min(e.pos,r),a=e.end>=n?e.end+i:Math.min(e.end,r);In.assert(o<=a),e.parent&&(In.assertGreaterThanOrEqual(o,e.parent.pos),In.assertLessThanOrEqual(a,e.parent.end)),vT(e,o,a)}function i(e,t){if(t){let t=e.pos;const n=e=>{In.assert(e.pos>=t),t=e.end};if(Wu(e))for(const t of e.jsDoc)n(t);bI(e,n),In.assert(t<=e.end)}}function o(e,t){let n,r=e;if(bI(e,(function e(i){if(!Lp(i))return i.pos<=t?(i.pos>=r.pos&&(r=i),tt),!0)})),n){const e=function(e){for(;;){const t=Hx(e);if(!t)return e;e=t}}(n);e.pos>r.pos&&(r=e)}return r}function a(e,t,n,r){const i=e.text;if(n&&(In.assert(i.length-n.span.length+n.newLength===t.length),r||In.shouldAssert(3))){const e=i.substr(0,n.span.start),r=t.substr(0,n.span.start);In.assert(e===r);const o=i.substring(ec(n.span),i.length),a=t.substring(ec(fc(n)),t.length);In.assert(o===a)}}function s(e){let t=e.statements,n=0;In.assert(n(o!==i&&(r&&r.end===o&&n=e.pos&&i=e.pos&&i0&&t<=1;t++){const t=o(e,n);In.assert(t.pos<=n);const r=t.pos;n=Math.max(0,r-1)}return gc(pc(n,ec(t.span)),t.newLength+(t.span.start-n))}(e,c);a(e,n,p,_),In.assert(p.span.start<=c.span.start),In.assert(ec(p.span)===ec(c.span)),In.assert(ec(fc(p))===ec(fc(c)));const f=fc(p).length-p.span.length;!function(e,n,o,a,s,c,_,l){return void u(e);function u(e){if(In.assert(e.pos<=e.end),e.pos>o)return void t(e,!1,s,c,_,l);const p=e.end;if(p>=n){if(e.intersectsChange=!0,e._children=void 0,r(e,n,o,a,s),bI(e,u,d),Wu(e))for(const t of e.jsDoc)u(t);i(e,l)}else In.assert(po)return void t(e,!0,s,c,_,l);const i=e.end;if(i>=n){e.intersectsChange=!0,e._children=void 0,r(e,n,o,a,s);for(const t of e)u(t)}else In.assert(ir){l();const t={range:{pos:e.pos+i,end:e.end+i},type:_};c=Se(c,t),s&&In.assert(o.substring(e.pos,e.end)===a.substring(t.range.pos,t.range.end))}}return l(),c;function l(){_||(_=!0,c?t&&c.push(...t):c=t)}}(e.commentDirectives,m.commentDirectives,p.span.start,ec(p.span),f,u,n,_),m.impliedNodeFormat=e.impliedNodeFormat,m},e.createSyntaxCursor=s,(_=c||(c={}))[_.Value=-1]="Value"})(KP||(KP={})),WP=new Map,HP=/^\/\/\/\s*<(\S+)\s.*?\/>/im,$P=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im}});function CO(e){const t=new Map,n=new Map;return T(e,(e=>{t.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name)})),{optionsNameMap:t,shortOptionNames:n}}function AO(){return aO||(aO=CO($I))}function wO(e){return DO(e,Tk)}function DO(e,t){const n=Ze(e.type.keys()),r=(e.deprecatedKeys?n.filter((t=>!e.deprecatedKeys.has(t))):n).map((e=>`'${e}'`)).join(", ");return t(ja.Argument_for_0_option_must_be_Colon_1,"--"+e.name,r)}function EO(e,t,n){return RL(e,m(t||""),n)}function NO(e,t="",n){if(fn(t=m(t),"-"))return;if("listOrElement"===e.type&&!rn(t,","))return ML(e,t,n);if(""===t)return[];const r=t.split(",");switch(e.element.type){case"number":return Z(r,(t=>ML(e.element,parseInt(t),n)));case"string":return Z(r,(t=>ML(e.element,t||"",n)));case"boolean":case"object":return In.fail(`List of ${e.element.type} is not yet supported.`);default:return Z(r,(t=>EO(e.element,t,n)))}}function FO(e){return e.name}function PO(e,t,n,r){var i;if(null==(i=t.alternateMode)?void 0:i.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return n(t.alternateMode.diagnostic,e);const o=Yt(e,t.optionDeclarations,FO);return o?n(t.unknownDidYouMeanDiagnostic,r||e,o.name):n(t.unknownOptionDiagnostic,r||e)}function IO(e,t,n){const r={};let i;const o=[],a=[];return s(t),{options:r,watchOptions:i,fileNames:o,errors:a};function s(t){let n=0;for(;nSo.readFile(e)));if(!vt(t))return void a.push(t);const r=[];let i=0;for(;;){for(;i=t.length)break;const n=i;if(34===t.charCodeAt(n)){for(i++;i32;)i++;r.push(t.substring(n,i))}}s(r)}}function OO(e,t,n,r,i,o){if(r.isTSConfigOnly){const n=e[t];"null"===n?(i[r.name]=void 0,t++):"boolean"===r.type?"false"===n?(i[r.name]=ML(r,!1,o),t++):("true"===n&&t++,o.push(Tk(ja.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,r.name))):(o.push(Tk(ja.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,r.name)),n&&!fn(n,"-")&&t++)}else if(e[t]||"boolean"===r.type||o.push(Tk(n.optionTypeMismatchDiagnostic,r.name,eL(r))),"null"!==e[t])switch(r.type){case"number":i[r.name]=ML(r,parseInt(e[t]),o),t++;break;case"boolean":const n=e[t];i[r.name]=ML(r,"false"!==n,o),"false"!==n&&"true"!==n||t++;break;case"string":i[r.name]=ML(r,e[t]||"",o),t++;break;case"list":const a=NO(r,e[t],o);i[r.name]=a||[],a&&t++;break;case"listOrElement":In.fail("listOrElement not supported here");break;default:i[r.name]=EO(r,e[t],o),t++}else i[r.name]=void 0,t++;return t}function LO(e,t){return IO(_O,e,t)}function MO(e,t){return RO(AO,e,t)}function RO(e,t,n=!1){t=t.toLowerCase();const{optionsNameMap:r,shortOptionNames:i}=e();if(n){const e=i.get(t);void 0!==e&&(t=e)}return r.get(t)}function BO(){return lO||(lO=CO(iO))}function jO(e){const{options:t,watchOptions:n,fileNames:r,errors:i}=IO(dO,e),o=t;return 0===r.length&&r.push("."),o.clean&&o.force&&i.push(Tk(ja.Options_0_and_1_cannot_be_combined,"clean","force")),o.clean&&o.verbose&&i.push(Tk(ja.Options_0_and_1_cannot_be_combined,"clean","verbose")),o.clean&&o.watch&&i.push(Tk(ja.Options_0_and_1_cannot_be_combined,"clean","watch")),o.watch&&o.dry&&i.push(Tk(ja.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:o,watchOptions:n,projects:r,errors:i}}function JO(e,...t){const n=Tk.apply(void 0,arguments);return n.messageText}function zO(e,t,n,r,i,o){const a=QO(e,(e=>n.readFile(e)));if(!vt(a))return void n.onUnRecoverableConfigFileDiagnostic(a);const s=AI(e,a),c=n.getCurrentDirectory();return s.path=xa(e,c,ln(n.useCaseSensitiveFileNames)),s.resolvedPath=s.path,s.originalFileName=s.fileName,mL(s,n,ya(sa(e),c),t,ya(e,c),void 0,o,r,i)}function UO(e,t){const n=QO(e,t);return vt(n)?qO(e,n):{config:{},error:n}}function qO(e,t){const n=AI(e,t);return{config:XO(n,n.parseDiagnostics,!1,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function VO(e,t){const n=QO(e,t);return vt(n)?AI(e,n):{fileName:e,parseDiagnostics:[n]}}function QO(e,t){let n;try{n=t(e)}catch(t){return Tk(ja.Cannot_read_file_0_Colon_1,e,t.message)}return void 0===n?Tk(ja.Cannot_read_file_0,e):n}function KO(e){return nt(e,FO)}function WO(){return fO||(fO=CO(VI))}function HO(){return gO||(gO=KO($I))}function $O(){return hO||(hO=KO(VI))}function GO(){return yO||(yO=KO(oO))}function XO(e,t,n,r){var i;const o=null==(i=e.statements[0])?void 0:i.expression,a=n?(void 0===bO&&(bO={name:void 0,type:"object",elementOptions:KO([{name:"compilerOptions",type:"object",elementOptions:HO(),extraKeyDiagnostics:_O},{name:"watchOptions",type:"object",elementOptions:$O(),extraKeyDiagnostics:mO},{name:"typeAcquisition",type:"object",elementOptions:GO(),extraKeyDiagnostics:pO},vO,{name:"references",type:"list",element:{name:"references",type:"object"},category:ja.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:ja.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:ja.File_Management,defaultValueDescription:ja.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:ja.File_Management,defaultValueDescription:ja.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},BI])}),bO):void 0;if(o&&207!==o.kind){if(t.push(qf(e,o,ja.The_root_value_of_a_0_file_must_be_an_object,"jsconfig.json"===ca(e.fileName)?"jsconfig.json":"tsconfig.json")),DD(o)){const n=P(o.elements,ED);if(n)return ZO(e,n,t,!0,a,r)}return{}}return ZO(e,o,t,!0,a,r)}function YO(e,t){var n;return ZO(e,null==(n=e.statements[0])?void 0:n.expression,t,!0,void 0,void 0)}function ZO(e,t,n,r,i,o){return t?c(t,i):r?{}:void 0;function a(e){return i&&i.elementOptions===e}function s(t,i,s,l){const u=r?{}:void 0;for(const d of t.properties){if(299!==d.kind){n.push(qf(e,d,ja.Property_assignment_expected));continue}d.questionToken&&n.push(qf(e,d.questionToken,ja.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),_(d.name)||n.push(qf(e,d.name,ja.String_literal_with_double_quotes_expected));const t=Rf(d.name)?void 0:jf(d.name),p=t&&Ic(t),f=p&&i?i.get(p):void 0;p&&s&&!f&&(i?n.push(PO(p,s,((t,n,r)=>qf(e,d.name,t,n,r)))):n.push(qf(e,d.name,s.unknownOptionDiagnostic,p)));const m=c(d.initializer,f);if(void 0!==p&&(r&&(u[p]=m),o&&(l||a(i)))){const e=tL(f,m);l?e&&o.onSetValidOptionKeyValueInParent(l,f,m):a(i)&&(e?o.onSetValidOptionKeyValueInRoot(p,d.name,m,d.initializer):f||o.onSetUnknownOptionKeyValueInRoot(p,d.name,m,d.initializer))}}return u}function c(t,i){let o;switch(t.kind){case 110:return l(i&&"boolean"!==i.type&&("listOrElement"!==i.type||"boolean"!==i.element.type)),a(!0);case 95:return l(i&&"boolean"!==i.type&&("listOrElement"!==i.type||"boolean"!==i.element.type)),a(!1);case 104:return l(i&&"extends"===i.name),a(null);case 10:_(t)||n.push(qf(e,t,ja.String_literal_with_double_quotes_expected)),l(i&&vt(i.type)&&"string"!==i.type&&("listOrElement"!==i.type||vt(i.element.type)&&"string"!==i.element.type));const u=t.text;if(i&&In.assert("listOrElement"!==i.type||"string"===i.element.type,"Only string or array of string is handled for now"),i&&!vt(i.type)){const r=i;r.type.has(u.toLowerCase())||(n.push(DO(r,((n,r,i)=>qf(e,t,n,r,i)))),o=!0)}return a(u);case 8:return l(i&&"number"!==i.type&&("listOrElement"!==i.type||"number"!==i.element.type)),a(Number(t.text));case 221:if(40!==t.operator||8!==t.operand.kind)break;return l(i&&"number"!==i.type&&("listOrElement"!==i.type||"number"!==i.element.type)),a(-Number(t.operand.text));case 207:l(i&&"object"!==i.type&&("listOrElement"!==i.type||"object"!==i.element.type));const d=t;if(i){const{elementOptions:e,extraKeyDiagnostics:t,name:n}=i;return a(s(d,e,t,n))}return a(s(d,void 0,void 0,void 0));case 206:return l(i&&"list"!==i.type&&"listOrElement"!==i.type),a(function(e,t){if(r)return z(e.map((e=>c(e,t))),(e=>void 0!==e));e.forEach((e=>c(e,t)))}(t.elements,i&&i.element))}return void(i?l(!0):n.push(qf(e,t,ja.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)));function a(r){var a;if(!o){const o=null==(a=null==i?void 0:i.extraValidation)?void 0:a.call(i,r);if(o)return void n.push(qf(e,t,...o))}return r}function l(r){r&&(n.push(qf(e,t,ja.Compiler_option_0_requires_a_value_of_type_1,i.name,eL(i))),o=!0)}}function _(t){return sw(t)&&Lg(t,e)}}function eL(e){return"listOrElement"===e.type?eL(e.element)+" or Array":"list"===e.type?"Array":vt(e.type)?e.type:"string"}function tL(e,t){return!!e&&(!!hL(t)||("list"===e.type?ht(t):"listOrElement"===e.type?ht(t)||tL(e.element,t):typeof t===(vt(e.type)?e.type:"string")))}function nL(e,t,n){var r,i,o;const a=ln(n.useCaseSensitiveFileNames),s=V(z(e.fileNames,(null==(i=null==(r=e.options.configFile)?void 0:r.configFileSpecs)?void 0:i.validatedIncludeSpecs)?function(e,t,n,r){if(!t)return Ct;const i=AS(e,n,t,r.useCaseSensitiveFileNames,r.getCurrentDirectory()),o=i.excludePattern&&wS(i.excludePattern,r.useCaseSensitiveFileNames),a=i.includeFilePattern&&wS(i.includeFilePattern,r.useCaseSensitiveFileNames);return a?o?e=>!(a.test(e)&&!o.test(e)):e=>!a.test(e):o?e=>o.test(e):Ct}(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,n):Ct),(e=>La(ya(t,n.getCurrentDirectory()),ya(e,n.getCurrentDirectory()),a))),c=sL(e.options,{configFilePath:ya(t,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames}),_=e.watchOptions&&cL(e.watchOptions,WO());return{compilerOptions:{...rL(c),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:_&&rL(_),references:V(e.projectReferences,(e=>({...e,path:e.originalPath?e.originalPath:"",originalPath:void 0}))),files:S(s)?s:void 0,...(null==(o=e.options.configFile)?void 0:o.configFileSpecs)?{include:iL(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:!!e.compileOnSave||void 0}}function rL(e){return{...Ze(e.entries()).reduce(((e,t)=>({...e,[t[0]]:t[1]})),{})}}function iL(e){if(S(e)){if(1!==S(e))return e;if(e[0]!==xO)return e}}function oL(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return oL(e.element);default:return e.type}}function aL(e,t){return up(t,((t,n)=>{if(t===e)return n}))}function sL(e,t){return cL(e,AO(),t)}function cL(e,{optionsNameMap:t},n){const r=new Map,i=n&&ln(n.useCaseSensitiveFileNames);for(const o in e)if(We(e,o)){if(t.has(o)&&(t.get(o).category===ja.Command_line_Options||t.get(o).category===ja.Output_Formatting))continue;const a=e[o],s=t.get(o.toLowerCase());if(s){In.assert("listOrElement"!==s.type);const e=oL(s);e?"list"===s.type?r.set(o,a.map((t=>aL(t,e)))):r.set(o,aL(a,e)):n&&s.isFilePath?r.set(o,La(n.configFilePath,ya(a,sa(n.configFilePath)),i)):r.set(o,a)}}return r}function _L(e,t){const n=lL(e);return function(){const e=[];return HI.forEach((t=>{if(!n.has(t.name))return;const r=n.get(t.name),i=YL(t);r!==i?e.push(` ${t.name}: ${r}`):We(cO,t.name)&&e.push(` ${t.name}: ${i}`)})),e.join(t)+t}()}function lL(e){return sL(ct(e,cO))}function uL(e,t,n){const r=lL(e);return function(){const e=new Map;e.set(ja.Projects,[]),e.set(ja.Language_and_Environment,[]),e.set(ja.Modules,[]),e.set(ja.JavaScript_Support,[]),e.set(ja.Emit,[]),e.set(ja.Interop_Constraints,[]),e.set(ja.Type_Checking,[]),e.set(ja.Completeness,[]);for(const t of $I)if(o(t)){let n=e.get(t.category);n||e.set(t.category,n=[]),n.push(t)}let a=0,s=0;const c=[];e.forEach(((e,t)=>{0!==c.length&&c.push({value:""}),c.push({value:`/* ${hk(t)} */`});for(const t of e){let e;e=r.has(t.name)?`"${t.name}": ${JSON.stringify(r.get(t.name))}${(s+=1)===r.size?"":","}`:`// "${t.name}": ${JSON.stringify(YL(t))},`,c.push({value:e,description:`/* ${t.description&&hk(t.description)||t.name} */`}),a=Math.max(e.length,a)}}));const _=i(2),l=[];l.push("{"),l.push(_+'"compilerOptions": {'),l.push(`${_}${_}/* ${hk(ja.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),l.push("");for(const e of c){const{value:t,description:n=""}=e;l.push(t&&`${_}${_}${t}${n&&i(a-t.length+2)+n}`)}if(t.length){l.push(_+"},"),l.push(_+'"files": [');for(let e=0;e"object"==typeof e),"object"),n=h(y("files"));if(n){const r="no-prop"===e||ht(e)&&0===e.length,i=We(d,"extends");if(0===n.length&&r&&!i)if(t){const e=a||"tsconfig.json",n=ja.The_files_list_in_config_file_0_is_empty,r=A(Jm(t,"files"),(e=>e.initializer)),i=r?qf(t,r,n,e):Tk(n,e);l.push(i)}else b(ja.The_files_list_in_config_file_0_is_empty,a||"tsconfig.json")}let r=h(y("include"));const i=y("exclude");let o,s,c=!1,_=h(i);if("no-prop"===i&&d.compilerOptions){const e=d.compilerOptions.outDir,t=d.compilerOptions.declarationDir;(e||t)&&(_=[e,t].filter((e=>!!e)))}return void 0===n&&void 0===r&&(r=[xO],c=!0),r&&(o=VL(r,l,!0,t,"include")),_&&(s=VL(_,l,!1,t,"exclude")),{filesSpecs:n,includeSpecs:r,excludeSpecs:_,validatedFilesSpec:z(n,vt),validatedIncludeSpecs:o,validatedExcludeSpecs:s,pathPatterns:void 0,isDefaultIncludeSpec:c}}();t&&(t.configFileSpecs=m),gL(p,t);const g=va(a?yL(a,r):r);return{options:p,watchOptions:f,fileNames:function(e){const t=jL(m,e,p,n,c);return xL(t,kL(d),s)&&l.push(bL(m,a)),t}(g),projectReferences:function(e){let t;const n=v("references",(e=>"object"==typeof e),"object");if(ht(n))for(const r of n)"string"!=typeof r.path?b(ja.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(t||(t=[])).push({path:ya(r.path,e),originalPath:r.path,prepend:r.prepend,circular:r.circular});return t}(g),typeAcquisition:u.typeAcquisition||NL(),raw:d,errors:l,wildcardDirectories:KL(m,g,n.useCaseSensitiveFileNames),compileOnSave:!!d.compileOnSave};function h(e){return ht(e)?e:void 0}function y(e){return v(e,vt,"string")}function v(e,n,r){if(We(d,e)&&!hL(d[e])){if(ht(d[e])){const i=d[e];return t||F(i,n)||l.push(Tk(ja.Compiler_option_0_requires_a_value_of_type_1,e,r)),i}return b(ja.Compiler_option_0_requires_a_value_of_type_1,e,"Array"),"not-array"}return"no-prop"}function b(e,n,r){t||l.push(Tk(e,n,r))}}function bL({includeSpecs:e,excludeSpecs:t},n){return Tk(ja.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,n||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function xL(e,t,n){return 0===e.length&&t&&(!n||0===n.length)}function kL(e){return!We(e,"files")&&!We(e,"references")}function SL(e,t,n,r,i){const o=r.length;return xL(e,i)?r.push(bL(n,t)):U(r,(e=>!function(e){return e.code===ja.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}(e))),o!==r.length}function TL(e,t,n,r,i,o,a,s){var c;const _=ya(i||"",r=pa(r));if(o.indexOf(_)>=0)return a.push(Tk(ja.Circularity_detected_while_resolving_configuration_Colon_0,[...o,_].join(" -> "))),{raw:e||YO(t,a)};const l=e?function(e,t,n,r,i){We(e,"excludes")&&i.push(Tk(ja.Unknown_option_excludes_Did_you_mean_exclude));const o=EL(e.compilerOptions,n,i,r),a=FL(e.typeAcquisition,n,i,r),s=function(e,t,n){return PL($O(),e,t,void 0,mO,n)}(e.watchOptions,n,i);let c;if(e.compileOnSave=function(e,t,n){if(!We(e,BI.name))return!1;const r=IL(BI,e.compileOnSave,t,n);return"boolean"==typeof r&&r}(e,n,i),e.extends||""===e.extends)if(tL(vO,e.extends)){const o=r?yL(r,n):n;if(vt(e.extends))c=CL(e.extends,t,o,i,Tk);else{c=[];for(const n of e.extends)vt(n)?c=Se(c,CL(n,t,o,i,Tk)):i.push(Tk(ja.Compiler_option_0_requires_a_value_of_type_1,"extends",eL(vO.element)))}}else i.push(Tk(ja.Compiler_option_0_requires_a_value_of_type_1,"extends",eL(vO)));return{raw:e,options:o,watchOptions:s,typeAcquisition:a,extendedConfigPath:c}}(e,n,r,i,a):function(e,t,n,r,i){const o=DL(r);let a,s,c,_;const l={onSetValidOptionKeyValueInParent(e,t,i){let c;switch(e){case"compilerOptions":c=o;break;case"watchOptions":c=s||(s={});break;case"typeAcquisition":c=a||(a=NL(r));break;default:In.fail("Unknown option")}c[t.name]=OL(t,n,i)},onSetValidOptionKeyValueInRoot(o,a,s,_){if("extends"!==o);else{const o=r?yL(r,n):n;if(vt(s))c=CL(s,t,o,i,((t,n)=>qf(e,_,t,n)));else{c=[];for(let n=0;nqf(e,_.elements[n],t,r)))))}}}},onSetUnknownOptionKeyValueInRoot(t,n,r,o){"excludes"===t&&i.push(qf(e,n,ja.Unknown_option_excludes_Did_you_mean_exclude)),P(HI,(e=>e.name===t))&&(_=Se(_,n))}},u=XO(e,i,!0,l);return a||(a=NL(r)),_&&u&&void 0===u.compilerOptions&&i.push(qf(e,_[0],ja._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,jf(_[0]))),{raw:u,options:o,watchOptions:s,typeAcquisition:a,extendedConfigPath:c}}(t,n,r,i,a);if((null==(c=l.options)?void 0:c.paths)&&(l.options.pathsBasePath=r),l.extendedConfigPath){o=o.concat([_]);const e={options:{}};vt(l.extendedConfigPath)?u(e,l.extendedConfigPath):l.extendedConfigPath.forEach((t=>u(e,t))),!l.raw.include&&e.include&&(l.raw.include=e.include),!l.raw.exclude&&e.exclude&&(l.raw.exclude=e.exclude),!l.raw.files&&e.files&&(l.raw.files=e.files),void 0===l.raw.compileOnSave&&e.compileOnSave&&(l.raw.compileOnSave=e.compileOnSave),t&&e.extendedSourceFiles&&(t.extendedSourceFiles=Ze(e.extendedSourceFiles.keys())),l.options=et(e.options,l.options),l.watchOptions=l.watchOptions&&e.watchOptions?et(e.watchOptions,l.watchOptions):l.watchOptions||e.watchOptions}return l;function u(e,i){const c=function(e,t,n,r,i,o,a){var s;const c=n.useCaseSensitiveFileNames?t:Et(t);let _,l,u;if(o&&(_=o.get(c))?({extendedResult:l,extendedConfig:u}=_):(l=VO(t,(e=>n.readFile(e))),l.parseDiagnostics.length||(u=TL(void 0,l,n,sa(t),ca(t),r,i,o)),o&&o.set(c,{extendedResult:l,extendedConfig:u})),e&&((null!=(s=a.extendedSourceFiles)?s:a.extendedSourceFiles=new Set).add(l.fileName),l.extendedSourceFiles))for(const e of l.extendedSourceFiles)a.extendedSourceFiles.add(e);if(!l.parseDiagnostics.length)return u;i.push(...l.parseDiagnostics)}(t,i,n,o,a,s,e);if(c&&c.options){const t=c.raw;let o;const a=a=>{t[a]&&(e[a]=V(t[a],(e=>$o(e)?e:ma(o||(o=Oa(sa(i),r,ln(n.useCaseSensitiveFileNames))),e))))};a("include"),a("exclude"),a("files"),void 0!==t.compileOnSave&&(e.compileOnSave=t.compileOnSave),et(e.options,c.options),e.watchOptions=e.watchOptions&&c.watchOptions?et({},e.watchOptions,c.watchOptions):e.watchOptions||c.watchOptions}}}function CL(e,t,n,r,i){if($o(e=pa(e))||fn(e,"./")||fn(e,"../")){let o=ya(e,n);return t.fileExists(o)||en(o,".json")||(o+=".json",t.fileExists(o))?o:void r.push(i(ja.File_0_not_found,e))}const o=VM(e,ma(n,"tsconfig.json"),t);if(o.resolvedModule)return o.resolvedModule.resolvedFileName;""===e?r.push(i(ja.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):r.push(i(ja.File_0_not_found,e))}function AL(e,t,n){const r=[];return{options:EL(e,t,r,n),errors:r}}function wL(e,t,n){const r=[];return{options:FL(e,t,r,n),errors:r}}function DL(e){return e&&"jsconfig.json"===ca(e)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function EL(e,t,n,r){const i=DL(r);return PL(HO(),e,t,i,_O,n),r&&(i.configFilePath=pa(r)),i}function NL(e){return{enable:!!e&&"jsconfig.json"===ca(e),include:[],exclude:[]}}function FL(e,t,n,r){const i=NL(r);return PL(GO(),e,t,i,pO,n),i}function PL(e,t,n,r,i,o){if(t){for(const a in t){const s=e.get(a);s?(r||(r={}))[s.name]=IL(s,t[a],n,o):o.push(PO(a,i,Tk))}return r}}function IL(e,t,n,r){if(tL(e,t)){const i=e.type;if("list"===i&&ht(t))return BL(e,t,n,r);if("listOrElement"===i)return ht(t)?BL(e,t,n,r):IL(e.element,t,n,r);if(!vt(e.type))return RL(e,t,r);const o=ML(e,t,r);return hL(o)?o:LL(e,n,o)}r.push(Tk(ja.Compiler_option_0_requires_a_value_of_type_1,e.name,eL(e)))}function OL(e,t,n){if(!hL(n)){if("listOrElement"===e.type&&!ht(n))return OL(e.element,t,n);if("list"===e.type||"listOrElement"===e.type){const r=e;return r.element.isFilePath||!vt(r.element.type)?z(V(n,(e=>OL(r.element,t,e))),(e=>!!r.listPreserveFalsyValues||!!e)):n}return vt(e.type)?LL(e,t,n):e.type.get(vt(n)?n.toLowerCase():n)}}function LL(e,t,n){return e.isFilePath&&""===(n=ya(n,t))&&(n="."),n}function ML(e,t,n){var r;if(hL(t))return;const i=null==(r=e.extraValidation)?void 0:r.call(e,t);if(!i)return t;n.push(Tk(...i))}function RL(e,t,n){if(hL(t))return;const r=t.toLowerCase(),i=e.type.get(r);if(void 0!==i)return ML(e,i,n);n.push(wO(e))}function BL(e,t,n,r){return z(V(t,(t=>IL(e.element,t,n,r))),(t=>!!e.listPreserveFalsyValues||!!t))}function jL(e,t,n,i,o=r){t=va(t);const a=ln(i.useCaseSensitiveFileNames),s=new Map,c=new Map,_=new Map,{validatedFilesSpec:l,validatedIncludeSpecs:u,validatedExcludeSpecs:d}=e,p=IS(n,o),f=OS(n,p);if(l)for(const e of l){const n=ya(e,t);s.set(a(n),n)}let m;if(u&&u.length>0)for(const e of i.readDirectory(t,W(f),d,u,void 0)){if(ta(e,".json")){if(!m){const e=V(xS(u.filter((e=>en(e,".json"))),t,"files"),(e=>`^${e}$`));m=e?e.map((e=>wS(e,i.useCaseSensitiveFileNames))):r}if(-1!==O(m,(t=>t.test(e)))){const t=a(e);s.has(t)||_.has(t)||_.set(t,e)}continue}if(HL(e,s,c,p,a))continue;$L(e,c,p,a);const n=a(e);s.has(n)||c.has(n)||c.set(n,e)}const g=Ze(s.values()),h=Ze(c.values());return g.concat(h,Ze(_.values()))}function JL(e,t,n,r,i){const{validatedFilesSpec:o,validatedIncludeSpecs:a,validatedExcludeSpecs:s}=t;if(!S(a)||!S(s))return!1;n=va(n);const c=ln(r);if(o)for(const t of o)if(c(ya(t,n))===e)return!1;return qL(e,s,r,i,n)}function zL(e){const t=fn(e,"**/")?0:e.indexOf("/**/");return-1!==t&&(en(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function UL(e,t,n,r){return qL(e,z(t,(e=>!zL(e))),n,r)}function qL(e,t,n,r,i){const o=bS(t,ma(va(r),i),"exclude"),a=o&&wS(o,n);return!!a&&(!!a.test(e)||!ea(e)&&a.test(Sa(e)))}function VL(e,t,n,r,i){return e.filter((e=>{if(!vt(e))return!1;const o=QL(e,n);return void 0!==o&&t.push(function(e,t){const n=jm(r,i,t);return n?qf(r,n,e,t):Tk(e,t)}(...o)),void 0===o}))}function QL(e,t){return In.assert("string"==typeof e),t&&kO.test(e)?[ja.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:zL(e)?[ja.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:void 0}function KL({validatedIncludeSpecs:e,validatedExcludeSpecs:t},n,r){const i=bS(t,n,"exclude"),o=i&&RegExp(i,r?"":"i"),a={};if(void 0!==e){const t=[];for(const i of e){const e=va(ma(n,i));if(o&&o.test(e))continue;const s=WL(e,r);if(s){const{key:e,flags:n}=s,r=a[e];(void 0===r||rna(e,t)?t:void 0));if(!o)return!1;for(const r of o){if(ta(e,r))return!1;const o=i(QS(e,r));if(t.has(o)||n.has(o)){if(".d.ts"===r&&(ta(e,".js")||ta(e,".jsx")))continue;return!0}}return!1}function $L(e,t,n,r){const i=T(n,(t=>na(e,t)?t:void 0));if(i)for(let n=i.length-1;n>=0;n--){const o=i[n];if(ta(e,o))return;const a=r(QS(e,o));t.delete(a)}}function GL(e){const t={};for(const n in e)if(We(e,n)){const r=MO(n);void 0!==r&&(t[n]=XL(e[n],r))}return t}function XL(e,t){switch(t.type){case"object":case"string":return"";case"number":return"number"==typeof e?e:"";case"boolean":return"boolean"==typeof e?e:"";case"listOrElement":if(!ht(e))return XL(e,t.element);case"list":const n=t.element;return ht(e)?e.map((e=>XL(e,n))):"";default:return up(t.type,((t,n)=>{if(t===e)return n}))}}function YL(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const t=e.defaultValueDescription;return e.isFilePath?"./"+(t&&"string"==typeof t?t:""):"";case"list":return[];case"listOrElement":return YL(e.element);case"object":return{};default:const n=Le(e.type.keys());return void 0!==n?n:In.fail("Expected 'option.type' to have entries.")}}var ZL,eM,tM,nM,rM,iM=b({"src/compiler/commandLineParser.ts"(){XK(),BI={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},jI=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),JI=new Map(Q(jI.entries(),(([e,t])=>[""+t,e]))),UI=(zI=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]]).map((e=>e[0])),qI=new Map(zI),VI=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:ja.Watch_and_Build_Modes,description:ja.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:ja.Watch_and_Build_Modes,description:ja.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:ja.Watch_and_Build_Modes,description:ja.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:ja.Watch_and_Build_Modes,description:ja.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:QL},category:ja.Watch_and_Build_Modes,description:ja.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:QL},category:ja.Watch_and_Build_Modes,description:ja.Remove_a_list_of_files_from_the_watch_mode_s_processing}],QI=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:ja.Command_line_Options,description:ja.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:ja.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:ja.Command_line_Options,description:ja.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:ja.Output_Formatting,description:ja.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:ja.Compiler_Diagnostics,description:ja.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:ja.Compiler_Diagnostics,description:ja.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:ja.Compiler_Diagnostics,description:ja.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:ja.Output_Formatting,description:ja.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:ja.Compiler_Diagnostics,description:ja.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:ja.Compiler_Diagnostics,description:ja.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:ja.Compiler_Diagnostics,description:ja.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:ja.FILE_OR_DIRECTORY,category:ja.Compiler_Diagnostics,description:ja.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:ja.DIRECTORY,category:ja.Compiler_Diagnostics,description:ja.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:ja.Projects,description:ja.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:ja.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ja.Emit,transpileOptionValue:void 0,description:ja.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:ja.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ja.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:ja.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ja.Emit,description:ja.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ja.Emit,defaultValueDescription:!1,description:ja.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:ja.Emit,description:ja.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:ja.Watch_and_Build_Modes,description:ja.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:ja.Command_line_Options,isCommandLineOnly:!0,description:ja.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:ja.Platform_specific}],KI={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:ja.VERSION,showInSimplifiedHelpView:!0,category:ja.Language_and_Environment,description:ja.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},WI={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199})),affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:ja.KIND,showInSimplifiedHelpView:!0,category:ja.Modules,description:ja.Specify_what_module_code_is_generated,defaultValueDescription:void 0},HI=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:ja.Command_line_Options,description:ja.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:ja.Command_line_Options,description:ja.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:ja.Command_line_Options,description:ja.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:ja.Command_line_Options,paramType:ja.FILE_OR_DIRECTORY,description:ja.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:ja.Command_line_Options,description:ja.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:ja.Command_line_Options,isCommandLineOnly:!0,description:ja.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:ja.Command_line_Options,isCommandLineOnly:!0,description:ja.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},KI,WI,{name:"lib",type:"list",element:{name:"lib",type:qI,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:ja.Language_and_Environment,description:ja.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:ja.JavaScript_Support,description:ja.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",showInSimplifiedHelpView:!0,category:ja.JavaScript_Support,description:ja.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:jI,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,paramType:ja.KIND,showInSimplifiedHelpView:!0,category:ja.Language_and_Environment,description:ja.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:ja.FILE,showInSimplifiedHelpView:!0,category:ja.Emit,description:ja.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:ja.DIRECTORY,showInSimplifiedHelpView:!0,category:ja.Emit,description:ja.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:ja.LOCATION,category:ja.Modules,description:ja.Specify_the_root_folder_within_your_source_files,defaultValueDescription:ja.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:ja.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:ja.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:ja.FILE,category:ja.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:ja.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ja.Emit,defaultValueDescription:!1,description:ja.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:ja.Emit,description:ja.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ja.Emit,description:ja.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ja.Emit,description:ja.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ja.Emit,description:ja.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:ja.Interop_Constraints,description:ja.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:ja.Interop_Constraints,description:ja.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ja.Type_Checking,description:ja.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:ja.Type_Checking,description:ja.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:ja.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:ja.Type_Checking,description:ja.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:ja.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:ja.Type_Checking,description:ja.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:ja.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:ja.Type_Checking,description:ja.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:ja.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:ja.Type_Checking,description:ja.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:ja.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:ja.Type_Checking,description:ja.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:ja.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:ja.Type_Checking,description:ja.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:!1},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:ja.Type_Checking,description:ja.Ensure_use_strict_is_always_emitted,defaultValueDescription:ja.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ja.Type_Checking,description:ja.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ja.Type_Checking,description:ja.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ja.Type_Checking,description:ja.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ja.Type_Checking,description:ja.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ja.Type_Checking,description:ja.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ja.Type_Checking,description:ja.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ja.Type_Checking,description:ja.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:ja.Type_Checking,description:ja.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsModuleResolution:!0,paramType:ja.STRATEGY,category:ja.Modules,description:ja.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:ja.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:ja.Modules,description:ja.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:ja.Modules,description:ja.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:ja.Modules,description:ja.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:ja.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:ja.Modules,description:ja.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:ja.Modules,description:ja.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ja.Interop_Constraints,description:ja.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:ja.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ja.Interop_Constraints,description:ja.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:ja.Interop_Constraints,description:ja.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ja.Modules,description:ja.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:ja.Modules,description:ja.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,category:ja.Modules,description:ja.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:ja.Modules,description:ja.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:ja.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:ja.Modules,description:ja.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:ja.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:ja.Modules,description:ja.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:ja.LOCATION,category:ja.Emit,description:ja.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:ja.LOCATION,category:ja.Emit,description:ja.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ja.Emit,description:ja.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ja.Language_and_Environment,description:ja.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:ja.Language_and_Environment,description:ja.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:ja.Language_and_Environment,description:ja.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:ja.Language_and_Environment,description:ja.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:ja.Language_and_Environment,description:ja.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:ja.Modules,description:ja.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:ja.Modules,description:ja.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:ja.Backwards_Compatibility,paramType:ja.FILE,transpileOptionValue:void 0,description:ja.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:ja.Language_and_Environment,description:ja.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:ja.Completeness,description:ja.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:ja.Backwards_Compatibility,description:ja.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ja.Emit,description:ja.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:ja.NEWLINE,category:ja.Emit,description:ja.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ja.Output_Formatting,description:ja.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:ja.Language_and_Environment,affectsProgramStructure:!0,description:ja.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:ja.Modules,description:ja.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ja.Emit,description:ja.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:ja.Editor_Support,description:ja.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:ja.Projects,description:ja.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:ja.Projects,description:ja.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:ja.Projects,description:ja.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ja.Backwards_Compatibility,description:ja.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ja.Emit,description:ja.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ja.Emit,transpileOptionValue:void 0,description:ja.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ja.Emit,description:ja.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:ja.DIRECTORY,category:ja.Emit,transpileOptionValue:void 0,description:ja.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:ja.Completeness,description:ja.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ja.Type_Checking,description:ja.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ja.Type_Checking,description:ja.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ja.Backwards_Compatibility,description:ja.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ja.Backwards_Compatibility,description:ja.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:ja.Interop_Constraints,description:ja.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:ja.JavaScript_Support,description:ja.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ja.Backwards_Compatibility,description:ja.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:ja.Language_and_Environment,description:ja.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:ja.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ja.Emit,description:ja.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:ja.Backwards_Compatibility,description:ja.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:ja.Specify_a_list_of_language_service_plugins_to_include,category:ja.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsModuleResolution:!0,description:ja.Control_what_method_is_used_to_detect_module_format_JS_files,category:ja.Language_and_Environment,defaultValueDescription:ja.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],$I=[...QI,...HI],GI=$I.filter((e=>!!e.affectsSemanticDiagnostics)),XI=$I.filter((e=>!!e.affectsEmit)),YI=$I.filter((e=>!!e.affectsDeclarationPath)),ZI=$I.filter((e=>!!e.affectsModuleResolution)),eO=$I.filter((e=>!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics)),tO=$I.filter((e=>!!e.affectsProgramStructure)),nO=$I.filter((e=>We(e,"transpileOptionValue"))),rO=[{name:"verbose",shortName:"v",category:ja.Command_line_Options,description:ja.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:ja.Command_line_Options,description:ja.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:ja.Command_line_Options,description:ja.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:ja.Command_line_Options,description:ja.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],iO=[...QI,...rO],oO=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}],sO={diagnostic:ja.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:BO},cO={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},_O={alternateMode:sO,getOptionsNameMap:AO,optionDeclarations:$I,unknownOptionDiagnostic:ja.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:ja.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:ja.Compiler_option_0_expects_an_argument},uO={diagnostic:ja.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:AO},dO={alternateMode:uO,getOptionsNameMap:BO,optionDeclarations:iO,unknownOptionDiagnostic:ja.Unknown_build_option_0,unknownDidYouMeanDiagnostic:ja.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:ja.Build_option_0_requires_a_value_of_type_1},pO={optionDeclarations:oO,unknownOptionDiagnostic:ja.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:ja.Unknown_type_acquisition_option_0_Did_you_mean_1},mO={getOptionsNameMap:WO,optionDeclarations:VI,unknownOptionDiagnostic:ja.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:ja.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:ja.Watch_option_0_requires_a_value_of_type_1},vO={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:ja.File_Management},xO="**/*",kO=/(^|\/)\*\*\/?$/,SO=/^[^*?]*(?=\/[^/]*[*?])/}});function oM(e){e.trace(Sk.apply(void 0,arguments))}function aM(e,t){return!!e.traceResolution&&void 0!==t.trace}function sM(e,t){let n;if(t&&e){const r=e.contents.packageJsonContent;"string"==typeof r.name&&"string"==typeof r.version&&(n={name:r.name,subModuleName:t.path.slice(e.packageDirectory.length+zo.length),version:r.version})}return t&&{path:t.path,extension:t.ext,packageId:n,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function cM(e){return sM(void 0,e)}function _M(e){if(e)return In.assert(void 0===e.packageId),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function lM(e){const t=[];return 1&e&&t.push("TypeScript"),2&e&&t.push("JavaScript"),4&e&&t.push("Declaration"),8&e&&t.push("JSON"),t.join(", ")}function uM(e){if(e)return In.assert($S(e.extension)),{fileName:e.path,packageId:e.packageId}}function dM(e,t,n,r,i,o,a,s){if(!a.resultFromCache&&!a.compilerOptions.preserveSymlinks&&t&&n&&!t.originalPath&&!Xs(e)){const{resolvedFileName:e,originalPath:n}=bM(t.path,a.host,a.traceEnabled);n&&(t={...t,path:e,originalPath:n})}return pM(t,n,r,i,o,a.resultFromCache,s)}function pM(e,t,n,r,i,o,a){return o?(o.failedLookupLocations=mM(o.failedLookupLocations,n),o.affectingLocations=mM(o.affectingLocations,r),o.resolutionDiagnostics=mM(o.resolutionDiagnostics,i),o):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:fM(n),affectingLocations:fM(r),resolutionDiagnostics:fM(i),node10Result:a}}function fM(e){return e.length?e:void 0}function mM(e,t){return(null==t?void 0:t.length)?(null==e?void 0:e.length)?(e.push(...t),e):t:e}function gM(e,t,n,r){if(!We(e,t))return void(r.traceEnabled&&oM(r.host,ja.package_json_does_not_have_a_0_field,t));const i=e[t];if(typeof i===n&&null!==i)return i;r.traceEnabled&&oM(r.host,ja.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,n,null===i?"null":typeof i)}function hM(e,t,n,r){const i=gM(e,t,"string",r);if(void 0===i)return;if(!i)return void(r.traceEnabled&&oM(r.host,ja.package_json_had_a_falsy_0_field,t));const o=va(ma(n,i));return r.traceEnabled&&oM(r.host,ja.package_json_has_0_field_1_that_references_2,t,i,o),o}function yM(e){ZL||(ZL=new zn(t));for(const t in e){if(!We(e,t))continue;const n=Un.tryParse(t);if(void 0!==n&&n.test(ZL))return{version:t,paths:e[t]}}}function vM(e,t){if(e.typeRoots)return e.typeRoots;let n;return e.configFilePath?n=sa(e.configFilePath):t.getCurrentDirectory&&(n=t.getCurrentDirectory()),void 0!==n?function(e,t){if(!t.directoryExists)return[ma(e,eM)];let n;return Ra(va(e),(e=>{const r=ma(e,eM);t.directoryExists(r)&&(n||(n=[])).push(r)})),n}(n,t):void 0}function bM(e,t,n){const r=function(e,t,n){if(!t.realpath)return e;const r=va(t.realpath(e));return n&&oM(t,ja.Resolving_real_path_for_0_result_1,e,r),In.assert(t.fileExists(r),`${e} linked to nonexistent file ${r}`),r}(e,t,n),i=function(e,t,n){return 0===Ea(e,t,!("function"==typeof n.useCaseSensitiveFileNames?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames))}(e,r,t);return{resolvedFileName:i?e:r,originalPath:i?void 0:e}}function xM(e,t,n,r,i,o,a){In.assert("string"==typeof e,"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const s=aM(n,r);i&&(n=i.commandLine.options);const c=t?sa(t):void 0;let _=c?null==o?void 0:o.getFromDirectoryCache(e,a,c,i):void 0;if(_||!c||Xs(e)||(_=null==o?void 0:o.getFromNonRelativeNameCache(e,a,c,i)),_)return s&&(oM(r,ja.Resolving_type_reference_directive_0_containing_file_1,e,t),i&&oM(r,ja.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName),oM(r,ja.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,c),b(_)),_;const l=vM(n,r);s&&(void 0===t?void 0===l?oM(r,ja.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):oM(r,ja.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,l):void 0===l?oM(r,ja.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):oM(r,ja.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,l),i&&oM(r,ja.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName));const u=[],d=[];let p=kM(n);99!==a||3!==Jk(n)&&99!==Jk(n)||(p|=32);const f=8&p?SM(n,!!(32&p)):[],m=[],g={compilerOptions:n,host:r,traceEnabled:s,failedLookupLocations:u,affectingLocations:d,packageJsonInfoCache:o,features:p,conditions:f,requestContainingDirectory:c,reportDiagnostic:e=>{m.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1};let h,y=function(){if(l&&l.length)return s&&oM(r,ja.Resolving_with_primary_search_path_0,l.join(", ")),A(l,(t=>{const n=ma(t,e),i=sa(n),o=ox(i,r);return!o&&s&&oM(r,ja.Directory_0_does_not_exist_skipping_all_lookups_in_it,i),uM(iR(4,n,!o,g))}));s&&oM(r,ja.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),v=!0;if(y||(y=function(){const n=t&&sa(t);if(void 0!==n){let t;if(s&&oM(r,ja.Looking_up_in_node_modules_folder_initial_location_0,n),Xs(e)){const{path:r}=KM(n,e);t=WM(4,r,!1,g,!0)}else{const r=bR(4,e,n,g,void 0,void 0);t=r&&r.value}return uM(t)}s&&oM(r,ja.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),v=!1),y){const{fileName:e,packageId:t}=y;let i,o=e;n.preserveSymlinks||({resolvedFileName:o,originalPath:i}=bM(e,r,s)),h={primary:v,resolvedFileName:o,originalPath:i,packageId:t,isExternalLibraryImport:HM(e)}}return _={resolvedTypeReferenceDirective:h,failedLookupLocations:fM(u),affectingLocations:fM(d),resolutionDiagnostics:fM(m)},c&&(null==o||o.getOrCreateCacheForDirectory(c,i).set(e,a,_),Xs(e)||null==o||o.getOrCreateCacheForNonRelativeName(e,a,i).set(c,_)),s&&b(_),_;function b(t){var n;(null==(n=t.resolvedTypeReferenceDirective)?void 0:n.resolvedFileName)?t.resolvedTypeReferenceDirective.packageId?oM(r,ja.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,t.resolvedTypeReferenceDirective.resolvedFileName,Sp(t.resolvedTypeReferenceDirective.packageId),t.resolvedTypeReferenceDirective.primary):oM(r,ja.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,t.resolvedTypeReferenceDirective.resolvedFileName,t.resolvedTypeReferenceDirective.primary):oM(r,ja.Type_reference_directive_0_was_not_resolved,e)}}function kM(e){let t=0;switch(Jk(e)){case 3:case 99:case 100:t=30}return e.resolvePackageJsonExports?t|=8:!1===e.resolvePackageJsonExports&&(t&=-9),e.resolvePackageJsonImports?t|=2:!1===e.resolvePackageJsonImports&&(t&=-3),t}function SM(e,t){const n=t||100===Jk(e)?["import"]:["require"];return e.noDtsResolution||n.push("types"),100!==Jk(e)&&n.push("node"),ue(n,e.customConditions)}function TM(e,t,n,r,i){const o=sR(null==i?void 0:i.getPackageJsonInfoCache(),r,n);return Ra(t,(t=>{if("node_modules"!==ca(t)){const n=ma(t,"node_modules");return lR(ma(n,e),!1,o)}}))}function CM(e,t){if(e.types)return e.types;const n=[];if(t.directoryExists&&t.getDirectories){const r=vM(e,t);if(r)for(const e of r)if(t.directoryExists(e))for(const r of t.getDirectories(e)){const i=va(r),o=ma(e,i,"package.json");if(!t.fileExists(o)||null!==ix(o,t).typings){const e=ca(i);46!==e.charCodeAt(0)&&n.push(e)}}}return n}function AM(e){var t;if(null===e||"object"!=typeof e)return""+e;if(ht(e))return`[${null==(t=e.map((e=>AM(e))))?void 0:t.join(",")}]`;let n="{";for(const t in e)We(e,t)&&(n+=`${t}: ${AM(e[t])}`);return n+"}"}function wM(e,t){return t.map((t=>AM(lS(e,t)))).join("|")+(e.pathsBasePath?"|"+e.pathsBasePath:void 0)}function DM(e){const t=new Map,n=new Map,r=new Map;let i=new Map;return e&&t.set(e,i),{getMapOfCacheRedirects:function(e){return e?o(e.commandLine.options,!1):i},getOrCreateMapOfCacheRedirects:function(e){return e?o(e.commandLine.options,!0):i},update:function(n){e!==n&&(e?i=o(n,!0):t.set(n,i),e=n)},clear:function(){const o=e&&n.get(e);i.clear(),t.clear(),n.clear(),r.clear(),e&&(o&&n.set(e,o),t.set(e,i))}};function o(n,o){let s=t.get(n);if(s)return s;const c=a(n);if(s=r.get(c),!s){if(e){const t=a(e);t===c?s=i:r.has(t)||r.set(t,i)}o&&(null!=s||(s=new Map)),s&&r.set(c,s)}return s&&t.set(n,s),s}function a(e){let t=n.get(e);return t||n.set(e,t=wM(e,ZI)),t}}function EM(e,t,n,r){const i=e.getOrCreateMapOfCacheRedirects(t);let o=i.get(n);return o||(o=r(),i.set(n,o)),o}function NM(e,t){return void 0===t?e:`${t}|${e}`}function FM(){const e=new Map,t=new Map,n={get:(t,n)=>e.get(r(t,n)),set:(t,i,o)=>(e.set(r(t,i),o),n),delete:(t,i)=>(e.delete(r(t,i)),n),has:(t,n)=>e.has(r(t,n)),forEach:n=>e.forEach(((e,r)=>{const[i,o]=t.get(r);return n(e,i,o)})),size:()=>e.size};return n;function r(e,n){const r=NM(e,n);return t.set(r,[e,n]),r}}function PM(e,t,n,r){In.assert(t.length===n.length);const i=FM();for(let o=0;oFM()))},clear:function(){r.clear()},update:function(e){r.update(e)}}}(e,t,n),a=function(e,t,n,r){const i=DM(n);return{getFromNonRelativeNameCache:function(e,t,n,r){var o,a;return In.assert(!Xs(e)),null==(a=null==(o=i.getMapOfCacheRedirects(r))?void 0:o.get(NM(e,t)))?void 0:a.get(n)},getOrCreateCacheForNonRelativeName:function(e,t,n){return In.assert(!Xs(e)),EM(i,n,NM(e,t),o)},clear:function(){i.clear()},update:function(e){i.update(e)}};function o(){const n=new Map;return{get:function(r){return n.get(xa(r,e,t))},set:function(i,o){const a=xa(i,e,t);if(n.has(a))return;n.set(a,o);const s=r(o),c=s&&function(n,r){const i=xa(sa(r),e,t);let o=0;const a=Math.min(n.length,i.length);for(;or,clearAllExceptPackageJsonInfoCache:s};function s(){o.clear(),a.clear()}}function MM(e,t,n){const r=LM(e,t,n,void 0,IM);return r.getOrCreateCacheForModuleName=(e,t,n)=>r.getOrCreateCacheForNonRelativeName(e,t,n),r}function RM(e,t,n,r){return LM(e,t,n,r,OM)}function BM(e,t,n,r){const i=sa(t);return n.getFromDirectoryCache(e,r,i,void 0)}function jM(e,t,n,r,i,o,a){const s=aM(n,r);o&&(n=o.commandLine.options),s&&(oM(r,ja.Resolving_module_0_from_1,e,t),o&&oM(r,ja.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const c=sa(t);let _=null==i?void 0:i.getFromDirectoryCache(e,a,c,o);if(_)s&&oM(r,ja.Resolution_for_module_0_was_found_in_cache_from_location_1,e,c);else{let l=n.moduleResolution;if(void 0===l){switch(Bk(n)){case 1:l=2;break;case 100:l=3;break;case 199:l=99;break;default:l=1}s&&oM(r,ja.Module_resolution_kind_is_not_specified_using_0,Ri[l])}else s&&oM(r,ja.Explicitly_specified_module_resolution_kind_Colon_0,Ri[l]);switch(gr.logStartResolveModule(e),l){case 3:case 99:_=function(e,t,n,r,i,o,a){return function(e,t,n,r,i,o,a,s){const c=sa(n),_=99===s?32:0;let l=r.noDtsResolution?3:7;return eS(r)&&(l|=8),QM(e|_,t,c,r,i,o,l,!1,a)}(30,e,t,n,r,i,o,a)}(e,t,n,r,i,o,a);break;case 2:_=qM(e,t,n,r,i,o);break;case 1:_=NR(e,t,n,r,i,o);break;case 100:_=UM(e,t,n,r,i,o);break;default:return In.fail("Unexpected moduleResolution: "+l)}_&&_.resolvedModule&&gr.logInfoEvent(`Module "${e}" resolved to "${_.resolvedModule.resolvedFileName}"`),gr.logStopResolveModule(_&&_.resolvedModule?""+_.resolvedModule.resolvedFileName:"null"),null==i||i.getOrCreateCacheForDirectory(c,o).set(e,a,_),Xs(e)||null==i||i.getOrCreateCacheForNonRelativeName(e,a,o).set(c,_)}return s&&(_.resolvedModule?_.resolvedModule.packageId?oM(r,ja.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,_.resolvedModule.resolvedFileName,Sp(_.resolvedModule.packageId)):oM(r,ja.Module_name_0_was_successfully_resolved_to_1,e,_.resolvedModule.resolvedFileName):oM(r,ja.Module_name_0_was_not_resolved,e)),_}function JM(e,t,n,r,i){const o=function(e,t,n,r){var i;const{baseUrl:o,paths:a,configFile:s}=r.compilerOptions;if(a&&!Yo(t))return r.traceEnabled&&(o&&oM(r.host,ja.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t),oM(r.host,ja.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t)),TR(e,t,wv(r.compilerOptions,r.host),a,(null==s?void 0:s.configFileSpecs)?(i=s.configFileSpecs).pathPatterns||(i.pathPatterns=WS(a)):void 0,n,!1,r)}(e,t,r,i);return o?o.value:Xs(t)?function(e,t,n,r,i){if(!i.compilerOptions.rootDirs)return;i.traceEnabled&&oM(i.host,ja.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const o=va(ma(n,t));let a,s;for(const e of i.compilerOptions.rootDirs){let t=va(e);en(t,zo)||(t+=zo);const n=fn(o,t)&&(void 0===s||s.length{h.push(e)},isConfigLookup:s,candidateIsFromPackageJsonField:!1};let v,b;if(p&&Gk(Jk(r))&&oM(i,ja.Resolving_in_0_mode_with_conditions_1,32&e?"ESM":"CJS",g.map((e=>`'${e}'`)).join(", ")),2===Jk(r)){const e=5&a,t=-6&a;v=e&&x(e,y)||t&&x(t,y)||void 0}else v=x(a,y);if((null==(_=null==v?void 0:v.value)?void 0:_.isExternalLibraryImport)&&!s&&5&a&&8&e&&!Xs(t)&&!dR(5,v.value.resolved.extension)&&g.indexOf("import")>-1){OR(y,ja.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const e=x(5&a,{...y,features:-9&y.features,failedLookupLocations:[],affectingLocations:[],reportDiagnostic:St});(null==(l=null==e?void 0:e.value)?void 0:l.isExternalLibraryImport)&&(b=e.value.resolved.path)}return dM(t,null==(u=null==v?void 0:v.value)?void 0:u.resolved,null==(d=null==v?void 0:v.value)?void 0:d.isExternalLibraryImport,f,m,h,y,b);function x(r,a){const s=JM(r,t,n,((e,t,n,r)=>WM(e,t,n,r,!0)),a);if(s)return IR({resolved:s,isExternalLibraryImport:HM(s.path)});if(Xs(t)){const{path:e,parts:i}=KM(n,t),o=WM(r,e,!1,a,!0);return o&&IR({resolved:o,isExternalLibraryImport:R(i,"node_modules")})}{let s;return 2&e&&fn(t,"#")&&(s=function(e,t,n,r,i,o){var a,s;if("#"===t||fn(t,"#/"))return r.traceEnabled&&oM(r.host,ja.Invalid_import_specifier_0_has_no_possible_resolutions,t),IR(void 0);const c=ya(ma(n,"dummy"),null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),_=cR(c,r);if(!_)return r.traceEnabled&&oM(r.host,ja.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,c),IR(void 0);if(!_.contents.packageJsonContent.imports)return r.traceEnabled&&oM(r.host,ja.package_json_scope_0_has_no_imports_defined,_.packageDirectory),IR(void 0);return hR(e,r,i,o,t,_.contents.packageJsonContent.imports,_,!0)||(r.traceEnabled&&oM(r.host,ja.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,_.packageDirectory),IR(void 0))}(r,t,n,a,o,c)),!s&&4&e&&(s=function(e,t,n,r,i,o){var a,s;const c=cR(ya(ma(n,"dummy"),null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),r);if(!c||!c.contents.packageJsonContent.exports)return;if("string"!=typeof c.contents.packageJsonContent.name)return;const _=ua(t),l=ua(c.contents.packageJsonContent.name);if(!F(l,((e,t)=>_[t]===e)))return;const u=_.slice(l.length),d=S(u)?`.${zo}${u.join(zo)}`:".",p=-6&e;return mR(c,5&e,d,r,i,o)||mR(c,p,d,r,i,o)}(r,t,n,a,o,c)),s||(p&&oM(i,ja.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,lM(r)),s=bR(r,t,n,a,o,c)),s&&{value:s.value&&{resolved:s.value,isExternalLibraryImport:!0}}}}}function KM(e,t){const n=ma(e,t),r=ua(n),i=Be(r);return{path:"."===i||".."===i?Sa(va(n)):va(n),parts:r}}function WM(e,t,n,r,i){if(r.traceEnabled&&oM(r.host,ja.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,lM(e)),!ra(t)){if(!n){const e=sa(t);ox(e,r.host)||(r.traceEnabled&&oM(r.host,ja.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!0)}const o=YM(e,t,n,r);if(o){const e=i?$M(o.path):void 0;return sM(e?lR(e,!1,r):void 0,o)}}if(n||ox(t,r.host)||(r.traceEnabled&&oM(r.host,ja.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n=!0),!(32&r.features))return iR(e,t,n,r,i)}function HM(e){return rn(e,nM)}function $M(e){const t=va(e),n=t.lastIndexOf(nM);if(-1===n)return;const r=n+nM.length;let i=GM(t,r);return 64===t.charCodeAt(r)&&(i=GM(t,i)),t.slice(0,i)}function GM(e,t){const n=e.indexOf(zo,t+1);return-1===n?t:n}function XM(e,t,n,r){return cM(YM(e,t,n,r))}function YM(e,t,n,r){const i=ZM(e,t,n,r);if(i)return i;if(!(32&r.features)){const i=tR(t,e,"",n,r);if(i)return i}}function ZM(e,t,n,r){if(-1===ca(t).indexOf("."))return;let i=US(t);i===t&&(i=t.substring(0,t.lastIndexOf(".")));const o=t.substring(i.length);return r.traceEnabled&&oM(r.host,ja.File_name_0_has_a_1_extension_stripping_it,t,o),tR(i,e,o,n,r)}function eR(e,t,n,r){return 1&e&&na(t,Xd)||4&e&&na(t,Gd)?void 0!==nR(t,n,r)?{path:t,ext:Zb(t),resolvedUsingTsExtension:void 0}:void 0:r.isConfigLookup&&8===e&&ta(t,".json")?void 0!==nR(t,n,r)?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:ZM(e,t,n,r)}function tR(e,t,n,r,i){if(!r){const t=sa(e);t&&(r=!ox(t,i.host))}switch(n){case".mjs":case".mts":case".d.mts":return 1&t&&o(".mts",".mts"===n||".d.mts"===n)||4&t&&o(".d.mts",".mts"===n||".d.mts"===n)||2&t&&o(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return 1&t&&o(".cts",".cts"===n||".d.cts"===n)||4&t&&o(".d.cts",".cts"===n||".d.cts"===n)||2&t&&o(".cjs")||void 0;case".json":return 4&t&&o(".d.json.ts")||8&t&&o(".json")||void 0;case".tsx":case".jsx":return 1&t&&(o(".tsx",".tsx"===n)||o(".ts",".tsx"===n))||4&t&&o(".d.ts",".tsx"===n)||2&t&&(o(".jsx")||o(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return 1&t&&(o(".ts",".ts"===n||".d.ts"===n)||o(".tsx",".ts"===n||".d.ts"===n))||4&t&&o(".d.ts",".ts"===n||".d.ts"===n)||2&t&&(o(".js")||o(".jsx"))||i.isConfigLookup&&o(".json")||void 0;default:return 4&t&&!FI(e+n)&&o(`.d${n}.ts`)||void 0}function o(t,n){const o=nR(e+t,r,i);return void 0===o?void 0:{path:o,ext:t,resolvedUsingTsExtension:!i.candidateIsFromPackageJsonField&&n}}}function nR(e,t,n){var r,i;if(!(null==(r=n.compilerOptions.moduleSuffixes)?void 0:r.length))return rR(e,t,n);const o=null!=(i=ZS(e))?i:"",a=o?VS(e,o):e;return T(n.compilerOptions.moduleSuffixes,(e=>rR(a+e+o,t,n)))}function rR(e,t,n){if(!t){if(n.host.fileExists(e))return n.traceEnabled&&oM(n.host,ja.File_0_exists_use_it_as_a_name_resolution_result,e),e;n.traceEnabled&&oM(n.host,ja.File_0_does_not_exist,e)}n.failedLookupLocations.push(e)}function iR(e,t,n,r,i=!0){const o=i?lR(t,n,r):void 0;return sM(o,uR(e,t,n,r,o&&o.contents.packageJsonContent,o&&_R(o,r)))}function oR(e,t,n,r,i){if(!i&&void 0!==e.contents.resolvedEntrypoints)return e.contents.resolvedEntrypoints;let o;const a=5|(i?2:0),s=kM(t),c=sR(null==r?void 0:r.getPackageJsonInfoCache(),n,t);c.conditions=SM(t),c.requestContainingDirectory=e.packageDirectory;const _=uR(a,e.packageDirectory,!1,c,e.contents.packageJsonContent,_R(e,c));if(o=Se(o,null==_?void 0:_.path),8&s&&e.contents.packageJsonContent.exports){const n=fe([SM(t,!0),SM(t,!1)],be);for(const t of n){const n={...c,failedLookupLocations:[],conditions:t},r=aR(e,e.contents.packageJsonContent.exports,n,a);if(r)for(const e of r)o=De(o,e.path)}}return e.contents.resolvedEntrypoints=o||!1}function aR(e,t,n,r){let i;if(ht(t))for(const e of t)o(e);else if("object"==typeof t&&null!==t&&fR(t))for(const e in t)o(t[e]);else o(t);return i;function o(t){var a,s;if("string"==typeof t&&fn(t,"./")&&-1===t.indexOf("*")){const o=ua(t).slice(2);if(o.indexOf("..")>=0||o.indexOf(".")>=0||o.indexOf("node_modules")>=0)return!1;const c=ya(ma(e.packageDirectory,t),null==(s=(a=n.host).getCurrentDirectory)?void 0:s.call(a)),_=eR(r,c,!1,n);if(_)return i=De(i,_,((e,t)=>e.path===t.path)),!0}else if(Array.isArray(t)){for(const e of t)if(o(e))return!0}else if("object"==typeof t&&null!==t)return T($e(t),(e=>{if("default"===e||R(n.conditions,e)||vR(n.conditions,e))return o(t[e]),!0}))}}function sR(e,t,n){return{host:t,compilerOptions:n,traceEnabled:aM(n,t),failedLookupLocations:_,affectingLocations:_,packageJsonInfoCache:e,features:0,conditions:r,requestContainingDirectory:void 0,reportDiagnostic:St,isConfigLookup:!1,candidateIsFromPackageJsonField:!1}}function cR(e,t){const n=ua(e);for(n.pop();n.length>0;){const e=lR(da(n),!1,t);if(e)return e;n.pop()}}function _R(t,n){return void 0===t.contents.versionPaths&&(t.contents.versionPaths=function(t,n){const r=function(e,t){const n=gM(e,"typesVersions","object",t);if(void 0!==n)return t.traceEnabled&&oM(t.host,ja.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),n}(t,n);if(void 0===r)return;if(n.traceEnabled)for(const e in r)We(r,e)&&!Un.tryParse(e)&&oM(n.host,ja.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,e);const i=yM(r);if(!i)return void(n.traceEnabled&&oM(n.host,ja.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e));const{version:o,paths:a}=i;if("object"==typeof a)return i;n.traceEnabled&&oM(n.host,ja.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,"object",typeof a)}(t.contents.packageJsonContent,n)||!1),t.contents.versionPaths||void 0}function lR(e,t,n){var r,i,o;const{host:a,traceEnabled:s}=n,c=ma(e,"package.json");if(t)return void n.failedLookupLocations.push(c);const _=null==(r=n.packageJsonInfoCache)?void 0:r.getPackageJsonInfo(c);if(void 0!==_)return"boolean"!=typeof _?(s&&oM(a,ja.File_0_exists_according_to_earlier_cached_lookups,c),n.affectingLocations.push(c),_.packageDirectory===e?_:{packageDirectory:e,contents:_.contents}):(_&&s&&oM(a,ja.File_0_does_not_exist_according_to_earlier_cached_lookups,c),void n.failedLookupLocations.push(c));const l=ox(e,a);if(l&&a.fileExists(c)){const t=ix(c,a);s&&oM(a,ja.Found_package_json_at_0,c);const r={packageDirectory:e,contents:{packageJsonContent:t,versionPaths:void 0,resolvedEntrypoints:void 0}};return null==(i=n.packageJsonInfoCache)||i.setPackageJsonInfo(c,r),n.affectingLocations.push(c),r}l&&s&&oM(a,ja.File_0_does_not_exist,c),null==(o=n.packageJsonInfoCache)||o.setPackageJsonInfo(c,l),n.failedLookupLocations.push(c)}function uR(e,n,r,i,o,a){let s;o&&(s=i.isConfigLookup?function(e,t,n){return hM(e,"tsconfig",t,n)}(o,n,i):4&e&&function(e,t,n){return hM(e,"typings",t,n)||hM(e,"types",t,n)}(o,n,i)||7&e&&function(e,t,n){return hM(e,"main",t,n)}(o,n,i)||void 0);const c=(e,t,n,r)=>{const i=nR(t,n,r);if(i){const t=function(e,t,n){const r=ZS(t);return void 0!==r&&dR(e,r)?{path:t,ext:r,resolvedUsingTsExtension:void 0}:void 0}(e,i);if(t)return cM(t);r.traceEnabled&&oM(r.host,ja.File_0_has_an_unsupported_extension_so_skipping_it,i)}const a=4===e?5:e,s=r.features,c=r.candidateIsFromPackageJsonField;r.candidateIsFromPackageJsonField=!0,"module"!==(null==o?void 0:o.type)&&(r.features&=-33);const _=WM(a,t,n,r,!1);return r.features=s,r.candidateIsFromPackageJsonField=c,_},_=s?!ox(sa(s),i.host):void 0,l=r||!ox(n,i.host),u=ma(n,i.isConfigLookup?"tsconfig":"index");if(a&&(!s||Na(n,s))){const r=Ia(n,s||u,!1);i.traceEnabled&&oM(i.host,ja.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,a.version,t,r);const o=TR(e,r,n,a.paths,void 0,c,_||l,i);if(o)return _M(o.value)}return s&&_M(c(e,s,_,i))||(32&i.features?void 0:YM(e,u,l,i))}function dR(e,t){return 2&e&&(".js"===t||".jsx"===t||".mjs"===t||".cjs"===t)||1&e&&(".ts"===t||".tsx"===t||".mts"===t||".cts"===t)||4&e&&(".d.ts"===t||".d.mts"===t||".d.cts"===t)||8&e&&".json"===t||!1}function pR(e){let t=e.indexOf(zo);return"@"===e[0]&&(t=e.indexOf(zo,t+1)),-1===t?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function fR(e){return F($e(e),(e=>fn(e,".")))}function mR(e,t,n,r,i,o){if(e.contents.packageJsonContent.exports){if("."===n){let a;if("string"==typeof e.contents.packageJsonContent.exports||Array.isArray(e.contents.packageJsonContent.exports)||"object"==typeof e.contents.packageJsonContent.exports&&!_e($e(e.contents.packageJsonContent.exports),(e=>fn(e,".")))?a=e.contents.packageJsonContent.exports:We(e.contents.packageJsonContent.exports,".")&&(a=e.contents.packageJsonContent.exports["."]),a)return yR(t,r,i,o,n,e,!1)(a,"",!1,".")}else if(fR(e.contents.packageJsonContent.exports)){if("object"!=typeof e.contents.packageJsonContent.exports)return r.traceEnabled&&oM(r.host,ja.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),IR(void 0);const a=hR(t,r,i,o,n,e.contents.packageJsonContent.exports,e,!1);if(a)return a}return r.traceEnabled&&oM(r.host,ja.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),IR(void 0)}}function gR(e,t){const n=e.indexOf("*"),r=t.indexOf("*"),i=-1===n?e.length:n+1,o=-1===r?t.length:r+1;return i>o?-1:o>i||-1===n?1:-1===r||e.length>t.length?-1:t.length>e.length?1:0}function hR(e,t,n,r,i,o,a,s){const c=yR(e,t,n,r,i,a,s);if(!en(i,zo)&&-1===i.indexOf("*")&&We(o,i))return c(o[i],"",!1,i);const _=Ne(z($e(o),(e=>-1!==e.indexOf("*")||en(e,"/"))),gR);for(const e of _){if(16&t.features&&l(e,i)){const t=o[e],n=e.indexOf("*");return c(t,i.substring(e.substring(0,n).length,i.length-(e.length-1-n)),!0,e)}if(en(e,"*")&&fn(i,e.substring(0,e.length-1)))return c(o[e],i.substring(e.length-1),!0,e);if(fn(i,e))return c(o[e],i.substring(e.length),!1,e)}function l(e,t){if(en(e,"*"))return!1;const n=e.indexOf("*");return-1!==n&&fn(t,e.substring(0,n))&&en(t,e.substring(n+1))}}function yR(e,t,n,r,i,o,a){return function s(c,_,l,u){if("string"==typeof c){if(!l&&_.length>0&&!en(c,"/"))return t.traceEnabled&&oM(t.host,ja.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),IR(void 0);if(!fn(c,"./")){if(a&&!fn(c,"../")&&!fn(c,"/")&&!$o(c)){const i=l?c.replace(/\*/g,_):c+_;OR(t,ja.Using_0_subpath_1_with_target_2,"imports",u,i),OR(t,ja.Resolving_module_0_from_1,i,o.packageDirectory+"/");const a=QM(t.features,i,o.packageDirectory+"/",t.compilerOptions,t.host,n,e,!1,r);return IR(a.resolvedModule?{path:a.resolvedModule.resolvedFileName,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,originalPath:a.resolvedModule.originalPath,resolvedUsingTsExtension:a.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&oM(t.host,ja.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),IR(void 0)}const s=(Yo(c)?ua(c).slice(1):ua(c)).slice(1);if(s.indexOf("..")>=0||s.indexOf(".")>=0||s.indexOf("node_modules")>=0)return t.traceEnabled&&oM(t.host,ja.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),IR(void 0);const m=ma(o.packageDirectory,c),g=ua(_);if(g.indexOf("..")>=0||g.indexOf(".")>=0||g.indexOf("node_modules")>=0)return t.traceEnabled&&oM(t.host,ja.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),IR(void 0);t.traceEnabled&&oM(t.host,ja.Using_0_subpath_1_with_target_2,a?"imports":"exports",u,l?c.replace(/\*/g,_):c+_);const h=d(l?m.replace(/\*/g,_):m+_),y=function(n,r,i,a){var s,c,_,l;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&-1===n.indexOf("/node_modules/")&&(!t.compilerOptions.configFile||Na(o.packageDirectory,d(t.compilerOptions.configFile.fileName),!f()))){const p=gv({useCaseSensitiveFileNames:f}),m=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const e=d(sU(t.compilerOptions,(()=>[]),(null==(c=(s=t.host).getCurrentDirectory)?void 0:c.call(s))||"",p));m.push(e)}else if(t.requestContainingDirectory){const e=d(ma(t.requestContainingDirectory,"index.ts")),n=d(sU(t.compilerOptions,(()=>[e,d(i)]),(null==(l=(_=t.host).getCurrentDirectory)?void 0:l.call(_))||"",p));m.push(n);let r=Sa(n);for(;r&&r.length>1;){const e=ua(r);e.pop();const t=da(e);m.unshift(t),r=Sa(t)}}m.length>1&&t.reportDiagnostic(Tk(a?ja.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:ja.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,""===r?".":r,i));for(const r of m){const i=u(r);for(const a of i)if(Na(a,n,!f())){const i=ma(r,n.slice(a.length+1)),s=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const n of s)if(ta(i,n)){const r=Cv(i);for(const a of r){if(!dR(e,a))continue;const r=Ca(i,a,n,!f());if(t.host.fileExists(r))return IR(sM(o,eR(e,r,!1,t)))}}}}}return;function u(e){var n,r;const i=t.compilerOptions.configFile?(null==(r=(n=t.host).getCurrentDirectory)?void 0:r.call(n))||"":e,o=[];return t.compilerOptions.declarationDir&&o.push(d(p(i,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&o.push(d(p(i,t.compilerOptions.outDir))),o}}(h,_,ma(o.packageDirectory,"package.json"),a);return y||IR(sM(o,eR(e,h,!1,t)))}if("object"==typeof c&&null!==c){if(!Array.isArray(c)){OR(t,ja.Entering_conditional_exports);for(const e of $e(c))if("default"===e||t.conditions.indexOf(e)>=0||vR(t.conditions,e)){OR(t,ja.Matched_0_condition_1,a?"imports":"exports",e);const n=s(c[e],_,l,u);if(n)return OR(t,ja.Resolved_under_condition_0,e),OR(t,ja.Exiting_conditional_exports),n;OR(t,ja.Failed_to_resolve_under_condition_0,e)}else OR(t,ja.Saw_non_matching_condition_0,e);return void OR(t,ja.Exiting_conditional_exports)}if(!S(c))return t.traceEnabled&&oM(t.host,ja.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),IR(void 0);for(const e of c){const t=s(e,_,l,u);if(t)return t}}else if(null===c)return t.traceEnabled&&oM(t.host,ja.package_json_scope_0_explicitly_maps_specifier_1_to_null,o.packageDirectory,i),IR(void 0);return t.traceEnabled&&oM(t.host,ja.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),IR(void 0);function d(e){var n,r;return void 0===e?e:ya(e,null==(r=(n=t.host).getCurrentDirectory)?void 0:r.call(n))}function p(e,t){return Sa(ma(e,t))}function f(){return!t.host.useCaseSensitiveFileNames||("boolean"==typeof t.host.useCaseSensitiveFileNames?t.host.useCaseSensitiveFileNames:t.host.useCaseSensitiveFileNames())}}}function vR(e,n){if(-1===e.indexOf("types"))return!1;if(!fn(n,"types@"))return!1;const r=Un.tryParse(n.substring(6));return!!r&&r.test(t)}function bR(e,t,n,r,i,o){return xR(e,t,n,r,!1,i,o)}function xR(e,t,n,r,i,o,a){const s=0===r.features?void 0:32&r.features?99:1,c=5&e,_=-6&e;if(c){const e=l(c);if(e)return e}if(_&&!i)return l(_);function l(e){return Ra(pa(n),(n=>{if("node_modules"!==ca(n)){return ER(o,t,s,n,a,r)||IR(kR(e,t,n,r,i,o,a))}}))}}function kR(e,t,n,r,i,o,a){const s=ma(n,"node_modules"),c=ox(s,r.host);if(!c&&r.traceEnabled&&oM(r.host,ja.Directory_0_does_not_exist_skipping_all_lookups_in_it,s),!i){const n=SR(e,t,s,c,r,o,a);if(n)return n}if(4&e){const e=ma(s,"@types");let n=c;return c&&!ox(e,r.host)&&(r.traceEnabled&&oM(r.host,ja.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!1),SR(4,function(e,t){const n=AR(e);return t.traceEnabled&&n!==e&&oM(t.host,ja.Scoped_package_detected_looking_in_0,n),n}(t,r),e,n,r,o,a)}}function SR(e,n,i,o,a,s,c){var _,l,u;const d=va(ma(i,n)),{packageName:p,rest:f}=pR(n),m=ma(i,p);let g,h=lR(d,!o,a);if(""!==f&&h&&(!(8&a.features)||!We(null!=(l=null==(_=g=lR(m,!o,a))?void 0:_.contents.packageJsonContent)?l:r,"exports"))){const t=YM(e,d,!o,a);if(t)return cM(t);const n=uR(e,d,!o,a,h.contents.packageJsonContent,_R(h,a));return sM(h,n)}const y=(e,t,n,r)=>{let i=YM(e,t,n,r)||uR(e,t,n,r,h&&h.contents.packageJsonContent,h&&_R(h,r));return!i&&h&&(void 0===h.contents.packageJsonContent.exports||null===h.contents.packageJsonContent.exports)&&32&r.features&&(i=YM(e,ma(t,"index.js"),n,r)),sM(h,i)};if(""!==f&&(h=null!=g?g:lR(m,!o,a)),h&&h.contents.packageJsonContent.exports&&8&a.features)return null==(u=mR(h,e,ma(".",f),a,s,c))?void 0:u.value;const v=""!==f&&h?_R(h,a):void 0;if(v){a.traceEnabled&&oM(a.host,ja.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,v.version,t,f);const n=o&&ox(m,a.host),r=TR(e,f,m,v.paths,void 0,y,!n,a);if(r)return r.value}return y(e,d,!o,a)}function TR(e,t,n,r,i,o,a,s){i||(i=WS(r));const c=tT(i,t);if(c){const i=vt(c)?void 0:dn(c,t),_=vt(c)?c:un(c);return s.traceEnabled&&oM(s.host,ja.Module_name_0_matched_pattern_1,t,_),{value:T(r[_],(t=>{const r=i?t.replace("*",i):t,c=va(ma(n,r));s.traceEnabled&&oM(s.host,ja.Trying_substitution_0_candidate_module_location_Colon_1,t,r);const _=ZS(t);if(void 0!==_){const e=nR(c,a,s);if(void 0!==e)return cM({path:e,ext:_,resolvedUsingTsExtension:void 0})}return o(e,c,a||!ox(sa(c),s.host),s)}))}}}function CR(e){return"@types/"+AR(e)}function AR(e){if(fn(e,"@")){const t=e.replace(zo,rM);if(t!==e)return t.slice(1)}return e}function wR(e){const t=mn(e,"@types/");return t!==e?DR(t):e}function DR(e){return rn(e,rM)?"@"+e.replace(rM,zo):e}function ER(e,t,n,r,i,o){const a=e&&e.getFromNonRelativeNameCache(t,n,r,i);if(a)return o.traceEnabled&&oM(o.host,ja.Resolution_for_module_0_was_found_in_cache_from_location_1,t,r),o.resultFromCache=a,{value:a.resolvedModule&&{path:a.resolvedModule.resolvedFileName,originalPath:a.resolvedModule.originalPath||!0,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,resolvedUsingTsExtension:a.resolvedModule.resolvedUsingTsExtension}}}function NR(e,t,n,r,i,o){const a=aM(n,r),s=[],c=[],_=sa(t),l=[],u={compilerOptions:n,host:r,traceEnabled:a,failedLookupLocations:s,affectingLocations:c,packageJsonInfoCache:i,features:0,conditions:[],requestContainingDirectory:_,reportDiagnostic:e=>{l.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1},d=p(5)||p(2|(n.resolveJsonModule?8:0));return dM(e,d&&d.value,(null==d?void 0:d.value)&&HM(d.value.path),s,c,l,u);function p(t){const n=JM(t,e,_,XM,u);if(n)return{value:n};if(Xs(e)){const n=va(ma(_,e));return IR(XM(t,n,!1,u))}{const n=Ra(_,(n=>{const r=ER(i,e,void 0,n,o,u);if(r)return r;const a=va(ma(n,e));return IR(XM(t,a,!1,u))}));if(n)return n;if(5&t)return function(e,t,n){return xR(4,e,t,n,!0,void 0,void 0)}(e,_,u)}}}function FR(e,t){return!!e.allowImportingTsExtensions||t&&FI(t)}function PR(e,t,n,r,i,o){const a=aM(n,r);a&&oM(r,ja.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,i);const s=[],c=[],_=[],l={compilerOptions:n,host:r,traceEnabled:a,failedLookupLocations:s,affectingLocations:c,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:e=>{_.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1};return pM(kR(4,e,i,l,!1,void 0,void 0),!0,s,c,_,l.resultFromCache)}function IR(e){return void 0!==e?{value:e}:void 0}function OR(e,t,...n){e.traceEnabled&&oM(e.host,t,...n)}var LR,MR,RR=b({"src/compiler/moduleNameResolver.ts"(){XK(),eM=ma("node_modules","@types"),tM=(e=>(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(tM||{}),nM="/node_modules/",rM="__"}});function BR(e,t){return e.body&&!e.body.parent&&(kT(e.body,e),TT(e.body,!1)),e.body?jR(e.body,t):1}function jR(e,t=new Map){const n=qB(e);if(t.has(n))return t.get(n)||0;t.set(n,void 0);const r=function(e,t){switch(e.kind){case 261:case 262:return 0;case 263:if(nm(e))return 2;break;case 269:case 268:if(!cb(e,1))return 0;break;case 275:const n=e;if(!n.moduleSpecifier&&n.exportClause&&276===n.exportClause.kind){let e=0;for(const r of n.exportClause.elements){const n=JR(r,t);if(n>e&&(e=n),1===e)return e}return e}break;case 265:{let n=0;return bI(e,(e=>{const r=jR(e,t);switch(r){case 0:return;case 2:return void(n=2);case 1:return n=1,!0;default:In.assertNever(r)}})),n}case 264:return BR(e,t);case 79:if(2048&e.flags)return 0}return 1}(e,t);return t.set(n,r),r}function JR(e,t){const n=e.propertyName||e.name;let r=e.parent;for(;r;){if(cE(r)||LE(r)||TN(r)){const e=r.statements;let i;for(const o of e)if(jc(o,n)){o.parent||(kT(o,r),TT(o,!1));const e=jR(o,t);if((void 0===i||e>i)&&(i=e),1===i)return i}if(void 0!==i)return i}r=r.parent}return 1}function zR(e){return In.attachFlowNodeDebugInfo(e),e}function UR(e,t){Er("beforeBind"),gr.logStartBindFile(""+e.fileName),MR(e,t),gr.logStopBindFile(),Er("afterBind"),Nr("Bind","beforeBind","afterBind")}function qR(){var e,t,n,r,i,o,a,s,c,_,l,u,d,p,f,m,g,h,y,v,b,x,k,C,A=!1,w=0,D={flags:1},E={flags:1},N=function(){return yP((function(e,t){if(t){t.stackIndex++,kT(e,r);const n=x;Je(e);const i=r;r=e,t.skip=!1,t.inStrictModeStack[t.stackIndex]=n,t.parentStack[t.stackIndex]=i}else t={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};const n=e.operatorToken.kind;if(Pb(n)||Nb(n)){if(ae(e)){const t=$();ye(e,t,t),l=ie(t)}else ye(e,f,m);t.skip=!0}return t}),(function(t,n,r){if(!n.skip){const n=e(t);return 27===r.operatorToken.kind&&me(t),n}}),(function(e,t,n){t.skip||Me(e)}),(function(t,n,r){if(!n.skip){const n=e(t);return 27===r.operatorToken.kind&&me(t),n}}),(function(e,t){if(!t.skip){const t=e.operatorToken.kind;Ob(t)&&!Jh(e)&&(he(e.left),63===t&&209===e.left.kind)&&H(e.left.expression)&&(l=ne(256,l,e))}const n=t.inStrictModeStack[t.stackIndex],i=t.parentStack[t.stackIndex];void 0!==n&&(x=n),void 0!==i&&(r=i),t.skip=!1,t.stackIndex--}),void 0);function e(e){if(e&&QD(e)&&!jb(e))return e;Me(e)}}();return function(h,S){var T,N;e=h,n=Rk(t=S),x=function(e,t){return!(!iS(t,"alwaysStrict")||e.isDeclarationFile)||!!e.externalModuleIndicator}(e,S),C=new Set,w=0,k=Fd.getSymbolConstructor(),In.attachFlowNodeDebugInfo(D),In.attachFlowNodeDebugInfo(E),e.locals||(null==(T=Ur)||T.push(Ur.Phase.Bind,"bindSourceFile",{path:e.path},!0),Me(e),null==(N=Ur)||N.pop(),e.symbolCount=w,e.classifiableNames=C,function(){if(!c)return;const t=i,n=s,o=a,_=r,u=l;for(const t of c){const n=t.parent.parent;i=Ec(n.parent,(e=>!!(1&KR(e))))||e,a=If(n)||e,l=zR({flags:2}),r=t,Me(t.typeExpression);const o=qc(t);if((nF(t)||!t.fullName)&&o&&Vb(o.parent)){const n=Ye(o.parent);if(n){Ge(e.symbol,o.parent,n,!!Ec(o,(e=>ND(e)&&"prototype"===e.name.escapedText)),!1);const r=i;switch(ih(o.parent)){case 1:case 2:i=em(e)?e:void 0;break;case 4:i=o.parent.expression;break;case 3:i=o.parent.expression.name;break;case 5:i=QR(e,o.parent.expression)?e:ND(o.parent.expression)?o.parent.expression.name:o.parent.expression;break;case 0:return In.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}i&&j(t,524288,788968),i=r}}else nF(t)||!t.fullName||79===t.fullName.kind?(r=t.parent,Fe(t,524288,788968)):Me(t.fullName)}i=t,s=n,a=o,r=_,l=u}()),e=void 0,t=void 0,n=void 0,r=void 0,i=void 0,o=void 0,a=void 0,s=void 0,c=void 0,_=!1,l=void 0,u=void 0,d=void 0,p=void 0,f=void 0,m=void 0,g=void 0,y=void 0,v=!1,A=!1,b=0};function P(t,n,r,i,o){return qf(wp(t)||e,t,n,r,i,o)}function I(e,t){return w++,new k(e,t)}function O(e,t,n){e.flags|=n,t.symbol=e,e.declarations=De(e.declarations,t),1955&n&&!e.exports&&(e.exports=ip()),6240&n&&!e.members&&(e.members=ip()),e.constEnumOnlyModule&&304&e.flags&&(e.constEnumOnlyModule=!1),111551&n&&ch(e,t)}function L(e){if(274===e.kind)return e.isExportEquals?"export=":"default";const t=qc(e);if(t){if(df(e)){const n=Ny(t);return yf(e)?"__global":`"${n}"`}if(164===t.kind){const e=t.expression;if(Ty(e))return Pc(e.text);if(Cy(e))return _s(e.operator)+e.operand.text;In.fail("Only computed properties with literal names have declaration names")}if(Cw(t)){const n=qm(e);if(!n)return;return Iy(n.symbol,t.escapedText)}return Ey(t)?Fy(t):void 0}switch(e.kind){case 173:return"__constructor";case 181:case 176:case 326:return"__call";case 182:case 177:return"__new";case 178:return"__index";case 275:return"__export";case 308:return"export=";case 223:if(2===Hg(e))return"export=";In.fail("Unknown binary declaration kind");break;case 320:return yh(e)?"__new":"__call";case 166:return In.assert(320===e.parent.kind,"Impossible parameter parent kind",(()=>`parent is: ${In.formatSyntaxKind(e.parent.kind)}, expected JSDocFunctionType`)),"arg"+e.parent.parameters.indexOf(e)}}function M(e){return zc(e)?Lf(e.name):Ic(In.checkDefined(L(e)))}function B(t,n,r,i,o,a,s){In.assert(s||!Ay(r));const c=cb(r,1024)||XE(r)&&"default"===r.name.escapedText,_=s?"__computed":c&&n?"default":L(r);let l;if(void 0===_)l=I(0,"__missing");else if(l=t.get(_),2885600&i&&C.add(_),l){if(a&&!l.isReplaceableByMethod)return l;if(l.flags&o)if(l.isReplaceableByMethod)t.set(_,l=I(0,_));else if(!(3&i&&67108864&l.flags)){zc(r)&&kT(r.name,r);let t=2&l.flags?ja.Cannot_redeclare_block_scoped_variable_0:ja.Duplicate_identifier_0,n=!0;(384&l.flags||384&i)&&(t=ja.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,n=!1);let o=!1;S(l.declarations)&&(c||l.declarations&&l.declarations.length&&274===r.kind&&!r.isExportEquals)&&(t=ja.A_module_cannot_have_multiple_default_exports,n=!1,o=!0);const a=[];PE(r)&&Lp(r.type)&&cb(r,1)&&2887656&l.flags&&a.push(P(r,ja.Did_you_mean_0,`export type { ${Ic(r.name.escapedText)} }`));const s=qc(r)||r;T(l.declarations,((r,i)=>{const c=qc(r)||r,_=P(c,t,n?M(r):void 0);e.bindDiagnostics.push(o?rT(_,P(s,0===i?ja.Another_export_default_is_here:ja.and_here)):_),o&&a.push(P(c,ja.The_first_export_default_is_here))}));const u=P(s,t,n?M(r):void 0);e.bindDiagnostics.push(rT(u,...a)),l=I(0,_)}}else t.set(_,l=I(0,_)),a&&(l.isReplaceableByMethod=!0);return O(l,r,i),l.parent?In.assert(l.parent===n,"Existing symbol parent should match new one"):l.parent=n,l}function j(e,t,n){const r=!!(1&Tc(e))||function(e){if(e.parent&&OE(e)&&(e=e.parent),!vh(e))return!1;if(!nF(e)&&e.fullName)return!0;const t=qc(e);return!(!t||!(Vb(t.parent)&&Ye(t.parent)||Nu(t.parent)&&1&Tc(t.parent)))}(e);if(2097152&t)return 278===e.kind||268===e.kind&&r?B(i.symbol.exports,i.symbol,e,t,n):(In.assertNode(i,wu),B(i.locals,void 0,e,t,n));if(vh(e)&&In.assert(Sg(e)),!df(e)&&(r||64&i.flags)){if(!wu(i)||!i.locals||cb(e,1024)&&!L(e))return B(i.symbol.exports,i.symbol,e,t,n);const r=111551&t?1048576:0,o=B(i.locals,void 0,e,r,n);return o.exportSymbol=B(i.symbol.exports,i.symbol,e,t,n),e.localSymbol=o,o}return In.assertNode(i,wu),B(i.locals,void 0,e,t,n)}function J(e){z(e,(e=>259===e.kind?Me(e):void 0)),z(e,(e=>259!==e.kind?Me(e):void 0))}function z(e,t=Me){void 0!==e&&T(e,t)}function U(e){bI(e,Me,z)}function q(e){const n=A;if(A=!1,function(e){if(!(1&l.flags))return!1;if(l===D){const n=Pu(e)&&239!==e.kind||260===e.kind||264===e.kind&&function(e){const n=BR(e);return 1===n||2===n&&nS(t)}(e);if(n&&(l=E,!t.allowUnreachableCode)){const n=Qk(t)&&!(16777216&e.flags)&&(!_E(e)||!!(3&Ac(e.declarationList))||e.declarationList.declarations.some((e=>!!e.initializer)));!function(e,t){if(Iu(e)&&VR(e)&&cE(e.parent)){const{statements:n}=e.parent,r=nT(n,e);le(r,VR,((e,n)=>t(r[e],r[n-1])))}else t(e,e)}(e,((e,t)=>Le(n,e,t,ja.Unreachable_code_detected)))}}return!0}(e))return U(e),Re(e),void(A=n);switch(e.kind>=240&&e.kind<=256&&!t.allowUnreachableCode&&(e.flowNode=l),e.kind){case 244:!function(e){const t=pe(e,G()),n=$(),r=$();Z(t,l),l=t,ce(e.expression,n,r),l=ie(n),de(e.statement,r,t),Z(t,l),l=ie(r)}(e);break;case 243:!function(e){const t=G(),n=pe(e,$()),r=$();Z(t,l),l=t,de(e.statement,r,n),Z(n,l),l=ie(n),ce(e.expression,t,r),l=ie(r)}(e);break;case 245:!function(e){const t=pe(e,G()),n=$(),r=$();Me(e.initializer),Z(t,l),l=t,ce(e.condition,n,r),l=ie(n),de(e.statement,r,t),Me(e.incrementor),Z(t,l),l=ie(r)}(e);break;case 246:case 247:!function(e){const t=pe(e,G()),n=$();Me(e.expression),Z(t,l),l=t,247===e.kind&&Me(e.awaitModifier),Z(n,l),Me(e.initializer),258!==e.initializer.kind&&he(e.initializer),de(e.statement,n,t),Z(t,l),l=ie(n)}(e);break;case 242:!function(e){const t=$(),n=$(),r=$();ce(e.expression,t,n),l=ie(t),Me(e.thenStatement),Z(r,l),l=ie(n),Me(e.elseStatement),Z(r,l),l=ie(r)}(e);break;case 250:case 254:!function(e){Me(e.expression),250===e.kind&&(v=!0,p&&Z(p,l)),l=D}(e);break;case 249:case 248:!function(e){if(Me(e.label),e.label){const t=function(e){for(let t=y;t;t=t.next)if(t.name===e)return t}(e.label.escapedText);t&&(t.referenced=!0,fe(e,t.breakTarget,t.continueTarget))}else fe(e,u,d)}(e);break;case 255:!function(e){const t=p,n=g,r=$(),i=$();let o=$();if(e.finallyBlock&&(p=i),Z(o,l),g=o,Me(e.tryBlock),Z(r,l),e.catchClause&&(l=ie(o),o=$(),Z(o,l),g=o,Me(e.catchClause),Z(r,l)),p=t,g=n,e.finallyBlock){const t=$();t.antecedents=ue(ue(r.antecedents,o.antecedents),i.antecedents),l=t,Me(e.finallyBlock),1&l.flags?l=D:(p&&i.antecedents&&Z(p,X(t,i.antecedents,l)),g&&o.antecedents&&Z(g,X(t,o.antecedents,l)),l=r.antecedents?X(t,r.antecedents,l):D)}else l=ie(r)}(e);break;case 252:!function(e){const t=$();Me(e.expression);const n=u,r=h;u=t,h=l,Me(e.caseBlock),Z(t,l);const i=T(e.caseBlock.clauses,(e=>293===e.kind));e.possiblyExhaustive=!i&&!t.antecedents,i||Z(t,te(h,e,0,0)),u=n,h=r,l=ie(t)}(e);break;case 266:!function(e){const n=e.clauses,r=V(e.parent.expression);let i=D;for(let o=0;o$E(e)||HE(e)))}(e)?e.flags|=64:e.flags&=-65}function Ee(e){const t=BR(e),n=0!==t;return Ae(e,n?512:1024,n?110735:0),t}function Ne(e,t,n){const r=I(t,n);return 106508&t&&(r.parent=i.symbol),O(r,e,t),r}function Fe(e,t,n){switch(a.kind){case 264:j(e,t,n);break;case 308:if(em(i)){j(e,t,n);break}default:In.assertNode(a,wu),a.locals||(a.locals=ip(),Ce(a)),B(a.locals,void 0,e,t,n)}}function Pe(t,n){if(n&&79===n.kind){const i=n;if(Tw(r=i)&&("eval"===r.escapedText||"arguments"===r.escapedText)){const r=Zf(e,n);e.bindDiagnostics.push(kk(e,r.start,r.length,function(t){return qm(t)?ja.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?ja.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:ja.Invalid_use_of_0_in_strict_mode}(t),Oc(i)))}}var r}function Ie(e){x&&Pe(e,e.name)}function Oe(t,n,r,i,o){const a=Xf(e,t.pos);e.bindDiagnostics.push(kk(e,a.start,a.length,n,r,i,o))}function Le(t,n,r,i){!function(t,n,r){const i=kk(e,n.pos,n.end-n.pos,r);t?e.bindDiagnostics.push(i):e.bindSuggestionDiagnostics=Se(e.bindSuggestionDiagnostics,{...i,category:2})}(t,{pos:$p(n,e),end:r.end},i)}function Me(t){if(!t)return;kT(t,r),Ur&&(t.tracingPath=e.path);const n=x;if(Je(t),t.kind>162){const e=r;r=t;const n=KR(t);0===n?q(t):function(e,t){const n=i,r=o,s=a;if(1&t?(216!==e.kind&&(o=i),i=a=e,32&t&&(i.locals=ip(),Ce(i))):2&t&&(a=e,32&t&&(a.locals=void 0)),4&t){const n=l,r=u,i=d,o=p,a=g,s=y,c=v,_=16&t&&!cb(e,512)&&!e.asteriskToken&&!!Xm(e)||172===e.kind;_||(l=zR({flags:2}),144&t&&(l.node=e)),p=_||173===e.kind||Sg(e)&&(259===e.kind||215===e.kind)?$():void 0,g=void 0,u=void 0,d=void 0,y=void 0,v=!1,q(e),e.flags&=-2817,!(1&l.flags)&&8&t&&Mp(e.body)&&(e.flags|=256,v&&(e.flags|=512),e.endFlowNode=l),308===e.kind&&(e.flags|=b,e.endFlowNode=l),p&&(Z(p,l),l=ie(p),(173===e.kind||172===e.kind||Sg(e)&&(259===e.kind||215===e.kind))&&(e.returnFlowNode=l)),_||(l=n),u=r,d=i,p=o,g=a,y=s,v=c}else 64&t?(_=!1,q(e),In.assertNotNode(e,Tw),e.flags=_?128|e.flags:-129&e.flags):q(e);i=n,o=r,a=s}(t,n),r=e}else{const e=r;1===t.kind&&(r=t),Re(t),r=e}x=n}function Re(e){if(Wu(e))if(Sg(e))for(const t of e.jsDoc)Me(t);else for(const t of e.jsDoc)kT(t,e),TT(t,!1)}function Be(e){if(!x)for(const t of e){if(!lm(t))return;if(je(t))return void(x=!0)}}function je(t){const n=Xp(e,t.expression);return'"use strict"'===n||"'use strict'"===n}function Je(o){switch(o.kind){case 79:if(2048&o.flags){let e=o.parent;for(;e&&!vh(e);)e=e.parent;Fe(e,524288,788968);break}case 108:return l&&(_u(o)||300===r.kind)&&(o.flowNode=l),function(t){if(!(e.parseDiagnostics.length||16777216&t.flags||8388608&t.flags||ey(t))){const n=Lc(t);if(void 0===n)return;x&&n>=117&&n<=125?e.bindDiagnostics.push(P(t,function(t){return qm(t)?ja.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?ja.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:ja.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(t),Lf(t))):133===n?wI(e)&&Hm(t)?e.bindDiagnostics.push(P(t,ja.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Lf(t))):32768&t.flags&&e.bindDiagnostics.push(P(t,ja.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Lf(t))):125===n&&8192&t.flags&&e.bindDiagnostics.push(P(t,ja.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Lf(t)))}}(o);case 163:l&&mg(o)&&(o.flowNode=l);break;case 233:case 106:o.flowNode=l;break;case 80:return function(t){"#constructor"===t.escapedText&&(e.parseDiagnostics.length||e.bindDiagnostics.push(P(t,ja.constructor_is_a_reserved_word,Lf(t))))}(o);case 208:case 209:const s=o;l&&Q(s)&&(s.flowNode=l),sh(s)&&function(e){108===e.expression.kind?Qe(e):Yg(e)&&308===e.parent.parent.kind&&(Kb(e.expression)?He(e,e.parent):$e(e))}(s),Sg(s)&&e.commonJsModuleIndicator&&Wg(s)&&!WR(a,"module")&&B(e.locals,void 0,s.expression,134217729,111550);break;case 223:switch(Hg(o)){case 1:qe(o);break;case 2:!function(t){if(!Ue(t))return;const n=Vg(t.right);if(Gb(n)||i===e&&QR(e,n))return;if(ED(n)&&F(n.properties,bN))return void T(n.properties,Ve);const r=iy(t)?2097152:1049092;ch(B(e.symbol.exports,e.symbol,t,67108864|r,0),t)}(o);break;case 3:He(o.left,o);break;case 6:!function(e){kT(e.left,e),kT(e.right,e),Ze(e.left.expression,e.left,!1,!0)}(o);break;case 4:Qe(o);break;case 5:const t=o.left.expression;if(Sg(o)&&Tw(t)){const e=WR(a,t.escapedText);if(tg(null==e?void 0:e.valueDeclaration)){Qe(o);break}}!function(t){var n;const r=et(t.left.expression,i)||et(t.left.expression,a);if(!Sg(t)&&!_h(r))return;const o=nk(t.left);Tw(o)&&2097152&(null==(n=WR(i,o.escapedText))?void 0:n.flags)||(kT(t.left,t),kT(t.right,t),Tw(t.left.expression)&&i===e&&QR(e,t.left.expression)?qe(t):Ay(t)?(Ne(t,67108868,"__computed"),We(t,Ge(r,t.left.expression,Ye(t.left),!1,!1))):$e(kt(t.left,eh)))}(o);break;case 0:break;default:In.fail("Unknown binary expression special property assignment kind")}return function(e){x&&ru(e.left)&&Ob(e.operatorToken.kind)&&Pe(e,e.left)}(o);case 295:return function(e){x&&e.variableDeclaration&&Pe(e,e.variableDeclaration.name)}(o);case 217:return function(t){if(x&&79===t.expression.kind){const n=Zf(e,t.expression);e.bindDiagnostics.push(kk(e,n.start,n.length,ja.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(o);case 8:return function(t){n<1&&x&&32&t.numericLiteralFlags&&e.bindDiagnostics.push(P(t,ja.Octal_literals_are_not_allowed_in_strict_mode))}(o);case 222:return function(e){x&&Pe(e,e.operand)}(o);case 221:return function(e){x&&(45!==e.operator&&46!==e.operator||Pe(e,e.operand))}(o);case 251:return function(e){x&&Oe(e,ja.with_statements_are_not_allowed_in_strict_mode)}(o);case 253:return function(e){x&&Rk(t)>=2&&(Fu(e.statement)||_E(e.statement))&&Oe(e.label,ja.A_label_is_not_allowed_here)}(o);case 194:return void(_=!0);case 179:break;case 165:return function(e){if(sF(e.parent)){const t=Ph(e.parent);t?(In.assertNode(t,wu),null!=t.locals||(t.locals=ip()),B(t.locals,void 0,e,262144,526824)):Ae(e,262144,526824)}else if(192===e.parent.kind){const t=function(e){const t=Ec(e,(e=>e.parent&&fD(e.parent)&&e.parent.extendsType===e));return t&&t.parent}(e.parent);t?(In.assertNode(t,wu),null!=t.locals||(t.locals=ip()),B(t.locals,void 0,e,262144,526824)):Ne(e,262144,L(e))}else Ae(e,262144,526824)}(o);case 166:return rt(o);case 257:return nt(o);case 205:return o.flowNode=l,nt(o);case 169:case 168:return function(e){const t=Il(e),n=t?13247:0;return it(e,(t?98304:4)|(e.questionToken?16777216:0),n)}(o);case 299:case 300:return it(o,4,0);case 302:return it(o,8,900095);case 176:case 177:case 178:return Ae(o,131072,0);case 171:case 170:return it(o,8192|(o.questionToken?16777216:0),Pm(o)?0:103359);case 259:return function(t){e.isDeclarationFile||16777216&t.flags||Sy(t)&&(b|=2048),Ie(t),x?(function(t){if(n<2&&308!==a.kind&&264!==a.kind&&!Tl(a)){const n=Zf(e,t);e.bindDiagnostics.push(kk(e,n.start,n.length,function(t){return qm(t)?ja.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?ja.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:ja.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(t)))}}(t),Fe(t,16,110991)):Ae(t,16,110991)}(o);case 173:return Ae(o,16384,0);case 174:return it(o,32768,46015);case 175:return it(o,65536,78783);case 181:case 320:case 326:case 182:return function(e){const t=I(131072,L(e));O(t,e,131072);const n=I(2048,"__type");O(n,e,2048),n.members=ip(),n.members.set(t.escapedName,t)}(o);case 184:case 325:case 197:return function(e){return Ne(e,2048,"__type")}(o);case 335:return function(e){U(e);const t=Ih(e);t&&171!==t.kind&&O(t.symbol,t,32)}(o);case 207:return function(e){return Ne(e,4096,"__object")}(o);case 215:case 216:return function(t){e.isDeclarationFile||16777216&t.flags||Sy(t)&&(b|=2048),l&&(t.flowNode=l),Ie(t);return Ne(t,16,t.name?t.name.escapedText:"__function")}(o);case 210:switch(Hg(o)){case 7:return function(e){let t=et(e.arguments[0]);const n=308===e.parent.parent.kind;t=Ge(t,e.arguments[0],n,!1,!1),Xe(e,t,!1)}(o);case 8:return function(e){if(!Ue(e))return;const t=tt(e.arguments[0],void 0,((e,t)=>(t&&O(t,e,67110400),t)));if(t){const n=1048580;B(t.exports,t,e,n,0)}}(o);case 9:return function(e){const t=et(e.arguments[0].expression);t&&t.valueDeclaration&&O(t,t.valueDeclaration,32),Xe(e,t,!0)}(o);case 0:break;default:return In.fail("Unknown call expression assignment declaration kind")}Sg(o)&&function(t){!e.commonJsModuleIndicator&&Dg(t,!1)&&Ue(t)}(o);break;case 228:case 260:return x=!0,function(t){260===t.kind?Fe(t,32,899503):(Ne(t,32,t.name?t.name.escapedText:"__class"),t.name&&C.add(t.name.escapedText));const{symbol:n}=t,r=I(4194308,"prototype"),i=n.exports.get(r.escapedName);i&&(t.name&&kT(t.name,t),e.bindDiagnostics.push(P(i.declarations[0],ja.Duplicate_identifier_0,Mc(r)))),n.exports.set(r.escapedName,r),r.parent=n}(o);case 261:return Fe(o,64,788872);case 262:return Fe(o,524288,788968);case 263:return function(e){return nm(e)?Fe(e,128,899967):Fe(e,256,899327)}(o);case 264:return function(t){if(we(t),df(t))if(cb(t,1)&&Oe(t,ja.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),bf(t))Ee(t);else{let n;if(10===t.name.kind){const{text:e}=t.name;n=KS(e),void 0===n&&Oe(t.name,ja.Pattern_0_can_have_at_most_one_Asterisk_character,e)}const r=Ae(t,512,110735);e.patternAmbientModules=Se(e.patternAmbientModules,n&&!vt(n)?{pattern:n,symbol:r}:void 0)}else{const e=Ee(t);if(0!==e){const{symbol:n}=t;n.constEnumOnlyModule=!(304&n.flags)&&2===e&&!1!==n.constEnumOnlyModule}}}(o);case 289:return function(e){return Ne(e,4096,"__jsxAttributes")}(o);case 288:return function(e,t,n){return Ae(e,4,0)}(o);case 268:case 271:case 273:case 278:return Ae(o,2097152,2097152);case 267:return function(t){_e(t.modifiers)&&e.bindDiagnostics.push(P(t,ja.Modifiers_cannot_appear_here));const n=TN(t.parent)?wI(t.parent)?t.parent.isDeclarationFile?void 0:ja.Global_module_exports_may_only_appear_in_declaration_files:ja.Global_module_exports_may_only_appear_in_module_files:ja.Global_module_exports_may_only_appear_at_top_level;n?e.bindDiagnostics.push(P(t,n)):(e.symbol.globalExports=e.symbol.globalExports||ip(),B(e.symbol.globalExports,e.symbol,t,2097152,2097152))}(o);case 270:return function(e){e.name&&Ae(e,2097152,2097152)}(o);case 275:return function(e){i.symbol&&i.symbol.exports?e.exportClause?QE(e.exportClause)&&(kT(e.exportClause,e),B(i.symbol.exports,i.symbol,e.exportClause,2097152,2097152)):B(i.symbol.exports,i.symbol,e,8388608,0):Ne(e,8388608,L(e))}(o);case 274:return function(e){if(i.symbol&&i.symbol.exports){const t=iy(e)?2097152:4,n=B(i.symbol.exports,i.symbol,e,t,67108863);e.isExportEquals&&ch(n,e)}else Ne(e,111551,L(e))}(o);case 308:return Be(o.statements),function(){if(we(e),wI(e))ze();else if(tm(e)){ze();const t=e.symbol;B(e.symbol.exports,e.symbol,e,4,67108863),e.symbol=t}}();case 238:if(!Tl(o.parent))return;case 265:return Be(o.statements);case 344:if(326===o.parent.kind)return rt(o);if(325!==o.parent.kind)break;case 351:const u=o;return Ae(u,u.isBracketed||u.typeExpression&&319===u.typeExpression.type.kind?16777220:4,0);case 349:case 341:case 343:return(c||(c=[])).push(o);case 342:return Me(o.typeExpression)}}function ze(){Ne(e,512,`"${US(e.fileName)}"`)}function Ue(t){return!(e.externalModuleIndicator&&!0!==e.externalModuleIndicator||(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=t,e.externalModuleIndicator||ze()),0))}function qe(e){if(!Ue(e))return;const t=tt(e.left.expression,void 0,((e,t)=>(t&&O(t,e,67110400),t)));if(t){const n=ry(e.right)&&(Qg(e.left.expression)||Wg(e.left.expression))?2097152:1048580;kT(e.left,e),B(t.exports,t,e.left,n,0)}}function Ve(t){B(e.symbol.exports,e.symbol,t,69206016,0)}function Qe(e){if(In.assert(Sg(e)),QD(e)&&ND(e.left)&&Cw(e.left.name)||ND(e)&&Cw(e.name))return;const t=Km(e,!1,!1);switch(t.kind){case 259:case 215:let n=t.symbol;if(QD(t.parent)&&63===t.parent.operatorToken.kind){const e=t.parent.left;Yg(e)&&Kb(e.expression)&&(n=et(e.expression.expression,o))}n&&n.valueDeclaration&&(n.members=n.members||ip(),Ay(e)?Ke(e,n,n.members):B(n.members,n,e,67108868,0),O(n,n.valueDeclaration,32));break;case 173:case 169:case 171:case 174:case 175:case 172:const r=t.parent,i=_b(t)?r.symbol.exports:r.symbol.members;Ay(e)?Ke(e,r.symbol,i):B(i,r.symbol,e,67108868,0,!0);break;case 308:if(Ay(e))break;t.commonJsModuleIndicator?B(t.symbol.exports,t.symbol,e,1048580,0):Ae(e,1,111550);break;default:In.failBadSyntaxKind(t)}}function Ke(e,t,n){B(n,t,e,4,0,!0,!0),We(e,t)}function We(e,t){t&&(t.assignmentDeclarationMembers||(t.assignmentDeclarationMembers=new Map)).set(qB(e),e)}function He(e,t){const n=e.expression,r=n.expression;kT(r,n),kT(n,e),kT(e,t),Ze(r,e,!0,!0)}function $e(e){In.assert(!Tw(e)),kT(e.expression,e),Ze(e.expression,e,!1,!1)}function Ge(t,n,r,i,o){if(2097152&(null==t?void 0:t.flags))return t;if(r&&!i){const r=67110400,i=110735;t=tt(n,t,((t,n,o)=>n?(O(n,t,r),n):B(o?o.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=ip()),o,t,r,i)))}return o&&t&&t.valueDeclaration&&O(t,t.valueDeclaration,32),t}function Xe(e,t,n){if(!t||!function(e){if(1072&e.flags)return!0;const t=e.valueDeclaration;if(t&&PD(t))return!!jg(t);let n=t?wE(t)?t.initializer:QD(t)?t.right:ND(t)&&QD(t.parent)?t.parent.right:void 0:void 0;if(n=n&&Vg(n),n){const e=Kb(wE(t)?t.name:QD(t)?t.left:t);return!!Jg(!QD(n)||56!==n.operatorToken.kind&&60!==n.operatorToken.kind?n:n.right,e)}return!1}(t))return;const r=n?t.members||(t.members=ip()):t.exports||(t.exports=ip());let i=0,o=0;Cl(jg(e))?(i=8192,o=103359):PD(e)&&$g(e)&&(_e(e.arguments[2].properties,(e=>{const t=qc(e);return!!t&&Tw(t)&&"set"===Oc(t)}))&&(i|=65540,o|=78783),_e(e.arguments[2].properties,(e=>{const t=qc(e);return!!t&&Tw(t)&&"get"===Oc(t)}))&&(i|=32772,o|=46015)),0===i&&(i=4,o=0),B(r,t,e,67108864|i,-67108865&o)}function Ye(e){return QD(e.parent)?308===function(e){for(;QD(e.parent);)e=e.parent;return e.parent}(e.parent).parent.kind:308===e.parent.parent.kind}function Ze(e,t,n,r){let o=et(e,i)||et(e,a);const s=Ye(t);o=Ge(o,t.expression,s,n,r),Xe(t,o,n)}function et(e,t=i){if(Tw(e))return WR(t,e.escapedText);{const t=et(e.expression);return t&&t.exports&&t.exports.get(rh(e))}}function tt(t,n,r){if(QR(e,t))return e.symbol;if(Tw(t))return r(t,et(t),n);{const e=tt(t.expression,n,r),i=th(t);return Cw(i)&&In.fail("unexpected PrivateIdentifier"),r(i,e&&e.exports&&e.exports.get(rh(t)),e)}}function nt(e){if(x&&Pe(e,e.name),!Ul(e.name)){const n=257===e.kind?e:e.parent.parent;!(Sg(e)&&Xk(t)&&Ng(n))||v_(e)||1&Tc(e)?lf(e)?Fe(e,2,111551):Uy(e)?Ae(e,1,111551):Ae(e,1,111550):Ae(e,2097152,2097152)}}function rt(e){if((344!==e.kind||326===i.kind)&&(!x||16777216&e.flags||Pe(e,e.name),Ul(e.name)?Ne(e,1,"__"+e.parent.parameters.indexOf(e)):Ae(e,1,111551),vc(e,e.parent))){const t=e.parent.parent;B(t.symbol.members,t.symbol,e,4|(e.questionToken?16777216:0),0)}}function it(t,n,r){return e.isDeclarationFile||16777216&t.flags||!Sy(t)||(b|=2048),l&&Im(t)&&(t.flowNode=l),Ay(t)?Ne(t,n,"__computed"):Ae(t,n,r)}}function VR(e){return!(EE(e)||function(e){switch(e.kind){case 261:case 262:return!0;case 264:return 1!==BR(e);case 263:return cb(e,2048);default:return!1}}(e)||IE(e)||_E(e)&&!(3&Ac(e))&&e.declarationList.declarations.some((e=>!e.initializer)))}function QR(e,t){let n=0;const r=mt();for(r.enqueue(t);!r.isEmpty()&&n<100;){if(n++,Qg(t=r.dequeue())||Wg(t))return!0;if(Tw(t)){const n=WR(e,t.escapedText);if(n&&n.valueDeclaration&&wE(n.valueDeclaration)&&n.valueDeclaration.initializer){const e=n.valueDeclaration.initializer;r.enqueue(e),Rb(e,!0)&&(r.enqueue(e.left),r.enqueue(e.right))}}}return!1}function KR(e){switch(e.kind){case 228:case 260:case 263:case 207:case 184:case 325:case 289:return 1;case 261:return 65;case 264:case 262:case 197:case 178:return 33;case 308:return 37;case 174:case 175:case 171:if(Im(e))return 173;case 173:case 259:case 170:case 176:case 326:case 320:case 181:case 177:case 182:case 172:return 45;case 215:case 216:return 61;case 265:return 4;case 169:return e.initializer?4:0;case 295:case 245:case 246:case 247:case 266:return 34;case 238:return Sl(e.parent)||Hw(e.parent)?0:34}return 0}function WR(e,t){var n,r,i,o,a;const s=null==(r=null==(n=xt(e,wu))?void 0:n.locals)?void 0:r.get(t);return s?null!=(i=s.exportSymbol)?i:s:TN(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t)?e.jsGlobalAugmentations.get(t):Au(e)?null==(a=null==(o=e.symbol)?void 0:o.exports)?void 0:a.get(t):void 0}var HR=b({"src/compiler/binder.ts"(){XK(),lo(),LR=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(LR||{}),MR=qR()}});function $R(e,t,n,r,i,o,a,s,c,_){return function(l=(()=>!0)){const u=[],d=[];return{walkType:e=>{try{return p(e),{visitedTypes:Xe(u),visitedSymbols:Xe(d)}}finally{q(u),q(d)}},walkSymbol:e=>{try{return g(e),{visitedTypes:Xe(u),visitedSymbols:Xe(d)}}finally{q(u),q(d)}}};function p(e){if(e&&!u[e.id]&&(u[e.id]=e,!g(e.symbol))){if(524288&e.flags){const n=e,i=n.objectFlags;4&i&&function(e){p(e.target),T(_(e),p)}(e),32&i&&function(e){p(e.typeParameter),p(e.constraintType),p(e.templateType),p(e.modifiersType)}(e),3&i&&(m(t=e),T(t.typeParameters,p),T(r(t),p),p(t.thisType)),24&i&&m(n)}var t;262144&e.flags&&function(e){p(s(e))}(e),3145728&e.flags&&function(e){T(e.types,p)}(e),4194304&e.flags&&function(e){p(e.type)}(e),8388608&e.flags&&function(e){p(e.objectType),p(e.indexType),p(e.constraint)}(e)}}function f(r){const i=t(r);i&&p(i.type),T(r.typeParameters,p);for(const e of r.parameters)g(e);p(e(r)),p(n(r))}function m(e){const t=i(e);for(const e of t.indexInfos)p(e.keyType),p(e.type);for(const e of t.callSignatures)f(e);for(const e of t.constructSignatures)f(e);for(const e of t.properties)g(e)}function g(e){if(!e)return!1;const t=VB(e);return!d[t]&&(d[t]=e,!l(e)||(p(o(e)),e.exports&&e.exports.forEach(g),T(e.declarations,(e=>{if(e.type&&183===e.type.kind){const t=e.type;g(a(c(t.exprName)))}})),!1))}}}var GR=b({"src/compiler/symbolWalker.ts"(){XK()}});function XR({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},n,r,i){const o=function(){if(void 0!==i){if(LS(i))return 2;if(en(i,"/index"))return 1}return BS(t,r.impliedNodeFormat,n,r)}();return{relativePreference:void 0!==i?Xs(i)?0:1:"relative"===e?0:"non-relative"===e?1:"project-relative"===e?3:2,getAllowedEndingsInPreferredOrder:e=>{if(99===(null!=e?e:r.impliedNodeFormat))return FR(n,r.fileName)?[3,2]:[2];if(1===Jk(n))return[1,2];switch(o){case 2:return[2,0,1];case 3:return[3,0,2,1];case 1:return[1,0,2];case 0:return[0,1,2];default:In.assertNever(o)}}}}function YR(e,t,n,r,i,o,a={}){const s=tB(e,t,n,r,i,XR({},e,t,o),{},a);if(s!==o)return s}function ZR(e,t,n,r,i,o={}){return tB(e,t,n,r,i,XR({},e,t),{},o)}function eB(e,t,n,r,i,o={}){const a=aB(t.path,r);return A(dB(t.path,n,r,i,o),(n=>gB(n,a,t,r,e,i,!0,o.overrideImportMode)))}function tB(e,t,n,r,i,o,a,s={}){const c=aB(n,i);return A(dB(n,r,i,a,s),(n=>gB(n,c,t,i,e,a,void 0,s.overrideImportMode)))||sB(r,c,e,i,s.overrideImportMode||t.impliedNodeFormat,o)}function nB(e,t,n,r,i={}){return rB(e,t,n,r,i)[0]}function rB(e,t,n,i,o={}){var a;const s=Dp(e);if(!s)return r;const c=null==(a=n.getModuleSpecifierCache)?void 0:a.call(n),_=null==c?void 0:c.get(t.path,s.path,i,o);return[null==_?void 0:_.moduleSpecifiers,s,null==_?void 0:_.modulePaths,c]}function iB(e,t,n,r,i,o,a={}){return oB(e,t,n,r,i,o,a).moduleSpecifiers}function oB(e,t,n,i,o,a,s={}){let c=!1;const _=function(e,t){var n;const r=null==(n=e.declarations)?void 0:n.find((e=>ff(e)&&(!vf(e)||!Xs(Ny(e.name)))));if(r)return r.name.text;const i=Z(e.declarations,(e=>{var n,r,i,o;if(!OE(e))return;const a=function(e){for(;4&e.flags;)e=e.parent;return e}(e);if(!((null==(n=null==a?void 0:a.parent)?void 0:n.parent)&&LE(a.parent)&&df(a.parent.parent)&&TN(a.parent.parent.parent)))return;const s=null==(o=null==(i=null==(r=a.parent.parent.symbol.exports)?void 0:r.get("export="))?void 0:i.valueDeclaration)?void 0:o.expression;if(!s)return;const c=t.getSymbolAtLocation(s);if(c&&(2097152&(null==c?void 0:c.flags)?t.getAliasedSymbol(c):c)===e.symbol)return a.parent.parent}))[0];return i?i.name.text:void 0}(e,t);if(_)return{moduleSpecifiers:[_],computedWithoutCache:c};let[l,u,d,p]=rB(e,i,o,a,s);if(l)return{moduleSpecifiers:l,computedWithoutCache:c};if(!u)return{moduleSpecifiers:r,computedWithoutCache:c};c=!0,d||(d=pB(i.path,u.originalFileName,o));const f=function(e,t,n,r,i,o={}){const a=aB(n.path,r),s=XR(i,t,n),c=T(e,(e=>T(r.getFileIncludeReasons().get(xa(e.path,r.getCurrentDirectory(),a.getCanonicalFileName)),(e=>{if(3!==e.kind||e.file!==n.path)return;if(n.impliedNodeFormat&&n.impliedNodeFormat!==fq(n,e.index))return;const t=Jq(n,e.index).text;return 1===s.relativePreference&&Yo(t)?void 0:t}))));if(c)return[c];const _=_e(e,(e=>e.isInNodeModules));let l,u,d,p;for(const c of e){const e=c.isInNodeModules?gB(c,a,n,r,t,i,void 0,o.overrideImportMode):void 0;if(l=Se(l,e),e&&c.isRedirect)return l;if(!e){const e=sB(c.path,a,t,r,o.overrideImportMode||n.impliedNodeFormat,s,c.isRedirect);if(!e)continue;c.isRedirect?d=Se(d,e):Zo(e)?u=Se(u,e):_&&!c.isInNodeModules||(p=Se(p,e))}}return(null==u?void 0:u.length)?u:(null==d?void 0:d.length)?d:(null==l?void 0:l.length)?l:In.checkDefined(p)}(d,n,i,o,a,s);return null==p||p.set(i.path,u.path,a,s,d,f),{moduleSpecifiers:f,computedWithoutCache:c}}function aB(e,t){return{getCanonicalFileName:ln(!t.useCaseSensitiveFileNames||t.useCaseSensitiveFileNames()),importingSourceFileName:e,sourceDirectory:sa(e)}}function sB(e,t,n,r,i,{getAllowedEndingsInPreferredOrder:o,relativePreference:a},s){const{baseUrl:c,paths:_,rootDirs:l}=n;if(s&&!_)return;const{sourceDirectory:u,getCanonicalFileName:d}=t,p=o(i),f=l&&function(e,t,n,r,i,o){const a=hB(t,e,r);if(void 0===a)return;const s=Ut(H(hB(n,e,r),(e=>V(a,(t=>Ta(Ia(e,t,r)))))),zS);return s?yB(s,i,o):void 0}(l,e,u,d,p,n)||yB(Ta(Ia(u,e,d)),p,n);if(!c&&!_||0===a)return s?void 0:f;const m=kB(e,ya(wv(n,r)||c,r.getCurrentDirectory()),d);if(!m)return s?void 0:f;const g=_&&fB(m,_,p,r,n);if(s)return g;const h=void 0===g&&void 0!==c?yB(m,p,n):g;if(!h)return f;if(1===a&&!Yo(h))return h;if(3===a&&!Yo(h)){const i=n.configFilePath?xa(sa(n.configFilePath),r.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(r.getCurrentDirectory()),o=xa(e,i,d),a=fn(u,i),s=fn(o,i);if(a&&!s||!a&&s)return h;const c=lB(r,sa(o));return lB(r,u)!==c?h:f}return SB(h)||cB(f)!!e.fileExists(ma(t,"package.json"))||void 0))}function uB(e,t,n,i,o){var a;const s=gv(n),c=n.getCurrentDirectory(),_=n.isSourceOfProjectReferenceRedirect(t)?n.getProjectReferenceRedirect(t):void 0,l=xa(t,c,s),u=n.redirectTargetsMap.get(l)||r,d=[..._?[_]:r,t,...u].map((e=>ya(e,c)));let p=!F(d,DT);if(!i){const e=T(d,(e=>!(p&&DT(e))&&o(e,_===e)));if(e)return e}const f=null==(a=n.getSymlinkCache)?void 0:a.call(n).getSymlinkedDirectoriesByRealpath(),m=ya(t,c);return f&&Ra(sa(m),(t=>{const n=f.get(Sa(xa(t,c,s)));if(n)return!Fa(e,t,s)&&T(d,(e=>{if(!Fa(e,t,s))return;const r=Ia(t,e,s);for(const t of n){const n=ga(t,r),i=o(n,e===_);if(p=!0,i)return i}}))}))||(i?T(d,(e=>p&&DT(e)?void 0:o(e,e===_))):void 0)}function dB(e,t,n,r,i={}){var o;const a=xa(t,n.getCurrentDirectory(),gv(n)),s=null==(o=n.getModuleSpecifierCache)?void 0:o.call(n);if(s){const t=s.get(e,a,r,i);if(null==t?void 0:t.modulePaths)return t.modulePaths}const c=pB(e,t,n);return s&&s.setModulePaths(e,a,r,i,c),c}function pB(e,t,n){const r=gv(n),i=new Map;uB(e,t,n,!0,((e,t)=>{const n=HM(e);i.set(e,{path:r(e),isRedirect:t,isInNodeModules:n})}));const o=[];for(let t=sa(e);0!==i.size;){const e=Sa(t);let n;i.forEach((({path:t,isRedirect:r,isInNodeModules:o},a)=>{fn(t,e)&&((n||(n=[])).push({path:a,isRedirect:r,isInNodeModules:o}),i.delete(a))})),n&&(n.length>1&&n.sort(_B),o.push(...n));const r=sa(t);if(r===t)break;t=r}if(i.size){const e=Ze(i.values());e.length>1&&e.sort(_B),o.push(...e)}return o}function fB(e,t,n,r,i){for(const r in t)for(const a of t[r]){const t=va(a),s=t.indexOf("*"),c=n.map((t=>({ending:t,value:yB(e,[t],i)})));if(ZS(t)&&c.push({ending:void 0,value:e}),-1!==s){const e=t.substring(0,s),n=t.substring(s+1);for(const{ending:t,value:i}of c)if(i.length>=e.length+n.length&&fn(i,e)&&en(i,n)&&o({ending:t,value:i})){const t=i.substring(e.length,i.length-n.length);return r.replace("*",t)}}else if(_e(c,(e=>0!==e.ending&&t===e.value))||_e(c,(e=>0===e.ending&&t===e.value&&o(e))))return r}function o({ending:t,value:n}){return 0!==t||n===yB(e,[t],i,r)}}function mB(e,t,n,r,i,o,a=0){if("string"==typeof i){const o=ya(ma(n,i),void 0),s=MS(t)?US(t)+xB(t,e):void 0;switch(a){case 0:if(0===Ea(t,o)||s&&0===Ea(s,o))return{moduleFileToTry:r};break;case 1:if(Na(o,t)){const e=Ia(o,t,!1);return{moduleFileToTry:ya(ma(ma(r,i),e),void 0)}}break;case 2:const e=o.indexOf("*"),n=o.slice(0,e),a=o.slice(e+1);if(fn(t,n)&&en(t,a)){const e=t.slice(n.length,t.length-a.length);return{moduleFileToTry:r.replace("*",e)}}if(s&&fn(s,n)&&en(s,a)){const e=s.slice(n.length,s.length-a.length);return{moduleFileToTry:r.replace("*",e)}}}}else{if(Array.isArray(i))return T(i,(i=>mB(e,t,n,r,i,o)));if("object"==typeof i&&null!==i){if(fR(i))return T($e(i),(a=>{const s=ya(ma(r,a),void 0),c=en(a,"/")?1:rn(a,"*")?2:0;return mB(e,t,n,s,i[a],o,c)}));for(const a of $e(i))if("default"===a||o.indexOf(a)>=0||vR(o,a)){const s=i[a],c=mB(e,t,n,r,s,o);if(c)return c}}}}function gB({path:e,isRedirect:t},{getCanonicalFileName:n,sourceDirectory:r},i,o,a,s,c,_){if(!o.fileExists||!o.readFile)return;const l=jT(e);if(!l)return;const u=XR(s,a,i).getAllowedEndingsInPreferredOrder();let d=e,p=!1;if(!c){let t,n=l.packageRootIndex;for(;;){const{moduleFileToTry:r,packageRootPath:i,blockedByExports:s,verbatimFromExports:c}=y(n);if(1!==Jk(a)){if(s)return;if(c)return r}if(i){d=i,p=!0;break}if(t||(t=r),n=e.indexOf(zo,n+1),-1===n){d=yB(t,u,a,o);break}}}if(t&&!p)return;const f=o.getGlobalTypingsCacheLocation&&o.getGlobalTypingsCacheLocation(),m=n(d.substring(0,l.topLevelNodeModulesIndex));if(!(fn(r,m)||f&&fn(n(f),m)))return;const g=d.substring(l.topLevelPackageNameIndex+1),h=wR(g);return 1===Jk(a)&&h===g?void 0:h;function y(t){var r,s;const c=e.substring(0,t),d=ma(c,"package.json");let p=e,f=!1;const m=null==(s=null==(r=o.getPackageJsonInfoCache)?void 0:r.call(o))?void 0:s.getPackageJsonInfo(d);if("object"==typeof m||void 0===m&&o.fileExists(d)){const t=(null==m?void 0:m.contents.packageJsonContent)||JSON.parse(o.readFile(d)),r=_||i.impliedNodeFormat;if(Yk(a)){const n=wR(c.substring(l.topLevelPackageNameIndex+1)),i=SM(a,99===r),o=t.exports?mB(a,e,c,n,t.exports,i):void 0;if(o)return{...MS(o.moduleFileToTry)?{moduleFileToTry:US(o.moduleFileToTry)+xB(o.moduleFileToTry,a)}:o,verbatimFromExports:!0};if(t.exports)return{moduleFileToTry:e,blockedByExports:!0}}const s=t.typesVersions?yM(t.typesVersions):void 0;if(s){const t=fB(e.slice(c.length+1),s.paths,u,o,a);void 0===t?f=!0:p=ma(c,t)}const g=t.typings||t.types||t.main||"index.js";if(vt(g)&&(!f||!tT(WS(s.paths),g))&&US(xa(g,c,n))===US(n(p)))return{packageRootPath:c,moduleFileToTry:p}}else{const e=n(p.substring(l.packageRootIndex+1));if("index.d.ts"===e||"index.js"===e||"index.ts"===e||"index.tsx"===e)return{moduleFileToTry:p,packageRootPath:c}}return{moduleFileToTry:p}}}function hB(e,t,n){return Z(t,(t=>{const r=kB(e,t,n);return void 0!==r&&SB(r)?void 0:r}))}function yB(e,t,n,r){if(na(e,[".json",".mjs",".cjs"]))return e;const i=US(e);if(e===i)return e;if(na(e,[".d.mts",".mts",".d.cts",".cts"]))return i+bB(e,n);if(!na(e,[".d.ts"])&&na(e,[".ts"])&&rn(e,".d."))return vB(e);switch(t[0]){case 0:const o=tn(i,"/index");return r&&o!==i&&function(e,t){if(!e.fileExists)return;const n=W(IS({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const r of n){const n=t+r;if(e.fileExists(n))return n}}(r,o)?i:o;case 1:return i;case 2:return i+bB(e,n);case 3:if(FI(e)){const r=t.findIndex((e=>0===e||1===e)),o=t.indexOf(2);return-1!==r&&rcB,forEachFileNameOfModule:()=>uB,getModuleSpecifier:()=>ZR,getModuleSpecifiers:()=>iB,getModuleSpecifiersWithCacheInfo:()=>oB,getNodeModulesPackageName:()=>eB,tryGetJSExtensionForFile:()=>xB,tryGetModuleSpecifiersFromCache:()=>nB,tryGetRealFileNameForNonJsDeclarationFileName:()=>vB,updateModuleSpecifier:()=>YR});var AB,wB,DB,EB,NB,FB,PB,IB,OB,LB,MB,RB,BB,jB,JB,zB=b({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){TB()}});function UB(){this.flags=0}function qB(e){return e.id||(e.id=EB,EB++),e.id}function VB(e){return e.id||(e.id=DB,DB++),e.id}function QB(e,t){const n=BR(e);return 1===n||t&&2===n}function KB(e){var t,n,i,o,a,s=Ft((()=>{var t=new Map;return e.getSourceFiles().forEach((e=>{e.resolvedModules&&e.resolvedModules.forEach((({resolvedModule:e})=>{(null==e?void 0:e.packageId)&&t.set(e.packageId.name,".d.ts"===e.extension||!!t.get(e.packageId.name))}))})),t})),c=[],_=e=>{c.push(e)},l=new Set,u=Fd.getSymbolConstructor(),d=Fd.getTypeConstructor(),p=Fd.getSignatureConstructor(),f=0,m=0,g=0,h=0,y=0,v=0,b=!1,x=ip(),k=[1],C=e.getCompilerOptions(),w=Rk(C),D=Bk(C),E=!!C.experimentalDecorators,N=aS(C),M=$k(C),j=iS(C,"strictNullChecks"),U=iS(C,"strictFunctionTypes"),Q=iS(C,"strictBindCallApply"),$=iS(C,"strictPropertyInitialization"),G=iS(C,"noImplicitAny"),X=iS(C,"noImplicitThis"),Y=iS(C,"useUnknownInCatchVariables"),ee=!!C.keyofStringsOnly,te=C.suppressExcessPropertyErrors?0:8192,ne=C.exactOptionalPropertyTypes,re=function(){const e=yP((function(e,t,r){return t?(t.stackIndex++,t.skip=!1,n(t,void 0),i(t,void 0)):t={checkMode:r,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Sg(e)&&jg(e)?(t.skip=!0,i(t,dO(e.right,r)),t):(function(e){const{left:t,operatorToken:n,right:r}=e;60===n.kind&&(!QD(t)||56!==t.operatorToken.kind&&55!==t.operatorToken.kind||EB(t,ja._0_and_1_operations_cannot_be_mixed_without_parentheses,_s(t.operatorToken.kind),_s(n.kind)),!QD(r)||56!==r.operatorToken.kind&&55!==r.operatorToken.kind||EB(r,ja._0_and_1_operations_cannot_be_mixed_without_parentheses,_s(r.operatorToken.kind),_s(n.kind)))}(e),63!==e.operatorToken.kind||207!==e.left.kind&&206!==e.left.kind||(t.skip=!0,i(t,jI(e.left,dO(e.right,r),r,108===e.right.kind))),t)}),(function(e,n,r){if(!n.skip)return t(n,e)}),(function(e,t,o){if(!t.skip){const a=r(t);In.assertIsDefined(a),n(t,a),i(t,void 0);const s=e.kind;if(Pb(s)){let e=o.parent;for(;214===e.kind||Ib(e);)e=e.parent;(55===s||dE(e))&&EL(o.left,a,dE(e)?e.thenStatement:void 0),NL(a,o.left)}}}),(function(e,n,r){if(!n.skip)return t(n,e)}),(function(e,t){let o;if(t.skip)o=r(t);else{const n=function(e){return e.typeStack[e.stackIndex]}(t);In.assertIsDefined(n);const i=r(t);In.assertIsDefined(i),o=UI(e.left,e.operatorToken,e.right,n,i,e)}return t.skip=!1,n(t,void 0),i(t,void 0),t.stackIndex--,o}),(function(e,t,n){return i(e,t),e}));return(t,n)=>{const r=e(t,n);return In.assertIsDefined(r),r};function t(e,t){if(QD(t))return t;i(e,dO(t,e.checkMode))}function n(e,t){e.typeStack[e.stackIndex]=t}function r(e){return e.typeStack[e.stackIndex+1]}function i(e,t){e.typeStack[e.stackIndex+1]=t}}(),ae=function(){const t=e.getResolvedTypeReferenceDirectives();let n;return t&&(n=new Map,t.forEach((({resolvedTypeReferenceDirective:t},n,r)=>{if(!(null==t?void 0:t.resolvedFileName))return;const o=e.getSourceFile(t.resolvedFileName);o&&i(o,n,r)}))),{getReferencedExportContainer:fR,getReferencedImportDeclaration:mR,getReferencedDeclarationWithCollidingName:hR,isDeclarationWithCollidingName:yR,isValueAliasDeclaration:e=>{const t=Fc(e);return!t||vR(t)},hasGlobalName:qR,isReferencedAliasDeclaration:(e,t)=>{const n=Fc(e);return!n||SR(n,t)},getNodeCheckFlags:e=>{const t=Fc(e);return t?PR(t):0},isTopLevelValueImportEqualsWithEntityName:bR,isDeclarationVisible:Ys,isImplementationOfOverload:TR,isRequiredInitializedParameter:wR,isOptionalUninitializedParameterProperty:DR,isExpandoFunctionDeclaration:ER,getPropertiesOfContainerFunction:NR,createTypeOfDeclaration:jR,createReturnTypeOfSignatureDeclaration:JR,createTypeOfExpression:zR,createLiteralConstValue:WR,isSymbolAccessible:Es,isEntityNameVisible:Ls,getConstantValue:e=>{const t=Fc(e,OR);return t?LR(t):void 0},collectLinkedAliases:Zs,getReferencedValueDeclaration:QR,getTypeReferenceSerializationKind:RR,isOptionalParameter:sp,moduleExportsSomeValue:pR,isArgumentsLocalBinding:dR,getExternalModuleFileFromDeclaration:e=>{const t=Fc(e,Ff);return t&&XR(t)},getTypeReferenceDirectivesForEntityName:function(e){if(!n)return;let t;164===e.parent.kind?t=1160127:(t=790504,(79===e.kind&&NC(e)||208===e.kind&&!function(e){return e.parent&&230===e.parent.kind&&e.parent.parent&&294===e.parent.parent.kind}(e))&&(t=1160127));const i=Fa(e,t,!0);return i&&i!==rt?r(i,t):void 0},getTypeReferenceDirectivesForSymbol:r,isLiteralConstDeclaration:KR,isLateBound:e=>{const t=Fc(e,Nu),n=t&&Ga(t);return!!(n&&4096&Fx(n))},getJsxFactoryEntity:HR,getJsxFragmentFactoryEntity:GR,getAllAccessorDeclarations(e){const t=175===(e=Fc(e,P_)).kind?174:175,n=np(Ga(e),t);return{firstAccessor:n&&n.posOa(e,e,void 0),isBindingCapturedByNode:(e,t)=>{const n=Fc(e),r=Fc(t);return!!n&&!!r&&(wE(r)||wD(r))&&function(e,t){const n=Fo(e);return!!n&&R(n.capturedBlockScopeBindings,Ga(t))}(n,r)},getDeclarationStatementsForSourceFile:(e,t,n,r)=>{const i=Fc(e);In.assert(i&&308===i.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");const o=Ga(e);return o?o.exports?se.symbolTableToDeclarationStatements(o.exports,e,t,n,r):[]:e.locals?se.symbolTableToDeclarationStatements(e.locals,e,t,n,r):[]},isImportRequiredByAugmentation:function(e){const t=wp(e);if(!t.symbol)return!1;const n=XR(e);if(!n)return!1;if(n===t)return!1;const r=Ka(t.symbol);for(const e of Ze(r.values()))if(e.mergeId){const t=$a(e);if(t.declarations)for(const e of t.declarations)if(wp(e)===n)return!0}return!1}};function r(e,t){if(!n||!function(e){if(!e.declarations)return!1;let t=e;for(;;){const e=Ya(t);if(!e)break;t=e}if(t.valueDeclaration&&308===t.valueDeclaration.kind&&512&t.flags)return!1;for(const t of e.declarations){const e=wp(t);if(n.has(e.path))return!0}return!1}(e))return;let r;for(const i of e.declarations)if(i.symbol&&i.symbol.flags&t){const e=wp(i),t=n.get(e.path);if(!t)return;(r||(r=[])).push(t)}return r}function i(t,r,o){if(!n.has(t.path)){n.set(t.path,[r,o]);for(const{fileName:n,resolutionMode:o}of t.referencedFiles){const a=XU(n,t.fileName),s=e.getSourceFile(a);s&&i(s,r,o||t.impliedNodeFormat)}}}}(),se=function(){return{typeToTypeNode:(e,t,r,i)=>n(t,r,i,(t=>o(e,t))),indexInfoToIndexSignatureDeclaration:(e,t,r,i)=>n(t,r,i,(t=>u(e,t,void 0))),signatureToSignatureDeclaration:(e,t,r,i,o)=>n(r,i,o,(n=>d(e,t,n))),symbolToEntityName:(e,t,r,i,o)=>n(r,i,o,(n=>L(e,n,t,!1))),symbolToExpression:(e,t,r,i,o)=>n(r,i,o,(n=>B(e,n,t))),symbolToTypeParameterDeclarations:(e,t,r,i)=>n(t,r,i,(t=>v(e,t))),symbolToParameterDeclaration:(e,t,r,i)=>n(t,r,i,(t=>m(e,t))),typeParameterToDeclaration:(e,t,r,i)=>n(t,r,i,(t=>f(e,t))),symbolTableToDeclarationStatements:(e,t,i,a,s)=>n(t,i,a,(t=>function(e,t,n){const i=ne(dC.createPropertyDeclaration,171,!0),a=ne(((e,t,n,r)=>dC.createPropertySignature(e,t,n,r)),170,!1),s=t.enclosingDeclaration;let c=[];const _=new Set,l=[],p=t;t={...p,usedSymbolNames:new Set(p.usedSymbolNames),remappedSymbolNames:new Map,tracker:void 0};const m={...p.tracker.inner,trackSymbol:(e,n,r)=>{var i;if(0===Es(e,n,r,!1).accessibility){const n=y(e,t,r);4&e.flags||N(n[0])}else if(null==(i=p.tracker.inner)?void 0:i.trackSymbol)return p.tracker.inner.trackSymbol(e,n,r);return!1}};t.tracker=new JB(t,m,p.tracker.moduleResolverHost),up(e,((e,t)=>{le(e,Ic(t))}));let g=!n;const h=e.get("export=");return h&&e.size>1&&2097152&h.flags&&(e=ip()).set("export=",h),D(e),v=function(e){const t=O(e,(e=>$E(e)&&!e.moduleSpecifier&&!e.assertClause&&!!e.exportClause&&GE(e.exportClause)));if(t>=0){const n=e[t],r=Z(n.exportClause.elements,(t=>{if(!t.propertyName){const n=z(pe(e),(n=>jc(e[n],t.name)));if(S(n)&&F(n,(t=>UT(e[t])))){for(const t of n)e[t]=x(e[t]);return}}return t}));S(r)?e[t]=dC.updateExportDeclaration(n,n.modifiers,n.isTypeOnly,dC.updateNamedExports(n.exportClause,r),n.moduleSpecifier,n.assertClause):sn(e,t)}return e}(v=function(e){const t=z(e,(e=>$E(e)&&!e.moduleSpecifier&&!!e.exportClause&&GE(e.exportClause)));S(t)>1&&(e=[...z(e,(e=>!$E(e)||!!e.moduleSpecifier||!e.exportClause)),dC.createExportDeclaration(void 0,!1,dC.createNamedExports(H(t,(e=>kt(e.exportClause,GE).elements))),void 0)]);const n=z(e,(e=>$E(e)&&!!e.moduleSpecifier&&!!e.exportClause&&GE(e.exportClause)));if(S(n)>1){const t=ot(n,(e=>sw(e.moduleSpecifier)?">"+e.moduleSpecifier.text:">"));if(t.length!==n.length)for(const n of t)n.length>1&&(e=[...z(e,(e=>-1===n.indexOf(e))),dC.createExportDeclaration(void 0,!1,dC.createNamedExports(H(n,(e=>kt(e.exportClause,GE).elements))),n[0].moduleSpecifier)])}return e}(v=function(e){const t=P(e,HE),n=O(e,OE);let r=-1!==n?e[n]:void 0;if(r&&t&&t.isExportEquals&&Tw(t.expression)&&Tw(r.name)&&Oc(r.name)===Oc(t.expression)&&r.body&&LE(r.body)){const i=z(e,(e=>!!(1&bb(e)))),o=r.name;let a=r.body;if(S(i)&&(r=dC.updateModuleDeclaration(r,r.modifiers,r.name,a=dC.updateModuleBlock(a,dC.createNodeArray([...r.body.statements,dC.createExportDeclaration(void 0,!1,dC.createNamedExports(V(H(i,(e=>{return _E(t=e)?z(V(t.declarationList.declarations,qc),b):z([qc(t)],b);var t})),(e=>dC.createExportSpecifier(!1,void 0,e)))),void 0)]))),e=[...e.slice(0,n),r,...e.slice(n+1)]),!P(e,(e=>e!==r&&jc(e,o)))){c=[];const n=!_e(a.statements,(e=>cb(e,1)||HE(e)||$E(e)));T(a.statements,(e=>{I(e,n?1:0)})),e=[...z(e,(e=>e!==r&&e!==t)),...c]}}return e}(v=c))),s&&(TN(s)&&em(s)||OE(s))&&(!_e(v,gu)||!fu(v)&&_e(v,mu))&&v.push(yF(dC)),v;var v;function b(e){return!!e&&79===e.kind}function x(e){const t=-3&(1|bb(e));return dC.updateModifiers(e,t)}function C(e){const t=-2&bb(e);return dC.updateModifiers(e,t)}function D(e,t,n){t||l.push(new Map),e.forEach((e=>{E(e,!1,!!n)})),t||(l[l.length-1].forEach((e=>{E(e,!0,!!n)})),l.pop())}function E(e,c,l){const u=$a(e);if(!_.has(VB(u))&&(_.add(VB(u)),!c||S(e.declarations)&&_e(e.declarations,(e=>!!Ec(e,(e=>e===s)))))){const _=t;t=function(e){const t={...e};return t.typeParameterNames&&(t.typeParameterNames=new Map(t.typeParameterNames)),t.typeParameterNamesByText&&(t.typeParameterNamesByText=new Set(t.typeParameterNamesByText)),t.typeParameterSymbolList&&(t.typeParameterSymbolList=new Set(t.typeParameterSymbolList)),t.tracker=new JB(t,t.tracker.inner,t.tracker.moduleResolverHost),t}(t),function(e,c,_){var l,u,d,p;const m=Ic(e.escapedName),g="default"===e.escapedName;if(c&&!(131072&t.flags)&&yy(m)&&!g)return void(t.encounteredError=!0);let h=g&&!!(-113&e.flags||16&e.flags&&S(fd(x_(e))))&&!(2097152&e.flags),y=!h&&!c&&yy(m)&&!g;(h||y)&&(c=!0);const v=(c?0:1)|(g&&!h?1024:0),b=1536&e.flags&&7&e.flags&&"export="!==e.escapedName,x=b&&te(x_(e),e);if((8208&e.flags||x)&&j(x_(e),e,le(e,m),v),524288&e.flags&&function(e,r,i){var a;const s=rl(e),c=V(No(e).typeParameters,(e=>f(e,t))),_=null==(a=e.declarations)?void 0:a.find(vh),l=D_(_?_.comment||_.parent.comment:void 0),u=t.flags;t.flags|=8388608;const d=t.enclosingDeclaration;t.enclosingDeclaration=_;const p=_&&_.typeExpression&&wN(_.typeExpression)&&Y(t,_.typeExpression.type,N,n)||o(s,t);I(GC(dC.createTypeAliasDeclaration(void 0,le(e,r),c,p),l?[{kind:3,text:"*\n * "+l.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),i),t.flags=u,t.enclosingDeclaration=d}(e,m,v),7&e.flags&&"export="!==e.escapedName&&!(4194304&e.flags)&&!(32&e.flags)&&!(8192&e.flags)&&!x)if(_)ee(e)&&(y=!1,h=!1);else{const r=x_(e),i=le(e,m);if(16&e.flags||!te(r,e)){const o=2&e.flags?YA(e)?2:1:(null==(l=e.parent)?void 0:l.valueDeclaration)&&TN(null==(u=e.parent)?void 0:u.valueDeclaration)?2:void 0,a=!h&&4&e.flags?se(i,e):i;let _=e.declarations&&P(e.declarations,(e=>wE(e)));_&&DE(_.parent)&&1===_.parent.declarations.length&&(_=_.parent.parent);const f=null==(d=e.declarations)?void 0:d.find(ND);if(f&&QD(f.parent)&&Tw(f.parent.right)&&(null==(p=r.symbol)?void 0:p.valueDeclaration)&&TN(r.symbol.valueDeclaration)){const e=i===f.parent.right.escapedText?void 0:f.parent.right;I(dC.createExportDeclaration(void 0,!1,dC.createNamedExports([dC.createExportSpecifier(!1,e,i)])),0),t.tracker.trackSymbol(r.symbol,t.enclosingDeclaration,111551)}else I(OP(dC.createVariableStatement(void 0,dC.createVariableDeclarationList([dC.createVariableDeclaration(a,void 0,G(t,r,e,s,N,n))],o)),_),a!==i?-2&v:v),a===i||c||(I(dC.createExportDeclaration(void 0,!1,dC.createNamedExports([dC.createExportSpecifier(!1,a,i)])),0),y=!1,h=!1)}else j(r,e,i,v)}if(384&e.flags&&function(e,t,n){I(dC.createEnumDeclaration(dC.createModifiersFromModifierFlags(MI(e)?2048:0),le(e,t),V(z(fd(x_(e)),(e=>!!(8&e.flags))),(e=>{const t=e.declarations&&e.declarations[0]&&kN(e.declarations[0])?LR(e.declarations[0]):void 0;return dC.createEnumMember(Ic(e.escapedName),void 0===t?void 0:"string"==typeof t?dC.createStringLiteral(t):dC.createNumericLiteral(t))}))),n)}(e,m,v),32&e.flags&&(4&e.flags&&e.valueDeclaration&&QD(e.valueDeclaration.parent)&&GD(e.valueDeclaration.parent.right)?W(e,le(e,m),v):function(e,a,s){var c,_;const l=null==(c=e.declarations)?void 0:c.find(Fl),u=t.enclosingDeclaration;t.enclosingDeclaration=l||u;const d=V(U_(e),(e=>f(e,t))),p=el(e),m=X_(p),g=l&&_y(l),h=g&&function(e){const r=Z(e,(e=>{const r=t.enclosingDeclaration;t.enclosingDeclaration=e;let i=e.expression;if(zb(i)){if(Tw(i)&&""===Oc(i))return a(void 0);let e;if(({introducesError:e,node:i}=X(i,t,N)),e)return a(void 0)}return a(dC.createExpressionWithTypeArguments(i,V(e.typeArguments,(e=>Y(t,e,N,n)||o(Db(e),t)))));function a(e){return t.enclosingDeclaration=r,e}}));if(r.length===e.length)return r}(g)||Z(function(e){let t=r;if(e.symbol.declarations)for(const n of e.symbol.declarations){const e=_y(n);if(e)for(const n of e){const e=Db(n);lc(e)||(t===r?t=[e]:t.push(e))}}return t}(p),ae),y=x_(e),v=!!(null==(_=y.symbol)?void 0:_.valueDeclaration)&&Fl(y.symbol.valueDeclaration),b=v?$_(y):_t,x=[...S(m)?[dC.createHeritageClause(94,V(m,(e=>function(e,n,r){const i=oe(e,111551);if(i)return i;const a=se(r+"_base");return I(dC.createVariableStatement(void 0,dC.createVariableDeclarationList([dC.createVariableDeclaration(a,void 0,o(n,t))],2)),0),dC.createExpressionWithTypeArguments(dC.createIdentifier(a),void 0)}(e,b,a))))]:[],...S(h)?[dC.createHeritageClause(117,h)]:[]],k=function(e,t,n){if(!S(t))return n;const r=new Map;T(n,(e=>{r.set(e.escapedName,e)}));for(const n of t){const t=fd(Gl(n,e.thisType));for(const e of t){const t=r.get(e.escapedName);t&&e.parent===t.parent&&r.delete(e.escapedName)}}return Ze(r.values())}(p,m,fd(p)),C=z(k,(e=>{const t=e.valueDeclaration;return!(!t||zc(t)&&Cw(t.name))})),A=_e(k,(e=>{const t=e.valueDeclaration;return!!t&&zc(t)&&Cw(t.name)}))?[dC.createPropertyDeclaration(void 0,dC.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:r,w=H(C,(e=>i(e,!1,m[0]))),D=H(z(fd(y),(e=>!(4194304&e.flags||"prototype"===e.escapedName||K(e)))),(e=>i(e,!0,b))),E=!v&&e.valueDeclaration&&Sg(e.valueDeclaration)&&!_e(qd(y,1))?[dC.createConstructorDeclaration(dC.createModifiersFromModifierFlags(8),[],void 0)]:re(1,y,b,173),F=ie(p,m[0]);t.enclosingDeclaration=u,I(OP(dC.createClassDeclaration(void 0,a,d,x,[...F,...D,...E,...w,...A]),e.declarations&&z(e.declarations,(e=>NE(e)||GD(e)))[0]),s)}(e,le(e,m),v)),(1536&e.flags&&(!b||function(e){return F(R(e),(e=>!(111551&ka(ba(e)))))}(e))||x)&&function(e,n,i){const o=it(R(e),(t=>t.parent&&t.parent===e?"real":"merged")),a=o.get("real")||r,s=o.get("merged")||r;if(S(a)&&U(a,le(e,n),i,!!(67108880&e.flags)),S(s)){const r=wp(t.enclosingDeclaration),i=le(e,n),o=dC.createModuleBlock([dC.createExportDeclaration(void 0,!1,dC.createNamedExports(Z(z(s,(e=>"export="!==e.escapedName)),(n=>{var i,o;const a=Ic(n.escapedName),s=le(n,a),c=n.declarations&&$o(n);if(r&&(c?r!==wp(c):!_e(n.declarations,(e=>wp(e)===r))))return void(null==(o=null==(i=t.tracker)?void 0:i.reportNonlocalAugmentation)||o.call(i,r,e,n));const _=c&&ha(c,!0);N(_||n);const l=_?le(_,Ic(_.escapedName)):s;return dC.createExportSpecifier(!1,a===l?void 0:l,a)}))))]);I(dC.createModuleDeclaration(void 0,dC.createIdentifier(i),o,16),0)}}(e,m,v),64&e.flags&&!(32&e.flags)&&function(e,n,r){const i=el(e),o=V(U_(e),(e=>f(e,t))),s=X_(i),c=S(s)?Yh(s):void 0,_=H(fd(i),(e=>function(e,t){return a(e,!1,t)}(e,c))),l=re(0,i,c,176),u=re(1,i,c,177),d=ie(i,c),p=S(s)?[dC.createHeritageClause(94,Z(s,(e=>oe(e,111551))))]:void 0;I(dC.createInterfaceDeclaration(void 0,le(e,n),o,p,[...d,...u,...l,..._]),r)}(e,m,v),2097152&e.flags&&W(e,le(e,m),v),4&e.flags&&"export="===e.escapedName&&ee(e),8388608&e.flags&&e.declarations)for(const n of e.declarations){const e=Ia(n,n.moduleSpecifier);e&&I(dC.createExportDeclaration(void 0,n.isTypeOnly,void 0,dC.createStringLiteral(k(e,t))),0)}h?I(dC.createExportAssignment(void 0,!1,dC.createIdentifier(le(e,m))),0):y&&I(dC.createExportDeclaration(void 0,!1,dC.createNamedExports([dC.createExportSpecifier(!1,le(e,m),m)])),0)}(e,c,l),t.reportedDiagnostic&&(p.reportedDiagnostic=t.reportedDiagnostic),t=_}}function N(e){if(_e(e.declarations,Uy))return;In.assertIsDefined(l[l.length-1]),se(Ic(e.escapedName),e);const t=!!(2097152&e.flags)&&!_e(e.declarations,(e=>!!Ec(e,$E)||QE(e)||BE(e)&&!rN(e.moduleReference)));l[t?0:l.length-1].set(VB(e),e)}function I(e,n){if(LP(e)){let r=0;const i=t.enclosingDeclaration&&(vh(t.enclosingDeclaration)?wp(t.enclosingDeclaration):t.enclosingDeclaration);1&n&&i&&(function(e){return TN(e)&&(em(e)||tm(e))||df(e)&&!yf(e)}(i)||OE(i))&&UT(e)&&(r|=1),!g||1&r||i&&16777216&i.flags||!(IE(e)||_E(e)||EE(e)||NE(e)||OE(e))||(r|=2),1024&n&&(NE(e)||FE(e)||EE(e))&&(r|=1024),r&&(e=dC.updateModifiers(e,r|bb(e)))}c.push(e)}function R(e){return e.exports?z(Ze(e.exports.values()),K):[]}function j(e,r,i,o){const a=qd(e,0);for(const e of a)I(OP(d(e,259,t,{name:dC.createIdentifier(i),privateSymbolVisitor:N,bundledImports:n}),J(e)),o);1536&r.flags&&r.exports&&r.exports.size||U(z(fd(e),K),i,o,!0)}function J(e){if(e.declaration&&e.declaration.parent){if(QD(e.declaration.parent)&&5===Hg(e.declaration.parent))return e.declaration.parent;if(wE(e.declaration.parent)&&e.declaration.parent.parent)return e.declaration.parent.parent}return e.declaration}function U(e,n,i,o){if(S(e)){const a=it(e,(e=>!S(e.declarations)||_e(e.declarations,(e=>wp(e)===wp(t.enclosingDeclaration)))?"local":"remote")).get("local")||r;let _=qP.createModuleDeclaration(void 0,dC.createIdentifier(n),dC.createModuleBlock([]),16);kT(_,s),_.locals=ip(e),_.symbol=e[0].parent;const l=c;c=[];const u=g;g=!1;const d={...t,enclosingDeclaration:_},p=t;t=d,D(ip(a),o,!0),t=p,g=u;const f=c;c=l;const m=V(f,(e=>HE(e)&&!e.isExportEquals&&Tw(e.expression)?dC.createExportDeclaration(void 0,!1,dC.createNamedExports([dC.createExportSpecifier(!1,e.expression,dC.createIdentifier("default"))])):e)),h=F(m,(e=>cb(e,1)))?V(m,C):m;_=dC.updateModuleDeclaration(_,_.modifiers,_.name,dC.createModuleBlock(h)),I(_,i)}}function K(e){return!!(2887656&e.flags)||!(4194304&e.flags||"prototype"===e.escapedName||e.valueDeclaration&&_b(e.valueDeclaration)&&Fl(e.valueDeclaration.parent))}function W(e,r,i){var o,a,s,c,_;const l=$o(e);if(!l)return In.fail();const u=$a(ha(l,!0));if(!u)return;let d=gf(u)&&A(e.declarations,(e=>{if(WE(e)||XE(e))return Oc(e.propertyName||e.name);if(QD(e)||HE(e)){const t=HE(e)?e.expression:e.right;if(ND(t))return Oc(t.name)}if(Go(e)){const t=qc(e);if(t&&Tw(t))return Oc(t)}}))||Ic(u.escapedName);"export="===d&&M&&(d="default");const p=le(u,d);switch(N(u),l.kind){case 205:if(257===(null==(a=null==(o=l.parent)?void 0:o.parent)?void 0:a.kind)){const e=k(u.parent||u,t),{propertyName:n}=l;I(dC.createImportDeclaration(void 0,dC.createImportClause(!1,void 0,dC.createNamedImports([dC.createImportSpecifier(!1,n&&Tw(n)?dC.createIdentifier(Oc(n)):void 0,dC.createIdentifier(r))])),dC.createStringLiteral(e),void 0),0);break}In.failBadSyntaxKind((null==(s=l.parent)?void 0:s.parent)||l,"Unhandled binding element grandparent kind in declaration serialization");break;case 300:223===(null==(_=null==(c=l.parent)?void 0:c.parent)?void 0:_.kind)&&$(Ic(e.escapedName),p);break;case 257:if(ND(l.initializer)){const e=l.initializer,n=dC.createUniqueName(r),o=k(u.parent||u,t);I(dC.createImportEqualsDeclaration(void 0,!1,n,dC.createExternalModuleReference(dC.createStringLiteral(o))),0),I(dC.createImportEqualsDeclaration(void 0,!1,dC.createIdentifier(r),dC.createQualifiedName(n,e.name)),i);break}case 268:if("export="===u.escapedName&&_e(u.declarations,(e=>TN(e)&&tm(e)))){ee(e);break}const f=!(512&u.flags||wE(l));I(dC.createImportEqualsDeclaration(void 0,!1,dC.createIdentifier(r),f?L(u,t,67108863,!1):dC.createExternalModuleReference(dC.createStringLiteral(k(u,t)))),f?i:0);break;case 267:I(dC.createNamespaceExportDeclaration(Oc(l.name)),0);break;case 270:{const e=k(u.parent||u,t),i=n?dC.createStringLiteral(e):l.parent.moduleSpecifier;I(dC.createImportDeclaration(void 0,dC.createImportClause(!1,dC.createIdentifier(r),void 0),i,l.parent.assertClause),0);break}case 271:{const e=k(u.parent||u,t),i=n?dC.createStringLiteral(e):l.parent.parent.moduleSpecifier;I(dC.createImportDeclaration(void 0,dC.createImportClause(!1,void 0,dC.createNamespaceImport(dC.createIdentifier(r))),i,l.parent.parent.assertClause),0);break}case 277:I(dC.createExportDeclaration(void 0,!1,dC.createNamespaceExport(dC.createIdentifier(r)),dC.createStringLiteral(k(u,t))),0);break;case 273:{const e=k(u.parent||u,t),i=n?dC.createStringLiteral(e):l.parent.parent.parent.moduleSpecifier;I(dC.createImportDeclaration(void 0,dC.createImportClause(!1,void 0,dC.createNamedImports([dC.createImportSpecifier(!1,r!==d?dC.createIdentifier(d):void 0,dC.createIdentifier(r))])),i,l.parent.parent.parent.assertClause),0);break}case 278:const m=l.parent.parent.moduleSpecifier;$(Ic(e.escapedName),m?d:p,m&&ed(m)?dC.createStringLiteral(m.text):void 0);break;case 274:ee(e);break;case 223:case 208:case 209:"default"===e.escapedName||"export="===e.escapedName?ee(e):$(r,p);break;default:return In.failBadSyntaxKind(l,"Unhandled alias declaration kind in symbol serializer!")}}function $(e,t,n){I(dC.createExportDeclaration(void 0,!1,dC.createNamedExports([dC.createExportSpecifier(!1,e!==t?t:void 0,e)]),n),0)}function ee(e){if(4194304&e.flags)return!1;const r=Ic(e.escapedName),i="export="===r,o=i||"default"===r,a=e.declarations&&$o(e),_=a&&ha(a,!0);if(_&&S(_.declarations)&&_e(_.declarations,(e=>wp(e)===wp(s)))){const n=a&&(HE(a)||QD(a)?oy(a):ay(a)),l=n&&zb(n)?function(e){switch(e.kind){case 79:return e;case 163:do{e=e.left}while(79!==e.kind);return e;case 208:do{if(Wg(e.expression)&&!Cw(e.name))return e.name;e=e.expression}while(79!==e.kind);return e}}(n):void 0,u=l&&Fa(l,67108863,!0,!0,s);(u||_)&&N(u||_);const d=t.tracker.disableTrackSymbol;if(t.tracker.disableTrackSymbol=!0,o)c.push(dC.createExportAssignment(void 0,i,B(_,t,67108863)));else if(l===n&&l)$(r,Oc(l));else if(n&&GD(n))$(r,le(_,Mc(_)));else{const n=se(r,e);I(dC.createImportEqualsDeclaration(void 0,!1,dC.createIdentifier(n),L(_,t,67108863,!1)),0),$(r,n)}return t.tracker.disableTrackSymbol=d,!0}{const a=se(r,e),l=TT(x_($a(e)));return te(l,e)?j(l,e,a,o?0:1):I(dC.createVariableStatement(void 0,dC.createVariableDeclarationList([dC.createVariableDeclaration(a,void 0,G(t,l,e,s,N,n))],2)),_&&4&_.flags&&"export="===_.escapedName?2:r===a?1:0),o?(c.push(dC.createExportAssignment(void 0,i,dC.createIdentifier(a))),!0):r!==a&&($(r,a),!0)}}function te(e,n){const r=wp(t.enclosingDeclaration);return 48&Vx(e)&&!S(Hd(e))&&!Vs(e)&&!(!S(z(fd(e),K))&&!S(qd(e,0)))&&!S(qd(e,1))&&!Q(n,s)&&!(e.symbol&&_e(e.symbol.declarations,(e=>wp(e)!==r)))&&!_e(fd(e),(e=>Bl(e.escapedName)))&&!_e(fd(e),(e=>_e(e.declarations,(e=>wp(e)!==r))))&&F(fd(e),(e=>Us(Mc(e),w)))}function ne(e,r,i){return function(o,a,c){var _,l,u,p,f;const m=Px(o),g=!!(8&m);if(a&&2887656&o.flags)return[];if(4194304&o.flags||c&&zd(c,o.escapedName)&&TI(zd(c,o.escapedName))===TI(o)&&(16777216&o.flags)==(16777216&zd(c,o.escapedName).flags)&&Cx(x_(o),cc(c,o.escapedName)))return[];const h=-513&m|(a?32:0),y=q(o,t),v=null==(_=o.declarations)?void 0:_.find(vn(Qw,Pl,wE,Vw,QD,ND));if(98304&o.flags&&i){const e=[];if(65536&o.flags&&e.push(OP(dC.createSetAccessorDeclaration(dC.createModifiersFromModifierFlags(h),y,[dC.createParameterDeclaration(void 0,void 0,"arg",void 0,g?void 0:G(t,x_(o),o,s,N,n))],void 0),(null==(l=o.declarations)?void 0:l.find(Qu))||v)),32768&o.flags){const r=8&m;e.push(OP(dC.createGetAccessorDeclaration(dC.createModifiersFromModifierFlags(h),y,[],r?void 0:G(t,x_(o),o,s,N,n),void 0),(null==(u=o.declarations)?void 0:u.find(Ku))||v))}return e}if(98311&o.flags)return OP(e(dC.createModifiersFromModifierFlags((TI(o)?64:0)|h),y,16777216&o.flags?dC.createToken(57):void 0,g?void 0:G(t,y_(o),o,s,N,n),void 0),(null==(p=o.declarations)?void 0:p.find(vn(Qw,wE)))||v);if(8208&o.flags){const n=qd(x_(o),0);if(8&h)return OP(e(dC.createModifiersFromModifierFlags((TI(o)?64:0)|h),y,16777216&o.flags?dC.createToken(57):void 0,void 0,void 0),(null==(f=o.declarations)?void 0:f.find(Cl))||n[0]&&n[0].declaration||o.declarations&&o.declarations[0]);const i=[];for(const e of n){const n=d(e,r,t,{name:y,questionToken:16777216&o.flags?dC.createToken(57):void 0,modifiers:h?dC.createModifiersFromModifierFlags(h):void 0}),a=e.declaration&&ah(e.declaration.parent)?e.declaration.parent:e.declaration;i.push(OP(n,a))}return i}return In.fail("Unhandled class member kind! "+(o.__debugFlags||o.flags))}}function re(e,n,r,i){const o=qd(n,e);if(1===e){if(!r&&F(o,(e=>0===S(e.parameters))))return[];if(r){const e=qd(r,1);if(!S(e)&&F(o,(e=>0===S(e.parameters))))return[];if(e.length===o.length){let t=!1;for(let n=0;no(e,t))),i=B(e.target.symbol,t,788968)):e.symbol&&ws(e.symbol,s,n)&&(i=B(e.symbol,t,788968)),i)return dC.createExpressionWithTypeArguments(i,r)}function ae(e){return oe(e,788968)||(e.symbol?dC.createExpressionWithTypeArguments(B(e.symbol,t,788968),void 0):void 0)}function se(e,n){var r,i;const o=n?VB(n):void 0;if(o&&t.remappedSymbolNames.has(o))return t.remappedSymbolNames.get(o);n&&(e=ce(n,e));let a=0;const s=e;for(;null==(r=t.usedSymbolNames)?void 0:r.has(e);)a++,e=`${s}_${a}`;return null==(i=t.usedSymbolNames)||i.add(e),o&&t.remappedSymbolNames.set(o,e),e}function ce(e,n){if("default"===n||"__class"===n||"__function"===n){const r=t.flags;t.flags|=16777216;const i=Gs(e,t);t.flags=r,n=i.length>0&&Og(i.charCodeAt(0))?cv(i):i}return"default"===n?n="_default":"export="===n&&(n="_exports"),Us(n,w)&&!yy(n)?n:"_"+n.replace(/[^a-zA-Z0-9]/g,"_")}function le(e,n){const r=VB(e);return t.remappedSymbolNames.has(r)?t.remappedSymbolNames.get(r):(n=ce(e,n),t.remappedSymbolNames.set(r,n),n)}}(e,t,s))),symbolToNode:(e,t,r,i,o)=>n(r,i,o,(n=>function(e,t,n){if(1073741824&t.flags){if(e.valueDeclaration){const t=qc(e.valueDeclaration);if(t&&Jw(t))return t}const r=No(e).nameType;if(r&&9216&r.flags)return t.enclosingDeclaration=r.symbol.valueDeclaration,dC.createComputedPropertyName(B(r.symbol,t,n))}return B(e,t,n)}(e,n,t)))};function n(t,n,r,i){In.assert(void 0===t||0==(8&t.flags));const o=(null==r?void 0:r.trackSymbol)?r.moduleResolverHost:134217728&n?function(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:lt(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return null==(t=e.getPackageJsonInfoCache)?void 0:t.call(e)},useCaseSensitiveFileNames:lt(e,e.useCaseSensitiveFileNames),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0}}(e):void 0,a={enclosingDeclaration:t,flags:n||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};a.tracker=new JB(a,r,o);const s=i(a);return a.truncating&&1&a.flags&&a.tracker.reportTruncationError(),a.encounteredError?void 0:s}function i(e){return e.truncating?e.truncating:e.truncating=e.approximateLength>(1&e.flags?sd:ad)}function o(e,n){const c=n.flags,f=function(e,n){var c,f;t&&t.throwIfCancellationRequested&&t.throwIfCancellationRequested();const m=8388608&n.flags;if(n.flags&=-8388609,!e)return 262144&n.flags?(n.approximateLength+=3,dC.createKeywordTypeNode(131)):void(n.encounteredError=!0);if(536870912&n.flags||(e=Md(e)),1&e.flags)return e.aliasSymbol?dC.createTypeReferenceNode(D(e.aliasSymbol),l(e.aliasTypeArguments,n)):e===mt?XC(dC.createKeywordTypeNode(131),3,"unresolved"):(n.approximateLength+=3,dC.createKeywordTypeNode(e===yt?139:131));if(2&e.flags)return dC.createKeywordTypeNode(157);if(4&e.flags)return n.approximateLength+=6,dC.createKeywordTypeNode(152);if(8&e.flags)return n.approximateLength+=6,dC.createKeywordTypeNode(148);if(64&e.flags)return n.approximateLength+=6,dC.createKeywordTypeNode(160);if(16&e.flags&&!e.aliasSymbol)return n.approximateLength+=7,dC.createKeywordTypeNode(134);if(1056&e.flags){if(8&e.symbol.flags){const t=Ya(e.symbol),r=E(t,n,788968);if(ul(t)===e)return r;const i=Mc(e.symbol);return Us(i,0)?C(r,dC.createTypeReferenceNode(i,void 0)):kD(r)?(r.isTypeOf=!0,dC.createIndexedAccessTypeNode(r,dC.createLiteralTypeNode(dC.createStringLiteral(i)))):nD(r)?dC.createIndexedAccessTypeNode(dC.createTypeQueryNode(r.typeName),dC.createLiteralTypeNode(dC.createStringLiteral(i))):In.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return E(e.symbol,n,788968)}if(128&e.flags)return n.approximateLength+=e.value.length+2,dC.createLiteralTypeNode(RC(dC.createStringLiteral(e.value,!!(268435456&n.flags)),33554432));if(256&e.flags){const t=e.value;return n.approximateLength+=(""+t).length,dC.createLiteralTypeNode(t<0?dC.createPrefixUnaryExpression(40,dC.createNumericLiteral(-t)):dC.createNumericLiteral(t))}if(2048&e.flags)return n.approximateLength+=lT(e.value).length+1,dC.createLiteralTypeNode(dC.createBigIntLiteral(e.value));if(512&e.flags)return n.approximateLength+=e.intrinsicName.length,dC.createLiteralTypeNode("true"===e.intrinsicName?dC.createTrue():dC.createFalse());if(8192&e.flags){if(!(1048576&n.flags)){if(Cs(e.symbol,n.enclosingDeclaration))return n.approximateLength+=6,E(e.symbol,n,111551);n.tracker.reportInaccessibleUniqueSymbolError&&n.tracker.reportInaccessibleUniqueSymbolError()}return n.approximateLength+=13,dC.createTypeOperatorNode(156,dC.createKeywordTypeNode(153))}if(16384&e.flags)return n.approximateLength+=4,dC.createKeywordTypeNode(114);if(32768&e.flags)return n.approximateLength+=9,dC.createKeywordTypeNode(155);if(65536&e.flags)return n.approximateLength+=4,dC.createLiteralTypeNode(dC.createNull());if(131072&e.flags)return n.approximateLength+=5,dC.createKeywordTypeNode(144);if(4096&e.flags)return n.approximateLength+=6,dC.createKeywordTypeNode(153);if(67108864&e.flags)return n.approximateLength+=6,dC.createKeywordTypeNode(149);if(BT(e))return 4194304&n.flags&&(n.encounteredError||32768&n.flags||(n.encounteredError=!0),null==(f=(c=n.tracker).reportInaccessibleThisError)||f.call(c)),n.approximateLength+=4,dC.createThisTypeNode();if(!m&&e.aliasSymbol&&(16384&n.flags||Ts(e.aliasSymbol,n.enclosingDeclaration))){const t=l(e.aliasTypeArguments,n);return!ps(e.aliasSymbol.escapedName)||32&e.aliasSymbol.flags?1===S(t)&&e.aliasSymbol===Wn.symbol?dC.createArrayTypeNode(t[0]):E(e.aliasSymbol,n,788968,t):dC.createTypeReferenceNode(dC.createIdentifier(""),t)}const g=Vx(e);if(4&g)return In.assert(!!(524288&e.flags)),e.node?b(e,k):k(e);if(262144&e.flags||3&g){if(262144&e.flags&&R(n.inferTypeParameters,e)){let t;n.approximateLength+=Mc(e.symbol).length+6;const r=gd(e);if(r){const i=Hp(e,!0);i&&Cx(r,i)||(n.approximateLength+=9,t=r&&o(r,n))}return dC.createInferTypeNode(p(e,n,t))}if(4&n.flags&&262144&e.flags&&!Ts(e.symbol,n.enclosingDeclaration)){const t=I(e,n);return n.approximateLength+=Oc(t).length,dC.createTypeReferenceNode(dC.createIdentifier(Oc(t)),void 0)}if(e.symbol)return E(e.symbol,n,788968);const t=(e===Rn||e===Bn)&&a&&a.symbol?(e===Bn?"sub-":"super-")+Mc(a.symbol):"?";return dC.createTypeReferenceNode(dC.createIdentifier(t),void 0)}if(1048576&e.flags&&e.origin&&(e=e.origin),3145728&e.flags){const t=1048576&e.flags?function(e){const t=[];let n=0;for(let r=0;r0?1048576&e.flags?dC.createUnionTypeNode(r):dC.createIntersectionTypeNode(r):void(n.encounteredError||262144&n.flags||(n.encounteredError=!0))}if(48&g)return In.assert(!!(524288&e.flags)),v(e);if(4194304&e.flags){const t=e.type;n.approximateLength+=6;const r=o(t,n);return dC.createTypeOperatorNode(141,r)}if(134217728&e.flags){const t=e.texts,r=e.types,i=dC.createTemplateHead(t[0]),a=dC.createNodeArray(V(r,((e,i)=>dC.createTemplateLiteralTypeSpan(o(e,n),(ifunction(e){const t=o(e.checkType,n);if(n.approximateLength+=15,4&n.flags&&e.root.isDistributive&&!(262144&e.checkType.flags)){const r=ds(vo(262144,"T")),i=I(r,n),a=dC.createTypeReferenceNode(i);n.approximateLength+=37;const s=ix(e.root.checkType,r,e.mapper),c=n.inferTypeParameters;n.inferTypeParameters=e.root.inferTypeParameters;const _=o(gx(e.root.extendsType,s),n);n.inferTypeParameters=c;const l=h(gx(Db(e.root.node.trueType),s)),u=h(gx(Db(e.root.node.falseType),s));return dC.createConditionalTypeNode(t,dC.createInferTypeNode(dC.createTypeParameterDeclaration(void 0,dC.cloneNode(a.typeName))),dC.createConditionalTypeNode(dC.createTypeReferenceNode(dC.cloneNode(i)),o(e.checkType,n),dC.createConditionalTypeNode(a,_,l,u),dC.createKeywordTypeNode(144)),dC.createKeywordTypeNode(144))}const r=n.inferTypeParameters;n.inferTypeParameters=e.root.inferTypeParameters;const i=o(e.extendsType,n);n.inferTypeParameters=r;const a=h(Dv(e)),s=h(Ev(e));return dC.createConditionalTypeNode(t,i,a,s)}(e))):33554432&e.flags?o(e.baseType,n):In.fail("Should be unreachable.");function h(e){var t,r,i;return 1048576&e.flags?(null==(t=n.visitedTypes)?void 0:t.has(_h(e)))?(131072&n.flags||(n.encounteredError=!0,null==(i=null==(r=n.tracker)?void 0:r.reportCyclicStructureError)||i.call(r)),s(n)):b(e,(e=>o(e,n))):o(e,n)}function y(e){return zu(e)&&!(262144&qu(e).flags)}function v(e){var t,r;const i=e.id,o=e.symbol;if(o){const r=Vs(e)?788968:111551;if(vP(o.valueDeclaration))return E(o,n,r);if(32&o.flags&&!l_(o)&&(!(o.valueDeclaration&&Fl(o.valueDeclaration)&&2048&n.flags)||NE(o.valueDeclaration)&&0===Es(o,n.enclosingDeclaration,r,!1).accessibility)||896&o.flags||function(){var e;const t=!!(8192&o.flags)&&_e(o.declarations,(e=>_b(e))),r=!!(16&o.flags)&&(o.parent||T(o.declarations,(e=>308===e.parent.kind||265===e.parent.kind)));if(t||r)return(!!(4096&n.flags)||(null==(e=n.visitedTypes)?void 0:e.has(i)))&&(!(8&n.flags)||Cs(o,n.enclosingDeclaration))}())return E(o,n,r);if(null==(t=n.visitedTypes)?void 0:t.has(i)){const t=function(e){if(e.symbol&&2048&e.symbol.flags&&e.symbol.declarations){const t=Vh(e.symbol.declarations[0].parent);if(PE(t))return Ga(t)}}(e);return t?E(t,n,788968):s(n)}return b(e,x)}if(8388608&Vx(e)){const t=e;if(oD(t.node)){const e=Y(n,t.node);if(e)return e}return(null==(r=n.visitedTypes)?void 0:r.has(i))?s(n):b(e,x)}return x(e)}function b(e,t){var r,i;const o=e.id,a=16&Vx(e)&&e.symbol&&32&e.symbol.flags,c=4&Vx(e)&&e.node?"N"+qB(e.node):16777216&e.flags?"N"+qB(e.root.node):e.symbol?(a?"+":"")+VB(e.symbol):void 0;n.visitedTypes||(n.visitedTypes=new Set),c&&!n.symbolDepth&&(n.symbolDepth=new Map);const _=n.enclosingDeclaration&&Fo(n.enclosingDeclaration),l=`${_h(e)}|${n.flags}`;_&&(_.serializedTypes||(_.serializedTypes=new Map));const u=null==(r=null==_?void 0:_.serializedTypes)?void 0:r.get(l);if(u)return u.truncating&&(n.truncating=!0),n.approximateLength+=u.addedLength,function e(t){return Qy(t)||Fc(t)!==t?OP(dC.cloneNode(uj(t,e,Nz,g)),t):t}(u.node);let d;if(c){if(d=n.symbolDepth.get(c)||0,d>10)return s(n);n.symbolDepth.set(c,d+1)}n.visitedTypes.add(o);const p=n.approximateLength,f=t(e),m=n.approximateLength-p;return n.reportedDiagnostic||n.encounteredError||null==(i=null==_?void 0:_.serializedTypes)||i.set(l,{node:f,truncating:n.truncating,addedLength:m}),n.visitedTypes.delete(o),c&&n.symbolDepth.set(c,d),f;function g(e,t,n,r,i){return e&&0===e.length?OP(dC.createNodeArray(void 0,e.hasTrailingComma),e):nj(e,t,n,r,i)}}function x(e){if(cd(e)||e.containsError)return function(e){In.assert(!!(524288&e.flags));const t=e.declaration.readonlyToken?dC.createToken(e.declaration.readonlyToken.kind):void 0,r=e.declaration.questionToken?dC.createToken(e.declaration.questionToken.kind):void 0;let i,a;if(zu(e)){if(y(e)&&4&n.flags){const e=I(ds(vo(262144,"T")),n);a=dC.createTypeReferenceNode(e)}i=dC.createTypeOperatorNode(141,a||o(qu(e),n))}else i=o(Lu(e),n);const s=p(Ou(e),n,i),c=e.declaration.nameType?o(Mu(e),n):void 0,_=o($S(Ru(e),!!(4&Vu(e))),n),l=dC.createMappedTypeNode(t,s,c,r,_,void 0);n.approximateLength+=10;const u=RC(l,1);if(y(e)&&4&n.flags){const t=gx(gd(Db(e.declaration.typeParameter.constraint.type))||bt,e.mapper);return dC.createConditionalTypeNode(o(qu(e),n),dC.createInferTypeNode(dC.createTypeParameterDeclaration(void 0,dC.cloneNode(a.typeName),2&t.flags?void 0:o(t,n))),u,dC.createKeywordTypeNode(144))}return u}(e);const t=ld(e);if(!t.properties.length&&!t.indexInfos.length){if(!t.callSignatures.length&&!t.constructSignatures.length)return n.approximateLength+=2,RC(dC.createTypeLiteralNode(void 0),1);if(1===t.callSignatures.length&&!t.constructSignatures.length)return d(t.callSignatures[0],181,n);if(1===t.constructSignatures.length&&!t.callSignatures.length)return d(t.constructSignatures[0],182,n)}const a=z(t.constructSignatures,(e=>!!(4&e.flags)));if(_e(a)){const e=V(a,Jp);return t.callSignatures.length+(t.constructSignatures.length-a.length)+t.indexInfos.length+(2048&n.flags?J(t.properties,(e=>!(4194304&e.flags))):S(t.properties))&&e.push(function(e){if(0===e.constructSignatures.length)return e;if(e.objectTypeWithoutAbstractConstructSignatures)return e.objectTypeWithoutAbstractConstructSignatures;const t=z(e.constructSignatures,(e=>!(4&e.flags)));if(e.constructSignatures===t)return e;const n=hs(e.symbol,e.members,e.callSignatures,_e(t)?t:r,e.indexInfos);return e.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n}(t)),o(Yh(e),n)}const c=n.flags;n.flags|=4194304;const l=function(e){if(i(n))return[dC.createPropertySignature(void 0,"...",void 0,void 0)];const t=[];for(const r of e.callSignatures)t.push(d(r,176,n));for(const r of e.constructSignatures)4&r.flags||t.push(d(r,177,n));for(const r of e.indexInfos)t.push(u(r,n,1024&e.objectFlags?s(n):void 0));const r=e.properties;if(!r)return t;let o=0;for(const e of r){if(o++,2048&n.flags){if(4194304&e.flags)continue;24&Px(e)&&n.tracker.reportPrivateInBaseOfClassExpression&&n.tracker.reportPrivateInBaseOfClassExpression(Ic(e.escapedName))}if(i(n)&&o+20){const i=(e.target.typeParameters||r).length;a=l(t.slice(s,i),n)}const c=n.flags;n.flags|=16;const _=E(e.symbol,n,788968,a);return n.flags=c,o?C(o,_):_}}if(t=K(t,((t,n)=>$S(t,!!(2&e.target.elementFlags[n])))),t.length>0){const r=_f(e),i=l(t.slice(0,r),n);if(i){if(e.target.labeledElementDeclarations)for(let t=0;t!(32768&e.flags))),0);for(const r of e){const e=d(r,170,t,{name:_,questionToken:l});n.push(u(e))}}else{let r;c(e,t)?r=s(t):(i&&(t.reverseMappedStack||(t.reverseMappedStack=[]),t.reverseMappedStack.push(e)),r=o?G(t,o,e,a):dC.createKeywordTypeNode(131),i&&t.reverseMappedStack.pop());const d=TI(e)?[dC.createToken(146)]:void 0;d&&(t.approximateLength+=9);const p=dC.createPropertySignature(d,_,l,r);n.push(u(p))}function u(t){var n;if(_e(e.declarations,(e=>351===e.kind))){const r=D_((null==(n=e.declarations)?void 0:n.find((e=>351===e.kind))).comment);r&&GC(t,[{kind:3,text:"*\n * "+r.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])}else e.valueDeclaration&&HC(t,e.valueDeclaration);return t}}function l(e,t,n){if(_e(e)){if(i(t)){if(!n)return[dC.createTypeReferenceNode("...",void 0)];if(e.length>2)return[o(e[0],t),dC.createTypeReferenceNode(`... ${e.length-2} more ...`,void 0),o(e[e.length-1],t)]}const r=64&t.flags?void 0:ft(),a=[];let s=0;for(const n of e){if(s++,i(t)&&s+2{if(!gT(e,(([e],[t])=>function(e,t){return e===t||!!e.symbol&&e.symbol===t.symbol||!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}(e,t))))for(const[n,r]of e)a[r]=o(n,t)})),t.flags=e}return a}}function u(e,t,n){const r=Mf(e)||"x",i=o(e.keyType,t),a=dC.createParameterDeclaration(void 0,void 0,r,void 0,i,void 0);return n||(n=o(e.type||_t,t)),e.type||2097152&t.flags||(t.encounteredError=!0),t.approximateLength+=r.length+4,dC.createIndexSignature(e.isReadonly?[dC.createToken(146)]:void 0,[a],n)}function d(e,t,n,i){var a,s,c,_,l;const u=256&n.flags;let d,p;u&&(n.flags&=-257),n.approximateLength+=3,32&n.flags&&e.target&&e.mapper&&e.target.typeParameters?p=e.target.typeParameters.map((t=>o(gx(t,e.mapper),n))):d=e.typeParameters&&e.typeParameters.map((e=>f(e,n)));const g=au(e,!0)[0];let h;if(n.enclosingDeclaration&&e.declaration&&e.declaration!==n.enclosingDeclaration&&!Sg(e.declaration)&&_e(g)){const e=Fo(n.enclosingDeclaration).fakeScopeForSignatureDeclaration?n.enclosingDeclaration:void 0;In.assertOptionalNode(e,cE);const t=null!=(a=null==e?void 0:e.locals)?a:ip();let i;for(const e of g)t.has(e.escapedName)||(i=Se(i,e.escapedName),t.set(e.escapedName,e));if(i){let o=function(){T(i,(e=>t.delete(e)))};if(e)h=o;else{const e=qP.createBlock(r);Fo(e).fakeScopeForSignatureDeclaration=!0,e.locals=t;const i=n.enclosingDeclaration;kT(e,i),n.enclosingDeclaration=e,h=()=>{n.enclosingDeclaration=i,o()}}}}const y=(_e(g,(e=>e!==g[g.length-1]&&!!(32768&Fx(e))))?e.parameters:g).map((e=>m(e,n,173===t,null==i?void 0:i.privateSymbolVisitor,null==i?void 0:i.bundledImports))),v=33554432&n.flags?void 0:function(e,t){if(e.thisParameter)return m(e.thisParameter,t);if(e.declaration&&Sg(e.declaration)){const n=m_(e.declaration);if(n&&n.typeExpression)return dC.createParameterDeclaration(void 0,void 0,"this",void 0,o(Db(n.typeExpression),t))}}(e,n);let b;v&&y.unshift(v);const x=kp(e);if(x){const e=2===x.kind||3===x.kind?dC.createToken(129):void 0,t=1===x.kind||3===x.kind?RC(dC.createIdentifier(x.parameterName),33554432):dC.createThisTypeNode(),r=x.type&&o(x.type,n);b=dC.createTypePredicateNode(e,t,r)}else{const t=Tp(e);!t||u&&_c(t)?u||(b=dC.createKeywordTypeNode(131)):b=function(e,t,n,r,i){if(!lc(t)&&e.enclosingDeclaration){const o=n.declaration&&Hv(n.declaration),a=$(e.enclosingDeclaration);if(Ec(o,(e=>e===a))&&o){const a=Db(o);if((262144&a.flags&&a.isThisType?gx(a,n.mapper):a)===t&&W(o,t)){const t=Y(e,o,r,i);if(t)return t}}}return o(t,e)}(n,t,e,null==i?void 0:i.privateSymbolVisitor,null==i?void 0:i.bundledImports)}let k=null==i?void 0:i.modifiers;if(182===t&&4&e.flags){const e=Ab(k);k=dC.createModifiersFromModifierFlags(256|e)}const S=176===t?dC.createCallSignature(d,y,b):177===t?dC.createConstructSignature(d,y,b):170===t?dC.createMethodSignature(k,null!=(s=null==i?void 0:i.name)?s:dC.createIdentifier(""),null==i?void 0:i.questionToken,d,y,b):171===t?dC.createMethodDeclaration(k,void 0,null!=(c=null==i?void 0:i.name)?c:dC.createIdentifier(""),void 0,d,y,b,void 0):173===t?dC.createConstructorDeclaration(k,y,void 0):174===t?dC.createGetAccessorDeclaration(k,null!=(_=null==i?void 0:i.name)?_:dC.createIdentifier(""),y,b,void 0):175===t?dC.createSetAccessorDeclaration(k,null!=(l=null==i?void 0:i.name)?l:dC.createIdentifier(""),y,void 0):178===t?dC.createIndexSignature(k,y,b):320===t?dC.createJSDocFunctionType(y,b):181===t?dC.createFunctionTypeNode(d,y,null!=b?b:dC.createTypeReferenceNode(dC.createIdentifier(""))):182===t?dC.createConstructorTypeNode(k,d,y,null!=b?b:dC.createTypeReferenceNode(dC.createIdentifier(""))):259===t?dC.createFunctionDeclaration(k,void 0,(null==i?void 0:i.name)?kt(i.name,Tw):dC.createIdentifier(""),d,y,b,void 0):215===t?dC.createFunctionExpression(k,void 0,(null==i?void 0:i.name)?kt(i.name,Tw):dC.createIdentifier(""),d,y,b,dC.createBlock([])):216===t?dC.createArrowFunction(k,d,y,b,void 0,dC.createBlock([])):In.assertNever(t);return p&&(S.typeArguments=dC.createNodeArray(p)),null==h||h(),S}function p(e,t,n){const r=t.flags;t.flags&=-513;const i=dC.createModifiersFromModifierFlags(Lk(e)),a=I(e,t),s=wd(e),c=s&&o(s,t);return t.flags=r,dC.createTypeParameterDeclaration(i,a,n,c)}function f(e,t,n=gd(e)){return p(e,t,n&&o(n,t))}function m(e,t,n,r,i){let o=np(e,166);o||op(e)||(o=np(e,344));let a=x_(e);o&&wR(o)&&(a=US(a));const s=G(t,a,e,t.enclosingDeclaration,r,i),c=!(8192&t.flags)&&n&&o&&LP(o)?V(Kc(o),dC.cloneNode):void 0,_=o&&rd(o)||32768&Fx(e)?dC.createToken(25):void 0,l=o&&o.name?79===o.name.kind?RC(dC.cloneNode(o.name),33554432):163===o.name.kind?RC(dC.cloneNode(o.name.right),33554432):function e(n){t.tracker.canTrackSymbol&&Jw(n)&&Rl(n)&&g(n.expression,t.enclosingDeclaration,t);let r=uj(n,e,Nz,void 0,e);return wD(r)&&(r=dC.updateBindingElement(r,r.dotDotDotToken,r.propertyName,r.name,void 0)),Qy(r)||(r=dC.cloneNode(r)),RC(r,33554433)}(o.name):Mc(e),u=o&&sp(o)||16384&Fx(e)?dC.createToken(57):void 0,d=dC.createParameterDeclaration(c,_,l,u,s,void 0);return t.approximateLength+=Mc(e).length+3,d}function g(e,t,n){if(!n.tracker.canTrackSymbol)return;const r=Ub(e),i=Ro(r,r.escapedText,1160127,void 0,void 0,!0);i&&n.tracker.trackSymbol(i,t,111551)}function h(e,t,n,r){return t.tracker.trackSymbol(e,t.enclosingDeclaration,n),y(e,t,n,r)}function y(e,t,n,r){let i;return 262144&e.flags||!(t.enclosingDeclaration||64&t.flags)||134217728&t.flags?i=[e]:(i=In.checkDefined(function e(n,i,o){let a,s=ks(n,t.enclosingDeclaration,i,!!(128&t.flags));if(!s||Ss(s[0],t.enclosingDeclaration,1===s.length?i:bs(i))){const r=Za(s?s[0]:n,t.enclosingDeclaration,i);if(S(r)){a=r.map((e=>_e(e.declarations,Is)?k(e,t):void 0));const o=r.map(((e,t)=>t));o.sort((function(e,t){const n=a[e],r=a[t];if(n&&r){const e=Yo(r);return Yo(n)===e?cB(n)-cB(r):e?-1:1}return 0}));const c=o.map((e=>r[e]));for(const t of c){const r=e(t,bs(i),!1);if(r){if(t.exports&&t.exports.get("export=")&&ns(t.exports.get("export="),n)){s=r;break}s=r.concat(s||[ts(t,n)||n]);break}}}}if(s)return s;if(o||!(6144&n.flags)){if(!o&&!r&&T(n.declarations,Is))return;return[n]}}(e,n,!0)),In.assert(i&&i.length>0)),i}function v(e,t){let n;return 524384&vM(e).flags&&(n=dC.createNodeArray(V(U_(e),(e=>f(e,t))))),n}function b(e,t,n){var r;In.assert(e&&0<=t&&tHb(e,o.links.mapper))),n)}else a=v(i,n)}return a}function x(e){return vD(e.objectType)?x(e.objectType):e}function k(e,t,n){let r=np(e,308);if(!r){const t=A(e.declarations,(t=>es(t,e)));t&&(r=np(t,308))}if(r&&void 0!==r.moduleName)return r.moduleName;if(!r){if(t.tracker.trackReferencedAmbientModule){const n=z(e.declarations,df);if(S(n))for(const r of n)t.tracker.trackReferencedAmbientModule(r,e)}if(AB.test(e.escapedName))return e.escapedName.substring(1,e.escapedName.length-1)}if(!t.enclosingDeclaration||!t.tracker.moduleResolverHost)return AB.test(e.escapedName)?e.escapedName.substring(1,e.escapedName.length-1):wp(xf(e)).fileName;const i=wp(Dc(t.enclosingDeclaration)),o=n||(null==i?void 0:i.impliedNodeFormat),a=NM(i.path,o),s=No(e);let c=s.specifierCache&&s.specifierCache.get(a);if(!c){const r=!!Av(C),{moduleResolverHost:_}=t.tracker,l=r?{...C,baseUrl:_.getCommonSourceDirectory()}:C;c=Me(iB(e,ve,l,i,_,{importModuleSpecifierPreference:r?"non-relative":"project-relative",importModuleSpecifierEnding:r?"minimal":99===o?"js":void 0},{overrideImportMode:n})),null!=s.specifierCache||(s.specifierCache=new Map),s.specifierCache.set(a,c)}return c}function D(e){const t=dC.createIdentifier(Ic(e.escapedName));return e.parent?dC.createQualifiedName(D(e.parent),t):t}function E(e,t,n,r){var i,o,a,s;const c=h(e,t,n,!(16384&t.flags)),_=111551===n;if(_e(c[0].declarations,Is)){const e=c.length>1?u(c,c.length-1,1):void 0,n=r||b(c,0,t),l=wp(Dc(t.enclosingDeclaration)),d=Dp(c[0]);let p,f;if(3!==Jk(C)&&99!==Jk(C)||99===(null==d?void 0:d.impliedNodeFormat)&&d.impliedNodeFormat!==(null==l?void 0:l.impliedNodeFormat)&&(p=k(c[0],t,99),f=dC.createImportTypeAssertionContainer(dC.createAssertClause(dC.createNodeArray([dC.createAssertEntry(dC.createStringLiteral("resolution-mode"),dC.createStringLiteral("import"))]))),null==(o=(i=t.tracker).reportImportTypeNodeResolutionModeOverride)||o.call(i)),p||(p=k(c[0],t)),!(67108864&t.flags)&&1!==Jk(C)&&p.indexOf("/node_modules/")>=0){const e=p;if(3===Jk(C)||99===Jk(C)){const n=99===(null==l?void 0:l.impliedNodeFormat)?1:99;p=k(c[0],t,n),p.indexOf("/node_modules/")>=0?p=e:(f=dC.createImportTypeAssertionContainer(dC.createAssertClause(dC.createNodeArray([dC.createAssertEntry(dC.createStringLiteral("resolution-mode"),dC.createStringLiteral(99===n?"import":"require"))]))),null==(s=(a=t.tracker).reportImportTypeNodeResolutionModeOverride)||s.call(a))}f||(t.encounteredError=!0,t.tracker.reportLikelyUnsafeImportRequiredError&&t.tracker.reportLikelyUnsafeImportRequiredError(e))}const m=dC.createLiteralTypeNode(dC.createStringLiteral(p));if(t.tracker.trackExternalModuleSymbolOfImportTypeNode&&t.tracker.trackExternalModuleSymbolOfImportTypeNode(c[0]),t.approximateLength+=p.length+10,!e||bl(e))return e&&fA(Tw(e)?e:e.right,void 0),dC.createImportTypeNode(m,f,e,n,_);{const t=x(e),r=t.objectType.typeName;return dC.createIndexedAccessTypeNode(dC.createImportTypeNode(m,f,r,n,_),t.indexType)}}const l=u(c,c.length-1,0);if(vD(l))return l;if(_)return dC.createTypeQueryNode(l);{const e=Tw(l)?l:l.right,t=mA(e);return fA(e,void 0),dC.createTypeReferenceNode(l,t)}function u(e,n,i){const o=n===e.length-1?r:b(e,n,t),a=e[n],s=e[n-1];let c;if(0===n?(t.flags|=16777216,c=Gs(a,t),t.approximateLength+=(c?c.length:0)+1,t.flags^=16777216):s&&Qa(s)&&up(Qa(s),((e,t)=>{if(ns(e,a)&&!Bl(t)&&"export="!==t)return c=Ic(t),!0})),void 0===c){const r=A(a.declarations,qc);if(r&&Jw(r)&&bl(r.expression)){const t=u(e,n-1,i);return bl(t)?dC.createIndexedAccessTypeNode(dC.createParenthesizedType(dC.createTypeQueryNode(t)),dC.createTypeQueryNode(r.expression)):t}c=Gs(a,t)}if(t.approximateLength+=c.length+1,!(16&t.flags)&&s&&Hl(s)&&Hl(s).get(a.escapedName)&&ns(Hl(s).get(a.escapedName),a)){const t=u(e,n-1,i);return vD(t)?dC.createIndexedAccessTypeNode(t,dC.createLiteralTypeNode(dC.createStringLiteral(c))):dC.createIndexedAccessTypeNode(dC.createTypeReferenceNode(t,o),dC.createLiteralTypeNode(dC.createStringLiteral(c)))}const _=RC(dC.createIdentifier(c),33554432);if(o&&fA(_,dC.createNodeArray(o)),_.symbol=a,n>i){const t=u(e,n-1,i);return bl(t)?dC.createQualifiedName(t,_):In.fail("Impossible construct - an export of an indexed access cannot be reachable")}return _}}function N(e,t,n){const r=Ro(t.enclosingDeclaration,e,788968,void 0,e,!1);return!(!r||262144&r.flags&&r===n.symbol)}function I(e,t){var n,r;if(4&t.flags&&t.typeParameterNames){const n=t.typeParameterNames.get(_h(e));if(n)return n}let i=L(e.symbol,t,788968,!0);if(!(79&i.kind))return dC.createIdentifier("(Missing type parameter)");if(4&t.flags){const o=i.escapedText;let a=(null==(n=t.typeParameterNamesByTextNextNameCount)?void 0:n.get(o))||0,s=o;for(;(null==(r=t.typeParameterNamesByText)?void 0:r.has(s))||N(s,t,e);)a++,s=`${o}_${a}`;if(s!==o){const e=mA(i);i=dC.createIdentifier(s),fA(i,e)}(t.typeParameterNamesByTextNextNameCount||(t.typeParameterNamesByTextNextNameCount=new Map)).set(o,a),(t.typeParameterNames||(t.typeParameterNames=new Map)).set(_h(e),i),(t.typeParameterNamesByText||(t.typeParameterNamesByText=new Set)).add(o)}return i}function L(e,t,n,r){const i=h(e,t,n);return!r||1===i.length||t.encounteredError||65536&t.flags||(t.encounteredError=!0),function e(n,r){const i=b(n,r,t),o=n[r];0===r&&(t.flags|=16777216);const a=Gs(o,t);0===r&&(t.flags^=16777216);const s=RC(dC.createIdentifier(a),33554432);return i&&fA(s,dC.createNodeArray(i)),s.symbol=o,r>0?dC.createQualifiedName(e(n,r-1),s):s}(i,i.length-1)}function B(e,t,n){const r=h(e,t,n);return function e(n,r){const i=b(n,r,t),o=n[r];0===r&&(t.flags|=16777216);let a=Gs(o,t);0===r&&(t.flags^=16777216);let s=a.charCodeAt(0);if(Og(s)&&_e(o.declarations,Is))return dC.createStringLiteral(k(o,t));if(0===r||VT(a,w)){const t=RC(dC.createIdentifier(a),33554432);return i&&fA(t,dC.createNodeArray(i)),t.symbol=o,r>0?dC.createPropertyAccessExpression(e(n,r-1),t):t}{let t;if(91===s&&(a=a.substring(1,a.length-1),s=a.charCodeAt(0)),!Og(s)||8&o.flags?""+ +a===a&&(t=dC.createNumericLiteral(+a)):t=dC.createStringLiteral(cv(a).replace(/\\./g,(e=>e.substring(1))),39===s),!t){const e=RC(dC.createIdentifier(a),33554432);i&&fA(e,dC.createNodeArray(i)),e.symbol=o,t=e}return dC.createElementAccessExpression(e(n,r-1),t)}}(r,r.length-1)}function j(e){const t=qc(e);return!!t&&sw(t)}function U(e){const t=qc(e);return!!(t&&sw(t)&&(t.singleQuote||!Qy(t)&&fn(ef(t,!1),"'")))}function q(e,t){const n=!!S(e.declarations)&&F(e.declarations,j),r=!!S(e.declarations)&&F(e.declarations,U),i=function(e,t,n,r){const i=No(e).nameType;if(i){if(384&i.flags){const e=""+i.value;return Us(e,Rk(C))||!r&&MT(e)?MT(e)&&fn(e,"-")?dC.createComputedPropertyName(dC.createNumericLiteral(+e)):RT(e,Rk(C)):dC.createStringLiteral(e,!!n)}if(8192&i.flags)return dC.createComputedPropertyName(B(i.symbol,t,111551))}}(e,t,r,n);return i||RT(Ic(e.escapedName),Rk(C),r,n)}function Q(e,t){return e.declarations&&P(e.declarations,(e=>!(!Kv(e)||t&&!Ec(e,(e=>e===t)))))}function W(e,t){return!(4&Vx(t))||!nD(e)||S(e.typeArguments)>=_p(t.target.typeParameters)}function $(e){return Fo(e).fakeScopeForSignatureDeclaration?e.parent:e}function G(e,t,n,r,i,a){if(!lc(t)&&r){const o=Q(n,$(r));if(o&&!Cl(o)&&!Gw(o)){const n=Kv(o);if(function(e,t,n){const r=Db(e);return r===n||!(!Uw(t)||!t.questionToken)&&ZC(n,524288)===r}(n,o,t)&&W(n,t)){const t=Y(e,n,i,a);if(t)return t}}}const s=e.flags;8192&t.flags&&t.symbol===n&&(!e.enclosingDeclaration||_e(n.declarations,(t=>wp(t)===wp(e.enclosingDeclaration))))&&(e.flags|=1048576);const c=o(t,e);return e.flags=s,c}function X(e,t,n){let r=!1;const i=Ub(e);if(Sg(e)&&(Qg(i)||Wg(i.parent)||jw(i.parent)&&Kg(i.parent.left)&&Qg(i.parent.right)))return r=!0,{introducesError:r,node:e};const o=Fa(i,67108863,!0,!0);if(o&&(0!==Es(o,t.enclosingDeclaration,67108863,!1).accessibility?r=!0:(t.tracker.trackSymbol(o,t.enclosingDeclaration,67108863),null==n||n(o)),Tw(e))){const n=ul(o),i=262144&o.flags&&!Ts(n.symbol,t.enclosingDeclaration)?I(n,t):dC.cloneNode(e);return i.symbol=o,{introducesError:r,node:RC(PC(i,e),33554432)}}return{introducesError:r,node:e}}function Y(n,r,i,a){t&&t.throwIfCancellationRequested&&t.throwIfCancellationRequested();let s=!1;const c=wp(r),_=tj(r,(function t(r){if(IN(r)||322===r.kind)return dC.createKeywordTypeNode(131);if(ON(r))return dC.createKeywordTypeNode(157);if(LN(r))return dC.createUnionTypeNode([tj(r.type,t,Jl),dC.createLiteralTypeNode(dC.createNull())]);if(RN(r))return dC.createUnionTypeNode([tj(r.type,t,Jl),dC.createKeywordTypeNode(155)]);if(MN(r))return tj(r.type,t);if(jN(r))return dC.createArrayTypeNode(tj(r.type,t,Jl));if(UN(r))return dC.createTypeLiteralNode(V(r.jsDocPropertyTags,(e=>{const i=Tw(e.name)?e.name:e.name.right,a=cc(Db(r),i.escapedText),s=a&&e.typeExpression&&Db(e.typeExpression.type)!==a?o(a,n):void 0;return dC.createPropertySignature(void 0,i,e.isBracketed||e.typeExpression&&RN(e.typeExpression.type)?dC.createToken(57):void 0,s||e.typeExpression&&tj(e.typeExpression.type,t,Jl)||dC.createKeywordTypeNode(131))})));if(nD(r)&&Tw(r.typeName)&&""===r.typeName.escapedText)return PC(dC.createKeywordTypeNode(131),r);if((YD(r)||nD(r))&&wg(r))return dC.createTypeLiteralNode([dC.createIndexSignature(void 0,[dC.createParameterDeclaration(void 0,void 0,"x",void 0,tj(r.typeArguments[0],t,Jl))],tj(r.typeArguments[1],t,Jl))]);if(BN(r)){if(yh(r)){let e;return dC.createConstructorTypeNode(void 0,nj(r.typeParameters,t,zw),Z(r.parameters,((n,r)=>n.name&&Tw(n.name)&&"new"===n.name.escapedText?void(e=n.type):dC.createParameterDeclaration(void 0,_(n),l(n,r),n.questionToken,tj(n.type,t,Jl),void 0))),tj(e||r.type,t,Jl)||dC.createKeywordTypeNode(131))}return dC.createFunctionTypeNode(nj(r.typeParameters,t,zw),V(r.parameters,((e,n)=>dC.createParameterDeclaration(void 0,_(e),l(e,n),e.questionToken,tj(e.type,t,Jl),void 0))),tj(r.type,t,Jl)||dC.createKeywordTypeNode(131))}if(nD(r)&&Ag(r)&&(!W(r,Db(r))||Kf(r)||rt===Cf(r,788968,!0)))return PC(o(Db(r),n),r);if(_m(r)){const i=Fo(r).resolvedSymbol;return!Ag(r)||!i||(r.isTypeOf||788968&i.flags)&&S(r.typeArguments)>=_p(U_(i))?dC.updateImportTypeNode(r,dC.updateLiteralTypeNode(r.argument,function(t,r){if(a){if(n.tracker&&n.tracker.moduleResolverHost){const r=XR(t);if(r){const t=hv({getCanonicalFileName:ln(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>n.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>n.tracker.moduleResolverHost.getCommonSourceDirectory()},r);return dC.createStringLiteral(t)}}}else if(n.tracker&&n.tracker.trackExternalModuleSymbolOfImportTypeNode){const e=Oa(r,r,void 0);e&&n.tracker.trackExternalModuleSymbolOfImportTypeNode(e)}return r}(r,r.argument.literal)),r.assertions,r.qualifier,nj(r.typeArguments,t,Jl),r.isTypeOf):PC(o(Db(r),n),r)}if(bl(r)||zb(r)){const{introducesError:e,node:t}=X(r,n,i);if(s=s||e,t!==r)return t}return c&&cD(r)&&ys(c,r.pos).line===ys(c,r.end).line&&RC(r,1),uj(r,t,Nz);function _(e){return e.dotDotDotToken||(e.type&&jN(e.type)?dC.createToken(25):void 0)}function l(e,t){return e.name&&Tw(e.name)&&"this"===e.name.escapedText?"this":_(e)?"args":"arg"+t}}),Jl);if(!s)return _===r?OP(dC.cloneNode(r),r):_}}(),ce=ip(),le=vo(4,"undefined");le.declarations=[];var de=vo(1536,"globalThis",8);de.exports=ce,de.declarations=[],ce.set(de.escapedName,de);var me,ge=vo(4,"arguments"),he=vo(4,"require"),ye=C.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules";const ve={getNodeCount:()=>Ke(e.getSourceFiles(),((e,t)=>e+t.nodeCount),0),getIdentifierCount:()=>Ke(e.getSourceFiles(),((e,t)=>e+t.identifierCount),0),getSymbolCount:()=>Ke(e.getSourceFiles(),((e,t)=>e+t.symbolCount),m),getTypeCount:()=>f,getInstantiationCount:()=>g,getRelationCacheSizes:()=>({assignable:Yi.size,identity:eo.size,subtype:Gi.size,strictSubtype:Xi.size}),isUndefinedSymbol:e=>e===le,isArgumentsSymbol:e=>e===ge,isUnknownSymbol:e=>e===rt,getMergedSymbol:$a,getDiagnostics:$M,getGlobalDiagnostics:function(){return GM(),Wi.getGlobalDiagnostics()},getRecursionIdentity:Zk,getUnmatchedProperties:cC,getTypeOfSymbolAtLocation:(e,t)=>{const n=Fc(t);return n?function(e,t){if(e=rs(e),(79===t.kind||80===t.kind)&&(Wb(t)&&(t=t.parent),pg(t)&&(!Jh(t)||Mx(t)))){const n=_O(t);if(rs(Fo(t).resolvedSymbol)===e)return n}return Xh(t)&&Qu(t.parent)&&a_(t.parent)?__(t.parent.symbol):k_(e)}(e,n):pt},getTypeOfSymbol:x_,getSymbolsOfParameterPropertyDeclaration:(e,t)=>{const n=Fc(e,Uw);return void 0===n?In.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(In.assert(vc(n,n.parent)),function(e,t){const n=e.parent,r=e.parent.parent,i=Io(n.locals,t,111551),o=Io(Hl(r.symbol),t,111551);return i&&o?[i,o]:In.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,Pc(t)))},getDeclaredTypeOfSymbol:ul,getPropertiesOfType:fd,getPropertyOfType:(e,t)=>zd(e,Pc(t)),getPrivateIdentifierPropertyOfType:(e,t,n)=>{const r=Fc(n);if(!r)return;const i=NN(Pc(t),r);return i?PN(e,i):void 0},getTypeOfPropertyOfType:(e,t)=>cc(e,Pc(t)),getIndexInfoOfType:(e,t)=>$d(e,0===t?Pt:It),getIndexInfosOfType:Hd,getIndexInfosOfIndexSymbol:Qp,getSignaturesOfType:qd,getIndexTypeOfType:(e,t)=>Gd(e,0===t?Pt:It),getIndexType:e=>Py(e),getBaseTypes:X_,getBaseTypeOfLiteralType:wS,getWidenedType:TT,getTypeFromTypeNode:e=>{const t=Fc(e,Jl);return t?Db(t):pt},getParameterType:KP,getParameterIdentifierNameAtPosition:function(e,t){var n;if(320===(null==(n=e.declaration)?void 0:n.kind))return;const r=e.parameters.length-(XB(e)?1:0);if(tzO(e),getReturnTypeOfSignature:Tp,isNullableType:nN,getNullableType:zS,getNonNullableType:qS,getNonOptionalType:KS,getTypeArguments:cf,typeToTypeNode:se.typeToTypeNode,indexInfoToIndexSignatureDeclaration:se.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:se.signatureToSignatureDeclaration,symbolToEntityName:se.symbolToEntityName,symbolToExpression:se.symbolToExpression,symbolToNode:se.symbolToNode,symbolToTypeParameterDeclarations:se.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:se.symbolToParameterDeclaration,typeParameterToDeclaration:se.typeParameterToDeclaration,getSymbolsInScope:(e,t)=>{const n=Fc(e);return n?function(e,t){if(33554432&e.flags)return[];const n=ip();let r=!1;return function(){for(;e;){switch(wu(e)&&e.locals&&!Po(e)&&o(e.locals,t),e.kind){case 308:if(!wI(e))break;case 264:a(Ga(e).exports,2623475&t);break;case 263:o(Ga(e).exports,8&t);break;case 228:e.name&&i(e.symbol,t);case 260:case 261:r||o(Hl(Ga(e)),788968&t);break;case 215:e.name&&i(e.symbol,t)}Em(e)&&i(ge,t),r=_b(e),e=e.parent}o(ce,t)}(),n.delete("this"),tp(n);function i(e,t){if(Ox(e)&t){const t=e.escapedName;n.has(t)||n.set(t,e)}}function o(e,t){t&&e.forEach((e=>{i(e,t)}))}function a(e,t){t&&e.forEach((e=>{np(e,278)||np(e,277)||i(e,t)}))}}(n,t):[]},getSymbolAtLocation:e=>{const t=Fc(e);return t?iR(t,!0):void 0},getIndexInfosAtLocation:e=>{const t=Fc(e);return t?function(e){if(Tw(e)&&ND(e.parent)&&e.parent.name===e){const t=gy(e),n=_O(e.parent.expression);return H(1048576&n.flags?n.types:[n],(e=>z(Hd(e),(e=>Kd(t,e.keyType)))))}}(t):void 0},getShorthandAssignmentValueSymbol:e=>{const t=Fc(e);return t?function(e){if(e&&300===e.kind)return Fa(e.name,2208703)}(t):void 0},getExportSpecifierLocalTargetSymbol:e=>{const t=Fc(e,XE);return t?function(e){return XE(e)?e.parent.parent.moduleSpecifier?ua(e.parent.parent,e):Fa(e.propertyName||e.name,2998271):Fa(e,2998271)}(t):void 0},getExportSymbolOfSymbol:e=>$a(e.exportSymbol||e),getTypeAtLocation:e=>{const t=Fc(e);return t?oR(t):pt},getTypeOfAssignmentPattern:e=>{const t=Fc(e,ql);return t&&aR(t)||pt},getPropertySymbolOfDestructuringAssignment:e=>{const t=Fc(e,Tw);return t?function(e){const t=aR(kt(e.parent.parent,ql));return t&&zd(t,e.escapedText)}(t):void 0},signatureToString:(e,t,n,r)=>Rs(e,Fc(t),n,r),typeToString:(e,t,n)=>Bs(e,Fc(t),n),symbolToString:(e,t,n,r)=>Ms(e,Fc(t),n,r),typePredicateToString:(e,t,n)=>Qs(e,Fc(t),n),writeSignature:(e,t,n,r,i)=>Rs(e,Fc(t),n,r,i),writeType:(e,t,n,r)=>Bs(e,Fc(t),n,r),writeSymbol:(e,t,n,r,i)=>Ms(e,Fc(t),n,r,i),writeTypePredicate:(e,t,n,r)=>Qs(e,Fc(t),n,r),getAugmentedPropertiesOfType:lR,getRootSymbols:function e(t){const n=function(e){if(6&Fx(e))return Z(No(e).containingType.types,(t=>zd(t,e.escapedName)));if(33554432&e.flags){const{links:{leftSpread:t,rightSpread:n,syntheticOrigin:r}}=e;return t?[t,n]:r?[r]:kn(function(e){let t,n=e;for(;n=No(n).target;)t=n;return t}(e))}}(t);return n?H(n,e):[t]},getSymbolOfExpando:xP,getContextualType:(e,t)=>{const n=Fc(e,_u);if(n)return 4&t?xe(n,(()=>sD(n,t))):sD(n,t)},getContextualTypeForObjectLiteralElement:e=>{const t=Fc(e,jl);return t?Pw(t,void 0):void 0},getContextualTypeForArgumentAtIndex:(e,t)=>{const n=Fc(e,eu);return n&&ww(n,t)},getContextualTypeForJsxAttribute:e=>{const t=Fc(e,Bu);return t&&Ow(t,void 0)},isContextSensitive:xx,getTypeOfPropertyOfContextualType:Nw,getFullyQualifiedName:Na,getResolvedSignature:(e,t,n)=>Te(e,t,n,0),getResolvedSignatureForStringLiteralCompletions:(e,t,n)=>xe(t,(()=>Te(e,n,void 0,32))),getResolvedSignatureForSignatureHelp:(e,t,n)=>be(e,(()=>Te(e,t,n,16))),getExpandedParameters:au,hasEffectiveRestParameter:XP,containsArgumentsReference:yp,getConstantValue:e=>{const t=Fc(e,OR);return t?LR(t):void 0},isValidPropertyAccess:(e,t)=>{const n=Fc(e,Yl);return!!n&&function(e,t){switch(e.kind){case 208:return gF(e,106===e.expression.kind,t,TT(dO(e.expression)));case 163:return gF(e,!1,t,TT(dO(e.left)));case 202:return gF(e,!1,t,Db(e))}}(n,Pc(t))},isValidPropertyAccessForCompletions:(e,t,n)=>{const r=Fc(e,ND);return!!r&&mF(r,t,n)},getSignatureFromDeclaration:e=>{const t=Fc(e,Sl);return t?mp(t):void 0},isImplementationOfOverload:e=>{const t=Fc(e,Sl);return t?TR(t):void 0},getImmediateAliasedSymbol:eE,getAliasedSymbol:xa,getEmitResolver:function(e,t){return $M(e,t),ae},getExportsOfModule:Ua,getExportsAndPropertiesOfModule:function(e){const t=Ua(e),n=Ra(e);if(n!==e){const e=x_(n);Va(e)&&Ae(t,fd(e))}return t},forEachExportAndPropertyOfModule:function(e,t){Ka(e).forEach(((e,n)=>{ps(n)||t(e,n)}));const n=Ra(e);if(n!==e){const e=x_(n);Va(e)&&function(e,n){3670016&(e=Pd(e)).flags&&ld(e).members.forEach(((e,n)=>{ms(e,n)&&((e,n)=>{t(e,n)})(e,n)}))}(e)}},getSymbolWalker:$R((function(e){return Pp(e)||_t}),kp,Tp,X_,ld,x_,EC,gd,Ub,cf),getAmbientModules:function(){return Jn||(Jn=[],ce.forEach(((e,t)=>{AB.test(t)&&Jn.push(e)}))),Jn},getJsxIntrinsicTagNamesAt:function(e){const t=pE(jB.IntrinsicElements,e);return t?fd(t):r},isOptionalParameter:e=>{const t=Fc(e,Uw);return!!t&&sp(t)},tryGetMemberInModuleExports:(e,t)=>qa(Pc(e),t),tryGetMemberInModuleExportsAndProperties:(e,t)=>function(e,t){const n=qa(e,t);if(n)return n;const r=Ra(t);if(r===t)return;const i=x_(r);return Va(i)?zd(i,e):void 0}(Pc(e),t),tryFindAmbientModule:e=>ap(e,!0),tryFindAmbientModuleWithoutAugmentations:e=>ap(e,!1),getApparentType:Nd,getUnionType:wh,isTypeAssignableTo:Ix,createAnonymousType:hs,createSignature:Zl,createSymbol:vo,createIndexInfo:qp,getAnyType:()=>_t,getStringType:()=>Pt,getNumberType:()=>It,createPromiseType:cI,createArrayType:kg,getElementTypeOfArrayType:gS,getBooleanType:()=>Ut,getFalseType:e=>e?Lt:Rt,getTrueType:e=>e?Bt:jt,getVoidType:()=>Vt,getUndefinedType:()=>Tt,getNullType:()=>Et,getESSymbolType:()=>qt,getNeverType:()=>Qt,getOptionalType:()=>Dt,getPromiseType:()=>Rm(!1),getPromiseLikeType:()=>Bm(!1),getAsyncIterableType:()=>{const e=Jm(!1);if(e!==Dn)return e},isSymbolAccessible:Es,isArrayType:_S,isTupleType:IS,isArrayLikeType:hS,isEmptyAnonymousObjectType:ck,isTypeInvalidDueToUnionDiscriminant:function(e,t){return t.properties.some((t=>{const n=t.name&&gy(t.name),r=n&&Ml(n)?Ql(n):void 0,i=void 0===r?void 0:cc(e,r);return!!i&&AS(i)&&!Ix(oR(t),i)}))},getExactOptionalProperties:function(e){return fd(e).filter((e=>XS(x_(e))))},getAllPossiblePropertiesOfTypes:function(e){const t=wh(e);if(!(1048576&t.flags))return lR(t);const n=ip();for(const r of e)for(const{escapedName:e}of lR(r))if(!n.has(e)){const r=Id(t,e);r&&n.set(e,r)}return Ze(n.values())},getSuggestedSymbolForNonexistentProperty:eF,getSuggestionForNonexistentProperty:nF,getSuggestedSymbolForNonexistentJSXAttribute:tF,getSuggestedSymbolForNonexistentSymbol:(e,t,n)=>oF(e,Pc(t),n),getSuggestionForNonexistentSymbol:(e,t,n)=>function(e,t,n){const r=oF(e,t,n);return r&&Mc(r)}(e,Pc(t),n),getSuggestedSymbolForNonexistentModule:_F,getSuggestionForNonexistentExport:function(e,t){const n=_F(e,t);return n&&Mc(n)},getSuggestedSymbolForNonexistentClassMember:YN,getBaseConstraintOfType:kd,getDefaultFromTypeParameter:e=>e&&262144&e.flags?wd(e):void 0,resolveName:(e,t,n,r)=>Ro(t,Pc(e),n,void 0,void 0,!1,r),getJsxNamespace:e=>Ic(ao(e)),getJsxFragmentFactory:e=>{const t=GR(e);return t&&Ic(Ub(t).escapedText)},getAccessibleSymbolChain:ks,getTypePredicateOfSignature:kp,resolveExternalModuleName:e=>{const t=Fc(e,_u);return t&&Ia(t,t,!0)},resolveExternalModuleSymbol:Ra,tryGetThisTypeAt:(e,t,n)=>{const r=Fc(e);return r&&pw(r,t,n)},getTypeArgumentConstraint:e=>{const t=Fc(e,Jl);return t&&function(e){const t=xt(e.parent,Yu);if(!t)return;const n=AO(t);if(!n)return;const r=gd(n[t.typeArguments.indexOf(e)]);return r&&gx(r,jb(n,TO(t,n)))}(t)},getSuggestionDiagnostics:(n,i)=>{const o=Fc(n,TN)||In.fail("Could not determine parsed source file.");if(sT(o,C,e))return r;let a;try{return t=i,XM(o),In.assert(!!(1&Fo(o).flags)),a=Ae(a,Hi.getDiagnostics(o.fileName)),rL(HM(o),((e,t,n)=>{Ap(e)||WM(t,!!(16777216&e.flags))||(a||(a=[])).push({...n,category:2})})),a||r}finally{t=void 0}},runWithCancellationToken:(e,n)=>{try{return t=e,n(ve)}finally{t=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:U_,isDeclarationVisible:Ys,isPropertyAccessible:hF,getTypeOnlyAliasDeclaration:Ca,getMemberOverrideModifierStatus:function(e,t,n){if(!t.name)return 0;const r=Ga(e),i=ul(r),o=Gl(i),a=x_(r),s=sy(e)&&X_(i),c=(null==s?void 0:s.length)?Gl(Me(s),i.thisType):void 0;return hM(e,a,$_(i),c,i,o,t.parent?ub(t):cb(t,16384),db(t),_b(t),!1,Mc(n))},isTypeParameterPossiblyReferenced:_x,typeHasCallOrConstructSignatures:uR};function be(e,t){const n=Ec(e,eu),r=n&&Fo(n).resolvedSignature;n&&(Fo(n).resolvedSignature=void 0);const i=t();return n&&(Fo(n).resolvedSignature=r),i}function xe(e,t){const n=Ec(e,eu);if(n){let t=e;do{Fo(t).skipDirectInference=!0,t=t.parent}while(t&&t!==n)}b=!0;const r=be(e,t);if(b=!1,n){let t=e;do{Fo(t).skipDirectInference=void 0,t=t.parent}while(t&&t!==n)}return r}function Te(e,t,n,r){const i=Fc(e,eu);me=n;const o=i?hP(i,t,r):void 0;return me=void 0,o}var Ce=new Map,Ee=new Map,Ne=new Map,Fe=new Map,Pe=new Map,Je=new Map,ze=new Map,Ue=new Map,Qe=new Map,We=new Map,He=new Map,$e=new Map,Ge=new Map,Xe=new Map,et=[],tt=new Map,nt=new Set,rt=vo(4,"unknown"),at=vo(0,"__resolving__"),st=new Map,ct=new Map,_t=ls(1,"any"),ut=ls(1,"any",262144),dt=ls(1,"any"),pt=ls(1,"error"),mt=ls(1,"unresolved"),gt=ls(1,"any",65536),yt=ls(1,"intrinsic"),bt=ls(2,"unknown"),St=ls(2,"unknown"),Tt=ls(32768,"undefined"),Ct=j?Tt:ls(32768,"undefined",65536),At=ls(32768,"undefined"),wt=ne?At:Tt,Dt=ls(32768,"undefined"),Et=ls(65536,"null"),Nt=j?Et:ls(65536,"null",65536),Pt=ls(4,"string"),It=ls(8,"number"),Ot=ls(64,"bigint"),Lt=ls(512,"false"),Rt=ls(512,"false"),Bt=ls(512,"true"),jt=ls(512,"true");Bt.regularType=jt,Bt.freshType=Bt,jt.regularType=jt,jt.freshType=Bt,Lt.regularType=Rt,Lt.freshType=Lt,Rt.regularType=Rt,Rt.freshType=Lt;var zt,Ut=wh([Rt,jt]),qt=ls(4096,"symbol"),Vt=ls(16384,"void"),Qt=ls(131072,"never"),Kt=ls(131072,"never",262144),Wt=ls(131072,"never"),Ht=ls(131072,"never"),$t=ls(67108864,"object"),Gt=wh([Pt,It]),Xt=wh([Pt,It,qt]),Zt=ee?Pt:Xt,tn=wh([It,Ot]),nn=wh([Pt,It,Ut,Ot,Et,Tt]),on=My(["",""],[It]),an=Xb((e=>{return 262144&e.flags?!(t=e).constraint&&!Wp(t)||t.constraint===Nn?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=ds(t.symbol),t.restrictiveInstantiation.constraint=Nn,t.restrictiveInstantiation):e;var t}),(()=>"(restrictive mapper)")),cn=Xb((e=>262144&e.flags?dt:e),(()=>"(permissive mapper)")),_n=ls(131072,"never"),un=Xb((e=>262144&e.flags?_n:e),(()=>"(unique literal mapper)")),dn=Xb((e=>(!zt||e!==On&&e!==Ln&&e!==Mn||zt(!0),e)),(()=>"(unmeasurable reporter)")),gn=Xb((e=>(!zt||e!==On&&e!==Ln&&e!==Mn||zt(!1),e)),(()=>"(unreliable reporter)")),hn=hs(void 0,x,r,r,r),xn=hs(void 0,x,r,r,r);xn.objectFlags|=2048;var Sn=vo(2048,"__type");Sn.members=ip();var Cn=hs(Sn,x,r,r,r),An=hs(void 0,x,r,r,r),wn=j?wh([Tt,Et,An]):bt,Dn=hs(void 0,x,r,r,r);Dn.instantiations=new Map;var En=hs(void 0,x,r,r,r);En.objectFlags|=262144;var Nn=hs(void 0,x,r,r,r),Fn=hs(void 0,x,r,r,r),Pn=hs(void 0,x,r,r,r),On=ds(),Ln=ds();Ln.constraint=On;var Mn=ds(),Rn=ds(),Bn=ds();Bn.constraint=Rn;var jn,Jn,zn,Un,qn,Vn,Qn,Kn,Wn,Hn,$n,Gn,Xn,Yn,Zn,er,tr,nr,rr,ir,or,ar,sr,cr,_r,lr,ur,dr,pr,fr,mr,gr,hr,yr,vr,br,xr,kr,Sr,Tr,Cr,Ar,wr,Dr,Fr,Pr,Ir,Or,Lr,Mr,Rr,Br,jr,Jr,zr,qr,Vr,Qr,Kr,Wr,Hr=cp(1,"<>",0,_t),$r=Zl(void 0,void 0,void 0,r,_t,void 0,0,0),Gr=Zl(void 0,void 0,void 0,r,pt,void 0,0,0),Xr=Zl(void 0,void 0,void 0,r,_t,void 0,0,0),Yr=Zl(void 0,void 0,void 0,r,Kt,void 0,0,0),Zr=qp(It,Pt,!0),ei=new Map,ti={get yieldType(){return In.fail("Not supported")},get returnType(){return In.fail("Not supported")},get nextType(){return In.fail("Not supported")}},ni=RL(_t,_t,_t),ri=RL(_t,_t,bt),ii=RL(Qt,_t,Tt),oi={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return vr||(vr=mm("AsyncIterator",3,e))||Dn},getGlobalIterableType:Jm,getGlobalIterableIteratorType:function(e){return br||(br=mm("AsyncIterableIterator",1,e))||Dn},getGlobalGeneratorType:function(e){return xr||(xr=mm("AsyncGenerator",3,e))||Dn},resolveIterationType:zO,mustHaveANextMethodDiagnostic:ja.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:ja.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:ja.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},ai={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return pr||(pr=mm("Iterator",3,e))||Dn},getGlobalIterableType:Um,getGlobalIterableIteratorType:function(e){return fr||(fr=mm("IterableIterator",1,e))||Dn},getGlobalGeneratorType:function(e){return mr||(mr=mm("Generator",3,e))||Dn},resolveIterationType:(e,t)=>e,mustHaveANextMethodDiagnostic:ja.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:ja.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:ja.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},si=new Map,ci=!1,_i=new Map,li=0,ui=0,di=0,pi=!1,fi=0,mi=[],gi=[],hi=[],yi=0,vi=[],bi=[],xi=0,ki=ib(""),Si=yb(0),Ti=vb({negative:!1,base10Value:"0"}),Ci=[],Ai=[],wi=[],Di=0,Ei=[],Ni=[],Fi=[],Pi=[],Ii=[],Oi=[],Li=[],Mi=[],Ri=[],Bi=[],ji=[],Ji=[],zi=[],qi=[],Vi=[],Qi=[],Ki=[],Wi=ev(),Hi=ev(),$i=wh(Ze(IB.keys(),ib)),Gi=new Map,Xi=new Map,Yi=new Map,Zi=new Map,eo=new Map,to=new Map,no=ip();no.set(le.escapedName,le);var ro=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===C.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return function(){for(const t of e.getSourceFiles())UR(t,C);let t;jn=new Map;for(const n of e.getSourceFiles())if(!n.redirectInfo){if(!em(n)){const e=n.locals.get("globalThis");if(null==e?void 0:e.declarations)for(const t of e.declarations)Wi.add(zf(t,ja.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));Do(ce,n.locals)}n.jsGlobalAugmentations&&Do(ce,n.jsGlobalAugmentations),n.patternAmbientModules&&n.patternAmbientModules.length&&(zn=ue(zn,n.patternAmbientModules)),n.moduleAugmentations.length&&(t||(t=[])).push(n.moduleAugmentations),n.symbol&&n.symbol.globalExports&&n.symbol.globalExports.forEach(((e,t)=>{ce.has(t)||ce.set(t,e)}))}if(t)for(const e of t)for(const t of e)yf(t.parent)&&Eo(t);var n,i,o;if(n=ce,i=no,o=ja.Declaration_name_conflicts_with_built_in_global_identifier_0,i.forEach(((e,t)=>{const r=n.get(t);r?T(r.declarations,function(e,t){return n=>Wi.add(zf(n,t,e))}(Ic(t),o)):n.set(t,e)})),No(le).type=Ct,No(ge).type=mm("IArguments",0,!0),No(rt).type=pt,No(de).type=us(16,de),Wn=mm("Array",1,!0),qn=mm("Object",0,!0),Vn=mm("Function",0,!0),Qn=Q&&mm("CallableFunction",0,!0)||Vn,Kn=Q&&mm("NewableFunction",0,!0)||Vn,$n=mm("String",0,!0),Gn=mm("Number",0,!0),Xn=mm("Boolean",0,!0),Yn=mm("RegExp",0,!0),er=kg(_t),(tr=kg(ut))===hn&&(tr=hs(void 0,x,r,r,r)),Hn=Vm("ReadonlyArray",1)||Wn,nr=Hn?sg(Hn,[_t]):er,Zn=Vm("ThisType",1),t)for(const e of t)for(const t of e)yf(t.parent)||Eo(t);jn.forEach((({firstFile:e,secondFile:t,conflictingSymbols:n})=>{if(n.size<8)n.forEach((({isBlockScoped:e,firstFileLocations:t,secondFileLocations:n},r)=>{const i=e?ja.Cannot_redeclare_block_scoped_variable_0:ja.Duplicate_identifier_0;for(const e of t)wo(e,i,r,n);for(const e of n)wo(e,i,r,t)}));else{const r=Ze(n.keys()).join(", ");Wi.add(rT(zf(e,ja.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),zf(t,ja.Conflicts_are_in_this_file))),Wi.add(rT(zf(t,ja.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),zf(e,ja.Conflicts_are_in_this_file)))}})),jn=void 0}(),ve;function io(e){return e?Xe.get(e):void 0}function oo(e,t){return e&&Xe.set(e,t),t}function ao(e){if(e){const t=wp(e);if(t)if(_N(e)){if(t.localJsxFragmentNamespace)return t.localJsxFragmentNamespace;const n=t.pragmas.get("jsxfrag");if(n){const e=ht(n)?n[0]:n;if(t.localJsxFragmentFactory=CI(e.arguments.factory,w),tj(t.localJsxFragmentFactory,co,bl),t.localJsxFragmentFactory)return t.localJsxFragmentNamespace=Ub(t.localJsxFragmentFactory).escapedText}const r=GR(e);if(r)return t.localJsxFragmentFactory=r,t.localJsxFragmentNamespace=Ub(r).escapedText}else{const e=so(t);if(e)return t.localJsxNamespace=e}}return Kr||(Kr="React",C.jsxFactory?(tj(Wr=CI(C.jsxFactory,w),co),Wr&&(Kr=Ub(Wr).escapedText)):C.reactNamespace&&(Kr=Pc(C.reactNamespace))),Wr||(Wr=dC.createQualifiedName(dC.createIdentifier(Ic(Kr)),"createElement")),Kr}function so(e){if(e.localJsxNamespace)return e.localJsxNamespace;const t=e.pragmas.get("jsx");if(t){const n=ht(t)?t[0]:t;if(e.localJsxFactory=CI(n.arguments.factory,w),tj(e.localJsxFactory,co,bl),e.localJsxFactory)return e.localJsxNamespace=Ub(e.localJsxFactory).escapedText}}function co(e){return vT(e,-1,-1),uj(e,co,Nz)}function _o(e,t,n,r,i,o,a){const s=uo(t,n,r,i,o,a);return s.skippedOn=e,s}function lo(e,t,n,r,i,o){return e?zf(e,t,n,r,i,o):Tk(t,n,r,i,o)}function uo(e,t,n,r,i,o){const a=lo(e,t,n,r,i,o);return Wi.add(a),a}function po(e,t){e?Wi.add(t):Hi.add({...t,category:2})}function fo(e,t,n,r,i,o,a){if(t.pos<0||t.end<0){if(!e)return;const s=wp(t);po(e,"message"in n?kk(s,0,0,n,r,i,o,a):Hf(s,n))}else po(e,"message"in n?zf(t,n,r,i,o,a):Vf(wp(t),t,n))}function mo(e,t,n,r,i,o,a){const s=uo(e,n,r,i,o,a);return t&&rT(s,zf(e,ja.Did_you_forget_to_use_await)),s}function go(e,t){const n=Array.isArray(e)?T(e,d_):d_(e);return n&&rT(t,zf(n,ja.The_declaration_was_marked_as_deprecated_here)),Hi.add(t),t}function ho(e){if(S(e.declarations)>1){const t=Ya(e);if(t&&64&t.flags)return _e(e.declarations,(e=>!!(268435456&Ac(e))))}return!!(268435456&VE(e))}function yo(e,t,n){return go(t,zf(e,ja._0_is_deprecated,n))}function vo(e,t,n){m++;const r=new u(33554432|e,t);return r.links=new BB,r.links.checkFlags=n||0,r}function bo(e,t){const n=vo(1,e);return n.links.type=t,n}function xo(e,t){const n=vo(4,e);return n.links.type=t,n}function ko(e){let t=0;return 2&e&&(t|=111551),1&e&&(t|=111550),4&e&&(t|=0),8&e&&(t|=900095),16&e&&(t|=110991),32&e&&(t|=899503),64&e&&(t|=788872),256&e&&(t|=899327),128&e&&(t|=899967),512&e&&(t|=110735),8192&e&&(t|=103359),32768&e&&(t|=46015),65536&e&&(t|=78783),262144&e&&(t|=526824),524288&e&&(t|=788968),2097152&e&&(t|=2097152),t}function So(e,t){t.mergeId||(t.mergeId=NB,NB++),Ei[t.mergeId]=e}function To(e){const t=vo(e.flags,e.escapedName);return t.declarations=e.declarations?e.declarations.slice():[],t.parent=e.parent,e.valueDeclaration&&(t.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(t.constEnumOnlyModule=!0),e.members&&(t.members=new Map(e.members)),e.exports&&(t.exports=new Map(e.exports)),So(t,e),t}function Co(e,t,n=!1){if(!(e.flags&ko(t.flags))||67108864&(t.flags|e.flags)){if(t===e)return e;if(!(33554432&e.flags)){const n=ba(e);if(n===rt)return t;e=To(n)}512&t.flags&&512&e.flags&&e.constEnumOnlyModule&&!t.constEnumOnlyModule&&(e.constEnumOnlyModule=!1),e.flags|=t.flags,t.valueDeclaration&&ch(e,t.valueDeclaration),Ae(e.declarations,t.declarations),t.members&&(e.members||(e.members=ip()),Do(e.members,t.members,n)),t.exports&&(e.exports||(e.exports=ip()),Do(e.exports,t.exports,n)),n||So(e,t)}else if(1024&e.flags)e!==de&&uo(t.declarations&&qc(t.declarations[0]),ja.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Ms(e));else{const n=!!(384&e.flags||384&t.flags),i=!!(2&e.flags||2&t.flags),o=n?ja.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:i?ja.Cannot_redeclare_block_scoped_variable_0:ja.Duplicate_identifier_0,a=t.declarations&&wp(t.declarations[0]),s=e.declarations&&wp(e.declarations[0]),c=Ep(a,C.checkJs),_=Ep(s,C.checkJs),l=Ms(t);if(a&&s&&jn&&!n&&a!==s){const n=-1===Ea(a.path,s.path)?a:s,o=n===a?s:a,u=ie(jn,`${n.path}|${o.path}`,(()=>({firstFile:n,secondFile:o,conflictingSymbols:new Map}))),d=ie(u.conflictingSymbols,l,(()=>({isBlockScoped:i,firstFileLocations:[],secondFileLocations:[]})));c||r(d.firstFileLocations,t),_||r(d.secondFileLocations,e)}else c||Ao(t,o,l,e),_||Ao(e,o,l,t)}return e;function r(e,t){if(t.declarations)for(const n of t.declarations)we(e,n)}}function Ao(e,t,n,r){T(e.declarations,(e=>{wo(e,t,n,r.declarations)}))}function wo(e,t,n,i){const o=(Jg(e,!1)?Ug(e):qc(e))||e,a=function(e,t,n,r,i,o){const a=e?zf(e,t,n,r,i,o):Tk(t,n,r,i,o);return Wi.lookup(a)||(Wi.add(a),a)}(o,t,n);for(const e of i||r){const t=(Jg(e,!1)?Ug(e):qc(e))||e;if(t===o)continue;a.relatedInformation=a.relatedInformation||[];const r=zf(t,ja._0_was_also_declared_here,n),i=zf(t,ja.and_here);S(a.relatedInformation)>=5||_e(a.relatedInformation,(e=>0===Ek(e,i)||0===Ek(e,r)))||rT(a,S(a.relatedInformation)?i:r)}}function Do(e,t,n=!1){t.forEach(((t,r)=>{const i=e.get(r);e.set(r,i?Co(i,t,n):$a(t))}))}function Eo(e){var t,n,r;const i=e.parent;if((null==(t=i.symbol.declarations)?void 0:t[0])===i)if(yf(i))Do(ce,i.symbol.exports);else{let t=Oa(e,e,16777216&e.parent.parent.flags?void 0:ja.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!t)return;if(t=Ra(t),1920&t.flags)if(_e(zn,(e=>t===e.symbol))){const n=Co(i.symbol,t,!0);Un||(Un=new Map),Un.set(e.text,n)}else{if((null==(n=t.exports)?void 0:n.get("__export"))&&(null==(r=i.symbol.exports)?void 0:r.size)){const e=Wl(t,"resolvedExports");for(const[n,r]of Ze(i.symbol.exports.entries()))e.has(n)&&!t.exports.has(n)&&Co(e.get(n),r)}Co(t,i.symbol)}else uo(e,ja.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,e.text)}else In.assert(i.symbol.declarations.length>1)}function No(e){var t;if(33554432&e.flags)return e.links;const n=VB(e);return null!=(t=Ni[n])?t:Ni[n]=new BB}function Fo(e){const t=qB(e);return Fi[t]||(Fi[t]=new UB)}function Po(e){return 308===e.kind&&!em(e)}function Io(e,t,n){if(n){const r=$a(e.get(t));if(r){if(In.assert(0==(1&Fx(r)),"Should never get an instantiated symbol here."),r.flags&n)return r;if(2097152&r.flags&&ka(r)&n)return r}}}function Oo(t,n){const r=wp(t),i=wp(n),o=If(t);if(r!==i){if(D&&(r.externalModuleIndicator||i.externalModuleIndicator)||!Av(C)||NC(n)||16777216&t.flags)return!0;if(a(n,t))return!0;const o=e.getSourceFiles();return o.indexOf(r)<=o.indexOf(i)}if(t.pos<=n.pos&&(!Qw(t)||!eg(n.parent)||t.initializer||t.exclamationToken)){if(205===t.kind){const e=py(n,205);return e?Ec(e,wD)!==Ec(t,wD)||t.posJw(e)&&e.parent.parent===t)):Qw(t)?!s(t,n,!1):!vc(t,t.parent)||!(99===Rk(C)&&N&&qm(t)===qm(n)&&a(n,t))}return!(!(278===n.parent.kind||274===n.parent.kind&&n.parent.isExportEquals)&&(274!==n.kind||!n.isExportEquals)&&!(8388608&n.flags||NC(n)||FC(n))&&(!a(n,t)||99===Rk(C)&&N&&qm(t)&&(Qw(t)||vc(t,t.parent))&&s(t,n,!0)));function a(e,t){return!!Ec(e,(n=>{if(n===o)return"quit";if(Sl(n))return!0;if(Hw(n))return t.pos=r&&o.pos<=i){const n=dC.createPropertyAccessExpression(dC.createThis(),e);if(kT(n.expression,n),kT(n,o),n.flowNode=o.returnFlowNode,!_k(HA(n,t,US(t))))return!0}return!1}(e,x_(Ga(t)),z(t.parent.members,Hw),t.parent.pos,n.pos))return!0}}else if(169!==t.kind||_b(t)||qm(e)!==qm(t))return!0;return!1}))}function s(e,t,n){return!(t.end>e.end)&&void 0===Ec(t,(t=>{if(t===e)return"quit";switch(t.kind){case 216:return!0;case 169:return!n||!(Qw(e)&&t.parent===e.parent||vc(e,e.parent)&&t.parent===e.parent.parent)||"quit";case 238:switch(t.parent.kind){case 174:case 171:case 175:return!0;default:return!1}default:return!1}}))}}function Lo(e,t,n){const r=Rk(C),i=t;if(Uw(n)&&i.body&&e.valueDeclaration&&e.valueDeclaration.pos>=i.body.pos&&e.valueDeclaration.end<=i.body.end&&r>=2){const e=Fo(i);return void 0===e.declarationRequiresScopeChange&&(e.declarationRequiresScopeChange=T(i.parameters,(function(e){return o(e.name)||!!e.initializer&&o(e.initializer)}))||!1),!e.declarationRequiresScopeChange}return!1;function o(e){switch(e.kind){case 216:case 215:case 259:case 173:return!1;case 171:case 174:case 175:case 299:return o(e.name);case 169:return lb(e)?r<99||!N:o(e.name);default:return J_(e)||M_(e)?r<7:wD(e)&&e.dotDotDotToken&&CD(e.parent)?r<4:!Jl(e)&&(bI(e,o)||!1)}}}function Mo(e){return lu(e)&&z_(e.type)||aF(e)&&z_(e.typeExpression)}function Ro(e,t,n,r,i,o,a=!1,s=!0){return Bo(e,t,n,r,i,o,a,s,Io)}function Bo(e,t,n,r,i,o,a,s,c){var l,u,d;const p=e;let f,m,g,h,y,v=!1;const b=e;let k,T=!1;e:for(;e;){if("const"===t&&Mo(e))return;if(wu(e)&&e.locals&&!Po(e)&&(f=c(e.locals,t,n))){let t=!0;if(Sl(e)&&m&&m!==e.body?(n&f.flags&788968&&323!==m.kind&&(t=!!(262144&f.flags)&&(m===e.type||166===m.kind||344===m.kind||345===m.kind||165===m.kind)),n&f.flags&3&&(Lo(f,e,m)?t=!1:1&f.flags&&(t=166===m.kind||m===e.type&&!!Ec(f.valueDeclaration,Uw)))):191===e.kind&&(t=m===e.trueType),t)break e;f=void 0}switch(v=v||Jo(e,m),e.kind){case 308:if(!em(e))break;T=!0;case 264:const i=(null==(l=Ga(e))?void 0:l.exports)||x;if(308===e.kind||OE(e)&&16777216&e.flags&&!yf(e)){if(f=i.get("default")){const e=Yb(f);if(e&&f.flags&n&&e.escapedName===t)break e;f=void 0}const e=i.get(t);if(e&&2097152===e.flags&&(np(e,278)||np(e,277)))break}if("default"!==t&&(f=c(i,t,2623475&n))){if(!TN(e)||!e.commonJsModuleIndicator||(null==(u=f.declarations)?void 0:u.some(vh)))break e;f=void 0}break;case 263:if(f=c((null==(d=Ga(e))?void 0:d.exports)||x,t,8&n)){!r||!qk(C)||16777216&e.flags||wp(e)===wp(f.valueDeclaration)||uo(b,ja.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Ic(t),ye,`${Ic(Xa(e).escapedName)}.${Ic(t)}`);break e}break;case 169:if(!_b(e)){const r=os(e.parent);r&&r.locals&&c(r.locals,t,111551&n)&&(In.assertNode(e,Qw),h=e)}break;case 260:case 228:case 261:if(f=c(Ga(e).members||x,t,788968&n)){if(!qo(f,e)){f=void 0;break}if(m&&_b(m))return void(r&&uo(b,ja.Static_members_cannot_reference_class_type_parameters));break e}if(GD(e)&&32&n){const n=e.name;if(n&&t===n.escapedText){f=e.symbol;break e}}break;case 230:if(m===e.expression&&94===e.parent.token){const i=e.parent.parent;if(Fl(i)&&(f=c(Ga(i).members,t,788968&n)))return void(r&&uo(b,ja.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 164:if(k=e.parent.parent,(Fl(k)||261===k.kind)&&(f=c(Ga(k).members,t,788968&n)))return void(r&&uo(b,ja.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type));break;case 216:if(Rk(C)>=2)break;case 171:case 173:case 174:case 175:case 259:if(3&n&&"arguments"===t){f=ge;break e}break;case 215:if(3&n&&"arguments"===t){f=ge;break e}if(16&n){const n=e.name;if(n&&t===n.escapedText){f=e.symbol;break e}}break;case 167:e.parent&&166===e.parent.kind&&(e=e.parent),e.parent&&(Nl(e.parent)||260===e.parent.kind)&&(e=e.parent);break;case 349:case 341:case 343:const o=Mh(e);o&&(e=o.parent);break;case 166:m&&(m===e.initializer||m===e.name&&Ul(m))&&(y||(y=e));break;case 205:m&&(m===e.initializer||m===e.name&&Ul(m))&&Uy(e)&&!y&&(y=e);break;case 192:if(262144&n){const n=e.typeParameter.name;if(n&&t===n.escapedText){f=e.typeParameter.symbol;break e}}}zo(e)&&(g=e),m=e,e=sF(e)?Ph(e)||e.parent:(rF(e)||iF(e))&&Ih(e)||e.parent}if(!o||!f||g&&f===g.symbol||(f.isReferenced|=n),!f){if(m&&(In.assertNode(m,TN),m.commonJsModuleIndicator&&"exports"===t&&n&m.symbol.flags))return m.symbol;a||(f=c(ce,t,n))}if(!f&&p&&Sg(p)&&p.parent&&Dg(p.parent,!1))return he;function A(){return!(!h||N&&Rk(C)>=9||(uo(b,b&&h.type&&rc(h.type,b.pos)?ja.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:ja.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Lf(h.name),Uo(i)),0))}if(f){if(!r||!A())return r&&_((()=>{if(b&&(2&n||(32&n||384&n)&&111551==(111551&n))){const e=rs(f);(2&e.flags||32&e.flags||384&e.flags)&&function(e,t){var n;if(In.assert(!!(2&e.flags||32&e.flags||384&e.flags)),67108881&e.flags&&32&e.flags)return;const r=null==(n=e.declarations)?void 0:n.find((e=>lf(e)||Fl(e)||263===e.kind));if(void 0===r)return In.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(16777216&r.flags||Oo(r,t))){let n;const i=Lf(qc(r));2&e.flags?n=uo(t,ja.Block_scoped_variable_0_used_before_its_declaration,i):32&e.flags?n=uo(t,ja.Class_0_used_before_its_declaration,i):256&e.flags?n=uo(t,ja.Enum_0_used_before_its_declaration,i):(In.assert(!!(128&e.flags)),nS(C)&&(n=uo(t,ja.Enum_0_used_before_its_declaration,i))),n&&rT(n,zf(r,ja._0_is_declared_here,i))}}(e,b)}if(f&&T&&111551==(111551&n)&&!(8388608&p.flags)){const e=$a(f);S(e.declarations)&&F(e.declarations,(e=>RE(e)||TN(e)&&!!e.symbol.globalExports))&&fo(!C.allowUmdGlobalAccess,b,ja._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Ic(t))}if(f&&y&&!v&&111551==(111551&n)){const e=$a($l(f)),t=qy(y);e===Ga(y)?uo(b,ja.Parameter_0_cannot_reference_itself,Lf(y.name)):e.valueDeclaration&&e.valueDeclaration.pos>y.pos&&t.parent.locals&&c(t.parent.locals,e.escapedName,n)===e&&uo(b,ja.Parameter_0_cannot_reference_identifier_1_declared_after_it,Lf(y.name),Lf(b))}if(f&&b&&111551&n&&2097152&f.flags&&!(111551&f.flags)&&!fT(b)){const e=Ca(f,111551);if(e){const n=278===e.kind||275===e.kind||277===e.kind?ja._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:ja._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,r=Ic(t);jo(uo(b,n,r),e,r)}}})),f}else r&&_((()=>{if(!b||!(function(e,t,n){if(!Tw(e)||e.escapedText!==t||YM(e)||NC(e))return!1;const r=Km(e,!1,!1);let i=r;for(;i;){if(Fl(i.parent)){const o=Ga(i.parent);if(!o)break;if(zd(x_(o),t))return uo(e,ja.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Uo(n),Ms(o)),!0;if(i===r&&!_b(i)&&zd(ul(o).thisType,t))return uo(e,ja.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Uo(n)),!0}i=i.parent}return!1}(b,t,i)||A()||Vo(b)||function(e,t,n){const r=1920|(Sg(e)?111551:0);if(n===r){const n=ba(Ro(e,t,788968&~r,void 0,void 0,!1)),i=e.parent;if(n){if(jw(i)){In.assert(i.left===e,"Should only be resolving left side of qualified name as a namespace");const r=i.right.escapedText;if(zd(ul(n),r))return uo(i,ja.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ic(t),Ic(r)),!0}return uo(e,ja._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Ic(t)),!0}}return!1}(b,t,n)||function(e,t){return!(!Ko(t)||278!==e.parent.kind||(uo(e,ja.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),0))}(b,t)||function(e,t,n){if(111127&n){if(ba(Ro(e,t,1024,void 0,void 0,!1)))return uo(e,ja.Cannot_use_namespace_0_as_a_value,Ic(t)),!0}else if(788544&n&&ba(Ro(e,t,1536,void 0,void 0,!1)))return uo(e,ja.Cannot_use_namespace_0_as_a_type,Ic(t)),!0;return!1}(b,t,n)||function(e,t,n){if(111551&n){if(Ko(t))return function(e){const t=e.parent.parent,n=t.parent;if(t&&n){const e=hN(t)&&94===t.token,r=FE(n);return e&&r}return!1}(e)?uo(e,ja.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes,Ic(t)):uo(e,ja._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Ic(t)),!0;const n=ba(Ro(e,t,788544,void 0,void 0,!1)),r=n&&ka(n);if(n&&void 0!==r&&!(111551&r)){const r=Ic(t);return function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(t)?uo(e,ja._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,r):function(e,t){const n=Ec(e.parent,(e=>!Jw(e)&&!Vw(e)&&(aD(e)||"quit")));if(n&&1===n.members.length){const e=ul(t);return!!(1048576&e.flags)&&OI(e,384,!0)}return!1}(e,n)?uo(e,ja._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,r,"K"===r?"P":"K"):uo(e,ja._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,r),!0}}return!1}(b,t,n)||function(e,t,n){if(788584&n){const n=ba(Ro(e,t,111127,void 0,void 0,!1));if(n&&!(1920&n.flags))return uo(e,ja._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Ic(t)),!0}return!1}(b,t,n))){let e,o;if(i&&(o=function(e){const t=Uo(e),n=af().get(t);return n&&Re(n.keys())}(i),o&&uo(b,r,Uo(i),o)),!o&&s&&Di<10&&(e=oF(p,t,n),(null==e?void 0:e.valueDeclaration)&&df(e.valueDeclaration)&&yf(e.valueDeclaration)&&(e=void 0),e)){const t=Ms(e),r=QN(p,e,!1),o=1920===n||i&&"string"!=typeof i&&Qy(i)?ja.Cannot_find_namespace_0_Did_you_mean_1:r?ja.Could_not_find_name_0_Did_you_mean_1:ja.Cannot_find_name_0_Did_you_mean_1,a=lo(b,o,Uo(i),t);po(!r,a),e.valueDeclaration&&rT(a,zf(e.valueDeclaration,ja._0_is_declared_here,t))}e||o||!i||uo(b,r,Uo(i)),Di++}}))}function jo(e,t,n){return t?rT(e,zf(t,278===t.kind||275===t.kind||277===t.kind?ja._0_was_exported_here:ja._0_was_imported_here,n)):e}function Jo(e,t){return 216!==e.kind&&215!==e.kind?oD(e)||(Cl(e)||169===e.kind&&!_b(e))&&(!t||t!==e.name):!(t&&t===e.name||!e.asteriskToken&&!cb(e,512)&&Xm(e))}function zo(e){switch(e.kind){case 259:case 260:case 261:case 263:case 262:case 264:return!0;default:return!1}}function Uo(e){return vt(e)?Ic(e):Lf(e)}function qo(e,t){if(e.declarations)for(const n of e.declarations)if(165===n.kind&&(sF(n.parent)?Lh(n.parent):n.parent)===t)return!(sF(n.parent)&&P(n.parent.parent.tags,vh));return!1}function Vo(e){const t=Qo(e);return!(!t||!Fa(t,64,!0)||(uo(e,ja.Cannot_extend_an_interface_0_Did_you_mean_implements,ef(t)),0))}function Qo(e){switch(e.kind){case 79:case 208:return e.parent?Qo(e.parent):void 0;case 230:if(zb(e.expression))return e.expression;default:return}}function Ko(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function Wo(e,t,n){return!!t&&!!Ec(e,(e=>e===t||!(e!==n&&(!Sl(e)||Xm(e)&&!Sy(e)))&&"quit"))}function Ho(e){switch(e.kind){case 268:return e;case 270:return e.parent;case 271:return e.parent.parent;case 273:return e.parent.parent.parent;default:return}}function $o(e){return e.declarations&&I(e.declarations,Go)}function Go(e){return 268===e.kind||267===e.kind||270===e.kind&&!!e.name||271===e.kind||277===e.kind||273===e.kind||278===e.kind||274===e.kind&&iy(e)||QD(e)&&2===Hg(e)&&iy(e)||Yx(e)&&QD(e.parent)&&e.parent.left===e&&63===e.parent.operatorToken.kind&&Xo(e.parent.right)||300===e.kind||299===e.kind&&Xo(e.initializer)||257===e.kind&&Ng(e)||205===e.kind&&Ng(e.parent.parent)}function Xo(e){return ry(e)||RD(e)&&vP(e)}function Zo(e,t,n,r){const i=e.exports.get("export="),o=i?zd(x_(i),t,!0):e.exports.get(t),a=ba(o,r);return Sa(n,o,a,!1),a}function ra(e){return HE(e)&&!e.isExportEquals||cb(e,1024)||XE(e)}function ia(e){return ed(e)?gq(wp(e),e):void 0}function oa(e,t){return 99===e&&1===t}function aa(e){return 99===ia(e)&&en(e.text,".json")}function ca(e,t,n,r){const i=e&&ia(r);if(e&&void 0!==i){const t=oa(i,e.impliedNodeFormat);if(99===i||t)return t}if(!M)return!1;if(!e||e.isDeclarationFile){const e=Zo(t,"default",void 0,!0);return!(e&&_e(e.declarations,ra)||Zo(t,Pc("__esModule"),void 0,n))}return xg(e)?"object"!=typeof e.externalModuleIndicator&&!Zo(t,Pc("__esModule"),void 0,n):za(t)}function _a(e,t,n){var r;let i;i=gf(e)?e:Zo(e,"default",t,n);const o=null==(r=e.declarations)?void 0:r.find(TN),a=la(t);if(!a)return i;const s=aa(a),c=ca(o,e,n,a);if(i||c||s){if(c||s){const r=Ra(e,n)||ba(e,n);return Sa(t,e,r,!1),r}}else if(za(e)&&!M){const n=D>=5?"allowSyntheticDefaultImports":"esModuleInterop",r=e.exports.get("export=").valueDeclaration,i=uo(t.name,ja.Module_0_can_only_be_default_imported_using_the_1_flag,Ms(e),n);r&&rT(i,zf(r,ja.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,n))}else JE(t)?function(e,t){var n,r,i;if(null==(n=e.exports)?void 0:n.has(t.symbol.escapedName))uo(t.name,ja.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Ms(e),Ms(t.symbol));else{const n=uo(t.name,ja.Module_0_has_no_default_export,Ms(e)),o=null==(r=e.exports)?void 0:r.get("__export");if(o){const e=null==(i=o.declarations)?void 0:i.find((e=>{var t,n;return!!($E(e)&&e.moduleSpecifier&&(null==(n=null==(t=Ia(e,e.moduleSpecifier))?void 0:t.exports)?void 0:n.has("default")))}));e&&rT(n,zf(e,ja.export_Asterisk_does_not_re_export_a_default))}}}(e,t):da(e,e,t,al(t)&&t.propertyName||t.name);return Sa(t,i,void 0,!1),i}function la(e){switch(e.kind){case 270:return e.parent.moduleSpecifier;case 268:return rN(e.moduleReference)?e.moduleReference.expression:void 0;case 271:case 278:return e.parent.parent.moduleSpecifier;case 273:return e.parent.parent.parent.moduleSpecifier;default:return In.assertNever(e)}}function ua(e,t,n=!1){var r;const i=vg(e)||e.moduleSpecifier,o=Ia(e,i),a=!ND(t)&&t.propertyName||t.name;if(!Tw(a))return;const s=Ba(o,i,!1,"default"===a.escapedText&&M);if(s&&a.escapedText){if(gf(o))return o;let c;c=o&&o.exports&&o.exports.get("export=")?zd(x_(s),a.escapedText,!0):function(e,t){if(3&e.flags){const n=e.valueDeclaration.type;if(n)return ba(zd(Db(n),t))}}(s,a.escapedText),c=ba(c,n);let _=function(e,t,n,r){var i;if(1536&e.flags){const o=Qa(e).get(t.escapedText),a=ba(o,r);return Sa(n,o,a,!1,null==(i=No(e).typeOnlyExportStarMap)?void 0:i.get(t.escapedText),t.escapedText),a}}(s,a,t,n);if(void 0===_&&"default"===a.escapedText){const e=null==(r=o.declarations)?void 0:r.find(TN);(aa(i)||ca(e,o,n,i))&&(_=Ra(o,n)||ba(o,n))}const l=_&&c&&_!==c?function(e,t){if(e===rt&&t===rt)return rt;if(790504&e.flags)return e;const n=vo(e.flags|t.flags,e.escapedName);return In.assert(e.declarations||t.declarations),n.declarations=fe(ue(e.declarations,t.declarations),Mt),n.parent=e.parent||t.parent,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration),t.members&&(n.members=new Map(t.members)),e.exports&&(n.exports=new Map(e.exports)),n}(c,_):_||c;return l||da(o,s,e,a),l}}function da(e,t,n,r){var i;const o=Na(e,n),a=Lf(r),s=_F(r,t);if(void 0!==s){const e=Ms(s),t=uo(r,ja._0_has_no_exported_member_named_1_Did_you_mean_2,o,a,e);s.valueDeclaration&&rT(t,zf(s.valueDeclaration,ja._0_is_declared_here,e))}else(null==(i=e.exports)?void 0:i.has("default"))?uo(r,ja.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,o,a):function(e,t,n,r,i){var o,a;const s=null==(a=null==(o=xt(r.valueDeclaration,wu))?void 0:o.locals)?void 0:a.get(t.escapedText),c=r.exports;if(s){const r=null==c?void 0:c.get("export=");if(r)ns(r,s)?function(e,t,n,r){D>=5?uo(t,Hk(C)?ja._0_can_only_be_imported_by_using_a_default_import:ja._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):Sg(e)?uo(t,Hk(C)?ja._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:ja._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):uo(t,Hk(C)?ja._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:ja._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n,n,r)}(e,t,n,i):uo(t,ja.Module_0_has_no_exported_member_1,i,n);else{const e=c?P(tp(c),(e=>!!ns(e,s))):void 0,r=e?uo(t,ja.Module_0_declares_1_locally_but_it_is_exported_as_2,i,n,Ms(e)):uo(t,ja.Module_0_declares_1_locally_but_it_is_not_exported,i,n);s.declarations&&rT(r,...V(s.declarations,((e,t)=>zf(e,0===t?ja._0_is_declared_here:ja.and_here,n))))}}else uo(t,ja.Module_0_has_no_exported_member_1,i,n)}(n,r,a,e,o)}function pa(e){if(wE(e)&&e.initializer&&ND(e.initializer))return e.initializer}function fa(e,t,n){if("default"===Oc(e.propertyName||e.name)){const t=la(e),r=t&&Ia(e,t);if(r)return _a(r,e,!!n)}const r=e.parent.parent.moduleSpecifier?ua(e.parent.parent,e,n):Fa(e.propertyName||e.name,t,!1,n);return Sa(e,void 0,r,!1),r}function ga(e,t){if(GD(e))return WI(e).symbol;if(!bl(e)&&!zb(e))return;return Fa(e,901119,!0,t)||(WI(e),Fo(e).resolvedSymbol)}function ha(e,t=!1){switch(e.kind){case 268:case 257:return function(e,t){const n=pa(e);if(n){const e=nk(n.expression).arguments[0];return Tw(n.name)?ba(zd(bp(e),n.name.escapedText)):void 0}if(wE(e)||280===e.moduleReference.kind){const t=Ia(e,vg(e)||yg(e)),n=Ra(t);return Sa(e,t,n,!1),n}const r=Da(e.moduleReference,t);return function(e,t){if(Sa(e,void 0,t,!1)&&!e.isTypeOnly){const t=Ca(Ga(e)),n=278===t.kind||275===t.kind,r=n?ja.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:ja.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,i=n?ja._0_was_exported_here:ja._0_was_imported_here,o=275===t.kind?"*":Ic(t.name.escapedText);rT(uo(e.moduleReference,r),zf(t,i,o))}}(e,r),r}(e,t);case 270:return function(e,t){const n=Ia(e,e.parent.moduleSpecifier);if(n)return _a(n,e,t)}(e,t);case 271:return function(e,t){const n=e.parent.parent.moduleSpecifier,r=Ia(e,n),i=Ba(r,n,t,!1);return Sa(e,r,i,!1),i}(e,t);case 277:return function(e,t){const n=e.parent.moduleSpecifier,r=n&&Ia(e,n),i=n&&Ba(r,n,t,!1);return Sa(e,r,i,!1),i}(e,t);case 273:case 205:return function(e,t){if(WE(e)&&"default"===Oc(e.propertyName||e.name)){const n=la(e),r=n&&Ia(e,n);if(r)return _a(r,e,t)}const n=wD(e)?qy(e):e.parent.parent.parent,r=pa(n),i=ua(n,r||e,t),o=e.propertyName||e.name;return r&&i&&Tw(o)?ba(zd(x_(i),o.escapedText),t):(Sa(e,void 0,i,!1),i)}(e,t);case 278:return fa(e,901119,t);case 274:case 223:return function(e,t){const n=ga(HE(e)?e.expression:e.right,t);return Sa(e,void 0,n,!1),n}(e,t);case 267:return function(e,t){if(Au(e.parent)){const n=Ra(e.parent.symbol,t);return Sa(e,void 0,n,!1),n}}(e,t);case 300:return Fa(e.name,901119,!0,t);case 299:return ga(e.initializer,t);case 209:case 208:return function(e,t){if(QD(e.parent)&&e.parent.left===e&&63===e.parent.operatorToken.kind)return ga(e.parent.right,t)}(e,t);default:return In.fail()}}function va(e,t=901119){return!(!e||2097152!=(e.flags&(2097152|t))&&!(2097152&e.flags&&67108864&e.flags))}function ba(e,t){return!t&&va(e)?xa(e):e}function xa(e){In.assert(0!=(2097152&e.flags),"Should only get Alias here.");const t=No(e);if(t.aliasTarget)t.aliasTarget===at&&(t.aliasTarget=rt);else{t.aliasTarget=at;const n=$o(e);if(!n)return In.fail();const r=ha(n);t.aliasTarget===at?t.aliasTarget=r||rt:uo(n,ja.Circular_definition_of_import_alias_0,Ms(e))}return t.aliasTarget}function ka(e){let t,n=e.flags;for(;2097152&e.flags;){const r=xa(e);if(r===rt)return 67108863;if(r===e||(null==t?void 0:t.has(r)))break;2097152&r.flags&&(t?t.add(r):t=new Set([e,r])),n|=r.flags,e=r}return n}function Sa(e,t,n,r,i,o){if(!e||ND(e))return!1;const a=Ga(e);if(_l(e))return No(a).typeOnlyDeclaration=e,!0;if(i){const e=No(a);return e.typeOnlyDeclaration=i,a.escapedName!==o&&(e.typeOnlyExportStarName=o),!0}const s=No(a);return Ta(s,t,r)||Ta(s,n,r)}function Ta(e,t,n){var r,i,o;if(t&&(void 0===e.typeOnlyDeclaration||n&&!1===e.typeOnlyDeclaration)){const n=null!=(i=null==(r=t.exports)?void 0:r.get("export="))?i:t,a=n.declarations&&P(n.declarations,_l);e.typeOnlyDeclaration=null!=(o=null!=a?a:No(n).typeOnlyDeclaration)&&o}return!!e.typeOnlyDeclaration}function Ca(e,t){if(!(2097152&e.flags))return;const n=No(e);return void 0===t?n.typeOnlyDeclaration||void 0:n.typeOnlyDeclaration&&ka(275===n.typeOnlyDeclaration.kind?ba(Ka(n.typeOnlyDeclaration.symbol.parent).get(n.typeOnlyExportStarName||e.escapedName)):xa(n.typeOnlyDeclaration.symbol))&t?n.typeOnlyDeclaration:void 0}function Aa(e){if(C.verbatimModuleSyntax)return;const t=Ga(e),n=xa(t);n&&(n===rt||111551&ka(n)&&!kR(n)&&!Ca(t,111551))&&wa(t)}function wa(e){In.assert(!C.verbatimModuleSyntax);const t=No(e);if(!t.referenced){t.referenced=!0;const n=$o(e);if(!n)return In.fail();bg(n)&&111551&ka(ba(e))&&WI(n.moduleReference)}}function Da(e,t){return 79===e.kind&&Wb(e)&&(e=e.parent),79===e.kind||163===e.parent.kind?Fa(e,1920,!1,t):(In.assert(268===e.parent.kind),Fa(e,901119,!1,t))}function Na(e,t){return e.parent?Na(e.parent,t)+"."+Ms(e):Ms(e,t,void 0,36)}function Fa(e,t,n,r,i){if(Lp(e))return;const o=1920|(Sg(e)?111551&t:0);let a;if(79===e.kind){const r=t===o||Qy(e)?ja.Cannot_find_namespace_0:DC(Ub(e)),s=Sg(e)&&!Qy(e)?function(e,t){if(Bf(e.parent)){const n=function(e){if(Ec(e,(e=>Uu(e)||8388608&e.flags?vh(e):"quit")))return;const t=Lh(e);if(t&&uE(t)&&ah(t.expression)){const e=Ga(t.expression.left);if(e)return Pa(e)}if(t&&RD(t)&&ah(t.parent)&&uE(t.parent.parent)){const e=Ga(t.parent.left);if(e)return Pa(e)}if(t&&(Pm(t)||vN(t))&&QD(t.parent.parent)&&6===Hg(t.parent.parent)){const e=Ga(t.parent.parent.left);if(e)return Pa(e)}const n=Oh(e);if(n&&Sl(n)){const e=Ga(n);return e&&e.valueDeclaration}}(e.parent);if(n)return Ro(n,e.escapedText,t,void 0,e,!0)}}(e,t):void 0;if(a=$a(Ro(i||e,e.escapedText,t,n||s?void 0:r,e,!0,!1)),!a)return $a(s)}else{if(163!==e.kind&&208!==e.kind)throw In.assertNever(e,"Unknown entity name kind.");{const r=163===e.kind?e.left:e.expression,s=163===e.kind?e.right:e.name;let c=Fa(r,o,n,!1,i);if(!c||Lp(s))return;if(c===rt)return c;if(c.valueDeclaration&&Sg(c.valueDeclaration)&&100!==Jk(C)&&wE(c.valueDeclaration)&&c.valueDeclaration.initializer&&DP(c.valueDeclaration.initializer)){const e=c.valueDeclaration.initializer.arguments[0],t=Ia(e,e);if(t){const e=Ra(t);e&&(c=e)}}if(a=$a(Io(Qa(c),s.escapedText,t)),!a){if(!n){const n=Na(c),r=Lf(s),i=_F(s,c);if(i)return void uo(s,ja._0_has_no_exported_member_named_1_Did_you_mean_2,n,r,Ms(i));const o=jw(e)&&function(e){for(;jw(e.parent);)e=e.parent;return e}(e),a=qn&&788968&t&&o&&!JD(o.parent)&&function(e){let t=Ub(e),n=Ro(t,t.escapedText,111551,void 0,t,!0);if(n){for(;jw(t.parent);){if(n=zd(x_(n),t.parent.right.escapedText),!n)return;t=t.parent}return n}}(o);if(a)return void uo(o,ja._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Jf(o));if(1920&t&&jw(e.parent)){const t=$a(Io(Qa(c),s.escapedText,788968));if(t)return void uo(e.parent.right,ja.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ms(t),Ic(e.parent.right.escapedText))}uo(s,ja.Namespace_0_has_no_exported_member_1,n,r)}return}}}return In.assert(0==(1&Fx(a)),"Should never get an instantiated symbol here."),!Qy(e)&&bl(e)&&(2097152&a.flags||274===e.parent.kind)&&Sa(ny(e),a,void 0,!0),a.flags&t||r?a:xa(a)}function Pa(e){const t=e.parent.valueDeclaration;if(t)return(Mg(t)?jg(t):Gu(t)?Bg(t):void 0)||t}function Ia(e,t,n){const r=1===Jk(C)?ja.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:ja.Cannot_find_module_0_or_its_corresponding_type_declarations;return Oa(e,t,n?void 0:r)}function Oa(e,t,n,r=!1){return ed(t)?La(e,t.text,n,t,r):void 0}function La(t,n,r,i,o=!1){var a,s,c,_,l,u,d,p,f;fn(n,"@types/")&&uo(i,ja.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,mn(n,"@types/"),n);const m=ap(n,!0);if(m)return m;const g=wp(t),h=ed(t)?t:(null==(a=Ec(t,sm))?void 0:a.arguments[0])||(null==(s=Ec(t,jE))?void 0:s.moduleSpecifier)||(null==(c=Ec(t,hg))?void 0:c.moduleReference.expression)||(null==(_=Ec(t,$E))?void 0:_.moduleSpecifier)||(null==(l=OE(t)?t:t.parent&&OE(t.parent)&&t.parent.name===t?t.parent:void 0)?void 0:l.name)||(null==(u=_m(t)?t:void 0)?void 0:u.argument.literal),y=h&&ed(h)?gq(g,h):g.impliedNodeFormat,v=Jk(C),b=gp(g,n,y),x=b&&Bq(C,b,g),k=b&&(!x||x===ja.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(b.resolvedFileName);if(k){if(x&&uo(i,x,n,b.resolvedFileName),b.resolvedUsingTsExtension&&FI(n)){const e=(null==(d=Ec(t,jE))?void 0:d.importClause)||Ec(t,vn(BE,$E));(e&&!e.isTypeOnly||Ec(t,sm))&&uo(i,ja.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,function(e){const t=VS(n,e);if(jk(D)||99===y){const r=FI(n)&&FR(C);return t+(".mts"===e||".d.mts"===e?r?".mts":".mjs":".cts"===e||".d.mts"===e?r?".cts":".cjs":r?".ts":".js")}return t}(In.checkDefined(Zb(n))))}else if(b.resolvedUsingTsExtension&&!FR(C,g.fileName)){const e=In.checkDefined(Zb(n));uo(i,ja.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,e)}if(k.symbol){if(b.isExternalLibraryImport&&!GS(b.extension)&&Ma(!1,i,g,y,b,n),3===v||99===v){const e=1===g.impliedNodeFormat&&!Ec(t,sm)||!!Ec(t,BE),r=Ec(t,(e=>kD(e)||$E(e)||jE(e))),o=r&&kD(r)?null==(p=r.assertions)?void 0:p.assertClause:null==r?void 0:r.assertClause;if(e&&99===k.impliedNodeFormat&&!hq(o))if(Ec(t,BE))uo(i,ja.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,n);else{let e;const t=ZS(g.fileName);if(".ts"===t||".js"===t||".tsx"===t||".jsx"===t){const n=g.packageJsonScope,r=".ts"===t?".mts":".js"===t?".mjs":void 0;e=n&&!n.contents.packageJsonContent.type?r?Ak(void 0,ja.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,r,ma(n.packageDirectory,"package.json")):Ak(void 0,ja.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,ma(n.packageDirectory,"package.json")):r?Ak(void 0,ja.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,r):Ak(void 0,ja.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}Wi.add(Vf(wp(i),i,Ak(e,ja.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,n)))}}return $a(k.symbol)}r&&uo(i,ja.File_0_is_not_a_module,k.fileName)}else{if(zn){const e=pn(zn,(e=>e.pattern),n);if(e){return $a(Un&&Un.get(n)||e.symbol)}}if((!b||GS(b.extension)||void 0!==x)&&x!==ja.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(r){if(b){const t=e.getProjectReferenceRedirect(b.resolvedFileName);if(t)return void uo(i,ja.Output_file_0_has_not_been_built_from_source_file_1,t,b.resolvedFileName)}if(x)uo(i,x,n,b.resolvedFileName);else{const t=Yo(n)&&!ea(n),o=3===v||99===v;if(!eS(C)&&ta(n,".json")&&1!==v&&Uk(C))uo(i,ja.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n);else if(99===y&&o&&t){const t=ya(n,sa(g.path)),r=null==(f=ro.find((([n,r])=>e.fileExists(t+n))))?void 0:f[1];r?uo(i,ja.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,n+r):uo(i,ja.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else uo(i,r,n)}}return}o?uo(i,ja.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,b.resolvedFileName):Ma(G&&!!r,i,g,y,b,n)}}function Ma(e,t,n,r,{packageId:i,resolvedFileName:o},a){var c,_;let l;if(!Xs(a)&&i){const e=null==(_=null==(c=n.resolvedModules)?void 0:c.get(a,r))?void 0:_.node10Result;l=e?Ak(void 0,ja.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,e,e.indexOf(nM+"@types/")>-1?"@types/"+AR(i.name):i.name):(u=i.name,s().has(CR(u))?Ak(void 0,ja.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,i.name,AR(i.name)):function(e){return!!s().get(e)}(i.name)?Ak(void 0,ja.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,i.name,a):Ak(void 0,ja.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,a,AR(i.name)))}var u;fo(e,t,Ak(l,ja.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,a,o))}function Ra(e,t){if(null==e?void 0:e.exports){const n=function(e,t){if(!e||e===rt||e===t||1===t.exports.size||2097152&e.flags)return e;const n=No(e);if(n.cjsExportMerged)return n.cjsExportMerged;const r=33554432&e.flags?e:To(e);return r.flags=512|r.flags,void 0===r.exports&&(r.exports=ip()),t.exports.forEach(((e,t)=>{"export="!==t&&r.exports.set(t,r.exports.has(t)?Co(r.exports.get(t),e):e)})),No(r).cjsExportMerged=r,n.cjsExportMerged=r}($a(ba(e.exports.get("export="),t)),$a(e));return $a(n)||e}}function Ba(e,t,n,r){var i;const o=Ra(e,n);if(!n&&o){if(!(r||1539&o.flags||np(o,308))){const e=D>=5?"allowSyntheticDefaultImports":"esModuleInterop";return uo(t,ja.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,e),o}const n=t.parent;if(jE(n)&&fh(n)||sm(n)){const t=sm(n)?n.arguments[0]:n.moduleSpecifier,r=x_(o),a=AP(r,o,e,t);if(a)return Ja(o,a,n);const s=null==(i=null==e?void 0:e.declarations)?void 0:i.find(TN),c=s&&oa(ia(t),s.impliedNodeFormat);if(Hk(C)||c){let i=Ud(r,0);if(i&&i.length||(i=Ud(r,1)),i&&i.length||zd(r,"default",!0)||c)return Ja(o,wP(r,o,e,t),n)}}}return o}function Ja(e,t,n){const i=vo(e.flags,e.escapedName);i.declarations=e.declarations?e.declarations.slice():[],i.parent=e.parent,i.links.target=e,i.links.originatingImport=n,e.valueDeclaration&&(i.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(i.constEnumOnlyModule=!0),e.members&&(i.members=new Map(e.members)),e.exports&&(i.exports=new Map(e.exports));const o=ld(t);return i.links.type=hs(i,o.members,r,r,o.indexInfos),i}function za(e){return void 0!==e.exports.get("export=")}function Ua(e){return tp(Ka(e))}function qa(e,t){const n=Ka(t);if(n)return n.get(e)}function Va(e){return!(134348796&e.flags||1&Vx(e)||_S(e)||IS(e))}function Qa(e){return 6256&e.flags?Wl(e,"resolvedExports"):1536&e.flags?Ka(e):e.exports||x}function Ka(e){const t=No(e);if(!t.resolvedExports){const{exports:n,typeOnlyExportStarMap:r}=Ha(e);t.resolvedExports=n,t.typeOnlyExportStarMap=r}return t.resolvedExports}function Wa(e,t,n,r){t&&t.forEach(((t,i)=>{if("default"===i)return;const o=e.get(i);if(o){if(n&&r&&o&&ba(o)!==ba(t)){const e=n.get(i);e.exportsWithDuplicate?e.exportsWithDuplicate.push(r):e.exportsWithDuplicate=[r]}}else e.set(i,t),n&&r&&n.set(i,{specifierText:ef(r.moduleSpecifier)})}))}function Ha(e){const t=[];let n;const r=new Set,i=function e(i,o,a){if(!a&&(null==i?void 0:i.exports)&&i.exports.forEach(((e,t)=>r.add(t))),!(i&&i.exports&&we(t,i)))return;const s=new Map(i.exports),c=i.exports.get("__export");if(c){const t=ip(),n=new Map;if(c.declarations)for(const r of c.declarations){Wa(t,e(Ia(r,r.moduleSpecifier),r,a||r.isTypeOnly),n,r)}n.forEach((({exportsWithDuplicate:e},t)=>{if("export="!==t&&e&&e.length&&!s.has(t))for(const r of e)Wi.add(zf(r,ja.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,n.get(t).specifierText,Ic(t)))})),Wa(s,t)}return(null==o?void 0:o.isTypeOnly)&&(null!=n||(n=new Map),s.forEach(((e,t)=>n.set(t,o)))),s}(e=Ra(e))||x;return n&&r.forEach((e=>n.delete(e))),{exports:i,typeOnlyExportStarMap:n}}function $a(e){let t;return e&&e.mergeId&&(t=Ei[e.mergeId])?t:e}function Ga(e){return $a(e.symbol&&$l(e.symbol))}function Xa(e){return Au(e)?Ga(e):void 0}function Ya(e){return $a(e.parent&&$l(e.parent))}function Za(t,n,i){const o=Ya(t);if(o&&!(262144&t.flags)){const a=Z(o.declarations,(function(e){return o&&es(e,o)})),s=n&&function(t,n){const i=wp(n),o=qB(i),a=No(t);let s;if(a.extendedContainersByFile&&(s=a.extendedContainersByFile.get(o)))return s;if(i&&i.imports){for(const e of i.imports){if(Qy(e))continue;const r=Ia(n,e,!0);r&&ts(r,t)&&(s=Se(s,r))}if(S(s))return(a.extendedContainersByFile||(a.extendedContainersByFile=new Map)).set(o,s),s}if(a.extendedContainers)return a.extendedContainers;const c=e.getSourceFiles();for(const e of c){if(!wI(e))continue;const n=Ga(e);ts(n,t)&&(s=Se(s,n))}return a.extendedContainers=s||r}(t,n),c=function(e,t){const n=!!S(e.declarations)&&Me(e.declarations);if(111551&t&&n&&n.parent&&wE(n.parent)&&(ED(n)&&n===n.parent.initializer||aD(n)&&n===n.parent.type))return Ga(n.parent)}(o,i);if(n&&o.flags&bs(i)&&ks(o,n,1920,!1))return Se(ue(ue([o],a),s),c);const _=!(o.flags&bs(i))&&788968&o.flags&&524288&ul(o).flags&&111551===i?vs(n,(e=>up(e,(e=>{if(e.flags&bs(i)&&x_(e)===ul(o))return e})))):void 0;let l=_?[_,...a,o]:[...a,o];return l=Se(l,c),l=Ae(l,s),l}const a=Z(t.declarations,(e=>{if(!df(e)&&e.parent){if(Is(e.parent))return Ga(e.parent);if(LE(e.parent)&&e.parent.parent&&Ra(Ga(e.parent.parent))===t)return Ga(e.parent.parent)}if(GD(e)&&QD(e.parent)&&63===e.parent.operatorToken.kind&&Yx(e.parent.left)&&zb(e.parent.left.expression))return Wg(e.parent.left)||Qg(e.parent.left.expression)?Ga(wp(e)):(WI(e.parent.left.expression),Fo(e.parent.left.expression).resolvedSymbol)}));if(S(a))return Z(a,(e=>ts(e,t)?e:void 0))}function es(e,t){const n=Fs(e),r=n&&n.exports&&n.exports.get("export=");return r&&ns(r,t)?n:void 0}function ts(e,t){if(e===Ya(t))return t;const n=e.exports&&e.exports.get("export=");if(n&&ns(n,t))return e;const r=Qa(e),i=r.get(t.escapedName);return i&&ns(i,t)?i:up(r,(e=>{if(ns(e,t))return e}))}function ns(e,t){if($a(ba($a(e)))===$a(ba($a(t))))return e}function rs(e){return $a(e&&0!=(1048576&e.flags)&&e.exportSymbol||e)}function is(e,t){return!!(111551&e.flags||2097152&e.flags&&111551&ka(e)&&(t||!Ca(e)))}function os(e){const t=e.members;for(const e of t)if(173===e.kind&&Mp(e.body))return e}function as(e){var t;const n=new d(ve,e);return f++,n.id=f,null==(t=Ur)||t.recordType(n),n}function ss(e,t){const n=as(e);return n.symbol=t,n}function cs(e){return new d(ve,e)}function ls(e,t,n=0){const r=as(e);return r.intrinsicName=t,r.objectFlags=n,r}function us(e,t){const n=ss(524288,t);return n.objectFlags=e,n.members=void 0,n.properties=void 0,n.callSignatures=void 0,n.constructSignatures=void 0,n.indexInfos=void 0,n}function ds(e){return ss(262144,e)}function ps(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function fs(e){let t;return e.forEach(((e,n)=>{ms(e,n)&&(t||(t=[])).push(e)})),t||r}function ms(e,t){return!ps(t)&&is(e)}function gs(e,t,n,i,o){const a=e;return a.members=t,a.properties=r,a.callSignatures=n,a.constructSignatures=i,a.indexInfos=o,t!==x&&(a.properties=fs(t)),a}function hs(e,t,n,r,i){return gs(us(16,e),t,n,r,i)}function vs(e,t){let n;for(let r=e;r;r=r.parent){if(wu(r)&&r.locals&&!Po(r)&&(n=t(r.locals,void 0,!0,r)))return n;switch(r.kind){case 308:if(!em(r))break;case 264:const e=Ga(r);if(n=t((null==e?void 0:e.exports)||x,void 0,!0,r))return n;break;case 260:case 228:case 261:let i;if((Ga(r).members||x).forEach(((e,t)=>{788968&e.flags&&(i||(i=ip())).set(t,e)})),i&&(n=t(i,void 0,!1,r)))return n}}return t(ce,void 0,!0)}function bs(e){return 111551===e?111551:1920}function ks(e,t,n,r,i=new Map){if(!e||function(e){if(e.declarations&&e.declarations.length){for(const t of e.declarations)switch(t.kind){case 169:case 171:case 174:case 175:continue;default:return!1}return!0}return!1}(e))return;const o=No(e),a=o.accessibleChainCache||(o.accessibleChainCache=new Map),s=vs(t,((e,t,n,r)=>r)),c=`${r?0:1}|${s&&qB(s)}|${n}`;if(a.has(c))return a.get(c);const _=VB(e);let l=i.get(_);l||i.set(_,l=[]);const u=vs(t,d);return a.set(c,u),u;function d(n,i,o){if(!we(l,n))return;const a=function(n,i,o){return f(n.get(e.escapedName),void 0,i)?[e]:up(n,(n=>{if(2097152&n.flags&&"export="!==n.escapedName&&"default"!==n.escapedName&&!(Kx(n)&&t&&wI(wp(t)))&&(!r||_e(n.declarations,hg))&&(!o||!_e(n.declarations,gg))&&(i||!np(n,278))){const e=m(n,xa(n),i);if(e)return e}if(n.escapedName===e.escapedName&&n.exportSymbol&&f($a(n.exportSymbol),void 0,i))return[e]}))||(n===ce?m(de,de,i):void 0)}(n,i,o);return l.pop(),a}function p(e,n){return!Ss(e,t,n)||!!ks(e.parent,t,bs(n),r,i)}function f(t,r,i){return(e===(r||t)||$a(e)===$a(r||t))&&!_e(t.declarations,Is)&&(i||p($a(t),n))}function m(e,t,r){if(f(e,t,r))return[e];const i=Qa(t),o=i&&d(i,!0);return o&&p(e,bs(n))?[e].concat(o):void 0}}function Ss(e,t,n){let r=!1;return vs(t,(t=>{let i=$a(t.get(e.escapedName));if(!i)return!1;if(i===e)return!0;const o=2097152&i.flags&&!np(i,278);return i=o?xa(i):i,!!((o?ka(i):i.flags)&n)&&(r=!0,!0)})),r}function Ts(e,t){return 0===Ns(e,t,788968,!1,!0).accessibility}function Cs(e,t){return 0===Ns(e,t,111551,!1,!0).accessibility}function ws(e,t,n){return 0===Ns(e,t,n,!1,!1).accessibility}function Ds(e,t,n,r,i,o){if(!S(e))return;let a,s=!1;for(const c of e){const e=ks(c,t,r,!1);if(e){a=c;const t=Os(e[0],i);if(t)return t}if(o&&_e(c.declarations,Is)){if(i){s=!0;continue}return{accessibility:0}}const _=Ds(Za(c,t,r),t,n,n===c?bs(r):r,i,o);if(_)return _}return s?{accessibility:0}:a?{accessibility:1,errorSymbolName:Ms(n,t,r),errorModuleName:a!==n?Ms(a,t,1920):void 0}:void 0}function Es(e,t,n,r){return Ns(e,t,n,r,!0)}function Ns(e,t,n,r,i){if(e&&t){const o=Ds([e],t,e,n,r,i);if(o)return o;const a=T(e.declarations,Fs);return a&&a!==Fs(t)?{accessibility:2,errorSymbolName:Ms(e,t,n),errorModuleName:Ms(a),errorNode:Sg(t)?t:void 0}:{accessibility:1,errorSymbolName:Ms(e,t,n)}}return{accessibility:0}}function Fs(e){const t=Ec(e,Ps);return t&&Ga(t)}function Ps(e){return df(e)||308===e.kind&&em(e)}function Is(e){return pf(e)||308===e.kind&&em(e)}function Os(e,t){let n;if(F(z(e.declarations,(e=>79!==e.kind)),(function(t){var n,i;if(!Ys(t)){const o=Ho(t);if(o&&!cb(o,1)&&Ys(o.parent))return r(t,o);if(wE(t)&&_E(t.parent.parent)&&!cb(t.parent.parent,1)&&Ys(t.parent.parent.parent))return r(t,t.parent.parent);if(Nf(t)&&!cb(t,1)&&Ys(t.parent))return r(t,t);if(wD(t)){if(2097152&e.flags&&Sg(t)&&(null==(n=t.parent)?void 0:n.parent)&&wE(t.parent.parent)&&(null==(i=t.parent.parent.parent)?void 0:i.parent)&&_E(t.parent.parent.parent.parent)&&!cb(t.parent.parent.parent.parent,1)&&t.parent.parent.parent.parent.parent&&Ys(t.parent.parent.parent.parent.parent))return r(t,t.parent.parent.parent.parent);if(2&e.flags){const e=Ec(t,_E);return!!cb(e,1)||!!Ys(e.parent)&&r(t,e)}}return!1}return!0})))return{accessibility:0,aliasesToMakeVisible:n};function r(e,r){return t&&(Fo(e).isVisible=!0,n=De(n,r)),!0}}function Ls(e,t){let n;n=183===e.parent.kind||230===e.parent.kind&&!hm(e.parent)||164===e.parent.kind?1160127:163===e.kind||208===e.kind||268===e.parent.kind?1920:788968;const r=Ub(e),i=Ro(t,r.escapedText,n,void 0,void 0,!1);return i&&262144&i.flags&&788968&n||!i&&Uv(r)&&0===Es(Ga(Km(r,!1,!1)),r,n,!1).accessibility?{accessibility:0}:i&&Os(i,!0)||{accessibility:1,errorSymbolName:ef(r),errorNode:r}}function Ms(e,t,n,r=4,i){let o=70221824;2&r&&(o|=128),1&r&&(o|=512),8&r&&(o|=16384),32&r&&(o|=134217728),16&r&&(o|=1073741824);const a=4&r?se.symbolToNode:se.symbolToEntityName;return i?s(i).getText():fp(s);function s(r){const i=a(e,n,t,o),s=308===(null==t?void 0:t.kind)?Qz():Vz(),c=t&&wp(t);return s.writeNode(4,i,c,r),r}}function Rs(e,t,n=0,r,i){return i?o(i).getText():fp(o);function o(i){let o;o=262144&n?1===r?182:181:1===r?177:176;const a=se.signatureToSignatureDeclaration(e,o,t,70222336|qs(n)),s=Kz(),c=t&&wp(t);return s.writeNode(4,a,c,fv(i)),i}}function Bs(e,t,n=1064960,r=pv("")){const i=C.noErrorTruncation||1&n,o=se.typeToTypeNode(e,t,70221824|qs(n)|(i?1:0));if(void 0===o)return In.fail("should always get typenode");const a=e!==mt?Vz():qz(),s=t&&wp(t);a.writeNode(4,o,s,r);const c=r.getText(),_=i?2*sd:2*ad;return _&&c&&c.length>=_?c.substr(0,_-3)+"...":c}function js(e,t){let n=zs(e.symbol)?Bs(e,e.symbol.valueDeclaration):Bs(e),r=zs(t.symbol)?Bs(t,t.symbol.valueDeclaration):Bs(t);return n===r&&(n=Js(e),r=Js(t)),[n,r]}function Js(e){return Bs(e,void 0,64)}function zs(e){return e&&!!e.valueDeclaration&&_u(e.valueDeclaration)&&!xx(e.valueDeclaration)}function qs(e=0){return 848330091&e}function Vs(e){return!!(e.symbol&&32&e.symbol.flags&&(e===el(e.symbol)||524288&e.flags&&16777216&Vx(e)))}function Qs(e,t,n=16384,r){return r?i(r).getText():fp(i);function i(r){const i=dC.createTypePredicateNode(2===e.kind||3===e.kind?dC.createToken(129):void 0,1===e.kind||3===e.kind?dC.createIdentifier(e.parameterName):dC.createThisTypeNode(),e.type&&se.typeToTypeNode(e.type,t,70222336|qs(n))),o=Vz(),a=t&&wp(t);return o.writeNode(4,i,a,r),r}}function Ks(e){return 8===e?"private":16===e?"protected":"public"}function Ws(e){return e&&e.parent&&265===e.parent.kind&&vf(e.parent.parent)}function Hs(e){return 308===e.kind||df(e)}function $s(e,t){const n=No(e).nameType;if(n){if(384&n.flags){const e=""+n.value;return Us(e,Rk(C))||MT(e)?MT(e)&&fn(e,"-")?`[${e}]`:e:`"${iv(e,34)}"`}if(8192&n.flags)return`[${Gs(n.symbol,t)}]`}}function Gs(e,t){if(t&&"default"===e.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!e.declarations||t.enclosingDeclaration&&Ec(e.declarations[0],Hs)!==Ec(t.enclosingDeclaration,Hs)))return"default";if(e.declarations&&e.declarations.length){let n=A(e.declarations,(e=>qc(e)?e:void 0));const r=n&&qc(n);if(n&&r){if(PD(n)&&$g(n))return Mc(e);if(Jw(r)&&!(4096&Fx(e))){const n=No(e).nameType;if(n&&384&n.flags){const n=$s(e,t);if(void 0!==n)return n}}return Lf(r)}if(n||(n=e.declarations[0]),n.parent&&257===n.parent.kind)return Lf(n.parent.name);switch(n.kind){case 228:case 215:case 216:return!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),228===n.kind?"(Anonymous class)":"(Anonymous function)"}}const n=$s(e,t);return void 0!==n?n:Mc(e)}function Ys(e){if(e){const t=Fo(e);return void 0===t.isVisible&&(t.isVisible=!!function(){switch(e.kind){case 341:case 349:case 343:return!!(e.parent&&e.parent.parent&&e.parent.parent.parent&&TN(e.parent.parent.parent));case 205:return Ys(e.parent.parent);case 257:if(Ul(e.name)&&!e.name.elements.length)return!1;case 264:case 260:case 261:case 262:case 259:case 263:case 268:if(vf(e))return!0;const t=sc(e);return 1&Tc(e)||268!==e.kind&&308!==t.kind&&16777216&t.flags?Ys(t):Po(t);case 169:case 168:case 174:case 175:case 171:case 170:if(sb(e,24))return!1;case 173:case 177:case 176:case 178:case 166:case 265:case 181:case 182:case 184:case 180:case 185:case 186:case 189:case 190:case 193:case 199:return Ys(e.parent);case 270:case 271:case 273:return!1;case 165:case 308:case 267:return!0;default:return!1}}()),t.isVisible}return!1}function Zs(e,t){let n,r,i;return e.parent&&274===e.parent.kind?n=Ro(e,e.escapedText,2998271,void 0,e,!1):278===e.parent.kind&&(n=fa(e.parent,2998271)),n&&(i=new Set,i.add(VB(n)),function e(n){T(n,(n=>{const o=Ho(n)||n;if(t?Fo(n).isVisible=!0:(r=r||[],we(r,o)),bg(n)){const t=Ro(n,Ub(n.moduleReference).escapedText,901119,void 0,void 0,!1);t&&i&&oe(i,VB(t))&&e(t.declarations)}}))}(n.declarations)),r}function tc(e,t){const n=ic(e,t);if(n>=0){const{length:e}=Ci;for(let t=n;t=0;n--){if(oc(Ci[n],wi[n]))return-1;if(Ci[n]===e&&wi[n]===t)return n}return-1}function oc(e,t){switch(t){case 0:return!!No(e).type;case 5:return!!Fo(e).resolvedEnumType;case 2:return!!No(e).declaredType;case 1:return!!e.resolvedBaseConstructorType;case 3:return!!e.resolvedReturnType;case 4:return!!e.immediateBaseConstraint;case 6:return!!e.resolvedTypeArguments;case 7:return!!e.baseTypesResolved;case 8:return!!No(e).writeType;case 9:return void 0!==Fo(e).parameterInitializerContainsUndefined}return In.assertNever(t)}function ac(){return Ci.pop(),wi.pop(),Ai.pop()}function sc(e){return Ec(qy(e),(e=>{switch(e.kind){case 257:case 258:case 273:case 272:case 271:case 270:return!1;default:return!0}})).parent}function cc(e,t){const n=zd(e,t);return n?x_(n):void 0}function _c(e){return e&&0!=(1&e.flags)}function lc(e){return e===pt||!!(1&e.flags&&e.aliasSymbol)}function uc(e,t){if(0!==t)return wc(e,!1,t);const n=Ga(e);return n&&No(n).type||wc(e,!1,t)}function dc(e,t,n){if(131072&(e=TA(e,(e=>!(98304&e.flags)))).flags)return hn;if(1048576&e.flags)return wA(e,(e=>dc(e,t,n)));let i=wh(V(t,gy));const o=[],a=[];for(const t of fd(e)){const e=hy(t,8576);Ix(e,i)||24&Px(t)||!Yv(t)?a.push(e):o.push(t)}if(rv(e)||ov(i)){if(a.length&&(i=wh([i,...a])),131072&i.flags)return e;const t=(wr||(wr=pm("Omit",2,!0)||rt),wr===rt?void 0:wr);return t?mf(t,[e,i]):pt}const s=ip();for(const e of o)s.set(e.escapedName,Zv(e,!1));const c=hs(n,s,r,r,Hd(e));return c.objectFlags|=4194304,c}function pc(e){return!!(465829888&e.flags)&&PI(kd(e)||bt,32768)}function fc(e){return ZC(kA(e,pc)?wA(e,(e=>465829888&e.flags?Sd(e):e)):e,524288)}function mc(e,t){const n=gc(e);return n?HA(n,t):t}function gc(e){const t=function(e){const t=e.parent.parent;switch(t.kind){case 205:case 299:return gc(t);case 206:return gc(e.parent);case 257:return t.initializer;case 223:return t.right}}(e);if(t&&Ch(t)&&t.flowNode){const n=hc(e);if(n){const r=OP(qP.createStringLiteral(n),e),i=ru(t)?t:qP.createParenthesizedExpression(t),o=OP(qP.createElementAccessExpression(i,r),e);return kT(r,o),kT(o,e),i!==t&&kT(i,o),o.flowNode=t.flowNode,o}}}function hc(e){const t=e.parent;return 205===e.kind&&203===t.kind?yc(e.propertyName||e.name):299===e.kind||300===e.kind?yc(e.name):""+t.elements.indexOf(e)}function yc(e){const t=gy(e);return 384&t.flags?""+t.value:void 0}function bc(e,t){if(_c(t))return t;const n=e.parent;let r;if(j&&16777216&e.flags&&Uy(e)?t=qS(t):!j||!n.parent.initializer||65536&YC(lA(n.parent.initializer))||(t=ZC(t,524288)),203===n.kind)if(e.dotDotDotToken){if(2&(t=Md(t)).flags||!tE(t))return uo(e,ja.Rest_types_may_only_be_created_from_object_types),pt;const i=[];for(const e of n.elements)e.dotDotDotToken||i.push(e.propertyName||e.name);r=dc(t,i,e.symbol)}else{const n=e.propertyName||e.name;r=mc(e,gv(t,gy(n),32,n))}else{const i=OL(65|(e.dotDotDotToken?0:128),t,Tt,n),o=n.elements.indexOf(e);if(e.dotDotDotToken){const e=Sd(t);r=SA(e,IS)?wA(e,(e=>th(e,o))):kg(i)}else r=hS(t)?mc(e,vv(t,yb(o),32|(zD(e)?16:0),e.name)||pt):i}return e.initializer?Kv(kc(e))?!j||16777216&YC($I(e,0))?r:fc(r):GI(e,wh([fc(r),$I(e,0)],2)):r}function xc(e){const t=b_(e);if(t)return Db(t)}function Sc(e){const t=Hh(e,!0);return 206===t.kind&&0===t.elements.length}function Cc(e,t=!1,n=!0){return j&&n?US(e,t):e}function wc(e,t,n){if(wE(e)&&246===e.parent.parent.kind){const t=Py(sN(dO(e.parent.parent.expression,n)));return 4456448&t.flags?Ly(t):Pt}if(wE(e)&&247===e.parent.parent.kind)return IL(e.parent.parent)||_t;if(Ul(e.parent))return function(e){const t=e.dotDotDotToken?64:0,n=uc(e.parent.parent,t);return n&&bc(e,n)}(e);const r=Qw(e)&&!fb(e)||Vw(e)||lF(e),i=t&&WT(e),o=o_(e);if(uf(e))return o?_c(o)||o===bt?o:pt:Y?bt:_t;if(o)return Cc(o,r,i);if((G||Sg(e))&&wE(e)&&!Ul(e.name)&&!(1&Tc(e))&&!(16777216&e.flags)){if(!(2&Ac(e))&&(!e.initializer||function(e){const t=Hh(e,!0);return 104===t.kind||79===t.kind&&EC(t)===le}(e.initializer)))return ut;if(e.initializer&&Sc(e.initializer))return tr}if(Uw(e)){const t=e.parent;if(175===t.kind&&Vl(t)){const n=np(Ga(e.parent),174);if(n){const r=mp(n),i=mB(t);return i&&e===i?(In.assert(!i.type),x_(r.thisParameter)):Tp(r)}}const n=function(e,t){const n=hp(e);if(!n)return;const r=e.parameters.indexOf(t);return t.dotDotDotToken?HP(n,r):KP(n,r)}(t,e);if(n)return n;const r="this"===e.symbol.escapedName?yw(t):vw(e);if(r)return Cc(r,!1,i)}if(Gu(e)&&e.initializer){if(Sg(e)&&!Uw(e)){const t=Wc(e,Ga(e),Bg(e));if(t)return t}return Cc(GI(e,$I(e,n)),r,i)}if(Qw(e)&&(G||Sg(e))){if(lb(e)){const t=z(e.parent.members,Hw),n=t.length?function(e,t){const n=fn(e.escapedName,"__#")?dC.createPrivateIdentifier(e.escapedName.split("@")[1]):Ic(e.escapedName);for(const r of t){const t=dC.createPropertyAccessExpression(dC.createThis(),n);kT(t.expression,t),kT(t,r),t.flowNode=r.returnFlowNode;const i=Uc(t,e);if(!G||i!==ut&&i!==tr||uo(e.valueDeclaration,ja.Member_0_implicitly_has_an_1_type,Ms(e),Bs(i)),!SA(i,nN))return SL(i)}}(e.symbol,t):2&bb(e)?Wk(e.symbol):void 0;return n&&Cc(n,!0,i)}{const t=os(e.parent),n=t?Jc(e.symbol,t):2&bb(e)?Wk(e.symbol):void 0;return n&&Cc(n,!0,i)}}return uN(e)?Bt:Ul(e.name)?e_(e.name,!1,!0):void 0}function Nc(e){if(e.valueDeclaration&&QD(e.valueDeclaration)){const t=No(e);return void 0===t.isConstructorDeclaredProperty&&(t.isConstructorDeclaredProperty=!1,t.isConstructorDeclaredProperty=!!Bc(e)&&F(e.declarations,(t=>QD(t)&&Dw(t)&&(209!==t.left.kind||Ty(t.left.argumentExpression))&&!$c(void 0,t,e,t)))),t.isConstructorDeclaredProperty}return!1}function Rc(e){const t=e.valueDeclaration;return t&&Qw(t)&&!Kv(t)&&!t.initializer&&(G||Sg(t))}function Bc(e){if(e.declarations)for(const t of e.declarations){const e=Km(t,!1,!1);if(e&&(173===e.kind||vP(e)))return e}}function Jc(e,t){const n=fn(e.escapedName,"__#")?dC.createPrivateIdentifier(e.escapedName.split("@")[1]):Ic(e.escapedName),r=dC.createPropertyAccessExpression(dC.createThis(),n);kT(r.expression,r),kT(r,t),r.flowNode=t.returnFlowNode;const i=Uc(r,e);return!G||i!==ut&&i!==tr||uo(e.valueDeclaration,ja.Member_0_implicitly_has_an_1_type,Ms(e),Bs(i)),SA(i,nN)?void 0:SL(i)}function Uc(e,t){const n=(null==t?void 0:t.valueDeclaration)&&(!Rc(t)||2&bb(t.valueDeclaration))&&Wk(t)||Tt;return HA(e,ut,n)}function Vc(e,t){const n=jg(e.valueDeclaration);if(n){const t=Sg(n)?v_(n):void 0;return t&&t.typeExpression?Db(t.typeExpression):e.valueDeclaration&&Wc(e.valueDeclaration,e,n)||ES(WI(n))}let r,i=!1,o=!1;if(Nc(e)&&(r=Jc(e,Bc(e))),!r){let n;if(e.declarations){let a;for(const r of e.declarations){const s=QD(r)||PD(r)?r:Yx(r)?QD(r.parent)?r.parent:r:void 0;if(!s)continue;const c=Yx(s)?ih(s):Hg(s);(4===c||QD(s)&&Dw(s,c))&&(Xc(s)?i=!0:o=!0),PD(s)||(a=$c(a,s,e,r)),a||(n||(n=[])).push(QD(s)||PD(s)?Gc(e,t,s,c):Qt)}r=a}if(!r){if(!S(n))return pt;let t=i&&e.declarations?function(e,t){return In.assert(e.length===t.length),e.filter(((e,n)=>{const r=t[n],i=QD(r)?r:QD(r.parent)?r.parent:void 0;return i&&Xc(i)}))}(n,e.declarations):void 0;if(o){const n=Wk(e);n&&((t||(t=[])).push(n),i=!0)}r=wh(_e(t,(e=>!!(-98305&e.flags)))?t:n)}}const a=TT(Cc(r,!1,o&&!i));return e.valueDeclaration&&TA(a,(e=>!!(-98305&e.flags)))===Qt?(DT(e.valueDeclaration,_t),_t):a}function Wc(e,t,n){var i,o;if(!Sg(e)||!n||!ED(n)||n.properties.length)return;const a=ip();for(;QD(e)||ND(e);){const t=Xa(e);(null==(i=null==t?void 0:t.exports)?void 0:i.size)&&Do(a,t.exports),e=QD(e)?e.parent:e.parent.parent}const s=Xa(e);(null==(o=null==s?void 0:s.exports)?void 0:o.size)&&Do(a,s.exports);const c=hs(t,a,r,r,r);return c.objectFlags|=4096,c}function $c(e,t,n,r){var i;const o=Kv(t.parent);if(o){const t=TT(Db(o));if(!e)return t;lc(e)||lc(t)||Cx(e,t)||CL(void 0,e,r,t)}if(null==(i=n.parent)?void 0:i.valueDeclaration){const e=Kv(n.parent.valueDeclaration);if(e){const t=zd(Db(e),n.escapedName);if(t)return k_(t)}}return e}function Gc(e,t,n,r){if(PD(n)){if(t)return x_(t);const e=WI(n.arguments[2]),r=cc(e,"value");if(r)return r;const i=cc(e,"get");if(i){const e=NF(i);if(e)return Tp(e)}const o=cc(e,"set");if(o){const e=NF(o);if(e)return eI(e)}return _t}if(function(e,t){return ND(e)&&108===e.expression.kind&&xI(t,(t=>OC(e,t)))}(n.left,n.right))return _t;const i=1===r&&(ND(n.left)||FD(n.left))&&(Wg(n.left.expression)||Tw(n.left.expression)&&Qg(n.left.expression)),o=t?x_(t):i?nb(WI(n.right)):ES(WI(n.right));if(524288&o.flags&&2===r&&"export="===e.escapedName){const n=ld(o),r=ip();pp(n.members,r);const i=r.size;t&&!t.exports&&(t.exports=ip()),(t||e).exports.forEach(((e,t)=>{var n;const i=r.get(t);if(!i||i===e||2097152&e.flags)r.set(t,e);else if(111551&e.flags&&111551&i.flags){if(e.valueDeclaration&&i.valueDeclaration&&wp(e.valueDeclaration)!==wp(i.valueDeclaration)){const t=Ic(e.escapedName),r=(null==(n=xt(i.valueDeclaration,zc))?void 0:n.name)||i.valueDeclaration;rT(uo(e.valueDeclaration,ja.Duplicate_identifier_0,t),zf(r,ja._0_was_also_declared_here,t)),rT(uo(r,ja.Duplicate_identifier_0,t),zf(e.valueDeclaration,ja._0_was_also_declared_here,t))}const o=vo(e.flags|i.flags,t);o.links.type=wh([x_(e),x_(i)]),o.valueDeclaration=i.valueDeclaration,o.declarations=ue(i.declarations,e.declarations),r.set(t,o)}else r.set(t,Co(e,i))}));const a=hs(i!==r.size?void 0:n.symbol,r,n.callSignatures,n.constructSignatures,n.indexInfos);if(i===r.size&&(o.aliasSymbol&&(a.aliasSymbol=o.aliasSymbol,a.aliasTypeArguments=o.aliasTypeArguments),4&Vx(o))){a.aliasSymbol=o.symbol;const e=cf(o);a.aliasTypeArguments=S(e)?e:void 0}return a.objectFlags|=4096&Vx(o),a.symbol&&32&a.symbol.flags&&o===el(a.symbol)&&(a.objectFlags|=16777216),a}return bS(o)?(DT(n,er),er):o}function Xc(e){const t=Km(e,!1,!1);return 173===t.kind||259===t.kind||215===t.kind&&!ah(t.parent)}function Yc(e,t,n){return e.initializer?Cc(GI(e,$I(e,0,Ul(e.name)?e_(e.name,!0,!1):bt))):Ul(e.name)?e_(e.name,t,n):(n&&!i_(e)&&DT(e,_t),t?gt:_t)}function e_(e,t=!1,n=!1){return 203===e.kind?function(e,t,n){const i=ip();let o,a=131200;T(e.elements,(e=>{const r=e.propertyName||e.name;if(e.dotDotDotToken)return void(o=qp(Pt,_t,!1));const s=gy(r);if(!Ml(s))return void(a|=512);const c=Ql(s),_=vo(4|(e.initializer?16777216:0),c);_.links.type=Yc(e,t,n),_.links.bindingElement=e,i.set(_.escapedName,_)}));const s=hs(void 0,i,r,r,o?[o]:r);return s.objectFlags|=a,t&&(s.pattern=e,s.objectFlags|=131072),s}(e,t,n):function(e,t,n){const r=e.elements,i=Be(r),o=i&&205===i.kind&&i.dotDotDotToken?i:void 0;if(0===r.length||1===r.length&&o)return w>=2?ug(_t):er;const a=V(r,(e=>XD(e)?_t:Yc(e,t,n))),s=L(r,(e=>!(e===o||XD(e)||zD(e))),r.length-1)+1;let c=Vg(a,V(r,((e,t)=>e===o?4:t>=s?2:1)));return t&&(c=of(c),c.pattern=e,c.objectFlags|=131072),c}(e,t,n)}function t_(e,t){return r_(wc(e,!0,0),e,t)}function r_(e,t,n){return e?(4096&e.flags&&function(e){const t=Xa(e),n=or||(or=dm("SymbolConstructor",!1));return n&&t&&t===n}(t.parent)&&(e=kb(t)),n&&ET(t,e),8192&e.flags&&(wD(t)||!t.type)&&e.symbol!==Ga(t)&&(e=qt),TT(e)):(e=Uw(t)&&t.dotDotDotToken?er:_t,n&&(i_(t)||DT(t,e)),e)}function i_(e){const t=qy(e);return NO(166===t.kind?t.parent:t)}function o_(e){const t=Kv(e);if(t)return Db(t)}function a_(e){if(e)switch(e.kind){case 174:return Hv(e);case 175:return Gv(e);case 169:return In.assert(fb(e)),Kv(e)}}function s_(e){const t=a_(e);return t&&Db(t)}function c_(e){const t=No(e);if(!t.type){if(!tc(e,0))return pt;const n=np(e,174),r=np(e,175),i=xt(np(e,169),Il);let o=n&&Sg(n)&&xc(n)||s_(n)||s_(r)||s_(i)||n&&n.body&&uI(n)||i&&i.initializer&&t_(i,!0);o||(r&&!NO(r)?fo(G,r,ja.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Ms(e)):n&&!NO(n)?fo(G,n,ja.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Ms(e)):i&&!NO(i)&&fo(G,i,ja.Member_0_implicitly_has_an_1_type,Ms(e),"any"),o=_t),ac()||(a_(n)?uo(n,ja._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ms(e)):a_(r)||a_(i)?uo(r,ja._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ms(e)):n&&G&&uo(n,ja._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Ms(e)),o=_t),t.type=o}return t.type}function __(e){var t;const n=No(e);if(!n.writeType){if(!tc(e,8))return pt;const r=null!=(t=np(e,175))?t:xt(np(e,169),Il);let i=s_(r);ac()||(a_(r)&&uo(r,ja._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ms(e)),i=_t),n.writeType=i||c_(e)}return n.writeType}function l_(e){const t=$_(el(e));return 8650752&t.flags?t:2097152&t.flags?P(t.types,(e=>!!(8650752&e.flags))):void 0}function u_(e){let t=No(e);const n=t;if(!t.type){const r=e.valueDeclaration&&xP(e.valueDeclaration,!1);if(r){const n=bP(e,r);n&&(e=n,t=n.links)}n.type=t.type=function(e){const t=e.valueDeclaration;if(1536&e.flags&&gf(e))return _t;if(t&&(223===t.kind||Yx(t)&&223===t.parent.kind))return Vc(e);if(512&e.flags&&t&&TN(t)&&t.commonJsModuleIndicator){const t=Ra(e);if(t!==e){if(!tc(e,0))return pt;const n=$a(e.exports.get("export=")),r=Vc(n,n===t?void 0:t);return ac()?r:g_(e)}}const n=us(16,e);if(32&e.flags){const t=l_(e);return t?Yh([n,t]):n}return j&&16777216&e.flags?US(n):n}(e)}return t.type}function p_(e){const t=No(e);return t.type||(t.type=cl(e))}function g_(e){const t=e.valueDeclaration;return Kv(t)?(uo(e.valueDeclaration,ja._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ms(e)),pt):(G&&(166!==t.kind||t.initializer)&&uo(e.valueDeclaration,ja._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Ms(e)),_t)}function h_(e){const t=No(e);return t.type||(In.assertIsDefined(t.deferralParent),In.assertIsDefined(t.deferralConstituents),t.type=1048576&t.deferralParent.flags?wh(t.deferralConstituents):Yh(t.deferralConstituents)),t.type}function y_(e){const t=Fx(e);return 4&e.flags?2&t?65536&t?function(e){const t=No(e);return!t.writeType&&t.deferralWriteConstituents&&(In.assertIsDefined(t.deferralParent),In.assertIsDefined(t.deferralConstituents),t.writeType=1048576&t.deferralParent.flags?wh(t.deferralWriteConstituents):Yh(t.deferralWriteConstituents)),t.writeType}(e)||h_(e):e.links.writeType||e.links.type:x_(e):98304&e.flags?1&t?function(e){const t=No(e);return t.writeType||(t.writeType=gx(y_(t.target),t.mapper))}(e):__(e):x_(e)}function x_(e){const t=Fx(e);return 65536&t?h_(e):1&t?function(e){const t=No(e);return t.type||(t.type=gx(x_(t.target),t.mapper))}(e):262144&t?function(e){if(!e.links.type){const t=e.links.mappedType;if(!tc(e,0))return t.containsError=!0,pt;const n=gx(Ru(t.target||t),ox(t.mapper,Ou(t),e.links.keyType));let r=j&&16777216&e.flags&&!PI(n,49152)?US(n,!0):524288&e.links.checkFlags?YS(n):n;ac()||(uo(o,ja.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Ms(e),Bs(t)),r=pt),e.links.type=r}return e.links.type}(e):8192&t?function(e){const t=No(e);return t.type||(t.type=sC(e.links.propertyType,e.links.mappedType,e.links.constraintType)),t.type}(e):7&e.flags?function(e){const t=No(e);if(!t.type){const n=function(e){if(4194304&e.flags)return function(e){const t=ul(Ya(e));return t.typeParameters?rf(t,V(t.typeParameters,(e=>_t))):t}(e);if(e===he)return _t;if(134217728&e.flags&&e.valueDeclaration){const t=Ga(wp(e.valueDeclaration)),n=vo(t.flags,"exports");n.declarations=t.declarations?t.declarations.slice():[],n.parent=e,n.links.target=t,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),t.members&&(n.members=new Map(t.members)),t.exports&&(n.exports=new Map(t.exports));const i=ip();return i.set("exports",n),hs(e,i,r,r,r)}In.assertIsDefined(e.valueDeclaration);const t=e.valueDeclaration;if(TN(t)&&tm(t))return t.statements.length?TT(ES(dO(t.statements[0].expression))):hn;if(Pl(t))return c_(e);if(!tc(e,0))return 512&e.flags&&!(67108864&e.flags)?u_(e):g_(e);let n;if(274===t.kind)n=r_(o_(t)||WI(t.expression),t);else if(QD(t)||Sg(t)&&(PD(t)||(ND(t)||Zg(t))&&QD(t.parent)))n=Vc(e);else if(ND(t)||FD(t)||Tw(t)||ed(t)||ow(t)||NE(t)||EE(t)||Ww(t)&&!Pm(t)||Kw(t)||TN(t)){if(9136&e.flags)return u_(e);n=QD(t.parent)?Vc(e):o_(t)||_t}else if(vN(t))n=o_(t)||eO(t);else if(uN(t))n=o_(t)||oE(t);else if(bN(t))n=o_(t)||ZI(t.name,0);else if(Pm(t))n=o_(t)||tO(t,0);else if(Uw(t)||Qw(t)||Vw(t)||wE(t)||wD(t)||H_(t))n=t_(t,!0);else if(IE(t))n=u_(e);else{if(!kN(t))return In.fail("Unhandled declaration kind! "+In.formatSyntaxKind(t.kind)+" for "+In.formatSymbol(e));n=p_(e)}return ac()?n:512&e.flags&&!(67108864&e.flags)?u_(e):g_(e)}(e);return t.type||function(e){let t=e.valueDeclaration;return!!t&&(wD(t)&&(t=kc(t)),!!Uw(t)&&Sx(t.parent))}(e)||(t.type=n),n}return t.type}(e):9136&e.flags?u_(e):8&e.flags?p_(e):98304&e.flags?c_(e):2097152&e.flags?function(e){const t=No(e);if(!t.type){const n=xa(e),r=e.declarations&&ha($o(e),!0),i=A(null==r?void 0:r.declarations,(e=>HE(e)?o_(e):void 0));t.type=(null==r?void 0:r.declarations)&&zM(r.declarations)&&e.declarations.length?function(e){const t=wp(e.declarations[0]),n=Ic(e.escapedName),r=e.declarations.every((e=>Sg(e)&&Yx(e)&&Wg(e.expression))),i=r?dC.createPropertyAccessExpression(dC.createPropertyAccessExpression(dC.createIdentifier("module"),dC.createIdentifier("exports")),n):dC.createPropertyAccessExpression(dC.createIdentifier("exports"),n);return r&&kT(i.expression.expression,i.expression),kT(i.expression,i),kT(i,t),i.flowNode=t.endFlowNode,HA(i,ut,Tt)}(r):zM(e.declarations)?ut:i||(111551&ka(n)?x_(n):pt)}return t.type}(e):pt}function k_(e){return $S(x_(e),!!(16777216&e.flags))}function T_(e,t){return void 0!==e&&void 0!==t&&0!=(4&Vx(e))&&e.target===t}function C_(e){return 4&Vx(e)?e.target:e}function w_(e,t){return function e(n){if(7&Vx(n)){const r=C_(n);return r===t||_e(X_(r),e)}return!!(2097152&n.flags)&&_e(n.types,e)}(e)}function F_(e,t){for(const n of t)e=De(e,ll(Ga(n)));return e}function I_(e,t){for(;;){if((e=e.parent)&&QD(e)){const t=Hg(e);if(6===t||3===t){const t=Ga(e.left);t&&t.parent&&!Ec(t.parent.valueDeclaration,(t=>e===t))&&(e=t.parent.valueDeclaration)}}if(!e)return;switch(e.kind){case 260:case 228:case 261:case 176:case 177:case 170:case 181:case 182:case 320:case 259:case 171:case 215:case 216:case 262:case 348:case 349:case 343:case 341:case 197:case 191:{const n=I_(e,t);if(197===e.kind)return Se(n,ll(Ga(e.typeParameter)));if(191===e.kind)return ue(n,Nv(e));const r=F_(n,E_(e)),i=t&&(260===e.kind||228===e.kind||261===e.kind||vP(e))&&el(Ga(e)).thisType;return i?Se(r,i):r}case 344:const n=Fh(e);n&&(e=n.valueDeclaration);break;case 323:{const n=I_(e,t);return e.tags?F_(n,H(e.tags,(e=>sF(e)?e.typeParameters:void 0))):n}}}}function O_(e){var t;const n=32&e.flags||16&e.flags?e.valueDeclaration:null==(t=e.declarations)?void 0:t.find((e=>{if(261===e.kind)return!0;if(257!==e.kind)return!1;const t=e.initializer;return!!t&&(215===t.kind||216===t.kind)}));return In.assert(!!n,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),I_(n)}function U_(e){if(!e.declarations)return;let t;for(const n of e.declarations)(261===n.kind||260===n.kind||228===n.kind||vP(n)||bh(n))&&(t=F_(t,E_(n)));return t}function q_(e){const t=qd(e,1);if(1===t.length){const e=t[0];if(!e.typeParameters&&1===e.parameters.length&&XB(e)){const t=jP(e.parameters[0]);return _c(t)||gS(t)===_t}}return!1}function V_(e){if(qd(e,1).length>0)return!0;if(8650752&e.flags){const t=kd(e);return!!t&&q_(t)}return!1}function Q_(e){const t=qx(e.symbol);return t&&sy(t)}function K_(e,t,n){const r=S(t),i=Sg(n);return z(qd(e,1),(e=>(i||r>=_p(e.typeParameters))&&r<=S(e.typeParameters)))}function W_(e,t,n){const r=K_(e,t,n),i=V(t,Db);return K(r,(e=>_e(e.typeParameters)?Ip(e,i,Sg(n)):e))}function $_(e){if(!e.resolvedBaseConstructorType){const t=qx(e.symbol),n=t&&sy(t),r=Q_(e);if(!r)return e.resolvedBaseConstructorType=Tt;if(!tc(e,1))return pt;const i=dO(r.expression);if(n&&r!==n&&(In.assert(!n.typeArguments),dO(n.expression)),2621440&i.flags&&ld(i),!ac())return uo(e.symbol.valueDeclaration,ja._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Ms(e.symbol)),e.resolvedBaseConstructorType=pt;if(!(1&i.flags||i===Nt||V_(i))){const t=uo(r.expression,ja.Type_0_is_not_a_constructor_function_type,Bs(i));if(262144&i.flags){const e=$p(i);let n=bt;if(e){const t=qd(e,1);t[0]&&(n=Tp(t[0]))}i.symbol.declarations&&rT(t,zf(i.symbol.declarations[0],ja.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Ms(i.symbol),Bs(n)))}return e.resolvedBaseConstructorType=pt}e.resolvedBaseConstructorType=i}return e.resolvedBaseConstructorType}function G_(e,t){uo(e,ja.Type_0_recursively_references_itself_as_a_base_type,Bs(t,void 0,2))}function X_(e){if(!e.baseTypesResolved){if(tc(e,7)&&(8&e.objectFlags?e.resolvedBaseTypes=[Y_(e)]:96&e.symbol.flags?(32&e.symbol.flags&&function(e){e.resolvedBaseTypes=id;const t=Nd($_(e));if(!(2621441&t.flags))return e.resolvedBaseTypes=r;const n=Q_(e);let i;const o=t.symbol?ul(t.symbol):void 0;if(t.symbol&&32&t.symbol.flags&&function(e){const t=e.outerTypeParameters;if(t){const n=t.length-1,r=cf(e);return t[n].symbol!==r[n].symbol}return!0}(o))i=ff(n,t.symbol);else if(1&t.flags)i=t;else{const o=W_(t,n.typeArguments,n);if(!o.length)return uo(n.expression,ja.No_base_constructor_has_the_specified_number_of_type_arguments),e.resolvedBaseTypes=r;i=Tp(o[0])}if(lc(i))return e.resolvedBaseTypes=r;const a=Md(i);if(!Z_(a)){const t=Ak(Jd(void 0,i),ja.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Bs(a));return Wi.add(Vf(wp(n.expression),n.expression,t)),e.resolvedBaseTypes=r}if(e===a||w_(a,e))return uo(e.symbol.valueDeclaration,ja.Type_0_recursively_references_itself_as_a_base_type,Bs(e,void 0,2)),e.resolvedBaseTypes=r;e.resolvedBaseTypes===id&&(e.members=void 0),e.resolvedBaseTypes=[a]}(e),64&e.symbol.flags&&function(e){if(e.resolvedBaseTypes=e.resolvedBaseTypes||r,e.symbol.declarations)for(const t of e.symbol.declarations)if(261===t.kind&&uy(t))for(const n of uy(t)){const i=Md(Db(n));lc(i)||(Z_(i)?e===i||w_(i,e)?G_(t,e):e.resolvedBaseTypes===r?e.resolvedBaseTypes=[i]:e.resolvedBaseTypes.push(i):uo(n,ja.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}(e)):In.fail("type must be class or interface"),!ac()&&e.symbol.declarations))for(const t of e.symbol.declarations)260!==t.kind&&261!==t.kind||G_(t,e);e.baseTypesResolved=!0}return e.resolvedBaseTypes}function Y_(e){return kg(wh(K(e.typeParameters,((t,n)=>8&e.elementFlags[n]?gv(t,It):t))||r),e.readonly)}function Z_(e){if(262144&e.flags){const t=kd(e);if(t)return Z_(t)}return!!(67633153&e.flags&&!cd(e)||2097152&e.flags&&F(e.types,Z_))}function el(e){let t=No(e);const n=t;if(!t.declaredType){const r=32&e.flags?1:2,i=bP(e,e.valueDeclaration&&function(e){var t;const n=e&&xP(e,!0),r=null==(t=null==n?void 0:n.exports)?void 0:t.get("prototype"),i=(null==r?void 0:r.valueDeclaration)&&function(e){if(!e.parent)return!1;let t=e.parent;for(;t&&208===t.kind;)t=t.parent;if(t&&QD(t)&&Kb(t.left)&&63===t.operatorToken.kind){const e=oh(t);return ED(e)&&e}}(r.valueDeclaration);return i?Ga(i):void 0}(e.valueDeclaration));i&&(e=i,t=i.links);const o=n.declaredType=t.declaredType=us(r,e),a=O_(e),s=U_(e);(a||s||1===r||!function(e){if(!e.declarations)return!0;for(const t of e.declarations)if(261===t.kind){if(128&t.flags)return!1;const e=uy(t);if(e)for(const t of e)if(zb(t.expression)){const e=Fa(t.expression,788968,!0);if(!e||!(64&e.flags)||el(e).thisType)return!1}}return!0}(e))&&(o.objectFlags|=4,o.typeParameters=ue(a,s),o.outerTypeParameters=a,o.localTypeParameters=s,o.instantiations=new Map,o.instantiations.set(Xp(o.typeParameters),o),o.target=o,o.resolvedTypeArguments=o.typeParameters,o.thisType=ds(e),o.thisType.isThisType=!0,o.thisType.constraint=o)}return t.declaredType}function rl(e){var t;const n=No(e);if(!n.declaredType){if(!tc(e,2))return pt;const r=In.checkDefined(null==(t=e.declarations)?void 0:t.find(bh),"Type alias symbol with no valid declaration found"),i=vh(r)?r.typeExpression:r.type;let o=i?Db(i):pt;if(ac()){const t=U_(e);t&&(n.typeParameters=t,n.instantiations=new Map,n.instantiations.set(Xp(t),o))}else o=pt,343===r.kind?uo(r.typeExpression.type,ja.Type_alias_0_circularly_references_itself,Ms(e)):uo(zc(r)&&r.name||r,ja.Type_alias_0_circularly_references_itself,Ms(e));n.declaredType=o}return n.declaredType}function il(e){return 1056&e.flags&&8&e.symbol.flags?ul(Ya(e.symbol)):e}function ol(e){const t=No(e);if(!t.declaredType){const n=[];if(e.declarations)for(const t of e.declarations)if(263===t.kind)for(const r of t.members)if(Vl(r)){const t=Ga(r),i=IR(r),o=tb(void 0!==i?xb(i,VB(e),t):sl(t));No(t).declaredType=o,n.push(nb(o))}const r=n.length?wh(n,1,e,void 0):sl(e);1048576&r.flags&&(r.flags|=1024,r.symbol=e),t.declaredType=r}return t.declaredType}function sl(e){const t=ss(32,e),n=ss(32,e);return t.regularType=t,t.freshType=n,n.regularType=t,n.freshType=n,t}function cl(e){const t=No(e);if(!t.declaredType){const n=ol(Ya(e));t.declaredType||(t.declaredType=n)}return t.declaredType}function ll(e){const t=No(e);return t.declaredType||(t.declaredType=ds(e))}function ul(e){return pl(e)||pt}function pl(e){return 96&e.flags?el(e):524288&e.flags?rl(e):262144&e.flags?ll(e):384&e.flags?ol(e):8&e.flags?cl(e):2097152&e.flags?function(e){const t=No(e);return t.declaredType||(t.declaredType=ul(xa(e)))}(e):void 0}function gl(e){switch(e.kind){case 131:case 157:case 152:case 148:case 160:case 134:case 153:case 149:case 114:case 155:case 144:case 198:return!0;case 185:return gl(e.elementType);case 180:return!e.typeArguments||e.typeArguments.every(gl)}return!1}function hl(e){const t=N_(e);return!t||gl(t)}function yl(e){const t=Kv(e);return t?gl(t):!$u(e)}function kl(e){if(e.declarations&&1===e.declarations.length){const t=e.declarations[0];if(t)switch(t.kind){case 169:case 168:return yl(t);case 171:case 170:case 173:case 174:case 175:return function(e){const t=Hv(e),n=E_(e);return(173===e.kind||!!t&&gl(t))&&e.parameters.every(yl)&&n.every(hl)}(t)}}return!1}function wl(e,t,n){const r=ip();for(const i of e)r.set(i.escapedName,n&&kl(i)?i:cx(i,t));return r}function Dl(e,t){for(const n of t)e.has(n.escapedName)||Ol(n)||e.set(n.escapedName,n)}function Ol(e){return!!e.valueDeclaration&&fl(e.valueDeclaration)&&_b(e.valueDeclaration)}function Ll(e){if(!e.declaredProperties){const t=e.symbol,n=Hl(t);e.declaredProperties=fs(n),e.declaredCallSignatures=r,e.declaredConstructSignatures=r,e.declaredIndexInfos=r,e.declaredCallSignatures=vp(n.get("__call")),e.declaredConstructSignatures=vp(n.get("__new")),e.declaredIndexInfos=Vp(t)}return e}function Ml(e){return!!(8576&e.flags)}function Rl(e){if(!Jw(e)&&!FD(e))return!1;const t=Jw(e)?e.expression:e.argumentExpression;return zb(t)&&Ml(Jw(e)?KD(e):WI(t))}function Bl(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function zl(e){const t=qc(e);return!!t&&Rl(t)}function Vl(e){return!Ay(e)||zl(e)}function Ql(e){return 8192&e.flags?e.escapedName:384&e.flags?Pc(""+e.value):In.fail()}function Kl(e,t,n,r){In.assert(!!r.symbol,"The member is expected to have a symbol.");const i=Fo(r);if(!i.resolvedSymbol){i.resolvedSymbol=r.symbol;const o=QD(r)?r.left:r.name,a=FD(o)?WI(o.argumentExpression):KD(o);if(Ml(a)){const s=Ql(a),c=r.symbol.flags;let _=n.get(s);_||n.set(s,_=vo(0,s,4096));const l=t&&t.get(s);if(_.flags&ko(c)||l){const e=l?ue(l.declarations,_.declarations):_.declarations,t=!(8192&a.flags)&&Ic(s)||Lf(o);T(e,(e=>uo(qc(e)||e,ja.Property_0_was_also_declared_here,t))),uo(o||r,ja.Duplicate_property_0,t),_=vo(0,s,4096)}return _.links.nameType=a,function(e,t,n){In.assert(!!(4096&Fx(e)),"Expected a late-bound symbol."),e.flags|=n,No(t.symbol).lateSymbol=e,e.declarations?t.symbol.isReplaceableByMethod||e.declarations.push(t):e.declarations=[t],111551&n&&(e.valueDeclaration&&e.valueDeclaration.kind===t.kind||(e.valueDeclaration=t))}(_,r,c),_.parent?In.assert(_.parent===e,"Existing symbol parent should match new one"):_.parent=e,i.resolvedSymbol=_}}return i.resolvedSymbol}function Wl(e,t){const n=No(e);if(!n[t]){const i="resolvedExports"===t,o=i?1536&e.flags?Ha(e).exports:e.exports:e.members;n[t]=o||x;const a=ip();for(const t of e.declarations||r){const n=km(t);if(n)for(const t of n)i===lb(t)&&zl(t)&&Kl(e,o,a,t)}const s=e.assignmentDeclarationMembers;if(s){const t=Ze(s.values());for(const n of t){const t=Hg(n);i===!(3===t||QD(n)&&Dw(n,t)||9===t||6===t)&&zl(n)&&Kl(e,o,a,n)}}n[t]=function(e,t){if(!(null==e?void 0:e.size))return t;if(!(null==t?void 0:t.size))return e;const n=ip();return Do(n,e),Do(n,t),n}(o,a)||x}return n[t]}function Hl(e){return 6256&e.flags?Wl(e,"resolvedMembers"):e.members||x}function $l(e){if(106500&e.flags&&"__computed"===e.escapedName){const t=No(e);if(!t.lateSymbol&&_e(e.declarations,zl)){const t=$a(e.parent);_e(e.declarations,lb)?Qa(t):Hl(t)}return t.lateSymbol||(t.lateSymbol=e)}return e}function Gl(e,t,n){if(4&Vx(e)){const r=e.target,i=cf(e);if(S(r.typeParameters)===S(i)){const e=rf(r,ue(i,[t||r.thisType]));return n?Nd(e):e}}else if(2097152&e.flags){const r=K(e.types,(e=>Gl(e,t,n)));return r!==e.types?Yh(r):e}return n?Nd(e):e}function Xl(e,t,n,r){let i,o,a,s,c;Ie(n,r,0,n.length)?(o=t.symbol?Hl(t.symbol):ip(t.declaredProperties),a=t.declaredCallSignatures,s=t.declaredConstructSignatures,c=t.declaredIndexInfos):(i=jb(n,r),o=wl(t.declaredProperties,i,1===n.length),a=Lb(t.declaredCallSignatures,i),s=Lb(t.declaredConstructSignatures,i),c=Bb(t.declaredIndexInfos,i));const _=X_(t);if(_.length){t.symbol&&o===Hl(t.symbol)&&(o=ip(t.declaredProperties)),gs(e,o,a,s,c);const n=Be(r);for(const e of _){const t=n?Gl(gx(e,i),n):e;Dl(o,fd(t)),a=ue(a,qd(t,0)),s=ue(s,qd(t,1));const r=t!==_t?Hd(t):[qp(Pt,_t,!1)];c=ue(c,z(r,(e=>!Vd(c,e.keyType))))}}gs(e,o,a,s,c)}function Zl(e,t,n,r,i,o,a,s){const c=new p(ve,s);return c.declaration=e,c.typeParameters=t,c.parameters=r,c.thisParameter=n,c.resolvedReturnType=i,c.resolvedTypePredicate=o,c.minArgumentCount=a,c.resolvedMinArgumentCount=void 0,c.target=void 0,c.mapper=void 0,c.compositeSignatures=void 0,c.compositeKind=void 0,c}function nu(e){const t=Zl(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,39&e.flags);return t.target=e.target,t.mapper=e.mapper,t.compositeSignatures=e.compositeSignatures,t.compositeKind=e.compositeKind,t}function iu(e,t){const n=nu(e);return n.compositeSignatures=t,n.compositeKind=1048576,n.target=void 0,n.mapper=void 0,n}function ou(e,t){if((24&e.flags)===t)return e;e.optionalCallSignatureCache||(e.optionalCallSignatureCache={});const n=8===t?"inner":"outer";return e.optionalCallSignatureCache[n]||(e.optionalCallSignatureCache[n]=function(e,t){In.assert(8===t||16===t,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const n=nu(e);return n.flags|=t,n}(e,t))}function au(e,t){if(XB(e)){const r=e.parameters.length-1,i=x_(e.parameters[r]);if(IS(i))return[n(i,r)];if(!t&&1048576&i.flags&&F(i.types,IS))return V(i.types,(e=>n(e,r)))}return[e.parameters];function n(t,n){const r=cf(t),i=t.target.labeledElementDeclarations,o=V(r,((r,o)=>{const a=!!i&&JP(i[o])||zP(e,n+o,t),s=t.target.elementFlags[o],c=vo(1,a,12&s?32768:2&s?16384:0);return c.links.type=4&s?kg(r):r,c}));return ue(e.parameters.slice(0,n),o)}}function su(e,t,n,r,i){for(const o of e)if(oS(o,t,n,r,i,n?Dx:Ax))return o}function cu(e,t,n){if(t.typeParameters){if(n>0)return;for(let n=1;n1&&(n=void 0===n?i:-1);for(const n of e[i])if(!t||!su(t,n,!1,!1,!0)){const r=cu(e,n,i);if(r){let e=n;if(r.length>1){let t=n.thisParameter;const i=T(r,(e=>e.thisParameter));i&&(t=nT(i,Yh(Z(r,(e=>e.thisParameter&&x_(e.thisParameter)))))),e=iu(n,r),e.thisParameter=t}(t||(t=[])).push(e)}}}if(!S(t)&&-1!==n){const r=e[void 0!==n?n:0];let i=r.slice();for(const t of e)if(t!==r){const e=t[0];if(In.assert(!!e,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),i=e.typeParameters&&_e(i,(t=>!!t.typeParameters&&!pu(e.typeParameters,t.typeParameters)))?void 0:V(i,(t=>yu(t,e))),!i)break}t=i}return t||r}function pu(e,t){if(S(e)!==S(t))return!1;if(!e||!t)return!0;const n=jb(t,e);for(let r=0;r=i?e:t,a=o===e?t:e,s=o===e?r:i,c=XP(e)||XP(t),_=c&&!XP(o),l=Array(s+(_?1:0));for(let u=0;u=GP(o)&&u>=GP(a),h=u>=r?void 0:zP(e,u),y=u>=i?void 0:zP(t,u),v=vo(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||"arg"+u);v.links.type=m?kg(f):f,l[u]=v}if(_){const e=vo(1,"args");e.links.type=kg(KP(a,s)),a===t&&(e.links.type=gx(e.links.type,n)),l[s]=e}return l}(e,t,r),a=function(e,t,n){return e&&t?nT(e,Yh([x_(e),gx(x_(t),n)])):e||t}(e.thisParameter,t.thisParameter,r),s=Zl(i,n,a,o,void 0,void 0,Math.max(e.minArgumentCount,t.minArgumentCount),39&(e.flags|t.flags));return s.compositeKind=1048576,s.compositeSignatures=ue(2097152!==e.compositeKind&&e.compositeSignatures||[e],[t]),r&&(s.mapper=2097152!==e.compositeKind&&e.mapper&&e.compositeSignatures?rx(e.mapper,r):r),s}function vu(e){const t=Hd(e[0]);if(t){const n=[];for(const r of t){const t=r.keyType;F(e,(e=>!!$d(e,t)))&&n.push(qp(t,wh(V(e,(e=>Gd(e,t)))),_e(e,(e=>$d(e,t).isReadonly))))}return n}return r}function bu(e,t){return e?t?Yh([e,t]):e:t}function xu(e){const t=J(e,(e=>qd(e,1).length>0)),n=V(e,q_);if(t>0&&t===J(n,(e=>e))){const e=n.indexOf(!0);n[e]=!1}return n}function ku(e,t,n,r){const i=[];for(let o=0;o!oS(e,n,!1,!1,!1,Ax)))||(e=Se(e,n));return e}function Tu(e,t,n){if(e)for(let r=0;r{var n;418&t.flags||512&t.flags&&(null==(n=t.declarations)?void 0:n.length)&&F(t.declarations,df)||e.set(t.escapedName,t)})),o=e}if(gs(e,o,r,r,r),32&t.flags){const e=$_(el(t));11272192&e.flags?(o=ip(function(e){const t=fs(e),n=Up(e);return n?ue(t,[n]):t}(o)),Dl(o,fd(e))):e===_t&&(i=qp(Pt,_t,!1))}const a=Up(o);if(a?n=Qp(a):(i&&(n=Se(n,i)),384&t.flags&&(32&ul(t).flags||_e(e.properties,(e=>!!(296&x_(e).flags))))&&(n=Se(n,Zr))),gs(e,o,r,r,n||r),8208&t.flags&&(e.callSignatures=vp(t)),32&t.flags){const n=el(t);let i=t.members?vp(t.members.get("__constructor")):r;16&t.flags&&(i=Ae(i.slice(),Z(e.callSignatures,(e=>vP(e.declaration)?Zl(e.declaration,e.typeParameters,e.thisParameter,e.parameters,n,void 0,e.minArgumentCount,39&e.flags):void 0)))),i.length||(i=function(e){const t=qd($_(e),1),n=qx(e.symbol),i=!!n&&cb(n,256);if(0===t.length)return[Zl(void 0,e.localTypeParameters,void 0,r,e,void 0,0,i?4:0)];const o=Q_(e),a=Sg(o),s=Gf(o),c=S(s),_=[];for(const n of t){const t=_p(n.typeParameters),r=S(n.typeParameters);if(a||c>=t&&c<=r){const o=r?Rp(n,lp(s,n.typeParameters,t,a)):nu(n);o.typeParameters=e.localTypeParameters,o.resolvedReturnType=e,o.flags=i?4|o.flags:-5&o.flags,_.push(o)}}return _}(n)),e.constructSignatures=i}}(e):32&e.objectFlags?function(e){const t=ip();let n;gs(e,x,r,r,r);const i=Ou(e),o=Lu(e),a=e.target||e,s=Mu(a),c=!s||_d(a),_=Ru(a),l=Nd(qu(e)),u=Vu(e),d=ee?128:8576;function p(r){xA(s?gx(s,ox(e.mapper,i,r)):r,(o=>function(r,o){if(Ml(o)){const n=Ql(o),i=t.get(n);if(i)i.links.nameType=wh([i.links.nameType,o]),i.links.keyType=wh([i.links.keyType,r]);else{const i=Ml(r)?zd(l,Ql(r)):void 0,a=!!(4&u||!(8&u)&&i&&16777216&i.flags),s=!!(1&u||!(2&u)&&i&&TI(i)),_=j&&!a&&i&&16777216&i.flags,d=vo(4|(a?16777216:0),n,262144|(i?Fu(i):0)|(s?8:0)|(_?524288:0));d.links.mappedType=e,d.links.nameType=o,d.links.keyType=r,i&&(d.links.syntheticOrigin=i,d.declarations=c?i.declarations:void 0),t.set(n,d)}}else if(Kp(o)||33&o.flags){const t=qp(5&o.flags?Pt:40&o.flags?It:o,gx(_,ox(e.mapper,i,r)),!!(1&u));n=Tu(n,t,!0)}}(r,o)))}zu(e)?Pu(l,d,ee,p):xA(Eu(o),p),gs(e,t,r,r,n||r)}(e):In.fail("Unhandled object type "+In.formatObjectFlags(e.objectFlags)):1048576&e.flags?function(e){const t=uu(V(e.types,(e=>e===Vn?[Gr]:qd(e,0)))),n=uu(V(e.types,(e=>qd(e,1)))),r=vu(e.types);gs(e,x,t,n,r)}(e):2097152&e.flags?function(e){let t,n,i;const o=e.types,a=xu(o),s=J(a,(e=>e));for(let r=0;r0&&(e=V(e,(e=>{const t=nu(e);return t.resolvedReturnType=ku(Tp(e),o,a,r),t}))),n=Su(n,e)}t=Su(t,qd(c,0)),i=Ke(Hd(c),((e,t)=>Tu(e,t,!1)),i)}gs(e,x,t||r,n||r,i||r)}(e):In.fail("Unhandled type "+In.formatTypeFlags(e.flags))),e}function ud(e){return 524288&e.flags?ld(e).properties:r}function dd(e,t){if(524288&e.flags){const n=ld(e).members.get(t);if(n&&is(n))return n}}function pd(e){if(!e.resolvedProperties){const t=ip();for(const n of e.types){for(const r of fd(n))if(!t.has(r.escapedName)){const n=Ld(e,r.escapedName);n&&t.set(r.escapedName,n)}if(1048576&e.flags&&0===Hd(n).length)break}e.resolvedProperties=fs(t)}return e.resolvedProperties}function fd(e){return 3145728&(e=Pd(e)).flags?pd(e):ud(e)}function md(e){return 262144&e.flags?gd(e):8388608&e.flags?function(e){return Td(e)?function(e){if(Ed(e))return mv(e.objectType,e.indexType);const t=yd(e.indexType);if(t&&t!==e.indexType){const n=vv(e.objectType,t,e.accessFlags);if(n)return n}const n=yd(e.objectType);return n&&n!==e.objectType?vv(n,e.indexType,e.accessFlags):void 0}(e):void 0}(e):16777216&e.flags?function(e){return Td(e)?xd(e):void 0}(e):kd(e)}function gd(e){return Td(e)?$p(e):void 0}function hd(e){var t;return!!(262144&e.flags&&_e(null==(t=e.symbol)?void 0:t.declarations,(e=>cb(e,2048)))||OS(e)&&O(cf(e),((t,n)=>!!(8&e.target.elementFlags[n])&&hd(t)))>=0||8388608&e.flags&&hd(e.objectType))}function yd(e){const t=sv(e,!1);return t!==e?t:md(e)}function vd(e){if(!e.resolvedDefaultConstraint){const t=function(e){return e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?gx(Db(e.root.node.trueType),e.combinedMapper):Dv(e))}(e),n=Ev(e);e.resolvedDefaultConstraint=_c(t)?n:_c(n)?t:wh([t,n])}return e.resolvedDefaultConstraint}function bd(e){if(e.root.isDistributive&&e.restrictiveInstantiation!==e){const t=sv(e.checkType,!1),n=t===e.checkType?md(t):t;if(n&&n!==e.checkType){const t=mx(e,ix(e.root.checkType,n,e.mapper));if(!(131072&t.flags))return t}}}function xd(e){return bd(e)||vd(e)}function kd(e){if(464781312&e.flags){const t=Cd(e);return t!==Nn&&t!==Fn?t:void 0}return 4194304&e.flags?Zt:void 0}function Sd(e){return kd(e)||e}function Td(e){return Cd(e)!==Fn}function Cd(e){if(e.resolvedBaseConstraint)return e.resolvedBaseConstraint;const t=[];return e.resolvedBaseConstraint=Gl(n(e),e);function n(e){if(!e.immediateBaseConstraint){if(!tc(e,4))return Fn;let n;const i=Zk(e);if((t.length<10||t.length<50&&!R(t,i))&&(t.push(i),n=function(e){if(262144&e.flags){const t=$p(e);return e.isThisType||!t?t:r(t)}if(3145728&e.flags){const t=e.types,n=[];let i=!1;for(const e of t){const t=r(e);t?(t!==e&&(i=!0),n.push(t)):i=!0}return i?1048576&e.flags&&n.length===t.length?wh(n):2097152&e.flags&&n.length?Yh(n):void 0:e}if(4194304&e.flags)return Zt;if(134217728&e.flags){const t=e.types,n=Z(t,r);return n.length===t.length?My(e.texts,n):Pt}if(268435456&e.flags){const t=r(e.type);return t&&t!==e.type?By(e.symbol,t):Pt}if(8388608&e.flags){if(Ed(e))return r(mv(e.objectType,e.indexType));const t=r(e.objectType),n=r(e.indexType),i=t&&n&&vv(t,n,e.accessFlags);return i&&r(i)}if(16777216&e.flags){const t=xd(e);return t&&r(t)}return 33554432&e.flags?r(Df(e)):e}(sv(e,!1)),t.pop()),!ac()){if(262144&e.flags){const t=Wp(e);if(t){const n=uo(t,ja.Type_parameter_0_has_a_circular_constraint,Bs(e));!o||Gh(t,o)||Gh(o,t)||rT(n,zf(o,ja.Circularity_originates_in_type_at_this_location))}}n=Fn}e.immediateBaseConstraint=n||Nn}return e.immediateBaseConstraint}function r(e){const t=n(e);return t!==Nn&&t!==Fn?t:void 0}}function Ad(e){if(e.default)e.default===Pn&&(e.default=Fn);else if(e.target){const t=Ad(e.target);e.default=t?gx(t,e.mapper):Nn}else{e.default=Pn;const t=e.symbol&&T(e.symbol.declarations,(e=>zw(e)&&e.default)),n=t?Db(t):Nn;e.default===Pn&&(e.default=n)}return e.default}function wd(e){const t=Ad(e);return t!==Nn&&t!==Fn?t:void 0}function Dd(e){return!(!e.symbol||!T(e.symbol.declarations,(e=>zw(e)&&e.default)))}function Ed(e){let t;return!(!(8388608&e.flags&&32&Vx(t=e.objectType)&&!cd(t)&&ov(e.indexType))||8&Vu(t)||t.declaration.nameType)}function Nd(e){const t=465829888&e.flags?kd(e)||bt:e;return 32&Vx(t)?function(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){const t=lx(e);if(t&&!e.declaration.nameType){const n=gd(t);if(n&&fS(n))return gx(e,ix(t,n,e.mapper))}return e}(e))}(t):2097152&t.flags?function(e){return e.resolvedApparentType||(e.resolvedApparentType=Gl(e,e,!0))}(t):402653316&t.flags?$n:296&t.flags?Gn:2112&t.flags?Fr||(Fr=mm("BigInt",0,!1))||hn:528&t.flags?Xn:12288&t.flags?Mm():67108864&t.flags?hn:4194304&t.flags?Zt:2&t.flags&&!j?hn:t}function Pd(e){return Md(Nd(Md(e)))}function Id(e,t,n){var r,i,o;let a,s,c;const _=1048576&e.flags;let l,u=4,d=_?0:8,p=!1;for(const r of e.types){const e=Nd(r);if(!(lc(e)||131072&e.flags)){const r=zd(e,t,n),i=r?Px(r):0;if(r){if(106500&r.flags&&(null!=l||(l=_?0:16777216),_?l|=16777216&r.flags:l&=r.flags),a){if(r!==a)if((vM(r)||r)===(vM(a)||a)&&-1===rS(a,r,((e,t)=>e===t?-1:0)))p=!!a.parent&&!!S(U_(a.parent));else{s||(s=new Map,s.set(VB(a),a));const e=VB(r);s.has(e)||s.set(e,r)}}else a=r;_&&TI(r)?d|=8:_||TI(r)||(d&=-9),d|=(24&i?0:256)|(16&i?512:0)|(8&i?1024:0)|(32&i?2048:0),KE(r)||(u=2)}else if(_){const n=!Bl(t)&&Zd(e,t);n?(d|=32|(n.isReadonly?8:0),c=Se(c,IS(e)?MS(e)||Tt:n.type)):!SC(e)||2097152&Vx(e)?d|=16:(d|=32,c=Se(c,Tt))}}}if(!a||_&&(s||48&d)&&1536&d&&(!s||!function(e){let t;for(const n of e){if(!n.declarations)return;if(t){if(t.forEach((e=>{R(n.declarations,e)||t.delete(e)})),0===t.size)return}else t=new Set(n.declarations)}return t}(s.values())))return;if(!(s||16&d||c)){if(p){const t=null==(r=xt(a,op))?void 0:r.links,n=nT(a,null==t?void 0:t.type);return n.parent=null==(o=null==(i=a.valueDeclaration)?void 0:i.symbol)?void 0:o.parent,n.links.containingType=e,n.links.mapper=null==t?void 0:t.mapper,n}return a}const f=s?Ze(s.values()):[a];let m,g,h;const y=[];let v,b,x=!1;for(const e of f){b?e.valueDeclaration&&e.valueDeclaration!==b&&(x=!0):b=e.valueDeclaration,m=Ae(m,e.declarations);const t=x_(e);g||(g=t,h=No(e).nameType);const n=y_(e);v||n!==t?v=Se(v||y.slice(),n):t!==g&&(d|=64),(AS(t)||tv(t)||t===_n)&&(d|=128),131072&t.flags&&t!==_n&&(d|=131072),y.push(t)}Ae(y,c);const k=vo(4|(null!=l?l:0),t,u|d);return k.links.containingType=e,!x&&b&&(k.valueDeclaration=b,b.symbol.parent&&(k.parent=b.symbol.parent)),k.declarations=m,k.links.nameType=h,y.length>2?(k.links.checkFlags|=65536,k.links.deferralParent=e,k.links.deferralConstituents=y,k.links.deferralWriteConstituents=v):(k.links.type=_?wh(y):Yh(y),v&&(k.links.writeType=_?wh(v):Yh(v))),k}function Od(e,t,n){var r,i;let o=(null==(r=e.propertyCacheWithoutObjectFunctionPropertyAugment)?void 0:r.get(t))||!n?null==(i=e.propertyCache)?void 0:i.get(t):void 0;return!o&&(o=Id(e,t,n),o)&&(n?e.propertyCacheWithoutObjectFunctionPropertyAugment||(e.propertyCacheWithoutObjectFunctionPropertyAugment=ip()):e.propertyCache||(e.propertyCache=ip())).set(t,o),o}function Ld(e,t,n){const r=Od(e,t,n);return!r||16&Fx(r)?void 0:r}function Md(e){return 1048576&e.flags&&16777216&e.objectFlags?e.resolvedReducedType||(e.resolvedReducedType=function(e){const t=K(e.types,Md);if(t===e.types)return e;const n=wh(t);return 1048576&n.flags&&(n.resolvedReducedType=n),n}(e)):2097152&e.flags?(16777216&e.objectFlags||(e.objectFlags|=16777216|(_e(pd(e),Rd)?33554432:0)),33554432&e.objectFlags?Qt:e):e}function Rd(e){return Bd(e)||jd(e)}function Bd(e){return!(16777216&e.flags||192!=(131264&Fx(e))||!(131072&x_(e).flags))}function jd(e){return!e.valueDeclaration&&!!(1024&Fx(e))}function Jd(e,t){if(2097152&t.flags&&33554432&Vx(t)){const n=P(pd(t),Bd);if(n)return Ak(e,ja.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Bs(t,void 0,536870912),Ms(n));const r=P(pd(t),jd);if(r)return Ak(e,ja.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Bs(t,void 0,536870912),Ms(r))}return e}function zd(e,t,n,r){if(524288&(e=Pd(e)).flags){const i=ld(e),o=i.members.get(t);if(o&&is(o,r))return o;if(n)return;const a=i===En?Vn:i.callSignatures.length?Qn:i.constructSignatures.length?Kn:void 0;if(a){const e=dd(a,t);if(e)return e}return dd(qn,t)}if(3145728&e.flags)return Ld(e,t,n)}function Ud(e,t){if(3670016&e.flags){const n=ld(e);return 0===t?n.callSignatures:n.constructSignatures}return r}function qd(e,t){return Ud(Pd(e),t)}function Vd(e,t){return P(e,(e=>e.keyType===t))}function Qd(e,t){let n,r,i;for(const o of e)o.keyType===Pt?n=o:Kd(t,o.keyType)&&(r?(i||(i=[r])).push(o):r=o);return i?qp(bt,Yh(V(i,(e=>e.type))),Ke(i,((e,t)=>e&&t.isReadonly),!0)):r||(n&&Kd(t,Pt)?n:void 0)}function Kd(e,t){return Ix(e,t)||t===Pt&&Ix(e,It)||t===It&&(e===on||!!(128&e.flags)&&MT(e.value))}function Wd(e){return 3670016&e.flags?ld(e).indexInfos:r}function Hd(e){return Wd(Pd(e))}function $d(e,t){return Vd(Hd(e),t)}function Gd(e,t){var n;return null==(n=$d(e,t))?void 0:n.type}function Xd(e,t){return Hd(e).filter((e=>Kd(t,e.keyType)))}function Yd(e,t){return Qd(Hd(e),t)}function Zd(e,t){return Yd(e,Bl(t)?qt:ib(Ic(t)))}function ep(e){var t;let n;for(const t of E_(e))n=De(n,ll(t.symbol));return(null==n?void 0:n.length)?n:EE(e)?null==(t=hp(e))?void 0:t.typeParameters:void 0}function tp(e){const t=[];return e.forEach(((e,n)=>{ps(n)||t.push(e)})),t}function ap(e,t){if(Xs(e))return;const n=Io(ce,'"'+e+'"',512);return n&&t?$a(n):n}function sp(e){if(hh(e)||qT(e)||KT(e))return!0;if(e.initializer){const t=mp(e.parent),n=e.parent.parameters.indexOf(e);return In.assert(n>=0),n>=GP(t,3)}const t=Xm(e.parent);return!!t&&!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=t.arguments.length}function cp(e,t,n,r){return{kind:e,parameterName:t,parameterIndex:n,type:r}}function _p(e){let t=0;if(e)for(let n=0;n=n&&o<=i){const n=e?e.slice():[];for(let e=o;es.arguments.length&&!l||KT(c)||(o=n.length)}if((174===e.kind||175===e.kind)&&Vl(e)&&(!a||!r)){const t=174===e.kind?175:174,n=np(Ga(e),t);n&&(r=function(e){const t=mB(e);return t&&t.symbol}(n))}if(Sg(e)){const t=m_(e);t&&t.typeExpression&&(r=nT(vo(1,"this"),Db(t.typeExpression)))}const _=173===e.kind?el($a(e.parent.symbol)):void 0,l=_?_.localTypeParameters:ep(e);(nd(e)||Sg(e)&&function(e,t){if(qN(e)||!yp(e))return!1;const n=Be(e.parameters),r=A(n?Hc(n):S_(e).filter(rF),(e=>e.typeExpression&&jN(e.typeExpression.type)?e.typeExpression.type:void 0)),i=vo(3,"args",32768);return r?i.links.type=kg(Db(r.type)):(i.links.checkFlags|=65536,i.links.deferralParent=Qt,i.links.deferralConstituents=[er],i.links.deferralWriteConstituents=[er]),r&&t.pop(),t.push(i),!0}(e,n))&&(i|=1),(iD(e)&&cb(e,256)||$w(e)&&cb(e.parent,256))&&(i|=4),t.resolvedSignature=Zl(e,l,r,n,void 0,void 0,o,i)}return t.resolvedSignature}function hp(e){if(!Sg(e)||!Cl(e))return;const t=v_(e);return(null==t?void 0:t.typeExpression)&&NF(Db(t.typeExpression))}function yp(e){const t=Fo(e);return void 0===t.containsArgumentsReference&&(512&t.flags?t.containsArgumentsReference=!0:t.containsArgumentsReference=function e(t){if(!t)return!1;switch(t.kind){case 79:return t.escapedText===ge.escapedName&&VR(t)===ge;case 169:case 171:case 174:case 175:return 164===t.name.kind&&e(t.name);case 208:case 209:return e(t.expression);case 299:return e(t.initializer);default:return!Vy(t)&&!hm(t)&&!!bI(t,e)}}(e.body)),t.containsArgumentsReference}function vp(e){if(!e||!e.declarations)return r;const t=[];for(let n=0;n0&&r.body){const t=e.declarations[n-1];if(r.parent===t.parent&&r.kind===t.kind&&r.pos===t.end)continue}if(Sg(r)&&r.jsDoc){let e=!1;for(const n of r.jsDoc)if(n.tags)for(const i of n.tags)if(ZN(i)){const n=i.typeExpression;void 0!==n.type||$w(r)||DT(n,_t),t.push(mp(n)),e=!0}if(e)continue}t.push(!OT(r)&&!Pm(r)&&hp(r)||mp(r))}}return t}function bp(e){const t=Ia(e,e);if(t){const e=Ra(t);if(e)return x_(e)}return _t}function xp(e){if(e.thisParameter)return x_(e.thisParameter)}function kp(e){if(!e.resolvedTypePredicate){if(e.target){const r=kp(e.target);e.resolvedTypePredicate=r?(t=r,n=e.mapper,cp(t.kind,t.parameterName,t.parameterIndex,gx(t.type,n))):Hr}else if(e.compositeSignatures)e.resolvedTypePredicate=function(e,t){let n;const r=[];for(const i of e){const e=kp(i);if(!e||2===e.kind||3===e.kind){if(2097152!==t)continue;return}if(n){if(!Dh(n,e))return}else n=e;r.push(e.type)}if(!n)return;const i=Sp(r,t);return cp(n.kind,n.parameterName,n.parameterIndex,i)}(e.compositeSignatures,e.compositeKind)||Hr;else{const t=e.declaration&&Hv(e.declaration);let n;if(!t){const t=hp(e.declaration);t&&e!==t&&(n=kp(t))}e.resolvedTypePredicate=t&&tD(t)?function(e,t){const n=e.parameterName,r=e.type&&Db(e.type);return 194===n.kind?cp(e.assertsModifier?2:0,void 0,void 0,r):cp(e.assertsModifier?3:1,n.escapedText,O(t.parameters,(e=>e.escapedName===n.escapedText)),r)}(t,e):n||Hr}In.assert(!!e.resolvedTypePredicate)}var t,n;return e.resolvedTypePredicate===Hr?void 0:e.resolvedTypePredicate}function Sp(e,t,n){return 2097152!==t?wh(e,n):Yh(e)}function Tp(e){if(!e.resolvedReturnType){if(!tc(e,3))return pt;let t=e.target?gx(Tp(e.target),e.mapper):e.compositeSignatures?gx(Sp(V(e.compositeSignatures,Tp),e.compositeKind,2),e.mapper):Cp(e.declaration)||(Lp(e.declaration.body)?_t:uI(e.declaration));if(8&e.flags?t=QS(t):16&e.flags&&(t=US(t)),!ac()){if(e.declaration){const t=Hv(e.declaration);if(t)uo(t,ja.Return_type_annotation_circularly_references_itself);else if(G){const t=e.declaration,n=qc(t);n?uo(n,ja._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Lf(n)):uo(t,ja.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}t=_t}e.resolvedReturnType=t}return e.resolvedReturnType}function Cp(e){if(173===e.kind)return el($a(e.parent.symbol));if(qN(e)){const t=Mh(e);if(t&&$w(t.parent))return el($a(t.parent.parent.symbol))}if(yh(e))return Db(e.parameters[0].type);const t=Hv(e);if(t)return Db(t);if(174===e.kind&&Vl(e)){const t=Sg(e)&&xc(e);if(t)return t;const n=s_(np(Ga(e),175));if(n)return n}return function(e){const t=hp(e);return t&&Tp(t)}(e)}function Fp(e){return!e.resolvedReturnType&&ic(e,3)>=0}function Pp(e){if(XB(e)){const t=x_(e.parameters[e.parameters.length-1]),n=IS(t)?MS(t):t;return n&&Gd(n,It)}}function Ip(e,t,n,r){const i=Op(e,lp(t,e.typeParameters,_p(e.typeParameters),n));if(r){const e=FF(Tp(i));if(e){const t=nu(e);t.typeParameters=r;const n=nu(i);return n.resolvedReturnType=Jp(t),n}}return i}function Op(e,t){const n=e.instantiations||(e.instantiations=new Map),r=Xp(t);let i=n.get(r);return i||n.set(r,i=Rp(e,t)),i}function Rp(e,t){return sx(e,function(e,t){return jb(e.typeParameters,t)}(e,t),!0)}function Bp(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return sx(e,nx(e.typeParameters),!0)}(e)):e}function jp(e){const t=e.typeParameters;if(t){if(e.baseSignatureCache)return e.baseSignatureCache;const n=nx(t),r=jb(t,V(t,(e=>gd(e)||bt)));let i=V(t,(e=>gx(e,r)||bt));for(let e=0;e{Kp(e)&&!Vd(t,e)&&t.push(qp(e,n.type?Db(n.type):_t,sb(n,64),n))}))}return t}return r}function Kp(e){return!!(4108&e.flags)||tv(e)||!!(2097152&e.flags)&&!nv(e)&&_e(e.types,Kp)}function Wp(e){return Z(z(e.symbol&&e.symbol.declarations,zw),N_)[0]}function Hp(e,t){var n;let r;if(null==(n=e.symbol)?void 0:n.declarations)for(const n of e.symbol.declarations)if(192===n.parent.kind){const[i=n.parent,o]=Kh(n.parent.parent);if(180!==o.kind||t){if(166===o.kind&&o.dotDotDotToken||188===o.kind||199===o.kind&&o.dotDotDotToken)r=Se(r,kg(bt));else if(201===o.kind)r=Se(r,Pt);else if(165===o.kind&&197===o.parent.kind)r=Se(r,Zt);else if(197===o.kind&&o.type&&Hh(o.type)===n.parent&&191===o.parent.kind&&o.parent.extendsType===o&&197===o.parent.checkType.kind&&o.parent.checkType.type){const e=o.parent.checkType;r=Se(r,gx(Db(e.type),Gb(ll(Ga(e.typeParameter)),e.typeParameter.constraint?Db(e.typeParameter.constraint):Zt)))}}else{const t=o,n=AO(t);if(n){const o=t.typeArguments.indexOf(i);if(o()=>SO(t,n,r)))));o!==e&&(r=Se(r,o))}}}}}return r&&Yh(r)}function $p(e){if(!e.constraint)if(e.target){const t=gd(e.target);e.constraint=t?gx(t,e.mapper):Nn}else{const t=Wp(e);if(t){let n=Db(t);1&n.flags&&!lc(n)&&(n=197===t.parent.parent.kind?Zt:bt),e.constraint=n}else e.constraint=Hp(e)||Nn}return e.constraint===Nn?void 0:e.constraint}function Gp(e){const t=np(e.symbol,165),n=sF(t.parent)?Ph(t.parent):t.parent;return n&&Xa(n)}function Xp(e){let t="";if(e){const n=e.length;let r=0;for(;r1&&(t+=":"+o),r+=o}}return t}function Yp(e,t){return e?"@"+VB(e)+(t?":"+Xp(t):""):""}function Zp(e,t){let n=0;for(const r of e)void 0!==t&&r.flags&t||(n|=Vx(r));return 458752&n}function tf(e,t){return _e(t)&&e===Dn?bt:rf(e,t)}function rf(e,t){const n=Xp(t);let r=e.instantiations.get(n);return r||(r=us(4,e.symbol),e.instantiations.set(n,r),r.objectFlags|=t?Zp(t):0,r.target=e,r.resolvedTypeArguments=t),r}function of(e){const t=ss(e.flags,e.symbol);return t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function sf(e,t,n,r,i){if(!r){const e=Mv(r=Lv(t));i=n?Fb(e,n):e}const o=us(4,e.symbol);return o.target=e,o.node=t,o.mapper=n,o.aliasSymbol=r,o.aliasTypeArguments=i,o}function cf(e){var t,n;if(!e.resolvedTypeArguments){if(!tc(e,6))return(null==(t=e.target.localTypeParameters)?void 0:t.map((()=>pt)))||r;const i=e.node,a=i?180===i.kind?ue(e.target.outerTypeParameters,TO(i,e.target.localTypeParameters)):185===i.kind?[Db(i.elementType)]:V(i.elements,Db):r;ac()?e.resolvedTypeArguments=e.mapper?Fb(a,e.mapper):a:(e.resolvedTypeArguments=(null==(n=e.target.localTypeParameters)?void 0:n.map((()=>pt)))||r,uo(e.node||o,e.target.symbol?ja.Type_arguments_for_0_circularly_reference_themselves:ja.Tuple_type_arguments_circularly_reference_themselves,e.target.symbol&&Ms(e.target.symbol)))}return e.resolvedTypeArguments}function _f(e){return S(e.target.typeParameters)}function ff(e,t){const n=ul($a(t)),r=n.localTypeParameters;if(r){const t=S(e.typeArguments),i=_p(r),o=Sg(e);if((G||!o)&&(tr.length)){const t=o&&YD(e)&&!VN(e.parent);if(uo(e,i===r.length?t?ja.Expected_0_type_arguments_provide_these_with_an_extends_tag:ja.Generic_type_0_requires_1_type_argument_s:t?ja.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:ja.Generic_type_0_requires_between_1_and_2_type_arguments,Bs(n,void 0,2),i,r.length),!o)return pt}return 180===e.kind&&Pg(e,S(e.typeArguments)!==r.length)?sf(n,e,void 0):rf(n,ue(n.outerTypeParameters,lp(Gf(e),r,i,o)))}return qf(e,t)?n:pt}function mf(e,t,n,r){const i=ul(e);if(i===yt&&RB.has(e.escapedName)&&t&&1===t.length)return By(e,t[0]);const o=No(e),a=o.typeParameters,s=Xp(t)+Yp(n,r);let c=o.instantiations.get(s);return c||o.instantiations.set(s,c=hx(i,jb(a,lp(t,a,_p(a),Sg(e.valueDeclaration))),n,r)),c}function bf(e){var t;const n=null==(t=e.declarations)?void 0:t.find(bh);return!(!n||!zm(n))}function Sf(e){return e.parent?`${Sf(e.parent)}.${e.escapedName}`:e.escapedName}function Tf(e){const t=(163===e.kind?e.right:208===e.kind?e.name:e).escapedText;if(t){const n=163===e.kind?Tf(e.left):208===e.kind?Tf(e.expression):void 0,r=n?`${Sf(n)}.${t}`:t;let i=st.get(r);return i||(st.set(r,i=vo(524288,t,1048576)),i.parent=n,i.links.declaredType=mt),i}return rt}function Cf(e,t,n){const r=function(e){switch(e.kind){case 180:return e.typeName;case 230:const t=e.expression;if(zb(t))return t}}(e);if(!r)return rt;const i=Fa(r,t,n);return i&&i!==rt?i:n?rt:Tf(r)}function Af(e,t){if(t===rt)return pt;if(t=function(e){const t=e.valueDeclaration;if(!t||!Sg(t)||524288&e.flags||Jg(t,!1))return;const n=wE(t)?Bg(t):jg(t);if(n){const t=Xa(n);if(t)return bP(t,e)}}(t)||t,96&t.flags)return ff(e,t);if(524288&t.flags)return function(e,t){if(1048576&Fx(t)){const n=Gf(e),r=Yp(t,n);let i=ct.get(r);return i||(i=ls(1,"error"),i.aliasSymbol=t,i.aliasTypeArguments=n,ct.set(r,i)),i}const n=ul(t),r=No(t).typeParameters;if(r){const n=S(e.typeArguments),i=_p(r);if(nr.length)return uo(e,i===r.length?ja.Generic_type_0_requires_1_type_argument_s:ja.Generic_type_0_requires_between_1_and_2_type_arguments,Ms(t),i,r.length),pt;const o=Lv(e);let a,s=!o||!bf(t)&&bf(o)?void 0:o;if(s)a=Mv(s);else if(Yu(e)){const t=Cf(e,2097152,!0);if(t&&t!==rt){const n=xa(t);n&&524288&n.flags&&(s=n,a=Gf(e)||(r?[]:void 0))}}return mf(t,Gf(e),s,a)}return qf(e,t)?n:pt}(e,t);const n=pl(t);if(n)return qf(e,t)?nb(n):pt;if(111551&t.flags&&Bf(e)){const n=function(e,t){const n=Fo(e);if(!n.resolvedJSDocType){const r=x_(t);let i=r;if(t.valueDeclaration){const n=202===e.kind&&e.qualifier;r.symbol&&r.symbol!==t&&n&&(i=Af(e,r.symbol))}n.resolvedJSDocType=i}return n.resolvedJSDocType}(e,t);return n||(Cf(e,788968),x_(t))}return pt}function wf(e,t){if(3&t.flags||t===e||1&e.flags)return e;const n=`${_h(e)}>${_h(t)}`,r=He.get(n);if(r)return r;const i=as(33554432);return i.baseType=e,i.constraint=t,He.set(n,i),i}function Df(e){return Yh([e.constraint,e.baseType])}function Ef(e){return 186===e.kind&&1===e.elements.length}function Pf(e,t,n){return Ef(t)&&Ef(n)?Pf(e,t.elements[0],n.elements[0]):kv(Db(t))===kv(e)?Db(n):void 0}function Bf(e){return!!(8388608&e.flags)&&(180===e.kind||202===e.kind)}function qf(e,t){return!e.typeArguments||(uo(e,ja.Type_0_is_not_generic,t?Ms(t):e.typeName?Lf(e.typeName):wB),!1)}function Kf(e){if(Tw(e.typeName)){const t=e.typeArguments;switch(e.typeName.escapedText){case"String":return qf(e),Pt;case"Number":return qf(e),It;case"Boolean":return qf(e),Ut;case"Void":return qf(e),Vt;case"Undefined":return qf(e),Tt;case"Null":return qf(e),Et;case"Function":case"function":return qf(e),Vn;case"array":return t&&t.length||G?void 0:er;case"promise":return t&&t.length||G?void 0:cI(_t);case"Object":if(t&&2===t.length){if(wg(e)){const e=Db(t[0]),n=Db(t[1]),i=e===Pt||e===It?[qp(e,n,!1)]:r;return hs(void 0,x,r,r,i)}return _t}return qf(e),G?void 0:_t}}}function Wf(e){const t=Fo(e);if(!t.resolvedType){if(z_(e)&&lu(e.parent))return t.resolvedSymbol=rt,t.resolvedType=WI(e.parent.expression);let n,r;const i=788968;Bf(e)&&(r=Kf(e),r||(n=Cf(e,i,!0),n===rt?n=Cf(e,111551|i):Cf(e,i),r=Af(e,n))),r||(n=Cf(e,i),r=Af(e,n)),t.resolvedSymbol=n,t.resolvedType=r}return t.resolvedType}function Gf(e){return V(e.typeArguments,Db)}function cm(e){const t=Fo(e);if(!t.resolvedType){const n=FP(e);t.resolvedType=nb(TT(n))}return t.resolvedType}function lm(e,t){function n(e){const t=e.declarations;if(t)for(const e of t)switch(e.kind){case 260:case 261:case 263:return e}}if(!e)return t?Dn:hn;const r=ul(e);return 524288&r.flags?S(r.typeParameters)!==t?(uo(n(e),ja.Global_type_0_must_have_1_type_parameter_s,Mc(e),t),t?Dn:hn):r:(uo(n(e),ja.Global_type_0_must_be_a_class_or_interface_type,Mc(e)),t?Dn:hn)}function um(e,t){return fm(e,111551,t?ja.Cannot_find_global_value_0:void 0)}function dm(e,t){return fm(e,788968,t?ja.Cannot_find_global_type_0:void 0)}function pm(e,t,n){const r=fm(e,788968,n?ja.Cannot_find_global_type_0:void 0);if(!r||(ul(r),S(No(r).typeParameters)===t))return r;uo(r.declarations&&P(r.declarations,PE),ja.Global_type_0_must_have_1_type_parameter_s,Mc(r),t)}function fm(e,t,n){return Ro(void 0,e,t,n,e,!1,!1,!1)}function mm(e,t,n){const r=dm(e,n);return r||n?lm(r,t):void 0}function gm(){return Sr||(Sr=mm("ImportMeta",0,!0)||hn)}function Nm(){if(!Tr){const e=vo(0,"ImportMetaExpression"),t=gm(),n=vo(4,"meta",8);n.parent=e,n.links.type=t;const i=ip([n]);e.members=i,Tr=hs(e,i,r,r,r)}return Tr}function Fm(e){return Cr||(Cr=mm("ImportCallOptions",0,e))||hn}function Lm(e){return ir||(ir=um("Symbol",e))}function Mm(){return ar||(ar=mm("Symbol",0,!1))||hn}function Rm(e){return cr||(cr=mm("Promise",1,e))||Dn}function Bm(e){return _r||(_r=mm("PromiseLike",1,e))||Dn}function jm(e){return lr||(lr=um("Promise",e))}function Jm(e){return yr||(yr=mm("AsyncIterable",1,e))||Dn}function Um(e){return dr||(dr=mm("Iterable",1,e))||Dn}function Vm(e,t=0){const n=fm(e,788968,void 0);return n&&lm(n,t)}function Ym(e){return Dr||(Dr=pm("Awaited",1,e)||(e?rt:void 0)),Dr===rt?void 0:Dr}function sg(e,t){return e!==Dn?rf(e,t):hn}function cg(e){return sg(sr||(sr=mm("TypedPropertyDescriptor",1,!0)||Dn),[e])}function ug(e){return sg(Um(!0),[e])}function kg(e,t){return sg(t?Hn:Wn,[e])}function Cg(e){switch(e.kind){case 187:return 2;case 188:return Eg(e);case 199:return e.questionToken?2:e.dotDotDotToken?Eg(e):1;default:return 1}}function Eg(e){return Cb(e.type)?4:8}function Pg(e,t){return!!Lv(e)||Ig(e)&&(185===e.kind?Lg(e.elementType):186===e.kind?_e(e.elements,Lg):t||_e(e.typeArguments,Lg))}function Ig(e){const t=e.parent;switch(t.kind){case 193:case 199:case 180:case 189:case 190:case 196:case 191:case 195:case 185:case 186:return Ig(t);case 262:return!0}return!1}function Lg(e){switch(e.kind){case 180:return Bf(e)||!!(524288&Cf(e,788968).flags);case 183:return!0;case 195:return 156!==e.operator&&Lg(e.type);case 193:case 187:case 199:case 319:case 317:case 318:case 312:return Lg(e.type);case 188:return 185!==e.type.kind||Lg(e.type.elementType);case 189:case 190:return _e(e.types,Lg);case 196:return Lg(e.objectType)||Lg(e.indexType);case 191:return Lg(e.checkType)||Lg(e.extendsType)||Lg(e.trueType)||Lg(e.falseType)}return!1}function Vg(e,t,n=!1,r){const i=Gg(t||V(e,(e=>1)),n,r);return i===Dn?hn:e.length?Xg(i,e):i}function Gg(e,t,n){if(1===e.length&&4&e[0])return t?Hn:Wn;const i=V(e,(e=>1&e?"#":2&e?"?":4&e?".":"*")).join()+(t?"R":"")+(n&&n.length?","+V(n,qB).join(","):"");let o=Ce.get(i);return o||Ce.set(i,o=function(e,t,n){const i=e.length,o=J(e,(e=>!!(9&e)));let a;const s=[];let c=0;if(i){a=Array(i);for(let r=0;r!!(8&e.elementFlags[n]&&1179648&t.flags)));if(n>=0)return ty(V(t,((t,n)=>8&e.elementFlags[n]?t:bt)))?wA(t[n],(r=>Yg(e,qe(t,n,r)))):pt}const a=[],s=[];let c=[],_=-1,l=-1,u=-1;for(let s=0;s=1e4)return uo(o,hm(o)?ja.Type_produces_a_tuple_type_that_is_too_large_to_represent:ja.Expression_produces_a_tuple_type_that_is_too_large_to_represent),pt;T(e,((e,t)=>{var n;return p(e,c.target.elementFlags[t],null==(n=c.target.labeledElementDeclarations)?void 0:n[t])}))}else p(hS(c)&&Gd(c,It)||pt,4,null==(r=e.labeledElementDeclarations)?void 0:r[s]);else p(c,_,null==(i=e.labeledElementDeclarations)?void 0:i[s])}for(let e=0;e<_;e++)2&s[e]&&(s[e]=1);l>=0&&l8&s[l+t]?gv(e,It):e))),a.splice(l+1,u-l),s.splice(l+1,u-l),null==c||c.splice(l+1,u-l));const d=Gg(s,e.readonly,c);return d===Dn?hn:s.length?rf(d,a):d;function p(e,t,n){1&t&&(_=s.length),4&t&&l<0&&(l=s.length),6&t&&(u=s.length),a.push(2&t?Cc(e,!0):e),s.push(t),c&&n?c.push(n):c=void 0}}function th(e,t,n=0){const i=e.target,o=_f(e)-n;return t>i.fixedLength?function(e){const t=MS(e);return t&&kg(t)}(e)||Vg(r):Vg(cf(e).slice(t,o),i.elementFlags.slice(t,o),!1,i.labeledElementDeclarations&&i.labeledElementDeclarations.slice(t,o))}function nh(e){return wh(Se(Ye(e.target.fixedLength,(e=>ib(""+e))),Py(e.target.readonly?Hn:Wn)))}function sh(e,t){return e.elementFlags.length-L(e.elementFlags,(e=>!(e&t)))-1}function _h(e){return e.id}function uh(e,t){return Ve(e,t,_h,Jt)>=0}function dh(e,t){const n=Ve(e,t,_h,Jt);return n<0&&(e.splice(~n,0,t),!0)}function mh(e,t,n){const r=n.flags;if(1048576&r)return xh(e,t|(function(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}(n)?1048576:0),n.types);if(!(131072&r))if(t|=205258751&r,465829888&r&&(t|=33554432),n===dt&&(t|=8388608),!j&&98304&r)65536&Vx(n)||(t|=4194304);else{const t=e.length,r=t&&n.id>e[t-1].id?~t:Ve(e,n,_h,Jt);r<0&&e.splice(~r,0,n)}return t}function xh(e,t,n){for(const r of n)t=mh(e,t,r);return t}function kh(e,t){for(const n of t)if(1048576&n.flags){const t=n.origin;n.aliasSymbol||t&&!(1048576&t.flags)?we(e,n):t&&1048576&t.flags&&kh(e,t.types)}}function Th(e,t){const n=cs(e);return n.types=t,n}function wh(e,t=1,n,r,i){if(0===e.length)return Qt;if(1===e.length)return e[0];let a=[];const s=xh(a,0,e);if(0!==t){if(3&s)return 1&s?8388608&s?dt:_t:65536&s||uh(a,bt)?bt:St;if(32768&s&&a.length>=2&&a[0]===Tt&&a[1]===At&&sn(a,1),(402664352&s||16384&s&&32768&s)&&function(e,t,n){let r=e.length;for(;r>0;){r--;const i=e[r],o=i.flags;(402653312&o&&4&t||256&o&&8&t||2048&o&&64&t||8192&o&&4096&t||n&&32768&o&&16384&t||rb(i)&&uh(e,i.regularType))&&sn(e,r)}}(a,s,!!(2&t)),128&s&&134217728&s&&function(e){const t=z(e,(e=>!!(134217728&e.flags)&&tv(e)));if(t.length){let n=e.length;for(;n>0;){n--;const r=e[n];128&r.flags&&_e(t,(e=>hC(r,e)))&&sn(e,n)}}}(a),2===t&&(a=function(e,t){var n;if(e.length<2)return e;const r=Xp(e),i=$e.get(r);if(i)return i;const a=t&&_e(e,(e=>!!(524288&e.flags)&&!cd(e)&&ak(ld(e)))),s=e.length;let c=s,_=0;for(;c>0;){c--;const t=e[c];if(a||469499904&t.flags){if(262144&t.flags&&1048576&Sd(t).flags){pk(t,wh(V(e,(e=>e===t?Qt:e))),Xi)&&sn(e,c);continue}const r=61603840&t.flags?P(fd(t),(e=>TS(x_(e)))):void 0,i=r&&nb(x_(r));for(const a of e)if(t!==a){if(1e5===_&&_/(s-c)*s>1e6)return null==(n=Ur)||n.instant(Ur.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:e.map((e=>e.id))}),void uo(o,ja.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(_++,r&&61603840&a.flags){const e=cc(a,r.escapedName);if(e&&TS(e)&&nb(e)!==i)continue}if(pk(t,a,Xi)&&(!(1&Vx(C_(t)))||!(1&Vx(C_(a)))||Rx(t,a))){sn(e,c);break}}}}return $e.set(r,e),e}(a,!!(524288&s)),!a))return pt;if(0===a.length)return 65536&s?4194304&s?Et:Nt:32768&s?4194304&s?Tt:Ct:Qt}if(!i&&1048576&s){const t=[];kh(t,e);const r=[];for(const e of a)_e(t,(t=>uh(t.types,e)))||r.push(e);if(!n&&1===t.length&&0===r.length)return t[0];if(Ke(t,((e,t)=>e+t.types.length),0)+r.length===a.length){for(const e of t)dh(r,e);i=Th(1048576,r)}}return Eh(a,(36323363&s?0:32768)|(2097152&s?16777216:0),n,r,i)}function Dh(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function Eh(e,t,n,r,i){if(0===e.length)return Qt;if(1===e.length)return e[0];const o=(i?1048576&i.flags?"|"+Xp(i.types):2097152&i.flags?"&"+Xp(i.types):`#${i.type.id}|${Xp(e)}`:Xp(e))+Yp(n,r);let a=Ee.get(o);return a||(a=as(1048576),a.objectFlags=t|Zp(e,98304),a.types=e,a.origin=i,a.aliasSymbol=n,a.aliasTypeArguments=r,2===e.length&&512&e[0].flags&&512&e[1].flags&&(a.flags|=16,a.intrinsicName="boolean"),Ee.set(o,a)),a}function Nh(e,t,n){const r=n.flags;return 2097152&r?Bh(e,t,n.types):(ck(n)?16777216&t||(t|=16777216,e.set(n.id.toString(),n)):(3&r?n===dt&&(t|=8388608):!j&&98304&r||(n===At&&(t|=262144,n=Tt),e.has(n.id.toString())||(109472&n.flags&&109472&t&&(t|=67108864),e.set(n.id.toString(),n))),t|=205258751&r),t)}function Bh(e,t,n){for(const r of n)t=Nh(e,t,nb(r));return t}function zh(e,t){for(const n of e)if(!uh(n.types,t)){const e=128&t.flags?Pt:256&t.flags?It:2048&t.flags?Ot:8192&t.flags?qt:void 0;if(!e||!uh(n.types,e))return!1}return!0}function qh(e,t){return F(e,(e=>!!(1048576&e.flags)&&_e(e.types,(e=>!!(e.flags&t)))))}function Wh(e,t){for(let n=0;n!(e.flags&t)))}function Yh(e,t,n,r){const i=new Map,o=Bh(i,0,e),a=Ze(i.values());if(131072&o)return R(a,Kt)?Kt:Qt;if(j&&98304&o&&84410368&o||67108864&o&&402783228&o||402653316&o&&67238776&o||296&o&&469891796&o||2112&o&&469889980&o||12288&o&&469879804&o||49152&o&&469842940&o)return Qt;if(134217728&o&&128&o&&function(e){let t=e.length;const n=z(e,(e=>!!(128&e.flags)));for(;t>0;){t--;const r=e[t];if(134217728&r.flags)for(const i of n){if(Ex(i,r)){sn(e,t);break}if(tv(r))return!0}}return!1}(a))return Qt;if(1&o)return 8388608&o?dt:_t;if(!j&&98304&o)return 16777216&o?Qt:32768&o?Tt:Et;if((4&o&&402653312&o||8&o&&256&o||64&o&&2048&o||4096&o&&8192&o||16384&o&&32768&o||16777216&o&&470302716&o)&&(r||function(e,t){let n=e.length;for(;n>0;){n--;const r=e[n];(4&r.flags&&402653312&t||8&r.flags&&256&t||64&r.flags&&2048&t||4096&r.flags&&8192&t||16384&r.flags&&32768&t||ck(r)&&470302716&t)&&sn(e,n)}}(a,o)),262144&o&&(a[a.indexOf(Tt)]=At),0===a.length)return bt;if(1===a.length)return a[0];const s=Xp(a)+Yp(t,n);let c=Ne.get(s);if(!c){if(1048576&o)if(function(e){let t;const n=O(e,(e=>!!(32768&Vx(e))));if(n<0)return!1;let r=n+1;for(;r=0;n--)if(1048576&e[n].flags){const r=e[n].types,o=r.length;t[n]=r[i%o],i=Math.floor(i/o)}const o=Yh(t);131072&o.flags||n.push(o)}return n}(a);c=wh(e,1,t,n,_e(e,(e=>!!(2097152&e.flags)))&&dy(e)>dy(a)?Th(2097152,a):void 0)}else c=function(e,t,n){const r=as(2097152);return r.objectFlags=Zp(e,98304),r.types=e,r.aliasSymbol=t,r.aliasTypeArguments=n,r}(a,t,n);Ne.set(s,c)}return c}function ey(e){return Ke(e,((e,t)=>1048576&t.flags?e*t.types.length:131072&t.flags?0:e),1)}function ty(e){var t;const n=ey(e);return!(n>=1e5&&(null==(t=Ur)||t.instant(Ur.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:e.map((e=>e.id)),size:n}),uo(o,ja.Expression_produces_a_union_type_that_is_too_complex_to_represent),1))}function ly(e){return 3145728&e.flags&&!e.aliasSymbol?1048576&e.flags&&e.origin?ly(e.origin):dy(e.types):1}function dy(e){return Ke(e,((e,t)=>e+ly(t)),0)}function fy(e,t){const n=as(4194304);return n.type=e,n.stringsOnly=t,n}function my(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=fy(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=fy(e,!1))}function gy(e){return Cw(e)?Qt:Tw(e)?ib(Ic(e.escapedText)):nb(Jw(e)?KD(e):dO(e))}function hy(e,t,n){if(n||!(24&Px(e))){let n=No($l(e)).nameType;if(!n){const t=qc(e.valueDeclaration);n="default"===e.escapedName?ib("default"):t&&gy(t)||(Oy(e)?void 0:ib(Mc(e)))}if(n&&n.flags&t)return n}return Qt}function vy(e,t){return!!(e.flags&t||2097152&e.flags&&_e(e.types,(e=>vy(e,t))))}function by(e,t,n){const r=n&&(7&Vx(e)||e.aliasSymbol)?function(e){const t=cs(4194304);return t.type=e,t}(e):void 0;return wh(ue(V(fd(e),(e=>hy(e,t))),V(Hd(e),(e=>e!==Zr&&vy(e.keyType,t)?e.keyType===Pt&&8&t?Gt:e.keyType:Qt))),1,void 0,void 0,r)}function xy(e){const t=function(e){return 134479871&e.flags?e:e.uniqueLiteralFilledInstantiation||(e.uniqueLiteralFilledInstantiation=gx(e,un))}(e);return Md(t)!==t}function Cy(e){return!!(58982400&e.flags||OS(e)||cd(e)&&!function(e){const t=Ou(e);return function e(n){return!!(202375167&n.flags)||(16777216&n.flags?n.root.isDistributive&&n.checkType===t:137363456&n.flags?F(n.types,e):8388608&n.flags?e(n.objectType)&&e(n.indexType):33554432&n.flags?e(n.baseType)&&e(n.constraint):!!(268435456&n.flags)&&e(n.type))}(Mu(e)||t)}(e)||1048576&e.flags&&_e(e.types,xy)||2097152&e.flags&&PI(e,465829888)&&_e(e.types,ck))}function Py(e,t=ee,n){return Cy(e=Md(e))?my(e,t):1048576&e.flags?Yh(V(e.types,(e=>Py(e,t,n)))):2097152&e.flags?wh(V(e.types,(e=>Py(e,t,n)))):32&Vx(e)?function(e,t,n){const r=Ou(e),i=Lu(e),o=Mu(e.target||e);if(!o&&!n)return i;const a=[];if(zu(e)){if(ov(i))return my(e,t);Pu(Nd(qu(e)),8576,t,c)}else xA(Eu(i),c);ov(i)&&xA(i,c);const s=n?TA(wh(a),(e=>!(5&e.flags))):wh(a);return 1048576&s.flags&&1048576&i.flags&&Xp(s.types)===Xp(i.types)?i:s;function c(t){const n=o?gx(o,ox(e.mapper,r,t)):t;a.push(n===Pt?Gt:n)}}(e,t,n):e===dt?dt:2&e.flags?Qt:131073&e.flags?Zt:by(e,(n?128:402653316)|(t?0:12584),t===ee&&!n)}function Ly(e){if(ee)return e;const t=(Ar||(Ar=pm("Extract",2,!0)||rt),Ar===rt?void 0:Ar);return t?mf(t,[e,Pt]):Pt}function My(e,t){const n=O(t,(e=>!!(1179648&e.flags)));if(n>=0)return ty(t)?wA(t[n],(r=>My(e,qe(t,n,r)))):pt;if(R(t,dt))return dt;const r=[],i=[];let o=e[0];if(!function e(t,n){const a=ht(t);for(let s=0;s""===e))){if(F(r,(e=>!!(4&e.flags))))return Pt;if(1===r.length&&tv(r[0]))return r[0]}const a=`${Xp(r)}|${V(i,(e=>e.length)).join(",")}|${i.join("")}`;let s=Qe.get(a);return s||Qe.set(a,s=function(e,t){const n=as(134217728);return n.texts=e,n.types=t,n}(i,r)),s}function Ry(e){return 128&e.flags?e.value:256&e.flags?""+e.value:2048&e.flags?lT(e.value):98816&e.flags?e.intrinsicName:void 0}function By(e,t){return 1179648&t.flags?wA(t,(t=>By(e,t))):128&t.flags?ib(Jy(e,t.value)):134217728&t.flags?My(...function(e,t,n){switch(RB.get(e.escapedName)){case 0:return[t.map((e=>e.toUpperCase())),n.map((t=>By(e,t)))];case 1:return[t.map((e=>e.toLowerCase())),n.map((t=>By(e,t)))];case 2:return[""===t[0]?t:[t[0].charAt(0).toUpperCase()+t[0].slice(1),...t.slice(1)],""===t[0]?[By(e,n[0]),...n.slice(1)]:n];case 3:return[""===t[0]?t:[t[0].charAt(0).toLowerCase()+t[0].slice(1),...t.slice(1)],""===t[0]?[By(e,n[0]),...n.slice(1)]:n]}return[t,n]}(e,t.texts,t.types)):268435456&t.flags&&e===t.symbol?t:268435461&t.flags||ov(t)?Ky(e,t):Yy(t)?Ky(e,My(["",""],[t])):t}function Jy(e,t){switch(RB.get(e.escapedName)){case 0:return t.toUpperCase();case 1:return t.toLowerCase();case 2:return t.charAt(0).toUpperCase()+t.slice(1);case 3:return t.charAt(0).toLowerCase()+t.slice(1)}return t}function Ky(e,t){const n=`${VB(e)},${_h(t)}`;let r=We.get(n);return r||We.set(n,r=function(e,t){const n=ss(268435456,e);return n.type=t,n}(e,t)),r}function Wy(e){if(G)return!1;if(4096&Vx(e))return!0;if(1048576&e.flags)return F(e.types,Wy);if(2097152&e.flags)return _e(e.types,Wy);if(465829888&e.flags){const t=Cd(e);return t!==e&&Wy(t)}return!1}function Hy(e,t){return Ml(e)?Ql(e):t&&xl(t)?Dy(t):void 0}function $y(e,t){if(8208&t.flags){const n=Ec(e.parent,(e=>!Yx(e)))||e.parent;return eu(n)?tu(n)&&Tw(e)&&KC(n,e):F(t.declarations,(e=>!Sl(e)||!!(268435456&Ac(e))))}return!0}function Gy(e,t,n,r,i,o){var a;const s=i&&209===i.kind?i:void 0,c=i&&Cw(i)?void 0:Hy(n,i);if(void 0!==c){if(256&o)return Nw(t,c)||_t;const e=zd(t,c);if(e){if(64&o&&i&&e.declarations&&ho(e)&&$y(i,e)&&yo(null!=(a=null==s?void 0:s.argumentExpression)?a:vD(i)?i.indexType:i,e.declarations,c),s){if(pF(e,s,fF(s.expression,t.symbol)),AI(s,e,jh(s)))return void uo(s.argumentExpression,ja.Cannot_assign_to_0_because_it_is_a_read_only_property,Ms(e));if(8&o&&(Fo(i).resolvedSymbol=e),JN(s,e))return ut}const n=x_(e);return s&&1!==jh(s)?HA(s,n):i&&vD(i)&&XS(n)?wh([n,Tt]):n}if(SA(t,IS)&&MT(c)){const e=+c;if(i&&SA(t,(e=>!e.target.hasRestElement))&&!(16&o)){const n=Xy(i);if(IS(t)){if(e<0)return uo(n,ja.A_tuple_type_cannot_be_indexed_with_a_negative_value),Tt;uo(n,ja.Tuple_type_0_of_length_1_has_no_element_at_index_2,Bs(t),_f(t),Ic(c))}else uo(n,ja.Property_0_does_not_exist_on_type_1,Ic(c),Bs(t))}if(e>=0)return _($d(t,It)),wA(t,(e=>{const t=MS(e)||Tt;return 1&o?wh([t,At]):t}))}}if(!(98304&n.flags)&&II(n,402665900)){if(131073&t.flags)return t;const a=Yd(t,n)||$d(t,Pt);if(a)return 2&o&&a.keyType!==It?void(s&&uo(s,ja.Type_0_cannot_be_used_to_index_type_1,Bs(n),Bs(e))):i&&a.keyType===Pt&&!II(n,12)?(uo(Xy(i),ja.Type_0_cannot_be_used_as_an_index_type,Bs(n)),1&o?wh([a.type,At]):a.type):(_(a),1&o&&!(t.symbol&&384&t.symbol.flags&&n.symbol&&1024&n.flags&&Ya(n.symbol)===t.symbol)?wh([a.type,At]):a.type);if(131072&n.flags)return Qt;if(Wy(t))return _t;if(s&&!LI(t)){if(SC(t)){if(G&&384&n.flags)return Wi.add(zf(s,ja.Property_0_does_not_exist_on_type_1,n.value,Bs(t))),Tt;if(12&n.flags)return wh(Se(V(t.properties,(e=>x_(e))),Tt))}if(t.symbol===de&&void 0!==c&&de.exports.has(c)&&418&de.exports.get(c).flags)uo(s,ja.Property_0_does_not_exist_on_type_1,Ic(c),Bs(t));else if(G&&!C.suppressImplicitAnyIndexErrors&&!(128&o))if(void 0!==c&&XN(c,t)){const e=Bs(t);uo(s,ja.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,c,e,e+"["+ef(s.argumentExpression)+"]")}else if(Gd(t,It))uo(s.argumentExpression,ja.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let e;if(void 0!==c&&(e=nF(c,t)))void 0!==e&&uo(s.argumentExpression,ja.Property_0_does_not_exist_on_type_1_Did_you_mean_2,c,Bs(t),e);else{const e=function(e,t,n){const r=Jh(t)?"set":"get";if(!function(t){const r=dd(e,t);if(r){const e=NF(x_(r));return!!e&&GP(e)>=1&&Ix(n,KP(e,0))}return!1}(r))return;let i=Qb(t.expression);return void 0===i?i=r:i+="."+r,i}(t,s,n);if(void 0!==e)uo(s,ja.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Bs(t),e);else{let e;if(1024&n.flags)e=Ak(void 0,ja.Property_0_does_not_exist_on_type_1,"["+Bs(n)+"]",Bs(t));else if(8192&n.flags){const r=Na(n.symbol,s);e=Ak(void 0,ja.Property_0_does_not_exist_on_type_1,"["+r+"]",Bs(t))}else 128&n.flags||256&n.flags?e=Ak(void 0,ja.Property_0_does_not_exist_on_type_1,n.value,Bs(t)):12&n.flags&&(e=Ak(void 0,ja.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Bs(n),Bs(t)));e=Ak(e,ja.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Bs(r),Bs(t)),Wi.add(Vf(wp(s),s,e))}}}return}}if(Wy(t))return _t;if(i){const e=Xy(i);384&n.flags?uo(e,ja.Property_0_does_not_exist_on_type_1,""+n.value,Bs(t)):12&n.flags?uo(e,ja.Type_0_has_no_matching_index_signature_for_type_1,Bs(t),Bs(n)):uo(e,ja.Type_0_cannot_be_used_as_an_index_type,Bs(n))}return _c(n)?n:void 0;function _(e){e&&e.isReadonly&&s&&(Jh(s)||$h(s))&&uo(s,ja.Index_signature_in_type_0_only_permits_reading,Bs(t))}}function Xy(e){return 209===e.kind?e.argumentExpression:196===e.kind?e.indexType:164===e.kind?e.expression:e}function Yy(e){return!!(77&e.flags)||tv(e)}function tv(e){return!!(134217728&e.flags)&&F(e.types,Yy)||!!(268435456&e.flags)&&Yy(e.type)}function nv(e){return!!av(e)}function rv(e){return!!(4194304&av(e))}function ov(e){return!!(8388608&av(e))}function av(e){return 3145728&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|Ke(e.types,((e,t)=>e|av(t)),0)),12582912&e.objectFlags):33554432&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|av(e.baseType)|av(e.constraint)),12582912&e.objectFlags):(58982400&e.flags||cd(e)||OS(e)?4194304:0)|(465829888&e.flags&&!tv(e)?8388608:0)}function sv(e,t){return 8388608&e.flags?function(e,t){const n=t?"simplifiedForWriting":"simplifiedForReading";if(e[n])return e[n]===Fn?e:e[n];e[n]=Fn;const r=sv(e.objectType,t),i=sv(e.indexType,t),o=function(e,t,n){if(1048576&t.flags){const r=V(t.types,(t=>sv(gv(e,t),n)));return n?Yh(r):wh(r)}}(r,i,t);if(o)return e[n]=o;if(!(465829888&i.flags)){const o=lv(r,i,t);if(o)return e[n]=o}if(OS(r)&&296&i.flags){const o=RS(r,8&i.flags?0:r.target.fixedLength,0,t);if(o)return e[n]=o}return!cd(r)||Mu(r)&&!_d(r)?e[n]=e:e[n]=wA(mv(r,e.indexType),(e=>sv(e,t)))}(e,t):16777216&e.flags?function(e,t){const n=e.checkType,r=e.extendsType,i=Dv(e),o=Ev(e);if(131072&o.flags&&kv(i)===kv(n)){if(1&n.flags||Ix(vx(n),vx(r)))return sv(i,t);if(uv(n,r))return Qt}else if(131072&i.flags&&kv(o)===kv(n)){if(!(1&n.flags)&&Ix(vx(n),vx(r)))return Qt;if(1&n.flags||uv(n,r))return sv(o,t)}return e}(e,t):e}function lv(e,t,n){if(1048576&e.flags||2097152&e.flags&&!Cy(e)){const r=V(e.types,(e=>sv(gv(e,t),n)));return 2097152&e.flags||n?Yh(r):wh(r)}}function uv(e,t){return!!(131072&wh([bu(e,t),Qt]).flags)}function mv(e,t){const n=jb([Ou(e)],[t]),r=rx(e.mapper,n);return gx(Ru(e.target||e),r)}function gv(e,t,n=0,r,i,o){return vv(e,t,n,r,i,o)||(r?pt:bt)}function yv(e,t){return SA(e,(e=>{if(384&e.flags){const n=Ql(e);if(MT(n)){const e=+n;return e>=0&&e0&&!_e(e.elements,(e=>lD(e)||uD(e)||_D(e)&&!(!e.questionToken&&!e.dotDotDotToken)))}function Cv(e,t){return nv(e)||t&&IS(e)&&_e(cf(e),nv)}function wv(e,t,n,r){let i,a,s=0;for(;;){if(1e3===s){uo(o,ja.Type_instantiation_is_excessively_deep_and_possibly_infinite),i=pt;break}const _=Tv(e.node.checkType)&&Tv(e.node.extendsType)&&S(e.node.checkType.elements)===S(e.node.extendsType.elements),l=gx(kv(e.checkType),t),u=Cv(l,_),d=gx(e.extendsType,t);if(l===dt||d===dt)return dt;let p;if(e.inferTypeParameters){const n=K(e.inferTypeParameters,Sv),r=n!==e.inferTypeParameters?jb(e.inferTypeParameters,n):void 0,i=jT(n,void 0,0);if(r){const i=rx(t,r);for(const t of n)-1===e.inferTypeParameters.indexOf(t)&&(t.mapper=i)}u||bC(i.inferences,l,gx(d,r),1536);const o=rx(r,i.mapper);p=t?rx(o,t):o}const f=p?gx(e.extendsType,p):d;if(!u&&!Cv(f,_)){if(!(3&f.flags)&&(1&l.flags||!Ix(yx(l),yx(f)))){1&l.flags&&(a||(a=[])).push(gx(Db(e.node.trueType),p||t));const n=Db(e.node.falseType);if(16777216&n.flags){const r=n.root;if(r.node.parent===e.node&&(!r.isDistributive||r.checkType===e.checkType)){e=r;continue}if(c(n,t))continue}i=gx(n,t);break}if(3&f.flags||Ix(vx(l),vx(f))){const n=Db(e.node.trueType),r=p||t;if(c(n,r))continue;i=gx(n,r);break}}i=as(16777216),i.root=e,i.checkType=gx(e.checkType,t),i.extendsType=gx(e.extendsType,t),i.mapper=t,i.combinedMapper=p,i.aliasSymbol=n||e.aliasSymbol,i.aliasTypeArguments=n?r:Fb(e.aliasTypeArguments,t);break}return a?wh(Se(a,i)):i;function c(i,o){if(16777216&i.flags&&o){const a=i.root;if(a.outerTypeParameters){const c=rx(i.mapper,o),_=V(a.outerTypeParameters,(e=>Hb(e,c))),l=jb(a.outerTypeParameters,_),u=a.isDistributive?Hb(a.checkType,l):void 0;if(!(u&&u!==a.checkType&&1179648&u.flags))return e=a,t=l,n=void 0,r=void 0,a.aliasSymbol&&s++,!0}}return!1}}function Dv(e){return e.resolvedTrueType||(e.resolvedTrueType=gx(Db(e.root.node.trueType),e.mapper))}function Ev(e){return e.resolvedFalseType||(e.resolvedFalseType=gx(Db(e.root.node.falseType),e.mapper))}function Nv(e){let t;return e.locals&&e.locals.forEach((e=>{262144&e.flags&&(t=Se(t,ul(e)))})),t}function Fv(e){return Tw(e)?[e]:Se(Fv(e.left),e.right)}function Pv(e){var t;const n=Fo(e);if(!n.resolvedType){if(!_m(e))return uo(e.argument,ja.String_literal_expected),n.resolvedSymbol=rt,n.resolvedType=pt;const r=e.isTypeOf?111551:8388608&e.flags?900095:788968,i=Ia(e,e.argument.literal);if(!i)return n.resolvedSymbol=rt,n.resolvedType=pt;const o=!!(null==(t=i.exports)?void 0:t.get("export=")),a=Ra(i,!1);if(Lp(e.qualifier))a.flags&r?n.resolvedType=Iv(e,n,a,r):(uo(e,111551===r?ja.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:ja.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,e.argument.literal.text),n.resolvedSymbol=rt,n.resolvedType=pt);else{const t=Fv(e.qualifier);let i,s=a;for(;i=t.shift();){const a=t.length?1920:r,c=$a(ba(s)),_=e.isTypeOf||Sg(e)&&o?zd(x_(c),i.escapedText,!1,!0):void 0,l=e.isTypeOf?void 0:Io(Qa(c),i.escapedText,a),u=null!=l?l:_;if(!u)return uo(i,ja.Namespace_0_has_no_exported_member_1,Na(s),Lf(i)),n.resolvedType=pt;Fo(i).resolvedSymbol=u,Fo(i.parent).resolvedSymbol=u,s=u}n.resolvedType=Iv(e,n,s,r)}}return n.resolvedType}function Iv(e,t,n,r){const i=ba(n);return t.resolvedSymbol=i,111551===r?PP(x_(n),e):Af(e,i)}function Ov(e){const t=Fo(e);if(!t.resolvedType){const n=Lv(e);if(0!==Hl(e.symbol).size||n){let r=us(16,e.symbol);r.aliasSymbol=n,r.aliasTypeArguments=Mv(n),UN(e)&&e.isArrayType&&(r=kg(r)),t.resolvedType=r}else t.resolvedType=Cn}return t.resolvedType}function Lv(e){let t=e.parent;for(;gD(t)||wN(t)||yD(t)&&146===t.operator;)t=t.parent;return bh(t)?Ga(t):void 0}function Mv(e){return e?U_(e):void 0}function jv(e){return!!(524288&e.flags)&&!cd(e)}function Vv(e){return sk(e)||!!(474058748&e.flags)}function Wv(e,t){if(!(1048576&e.flags))return e;if(F(e.types,Vv))return P(e.types,sk)||hn;const n=P(e.types,(e=>!Vv(e)));return n?P(e.types,(e=>e!==n&&!Vv(e)))?e:function(e){const n=ip();for(const r of fd(e))if(24&Px(r));else if(Yv(r)){const e=65536&r.flags&&!(32768&r.flags),i=vo(16777220,r.escapedName,Fu(r)|(t?8:0));i.links.type=e?Tt:Cc(x_(r),!0),i.declarations=r.declarations,i.links.nameType=No(r).nameType,i.links.syntheticOrigin=r,n.set(r.escapedName,i)}const i=hs(e.symbol,n,r,r,Hd(e));return i.objectFlags|=131200,i}(n):e}function Xv(e,t,n,i,o){if(1&e.flags||1&t.flags)return _t;if(2&e.flags||2&t.flags)return bt;if(131072&e.flags)return t;if(131072&t.flags)return e;if(1048576&(e=Wv(e,o)).flags)return ty([e,t])?wA(e,(e=>Xv(e,t,n,i,o))):pt;if(1048576&(t=Wv(t,o)).flags)return ty([e,t])?wA(t,(t=>Xv(e,t,n,i,o))):pt;if(473960444&t.flags)return e;if(rv(e)||rv(t)){if(sk(e))return t;if(2097152&e.flags){const r=e.types,a=r[r.length-1];if(jv(a)&&jv(t))return Yh(ue(r.slice(0,r.length-1),[Xv(a,t,n,i,o)]))}return Yh([e,t])}const a=ip(),s=new Set,c=e===hn?Hd(t):vu([e,t]);for(const e of fd(t))24&Px(e)?s.add(e.escapedName):Yv(e)&&a.set(e.escapedName,Zv(e,o));for(const t of fd(e))if(!s.has(t.escapedName)&&Yv(t))if(a.has(t.escapedName)){const e=a.get(t.escapedName),n=x_(e);if(16777216&e.flags){const r=ue(t.declarations,e.declarations),i=vo(4|16777216&t.flags,t.escapedName);i.links.type=wh([x_(t),YS(n)],2),i.links.leftSpread=t,i.links.rightSpread=e,i.declarations=r,i.links.nameType=No(t).nameType,a.set(t.escapedName,i)}}else a.set(t.escapedName,Zv(t,o));const _=hs(n,a,r,r,K(c,(e=>function(e,t){return e.isReadonly!==t?qp(e.keyType,e.type,t,e.declaration):e}(e,o))));return _.objectFlags|=2228352|i,_}function Yv(e){var t;return!(_e(e.declarations,fl)||106496&e.flags&&(null==(t=e.declarations)?void 0:t.some((e=>Fl(e.parent)))))}function Zv(e,t){const n=65536&e.flags&&!(32768&e.flags);if(!n&&t===TI(e))return e;const r=vo(4|16777216&e.flags,e.escapedName,Fu(e)|(t?8:0));return r.links.type=n?Tt:x_(e),r.declarations=e.declarations,r.links.nameType=No(e).nameType,r.links.syntheticOrigin=e,r}function eb(e,t,n,r){const i=ss(e,n);return i.value=t,i.regularType=r||i,i}function tb(e){if(2976&e.flags){if(!e.freshType){const t=eb(e.flags,e.value,e.symbol,e);t.freshType=t,e.freshType=t}return e.freshType}return e}function nb(e){return 2976&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=wA(e,nb)):e}function rb(e){return!!(2976&e.flags)&&e.freshType===e}function ib(e){let t;return Fe.get(e)||(Fe.set(e,t=eb(128,e)),t)}function yb(e){let t;return Pe.get(e)||(Pe.set(e,t=eb(256,e)),t)}function vb(e){let t;const n=lT(e);return Je.get(n)||(Je.set(n,t=eb(2048,e)),t)}function xb(e,t,n){let r;const i=`${t}${"string"==typeof e?"@":"#"}${e}`,o=1024|("string"==typeof e?128:256);return ze.get(i)||(ze.set(i,r=eb(o,e,n)),r)}function kb(e){if(Dm(e)){const t=wm(e)?Xa(e.left):Xa(e);if(t){const e=No(t);return e.uniqueESSymbolType||(e.uniqueESSymbolType=function(e){const t=ss(8192,e);return t.escapedName=`__@${t.symbol.escapedName}@${VB(t.symbol)}`,t}(t))}}return qt}function Sb(e){const t=Fo(e);return t.resolvedType||(t.resolvedType=function(e){const t=Km(e,!1,!1),n=t&&t.parent;if(n&&(Fl(n)||261===n.kind)&&!_b(t)&&(!$w(t)||Gh(e,t.body)))return el(Ga(n)).thisType;if(n&&ED(n)&&QD(n.parent)&&6===Hg(n.parent))return el(Xa(n.parent.left).parent).thisType;const r=8388608&e.flags?Ih(e):void 0;return r&&RD(r)&&QD(r.parent)&&3===Hg(r.parent)?el(Xa(r.parent.left).parent).thisType:vP(t)&&Gh(e,t.body)?el(Ga(t)).thisType:(uo(e,ja.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),pt)}(e)),t.resolvedType}function Tb(e){return Db(Cb(e.type)||e.type)}function Cb(e){switch(e.kind){case 193:return Cb(e.type);case 186:if(1===e.elements.length&&(188===(e=e.elements[0]).kind||199===e.kind&&e.dotDotDotToken))return Cb(e.type);break;case 185:return e.elementType}}function Db(e){return function(e,t){let n,r=!0;for(;t&&!Iu(t)&&323!==t.kind;){const i=t.parent;if(166===i.kind&&(r=!r),(r||8650752&e.flags)&&191===i.kind&&t===i.trueType){const t=Pf(e,i.checkType,i.extendsType);t&&(n=Se(n,t))}else if(262144&e.flags&&197===i.kind&&t===i.type){const t=Db(i);if(Ou(t)===kv(e)){const e=lx(t);if(e){const t=gd(e);t&&SA(t,fS)&&(n=Se(n,wh([It,on])))}}}t=i}return n?wf(e,Yh(n)):e}(Eb(e),e)}function Eb(e){switch(e.kind){case 131:case 315:case 316:return _t;case 157:return bt;case 152:return Pt;case 148:return It;case 160:return Ot;case 134:return Ut;case 153:return qt;case 114:return Vt;case 155:return Tt;case 104:return Et;case 144:return Qt;case 149:return 262144&e.flags&&!G?_t:$t;case 139:return yt;case 194:case 108:return Sb(e);case 198:return function(e){if(104===e.literal.kind)return Et;const t=Fo(e);return t.resolvedType||(t.resolvedType=nb(dO(e.literal))),t.resolvedType}(e);case 180:case 230:return Wf(e);case 179:return e.assertsModifier?Vt:Ut;case 183:return cm(e);case 185:case 186:return function(e){const t=Fo(e);if(!t.resolvedType){const n=function(e){const t=function(e){return yD(e)&&146===e.operator}(e.parent);return Cb(e)?t?Hn:Wn:Gg(V(e.elements,Cg),t,_e(e.elements,(e=>199!==e.kind))?void 0:e.elements)}(e);if(n===Dn)t.resolvedType=hn;else if(186===e.kind&&_e(e.elements,(e=>!!(8&Cg(e))))||!Pg(e)){const r=185===e.kind?[Db(e.elementType)]:V(e.elements,Db);t.resolvedType=Xg(n,r)}else t.resolvedType=186===e.kind&&0===e.elements.length?n:sf(n,e,void 0)}return t.resolvedType}(e);case 187:return function(e){return Cc(Db(e.type),!0)}(e);case 189:return function(e){const t=Fo(e);if(!t.resolvedType){const n=Lv(e);t.resolvedType=wh(V(e.types,Db),1,n,Mv(n))}return t.resolvedType}(e);case 190:return function(e){const t=Fo(e);if(!t.resolvedType){const n=Lv(e),r=V(e.types,Db),i=2===r.length&&!!(76&r[0].flags)&&r[1]===Cn;t.resolvedType=Yh(r,n,Mv(n),i)}return t.resolvedType}(e);case 317:return function(e){const t=Db(e.type);return j?zS(t,65536):t}(e);case 319:return Cc(Db(e.type));case 199:return function(e){const t=Fo(e);return t.resolvedType||(t.resolvedType=e.dotDotDotToken?Tb(e):Cc(Db(e.type),!0,!!e.questionToken))}(e);case 193:case 318:case 312:return Db(e.type);case 188:return Tb(e);case 321:return function(e){const t=Db(e.type),{parent:n}=e,r=e.parent.parent;if(wN(e.parent)&&rF(r)){const e=Ih(r),n=WN(r.parent.parent);if(e||n){const i=Be(n?r.parent.parent.typeExpression.parameters:e.parameters),o=Fh(r);if(!i||o&&i.symbol===o&&rd(i))return kg(t)}}return Uw(n)&&BN(n.parent)?kg(t):Cc(t)}(e);case 181:case 182:case 184:case 325:case 320:case 326:return Ov(e);case 195:return function(e){const t=Fo(e);if(!t.resolvedType)switch(e.operator){case 141:t.resolvedType=Py(Db(e.type));break;case 156:t.resolvedType=153===e.type.kind?kb(Vh(e.parent)):pt;break;case 146:t.resolvedType=Db(e.type);break;default:throw In.assertNever(e.operator)}return t.resolvedType}(e);case 196:return bv(e);case 197:return xv(e);case 191:return function(e){const t=Fo(e);if(!t.resolvedType){const n=Db(e.checkType),r=Lv(e),i=Mv(r),o=I_(e,!0),a=i?o:z(o,(t=>_x(t,e))),s={node:e,checkType:n,extendsType:Db(e.extendsType),isDistributive:!!(262144&n.flags),inferTypeParameters:Nv(e),outerTypeParameters:a,instantiations:void 0,aliasSymbol:r,aliasTypeArguments:i};t.resolvedType=wv(s,void 0),a&&(s.instantiations=new Map,s.instantiations.set(Xp(a),t.resolvedType))}return t.resolvedType}(e);case 192:return function(e){const t=Fo(e);return t.resolvedType||(t.resolvedType=ll(Ga(e.typeParameter))),t.resolvedType}(e);case 200:return function(e){const t=Fo(e);return t.resolvedType||(t.resolvedType=My([e.head.text,...V(e.templateSpans,(e=>e.literal.text))],V(e.templateSpans,(e=>Db(e.type))))),t.resolvedType}(e);case 202:return Pv(e);case 79:case 163:case 208:const t=iR(e);return t?ul(t):pt;default:return pt}}function Nb(e,t,n){if(e&&e.length)for(let r=0;rGh(e,o)))||_e(t.typeArguments,n);case 171:case 170:return!t.type&&!!t.body||_e(t.typeParameters,n)||_e(t.parameters,n)||!!t.type&&n(t.type)}return!!bI(t,n)}}function lx(e){const t=Lu(e);if(4194304&t.flags){const e=kv(t.type);if(262144&e.flags)return e}}function ux(e,t,n,r){const i=lx(e);if(i){const o=gx(i,t);if(i!==o)return DA(Md(o),(n=>{if(61603843&n.flags&&n!==dt&&!lc(n)){if(!e.declaration.nameType){let r;if(_S(n)||1&n.flags&&ic(i,4)<0&&(r=gd(i))&&SA(r,fS))return function(e,t,n){const r=px(t,It,!0,n);return lc(r)?pt:kg(r,dx(lS(e),Vu(t)))}(n,e,ix(i,n,t));if(OS(n))return function(e,t,n,r){const i=e.target.elementFlags,o=V(cf(e),((e,o)=>{const a=8&i[o]?e:4&i[o]?kg(e):Vg([e],[i[o]]);return ux(t,ix(n,a,r))})),a=dx(e.target.readonly,Vu(t));return Vg(o,V(o,(e=>8)),a)}(n,e,i,t);if(IS(n))return function(e,t,n){const r=e.target.elementFlags,i=V(cf(e),((e,i)=>px(t,ib(""+i),!!(2&r[i]),n))),o=Vu(t),a=4&o?V(r,(e=>1&e?2:e)):8&o?V(r,(e=>2&e?1:e)):r,s=dx(e.target.readonly,o);return R(i,pt)?pt:Vg(i,a,s,e.target.labeledElementDeclarations)}(n,e,ix(i,n,t))}return fx(e,ix(i,n,t))}return n}),n,r)}return gx(Lu(e),t)===dt?dt:fx(e,t,n,r)}function dx(e,t){return!!(1&t)||!(2&t)&&e}function px(e,t,n,r){const i=ox(r,Ou(e),t),o=gx(Ru(e.target||e),i),a=Vu(e);return j&&4&a&&!PI(o,49152)?US(o,!0):j&&8&a&&n?ZC(o,524288):o}function fx(e,t,n,r){const i=us(64|e.objectFlags,e.symbol);if(32&e.objectFlags){i.declaration=e.declaration;const n=Ou(e),r=ax(n);i.typeParameter=r,t=rx(Gb(n,r),t),r.mapper=t}return 8388608&e.objectFlags&&(i.node=e.node),i.target=e,i.mapper=t,i.aliasSymbol=n||e.aliasSymbol,i.aliasTypeArguments=n?r:Fb(e.aliasTypeArguments,t),i.objectFlags|=i.aliasTypeArguments?Zp(i.aliasTypeArguments):0,i}function mx(e,t,n,r){const i=e.root;if(i.outerTypeParameters){const e=V(i.outerTypeParameters,(e=>Hb(e,t))),o=Xp(e)+Yp(n,r);let a=i.instantiations.get(o);if(!a){const t=jb(i.outerTypeParameters,e),s=i.checkType,c=i.isDistributive?Hb(s,t):void 0;a=c&&s!==c&&1179648&c.flags?DA(Md(c),(e=>wv(i,ix(s,e,t))),n,r):wv(i,t,n,r),i.instantiations.set(o,a)}return a}return e}function gx(e,t){return e&&t?hx(e,t,void 0,void 0):e}function hx(e,t,n,i){var a;if(!nC(e))return e;if(100===y||h>=5e6)return null==(a=Ur)||a.instant(Ur.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:e.id,instantiationDepth:y,instantiationCount:h}),uo(o,ja.Type_instantiation_is_excessively_deep_and_possibly_infinite),pt;g++,h++,y++;const s=function(e,t,n,i){const o=e.flags;if(262144&o)return Hb(e,t);if(524288&o){const o=e.objectFlags;if(52&o){if(4&o&&!e.node){const n=e.resolvedTypeArguments,r=Fb(n,t);return r!==n?Xg(e.target,r):e}return 1024&o?function(e,t){const n=gx(e.mappedType,t);if(!(32&Vx(n)))return e;const r=gx(e.constraintType,t);if(!(4194304&r.flags))return e;return oC(gx(e.source,t),n,r)||e}(e,t):function(e,t,n,i){const o=4&e.objectFlags||8388608&e.objectFlags?e.node:e.symbol.declarations[0],a=Fo(o),s=4&e.objectFlags?a.resolvedType:64&e.objectFlags?e.target:e;let c=a.outerTypeParameters;if(!c){let t=I_(o,!0);vP(o)&&(t=Ae(t,ep(o))),c=t||r;const n=8388612&e.objectFlags?[o]:e.symbol.declarations;c=(8388612&s.objectFlags||8192&s.symbol.flags||2048&s.symbol.flags)&&!s.aliasTypeArguments?z(c,(e=>_e(n,(t=>_x(e,t))))):c,a.outerTypeParameters=c}if(c.length){const r=rx(e.mapper,t),o=V(c,(e=>Hb(e,r))),a=n||e.aliasSymbol,_=n?i:Fb(e.aliasTypeArguments,t),l=Xp(o)+Yp(a,_);s.instantiations||(s.instantiations=new Map,s.instantiations.set(Xp(c)+Yp(s.aliasSymbol,s.aliasTypeArguments),s));let u=s.instantiations.get(l);if(!u){const t=jb(c,o);u=4&s.objectFlags?sf(e.target,e.node,t,a,_):32&s.objectFlags?ux(s,t,a,_):fx(s,t,a,_),s.instantiations.set(l,u)}return u}return e}(e,t,n,i)}return e}if(3145728&o){const r=1048576&e.flags?e.origin:void 0,a=r&&3145728&r.flags?r.types:e.types,s=Fb(a,t);if(s===a&&n===e.aliasSymbol)return e;const c=n||e.aliasSymbol,_=n?i:Fb(e.aliasTypeArguments,t);return 2097152&o||r&&2097152&r.flags?Yh(s,c,_):wh(s,1,c,_)}if(4194304&o)return Py(gx(e.type,t));if(134217728&o)return My(e.texts,Fb(e.types,t));if(268435456&o)return By(e.symbol,gx(e.type,t));if(8388608&o){const r=n||e.aliasSymbol,o=n?i:Fb(e.aliasTypeArguments,t);return gv(gx(e.objectType,t),gx(e.indexType,t),e.accessFlags,void 0,r,o)}if(16777216&o)return mx(e,rx(e.mapper,t),n,i);if(33554432&o){const n=gx(e.baseType,t),r=gx(e.constraint,t);return 8650752&n.flags&&nv(r)?wf(n,r):3&r.flags||Ix(vx(n),vx(r))?n:8650752&n.flags?wf(n,r):Yh([r,n])}return e}(e,t,n,i);return y--,s}function yx(e){return 134479871&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=gx(e,cn))}function vx(e){return 134479871&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=gx(e,an),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function bx(e,t){return qp(e.keyType,gx(e.type,t),e.isReadonly,e.declaration)}function xx(e){switch(In.assert(171!==e.kind||Pm(e)),e.kind){case 215:case 216:case 171:case 259:return kx(e);case 207:return _e(e.properties,xx);case 206:return _e(e.elements,xx);case 224:return xx(e.whenTrue)||xx(e.whenFalse);case 223:return(56===e.operatorToken.kind||60===e.operatorToken.kind)&&(xx(e.left)||xx(e.right));case 299:return xx(e.initializer);case 214:return xx(e.expression);case 289:return _e(e.properties,xx)||aN(e.parent)&&_e(e.parent.parent.children,xx);case 288:{const{initializer:t}=e;return!!t&&xx(t)}case 291:{const{expression:t}=e;return!!t&&xx(t)}}return!1}function kx(e){return NT(e)||function(e){return!e.typeParameters&&!Hv(e)&&!!e.body&&238!==e.body.kind&&xx(e.body)}(e)}function Sx(e){return(OT(e)||Pm(e))&&kx(e)}function Tx(e){if(524288&e.flags){const t=ld(e);if(t.constructSignatures.length||t.callSignatures.length){const n=us(16,e.symbol);return n.members=t.members,n.properties=t.properties,n.callSignatures=r,n.constructSignatures=r,n.indexInfos=r,n}}else if(2097152&e.flags)return Yh(V(e.types,Tx));return e}function Cx(e,t){return pk(e,t,eo)}function Ax(e,t){return pk(e,t,eo)?-1:0}function wx(e,t){return pk(e,t,Yi)?-1:0}function Dx(e,t){return pk(e,t,Gi)?-1:0}function Ex(e,t){return pk(e,t,Gi)}function Nx(e,t){return pk(e,t,Xi)}function Ix(e,t){return pk(e,t,Yi)}function Rx(e,t){return 1048576&e.flags?F(e.types,(e=>Rx(e,t))):1048576&t.flags?_e(t.types,(t=>Rx(e,t))):2097152&e.flags?_e(e.types,(e=>Rx(e,t))):58982400&e.flags?Rx(kd(e)||bt,t):ck(t)?!!(67633152&e.flags):t===qn?!!(67633152&e.flags)&&!ck(e):t===Vn?!!(524288&e.flags)&&$C(e):w_(e,C_(t))||_S(t)&&!lS(t)&&Rx(e,Hn)}function Bx(e,t){return pk(e,t,Zi)}function jx(e,t){return Bx(e,t)||Bx(t,e)}function Jx(e,t,n,r,i,o){return hk(e,t,Yi,n,r,i,o)}function zx(e,t,n,r,i,o){return Ux(e,t,Yi,n,r,i,o,void 0)}function Ux(e,t,n,r,i,o,a,s){return!!pk(e,t,n)||(!r||!Wx(i,e,t,n,o,a,s))&&hk(e,t,n,r,o,a,s)}function Qx(e){return!!(16777216&e.flags||2097152&e.flags&&_e(e.types,Qx))}function Wx(e,t,n,r,i,o,a){if(!e||Qx(n))return!1;if(!hk(t,n,r,void 0)&&function(e,t,n,r,i,o,a){const s=qd(t,0),c=qd(t,1);for(const _ of[c,s])if(_e(_,(e=>{const t=Tp(e);return!(131073&t.flags)&&hk(t,n,r,void 0)}))){const r=a||{};return Jx(t,n,e,i,o,r),rT(r.errors[r.errors.length-1],zf(e,_===c?ja.Did_you_mean_to_use_new_with_this_expression:ja.Did_you_mean_to_call_this_expression)),!0}return!1}(e,t,n,r,i,o,a))return!0;switch(e.kind){case 291:case 214:return Wx(e.expression,t,n,r,i,o,a);case 223:switch(e.operatorToken.kind){case 63:case 27:return Wx(e.right,t,n,r,i,o,a)}break;case 207:return function(e,t,n,r,i,o){return!(134479868&n.flags)&&Gx(function*(e){if(S(e.properties))for(const t of e.properties){if(xN(t))continue;const e=hy(Ga(t),8576);if(e&&!(131072&e.flags))switch(t.kind){case 175:case 174:case 171:case 300:yield{errorNode:t.name,innerExpression:void 0,nameType:e};break;case 299:yield{errorNode:t.name,innerExpression:t.initializer,nameType:e,errorMessage:Rf(t.name)?ja.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:In.assertNever(t)}}}(e),t,n,r,i,o)}(e,t,n,r,o,a);case 206:return function(e,t,n,r,i,o){if(134479868&n.flags)return!1;if(xS(t))return Gx(ek(e,n),t,n,r,i,o);pD(e,n,!1);const a=VD(e,1,!0);return fD(),!!xS(a)&&Gx(ek(e,n),a,n,r,i,o)}(e,t,n,r,o,a);case 289:return function(e,t,n,r,i,o){let a,s=Gx(function*(e){if(S(e.properties))for(const t of e.properties)pN(t)||rE(Oc(t.name))||(yield{errorNode:t.name,innerExpression:t.initializer,nameType:ib(Oc(t.name))})}(e),t,n,r,i,o);if(aN(e.parent)&&iN(e.parent.parent)){const a=e.parent.parent,_=xE(vE(e)),l=void 0===_?"children":Ic(_),u=ib(l),d=gv(n,u),p=Zy(a.children);if(!S(p))return s;const f=S(p)>1;let m,g;if(Um(!1)!==Dn){const e=ug(_t);m=TA(d,(t=>Ix(t,e))),g=TA(d,(t=>!Ix(t,e)))}else m=TA(d,kS),g=TA(d,(e=>!kS(e)));if(f){if(m!==Qt){const e=Vg(sE(a,0)),t=function*(e,t){if(!S(e.children))return;let n=0;for(let r=0;r!kS(e))),c=s!==Qt?ML(13,0,s,void 0):void 0;let _=!1;for(let n=e.next();!n.done;n=e.next()){const{errorNode:e,innerExpression:s,nameType:l,errorMessage:u}=n.value;let d=c;const p=a!==Qt?Hx(t,a,l):void 0;if(!p||8388608&p.flags||(d=c?wh([c,p]):p),!d)continue;let f=vv(t,l);if(!f)continue;const m=Hy(l,void 0);if(!hk(f,d,r,void 0)&&(_=!0,!s||!Wx(s,f,d,r,void 0,i,o))){const n=o||{},c=s?$x(s,f):f;if(ne&&bk(c,d)){const t=zf(e,ja.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Bs(c),Bs(d));Wi.add(t),n.errors=[t]}else{const o=!!(m&&16777216&(zd(a,m)||rt).flags),s=!!(m&&16777216&(zd(t,m)||rt).flags);d=$S(d,o),f=$S(f,o&&s),hk(c,d,r,e,u,i,n)&&c!==f&&hk(f,d,r,e,u,i,n)}}}return _}(t,e,m,r,i,o)||s}else if(!pk(gv(t,u),d,r)){s=!0;const e=uo(a.openingElement.tagName,ja.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,l,Bs(d));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(e)}}else if(g!==Qt){const e=Zx(p[0],u,c);e&&(s=Gx(function*(){yield e}(),t,n,r,i,o)||s)}else if(!pk(gv(t,u),d,r)){s=!0;const e=uo(a.openingElement.tagName,ja.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,l,Bs(d));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(e)}}return s;function c(){if(!a){const t=ef(e.parent.tagName),r=xE(vE(e)),i=void 0===r?"children":Ic(r),o=gv(n,ib(i)),s=ja._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;a={...s,key:"!!ALREADY FORMATTED!!",message:Sk(void 0,s,t,i,Bs(o))}}return a}}(e,t,n,r,o,a);case 216:return function(e,t,n,r,i,o){if(cE(e.body))return!1;if(_e(e.parameters,Hu))return!1;const a=NF(t);if(!a)return!1;const s=qd(n,0);if(!S(s))return!1;const c=e.body,_=Tp(a),l=wh(V(s,Tp));if(!hk(_,l,r,void 0)){const t=c&&Wx(c,_,l,r,void 0,i,o);if(t)return t;const a=o||{};if(hk(_,l,r,c,void 0,i,a),a.errors)return n.symbol&&S(n.symbol.declarations)&&rT(a.errors[a.errors.length-1],zf(n.symbol.declarations[0],ja.The_expected_type_comes_from_the_return_type_of_this_signature)),0==(2&ky(e))&&!cc(_,"then")&&hk(cI(_),l,r,void 0)&&rT(a.errors[a.errors.length-1],zf(e,ja.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}(e,t,n,r,o,a)}return!1}function Hx(e,t,n){const r=vv(t,n);if(r)return r;if(1048576&t.flags){const r=xk(e,t);if(r)return vv(r,n)}}function $x(e,t){pD(e,t,!1);const n=ZI(e,1);return fD(),n}function Gx(e,t,n,r,i,o){let a=!1;for(const s of e){const{errorNode:e,innerExpression:c,nameType:_,errorMessage:l}=s;let u=Hx(t,n,_);if(!u||8388608&u.flags)continue;let d=vv(t,_);if(!d)continue;const p=Hy(_,void 0);if(!hk(d,u,r,void 0)&&(a=!0,!c||!Wx(c,d,u,r,void 0,i,o))){const a=o||{},s=c?$x(c,d):d;if(ne&&bk(s,u)){const t=zf(e,ja.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Bs(s),Bs(u));Wi.add(t),a.errors=[t]}else{const o=!!(p&&16777216&(zd(n,p)||rt).flags),c=!!(p&&16777216&(zd(t,p)||rt).flags);u=$S(u,o),d=$S(d,o&&c),hk(s,u,r,e,l,i,a)&&s!==d&&hk(d,u,r,e,l,i,a)}if(a.errors){const e=a.errors[a.errors.length-1],t=Ml(_)?Ql(_):void 0,r=void 0!==t?zd(n,t):void 0;let i=!1;if(!r){const t=Yd(n,_);t&&t.declaration&&!wp(t.declaration).hasNoDefaultLib&&(i=!0,rT(e,zf(t.declaration,ja.The_expected_type_comes_from_this_index_signature)))}if(!i&&(r&&S(r.declarations)||n.symbol&&S(n.symbol.declarations))){const i=r&&S(r.declarations)?r.declarations[0]:n.symbol.declarations[0];wp(i).hasNoDefaultLib||rT(e,zf(i,ja.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!t||8192&_.flags?Bs(_):Ic(t),Bs(n)))}}}}return a}function Zx(e,t,n){switch(e.kind){case 291:return{errorNode:e,innerExpression:e.expression,nameType:t};case 11:if(e.containsOnlyTriviaWhiteSpaces)break;return{errorNode:e,innerExpression:void 0,nameType:t,errorMessage:n()};case 281:case 282:case 285:return{errorNode:e,innerExpression:e,nameType:t};default:return In.assertNever(e,"Found invalid jsx child")}}function*ek(e,t){const n=S(e.elements);if(n)for(let r=0;rc:GP(e)>c))return 0;var _;e.typeParameters&&e.typeParameters!==t.typeParameters&&(e=IF(e,t=(_=t).typeParameters?_.canonicalSignatureCache||(_.canonicalSignatureCache=function(e){return Ip(e,V(e.typeParameters,(e=>e.target&&!gd(e.target)?e.target:e)),Sg(e.declaration))}(_)):_,void 0,a));const l=$P(e),u=ZP(e),d=ZP(t);(u||d)&&gx(u||d,s);const p=t.declaration?t.declaration.kind:0,f=!(3&n)&&U&&171!==p&&170!==p&&173!==p;let m=-1;const g=xp(e);if(g&&g!==Vt){const e=xp(t);if(e){const t=!f&&a(g,e,!1)||a(e,g,r);if(!t)return r&&i(ja.The_this_types_of_each_signature_are_incompatible),0;m&=t}}const h=u||d?Math.min(l,c):Math.max(l,c),y=u||d?h-1:-1;for(let c=0;c=GP(e)&&c=3&&32768&t[0].flags&&65536&t[1].flags&&_e(t,ck)?67108864:0)}return!!(67108864&e.objectFlags)}return!1}(t))return!0}return!1}function pk(e,t,n){if(rb(e)&&(e=e.regularType),rb(t)&&(t=t.regularType),e===t)return!0;if(n!==eo){if(n===Zi&&!(131072&t.flags)&&dk(t,e,n)||dk(e,t,n))return!0}else if(!(61865984&(e.flags|t.flags))){if(e.flags!==t.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&t.flags){const r=n.get(Vk(e,t,0,n,!1));if(void 0!==r)return!!(1&r)}return!!(469499904&e.flags||469499904&t.flags)&&hk(e,t,n,void 0)}function fk(e,t){return 2048&Vx(e)&&rE(t.escapedName)}function mk(e,t){for(;;){const n=rb(e)?e.regularType:4&Vx(e)?e.node?rf(e.target,cf(e)):yS(e)||e:3145728&e.flags?gk(e,t):33554432&e.flags?t?e.baseType:Df(e):25165824&e.flags?sv(e,t):e;if(n===e)return n;e=n}}function gk(e,t){const n=Md(e);if(n!==e)return n;if(2097152&e.flags&&_e(e.types,ck)){const n=K(e.types,(e=>mk(e,t)));if(n!==e.types)return Yh(n)}return e}function hk(e,t,n,i,a,s,c){var _;let l,u,d,p,f,m,g,h=0,y=0,v=0,b=0,x=!1,k=0;In.assert(n!==eo||!i,"no error reporting in identity checking");const T=M(e,t,3,!!i,a);if(g&&E(),x){null==(_=Ur)||_.instant(Ur.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:e.id,targetId:t.id,depth:y,targetDepth:v});const n=uo(i||o,ja.Excessive_stack_depth_comparing_types_0_and_1,Bs(e),Bs(t));c&&(c.errors||(c.errors=[])).push(n)}else if(l){if(s){const e=s();e&&(wk(e,l),l=e)}let r;if(a&&i&&!T&&e.symbol){const i=No(e.symbol);i.originatingImport&&!sm(i.originatingImport)&&hk(x_(i.target),t,n,void 0)&&(r=Se(r,zf(i.originatingImport,ja.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead)))}const o=Vf(wp(i),i,l,r);u&&rT(o,...u),c&&(c.errors||(c.errors=[])).push(o),c&&c.skipLogging||Wi.add(o)}return i&&c&&c.skipLogging&&0===T&&In.assert(!!c.errors,"missed opportunity to interact with error."),0!==T;function A(e){l=e.errorInfo,m=e.lastSkippedInfo,g=e.incompatibleStack,k=e.overrideNextErrorInfo,u=e.relatedInfo}function w(){return{errorInfo:l,lastSkippedInfo:m,incompatibleStack:null==g?void 0:g.slice(),overrideNextErrorInfo:k,relatedInfo:null==u?void 0:u.slice()}}function D(e,t,n,r,i){k++,m=void 0,(g||(g=[])).push([e,t,n,r,i])}function E(){const e=g||[];g=void 0;const t=m;if(m=void 0,1===e.length)return N(...e[0]),void(t&&P(void 0,...t));let n="";const r=[];for(;e.length;){const[t,...i]=e.pop();switch(t.code){case ja.Types_of_property_0_are_incompatible.code:{0===n.indexOf("new ")&&(n=`(${n})`);const e=""+i[0];n=0===n.length?""+e:Us(e,Rk(C))?`${n}.${e}`:"["===e[0]&&"]"===e[e.length-1]?`${n}${e}`:`${n}[${e}]`;break}case ja.Call_signature_return_types_0_and_1_are_incompatible.code:case ja.Construct_signature_return_types_0_and_1_are_incompatible.code:case ja.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case ja.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===n.length){let e=t;t.code===ja.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?e=ja.Call_signature_return_types_0_and_1_are_incompatible:t.code===ja.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(e=ja.Construct_signature_return_types_0_and_1_are_incompatible),r.unshift([e,i[0],i[1]])}else n=`${t.code===ja.Construct_signature_return_types_0_and_1_are_incompatible.code||t.code===ja.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":""}${n}(${t.code===ja.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||t.code===ja.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"..."})`;break;case ja.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:r.unshift([ja.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,i[0],i[1]]);break;case ja.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:r.unshift([ja.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,i[0],i[1],i[2]]);break;default:return In.fail("Unhandled Diagnostic: "+t.code)}}n?N(")"===n[n.length-1]?ja.The_types_returned_by_0_are_incompatible_between_these_types:ja.The_types_of_0_are_incompatible_between_these_types,n):r.shift();for(const[e,...t]of r){const n=e.elidedInCompatabilityPyramid;e.elidedInCompatabilityPyramid=!1,N(e,...t),e.elidedInCompatabilityPyramid=n}t&&P(void 0,...t)}function N(e,t,n,r,o){In.assert(!!i),g&&E(),e.elidedInCompatabilityPyramid||(l=Ak(l,e,t,n,r,o))}function F(e){In.assert(!!l),u?u.push(e):u=[e]}function P(e,t,r){g&&E();const[i,o]=js(t,r);let a=t,s=i;if(AS(t)&&!yk(r)&&(a=wS(t),In.assert(!Ix(a,r),"generalized source shouldn't be assignable"),s=Js(a)),262144&(8388608&r.flags&&!(8388608&t.flags)?r.objectType.flags:r.flags)&&r!==Rn&&r!==Bn){const e=kd(r);let n;e&&(Ix(a,e)||(n=Ix(t,e)))?N(ja._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,n?i:s,o,Bs(e)):(l=void 0,N(ja._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,o,s))}if(e)e===ja.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&ne&&vk(t,r).length&&(e=ja.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(n===Zi)e=ja.Type_0_is_not_comparable_to_type_1;else if(i===o)e=ja.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(ne&&vk(t,r).length)e=ja.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(128&t.flags&&1048576&r.flags){const e=function(e,t){const n=t.types.filter((e=>!!(128&e.flags)));return Yt(e.value,n,(e=>e.value))}(t,r);if(e)return void N(ja.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,s,o,Bs(e))}e=ja.Type_0_is_not_assignable_to_type_1}N(e,s,o)}function I(e,t,n){return IS(e)?e.target.readonly&&mS(t)?(n&&N(ja.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Bs(e),Bs(t)),!1):fS(t):lS(e)&&mS(t)?(n&&N(ja.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Bs(e),Bs(t)),!1):!IS(t)||_S(e)}function L(e,t,n){return M(e,t,3,n)}function M(e,t,r=3,o=!1,a,s=0){if(524288&e.flags&&134348796&t.flags)return n===Zi&&!(131072&t.flags)&&dk(t,e,n)||dk(e,t,n,o?N:void 0)?-1:(o&&B(e,t,e,t,a),0);const c=mk(e,!1);let _=mk(t,!0);if(c===_)return-1;if(n===eo)return c.flags!==_.flags?0:67358815&c.flags?-1:(J(c,_),$(c,_,!1,0,r));if(262144&c.flags&&md(c)===_)return-1;if(470302716&c.flags&&1048576&_.flags){const e=_.types,t=2===e.length&&98304&e[0].flags?e[1]:3===e.length&&98304&e[0].flags&&98304&e[1].flags?e[2]:void 0;if(t&&!(98304&t.flags)&&(_=mk(t,!0),c===_))return-1}if(n===Zi&&!(131072&_.flags)&&dk(_,c,n)||dk(c,_,n,o?N:void 0))return-1;if(469499904&c.flags||469499904&_.flags){if(!(2&s)&&SC(c)&&8192&Vx(c)&&function(e,t,r){var o;if(!qE(t)||!G&&4096&Vx(t))return!1;const a=!!(2048&Vx(e));if((n===Yi||n===Zi)&&(bA(qn,t)||!a&&sk(t)))return!1;let s,c=t;1048576&t.flags&&(c=KB(e,t,M)||function(e){if(PI(e,67108864)){const t=TA(e,(e=>!(134348796&e.flags)));if(!(131072&t.flags))return t}return e}(t),s=1048576&c.flags?c.types:[c]);for(const t of fd(e))if(U(t,e.symbol)&&!fk(e,t)){if(!UE(c,t.escapedName,a)){if(r){const n=TA(c,qE);if(!i)return In.fail();if(dN(i)||Ju(i)||Ju(i.parent)){t.valueDeclaration&&uN(t.valueDeclaration)&&wp(i)===wp(t.valueDeclaration.name)&&(i=t.valueDeclaration.name);const e=Ms(t),r=tF(e,n),o=r?Ms(r):void 0;o?N(ja.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e,Bs(n),o):N(ja.Property_0_does_not_exist_on_type_1,e,Bs(n))}else{const r=(null==(o=e.symbol)?void 0:o.declarations)&&Oe(e.symbol.declarations);let a;if(t.valueDeclaration&&Ec(t.valueDeclaration,(e=>e===r))&&wp(r)===wp(i)){const e=t.valueDeclaration;In.assertNode(e,jl),i=e;const r=e.name;Tw(r)&&(a=nF(r,n))}void 0!==a?N(ja.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Ms(t),Bs(n),a):N(ja.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ms(t),Bs(n))}}return!0}if(s&&!M(x_(t),z(s,t.escapedName),3,r))return r&&D(ja.Types_of_property_0_are_incompatible,Ms(t)),!0}return!1}(c,_,o))return o&&P(a,c,t.aliasSymbol?t:_),0;const l=(n!==Zi||TS(c))&&!(2&s)&&136970236&c.flags&&c!==qn&&2621440&_.flags&&Dk(_)&&(fd(c).length>0||uR(c)),u=!!(2048&Vx(c));if(l&&!function(e,t,n){for(const r of fd(e))if(UE(t,r.escapedName,n))return!0;return!1}(c,_,u)){if(o){const n=Bs(e.aliasSymbol?e:c),r=Bs(t.aliasSymbol?t:_),i=qd(c,0),o=qd(c,1);i.length>0&&M(Tp(i[0]),_,1,!1)||o.length>0&&M(Tp(o[0]),_,1,!1)?N(ja.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,n,r):N(ja.Type_0_has_no_properties_in_common_with_type_1,n,r)}return 0}J(c,_);const d=1048576&c.flags&&c.types.length<4&&!(1048576&_.flags)||1048576&_.flags&&_.types.length<4&&!(469499904&c.flags)?q(c,_,o,s):$(c,_,o,s,r);if(d)return d}return o&&B(e,t,c,_,a),0}function B(e,t,n,r,o){var a,s;const c=!!yS(e),_=!!yS(t);n=e.aliasSymbol||c?e:n,r=t.aliasSymbol||_?t:r;let u=k>0;if(u&&k--,524288&n.flags&&524288&r.flags){const e=l;I(n,r,!0),l!==e&&(u=!!l)}if(524288&n.flags&&134348796&r.flags)!function(e,t){const n=zs(e.symbol)?Bs(e,e.symbol.valueDeclaration):Bs(e),r=zs(t.symbol)?Bs(t,t.symbol.valueDeclaration):Bs(t);($n===e&&Pt===t||Gn===e&&It===t||Xn===e&&Ut===t||Mm()===e&&qt===t)&&N(ja._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,r,n)}(n,r);else if(n.symbol&&524288&n.flags&&qn===n)N(ja.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(2048&Vx(n)&&2097152&r.flags){const e=r.types,t=pE(jB.IntrinsicAttributes,i),n=pE(jB.IntrinsicClassAttributes,i);if(!lc(t)&&!lc(n)&&(R(e,t)||R(e,n)))return}else l=Jd(l,t);if(o||!u){if(P(o,n,r),262144&n.flags&&(null==(s=null==(a=n.symbol)?void 0:a.declarations)?void 0:s[0])&&!md(n)){const e=ax(n);if(e.constraint=gx(r,Gb(n,e)),Td(e)){const e=Bs(r,n.symbol.declarations[0]);F(zf(n.symbol.declarations[0],ja.This_type_parameter_might_need_an_extends_0_constraint,e))}}}else m=[n,r]}function J(e,t){if(Ur&&3145728&e.flags&&3145728&t.flags){const n=e,r=t;if(n.objectFlags&r.objectFlags&32768)return;const o=n.types.length,a=r.types.length;o*a>1e6&&Ur.instant(Ur.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:e.id,sourceSize:o,targetId:t.id,targetSize:a,pos:null==i?void 0:i.pos,end:null==i?void 0:i.end})}}function z(e,t){return wh(Ke(e,((e,n)=>{var r;const i=3145728&(n=Nd(n)).flags?Ld(n,t):dd(n,t);return Se(e,i&&x_(i)||(null==(r=Zd(n,t))?void 0:r.type)||Tt)}),void 0)||r)}function U(e,t){return e.valueDeclaration&&t.valueDeclaration&&e.valueDeclaration.parent===t.valueDeclaration}function q(e,t,r,i){if(1048576&e.flags)return n===Zi?H(e,t,r&&!(134348796&e.flags),i):function(e,t,n,r){let i=-1;const o=e.types,a=function(e,t){return 1048576&e.flags&&1048576&t.flags&&!(32768&e.types[0].flags)&&32768&t.types[0].flags?EA(t,-32769):t}(e,t);for(let e=0;e=a.types.length&&o.length%a.types.length==0){const t=M(s,a.types[e%a.types.length],3,!1,void 0,r);if(t){i&=t;continue}}const c=M(s,t,1,n,void 0,r);if(!c)return 0;i&=c}return i}(e,t,r&&!(134348796&e.flags),i);if(1048576&t.flags)return W(cT(e),t,r&&!(134348796&e.flags)&&!(134348796&t.flags));if(2097152&t.flags)return function(e,t,n,r){let i=-1;const o=t.types;for(const t of o){const r=M(e,t,2,n,void 0,2);if(!r)return 0;i&=r}return i}(e,t,r);if(n===Zi&&134348796&t.flags){const n=K(e.types,(e=>465829888&e.flags?kd(e)||bt:e));if(n!==e.types){if(131072&(e=Yh(n)).flags)return 0;if(!(2097152&e.flags))return M(e,t,1,!1)||M(t,e,1,!1)}}return H(e,t,!1,1)}function Q(e,t){let n=-1;const r=e.types;for(const e of r){const r=W(e,t,!1);if(!r)return 0;n&=r}return n}function W(e,t,n){const r=t.types;if(1048576&t.flags){if(uh(r,e))return-1;const n=VC(t,e);if(n){const t=M(e,n,2,!1);if(t)return t}}for(const t of r){const n=M(e,t,2,!1);if(n)return n}if(n){const n=xk(e,t,M);n&&M(e,n,2,!0)}return 0}function H(e,t,n,r){const i=e.types;if(1048576&e.flags&&uh(i,t))return-1;const o=i.length;for(let e=0;e(C|=e?16:8,S(e))),3===b?(null==(s=Ur)||s.instant(Ur.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:e.id,sourceIdStack:p.map((e=>e.id)),targetId:t.id,targetIdStack:f.map((e=>e.id)),depth:y,targetDepth:v}),T=3):(null==(c=Ur)||c.push(Ur.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:e.id,targetId:t.id}),T=function(e,t,i,o){const a=w();let s=function(e,t,i,o,a){let s,c,_=!1,u=e.flags;const d=t.flags;if(n===eo){if(3145728&u){let n=Q(e,t);return n&&(n&=Q(t,e)),n}if(4194304&u)return M(e.type,t.type,3,!1);if(8388608&u&&(s=M(e.objectType,t.objectType,3,!1))&&(s&=M(e.indexType,t.indexType,3,!1)))return s;if(16777216&u&&e.root.isDistributive===t.root.isDistributive&&(s=M(e.checkType,t.checkType,3,!1))&&(s&=M(e.extendsType,t.extendsType,3,!1))&&(s&=M(Dv(e),Dv(t),3,!1))&&(s&=M(Ev(e),Ev(t),3,!1)))return s;if(33554432&u&&(s=M(e.baseType,t.baseType,3,!1))&&(s&=M(e.constraint,t.constraint,3,!1)))return s;if(!(524288&u))return 0}else if(3145728&u||3145728&d){if(s=q(e,t,i,o))return s;if(!(465829888&u||524288&u&&1048576&d||2097152&u&&467402752&d))return 0}if(17301504&u&&e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol&&!Ok(e)&&!Ok(t)){const n=Fk(e.aliasSymbol);if(n===r)return 1;const i=No(e.aliasSymbol).typeParameters,a=_p(i),s=h(lp(e.aliasTypeArguments,i,a,Sg(e.aliasSymbol.valueDeclaration)),lp(t.aliasTypeArguments,i,a,Sg(e.aliasSymbol.valueDeclaration)),n,o);if(void 0!==s)return s}if(LS(e)&&!e.target.readonly&&(s=M(cf(e)[0],t,1))||LS(t)&&(t.target.readonly||mS(kd(e)||e))&&(s=M(e,cf(t)[0],2)))return s;if(262144&d){if(32&Vx(e)&&!e.declaration.nameType&&M(Py(t),Lu(e),3)&&!(4&Vu(e))){const n=Ru(e),r=gv(t,Ou(e));if(s=M(n,r,3,i))return s}if(n===Zi&&262144&u){let n=gd(e);if(n&&Td(e))for(;n&&kA(n,(e=>!!(262144&e.flags)));){if(s=M(n,t,1,!1))return s;n=gd(n)}return 0}}else if(4194304&d){const n=t.type;if(4194304&u&&(s=M(n,e.type,3,!1)))return s;if(IS(n)){if(s=M(e,nh(n),2,i))return s}else{const r=yd(n);if(r){if(-1===M(e,Py(r,t.stringsOnly),2,i))return-1}else if(cd(n)){const t=Mu(n),r=Lu(n);let o;if(t&&zu(n)){const e=Nd(qu(n)),r=[];Pu(e,8576,!1,(e=>{r.push(gx(t,ox(n.mapper,Ou(n),e)))})),o=wh([...r,t])}else o=t||r;if(-1===M(e,o,2,i))return-1}}}else if(8388608&d){if(8388608&u){if((s=M(e.objectType,t.objectType,3,i))&&(s&=M(e.indexType,t.indexType,3,i)),s)return s;i&&(c=l)}if(n===Yi||n===Zi){const n=t.objectType,r=t.indexType,_=kd(n)||n,u=kd(r)||r;if(!rv(_)&&!ov(u)){const t=vv(_,u,4|(_!==n?2:0));if(t){if(i&&c&&A(a),s=M(e,t,2,i,void 0,o))return s;i&&c&&l&&(l=g([c])<=g([l])?c:l)}}}i&&(c=void 0)}else if(cd(t)&&n!==eo){const n=!!t.declaration.nameType,r=Ru(t),o=Vu(t);if(!(8&o)){if(!n&&8388608&r.flags&&r.objectType===e&&r.indexType===Ou(t))return-1;if(!cd(e)){const r=n?Mu(t):Lu(t),_=Py(e,void 0,!0),u=4&o,d=u?bu(r,_):void 0;if(u?!(131072&d.flags):M(r,_,3)){const o=Ru(t),a=Ou(t),c=EA(o,-98305);if(!n&&8388608&c.flags&&c.indexType===a){if(s=M(e,c.objectType,2,i))return s}else{const t=gv(e,n?d||r:d?Yh([d,a]):a);if(s=M(t,o,3,i))return s}}c=l,A(a)}}}else if(16777216&d){if(Yk(t,f,v,10))return 3;const n=t;if(!n.root.inferTypeParameters&&!function(e){return e.isDistributive&&(_x(e.checkType,e.node.trueType)||_x(e.checkType,e.node.falseType))}(n.root)){const t=!Ix(yx(n.checkType),yx(n.extendsType)),r=!t&&Ix(vx(n.checkType),vx(n.extendsType));if((s=t?-1:M(e,Dv(n),2,!1,void 0,o))&&(s&=r?-1:M(e,Ev(n),2,!1,void 0,o),s))return s}}else if(134217728&d){if(134217728&u){if(n===Zi)return function(e,t){const n=e.texts[0],r=t.texts[0],i=e.texts[e.texts.length-1],o=t.texts[t.texts.length-1],a=Math.min(n.length,r.length),s=Math.min(i.length,o.length);return n.slice(0,a)!==r.slice(0,a)||i.slice(i.length-s)!==o.slice(o.length-s)}(e,t)?0:-1;gx(e,dn)}if(hC(e,t))return-1}else if(268435456&t.flags&&!(268435456&e.flags)&&mC(e,t))return-1;if(8650752&u){if(!(8388608&u&&8388608&d)){const n=md(e)||bt;if(s=M(n,t,1,!1,void 0,o))return s;if(s=M(Gl(n,e),t,1,i&&n!==bt&&!(d&u&262144),void 0,o))return s;if(Ed(e)){const n=md(e.indexType);if(n&&(s=M(gv(e.objectType,n),t,1,i)))return s}}}else if(4194304&u){if(s=M(Zt,t,1,i))return s}else if(134217728&u&&!(524288&d)){if(!(134217728&d)){const n=kd(e);if(n&&n!==e&&(s=M(n,t,1,i)))return s}}else if(268435456&u)if(268435456&d){if(e.symbol!==t.symbol)return 0;if(s=M(e.type,t.type,3,i))return s}else{const n=kd(e);if(n&&(s=M(n,t,1,i)))return s}else if(16777216&u){if(Yk(e,p,y,10))return 3;if(16777216&d){const n=e.root.inferTypeParameters;let r,o=e.extendsType;if(n){const e=jT(n,void 0,0,L);bC(e.inferences,t.extendsType,o,1536),o=gx(o,e.mapper),r=e.mapper}if(Cx(o,t.extendsType)&&(M(e.checkType,t.checkType,3)||M(t.checkType,e.checkType,3))&&((s=M(gx(Dv(e),r),Dv(t),3,i))&&(s&=M(Ev(e),Ev(t),3,i)),s))return s}else{const n=Td(e)?bd(e):void 0;if(n&&(s=M(n,t,1,i)))return s}const n=vd(e);if(n&&(s=M(n,t,1,i)))return s}else{if(n!==Gi&&n!==Xi&&32&Vx(m=t)&&4&Vu(m)&&sk(e))return-1;if(cd(t))return cd(e)&&(s=function(e,t,r){if(n===Zi||(n===eo?Vu(e)===Vu(t):Zu(e)<=Zu(t))){let n;if(n=M(Lu(t),gx(Lu(e),Zu(e)<0?gn:dn),3,r)){const i=jb([Ou(e)],[Ou(t)]);if(gx(Mu(e),i)===gx(Mu(t),i))return n&M(gx(Ru(e),i),Ru(t),3,r)}}return 0}(e,t,i))?s:0;const p=!!(134348796&u);if(n!==eo)u=(e=Nd(e)).flags;else if(cd(e))return 0;if(4&Vx(e)&&4&Vx(t)&&e.target===t.target&&!IS(e)&&!Ok(e)&&!Ok(t)){if(bS(e))return-1;const n=Nk(e.target);if(n===r)return 1;const i=h(cf(e),cf(t),n,o);if(void 0!==i)return i}else{if(lS(t)?fS(e):_S(t)&&IS(e)&&!e.target.readonly)return n!==eo?M(Gd(e,It)||_t,Gd(t,It)||_t,3,i):0;if((n===Gi||n===Xi)&&sk(t)&&8192&Vx(t)&&!sk(e))return 0}if(2621440&u&&524288&d){const n=i&&l===a.errorInfo&&!p;if(s=Z(e,t,n,void 0,!1,o),s&&(s&=ee(e,t,0,n,o),s&&(s&=ee(e,t,1,n,o),s&&(s&=ae(e,t,p,n,o)))),_&&s)l=c||l||a.errorInfo;else if(s)return s}if(2621440&u&&1048576&d){const r=EA(t,36175872);if(1048576&r.flags){const t=function(e,t){var r;const i=zC(fd(e),t);if(!i)return 0;let o=1;for(const n of i)if(o*=AA(k_(n)),o>25)return null==(r=Ur)||r.instant(Ur.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:e.id,targetId:t.id,numCombinations:o}),0;const a=Array(i.length),s=new Set;for(let e=0;er[o]),!1,0,j||n===Zi))continue e}we(_,a,Mt),o=!0}if(!o)return 0}let l=-1;for(const t of _)if(l&=Z(e,t,!1,s,!1,0),l&&(l&=ee(e,t,0,!1,0),l&&(l&=ee(e,t,1,!1,0),!l||IS(e)&&IS(t)||(l&=ae(e,t,!1,!1,0)))),!l)return l;return l}(e,r);if(t)return t}}}var m;return 0;function g(e){return e?Ke(e,((e,t)=>e+1+g(t.next)),0):0}function h(e,t,o,u){if(s=function(e=r,t=r,i=r,o,a){if(e.length!==t.length&&n===eo)return 0;const s=e.length<=t.length?e.length:t.length;let c=-1;for(let r=0;r!!(24&e))))return c=void 0,void A(a);const d=t&&function(e,t){for(let n=0;n0==(7&e)))))return 0;c=l,A(a)}}}(e,t,i,o,a);if(n!==eo){if(!s&&(2097152&e.flags||262144&e.flags&&1048576&t.flags)){const n=function(e,t){let n,r=!1;for(const i of e)if(465829888&i.flags){let e=md(i);for(;e&&21233664&e.flags;)e=md(e);e&&(n=Se(n,e),t&&(n=Se(n,i)))}else(469892092&i.flags||ck(i))&&(r=!0);if(n&&(t||r)){if(r)for(const t of e)(469892092&t.flags||ck(t))&&(n=Se(n,t));return mk(Yh(n),!1)}}(2097152&e.flags?e.types:[e],!!(1048576&t.flags));n&&SA(n,(t=>t!==e))&&(s=M(n,t,1,!1,void 0,o))}s&&!(2&o)&&2097152&t.flags&&!rv(t)&&2621440&e.flags?(s&=Z(e,t,i,void 0,!1,0),s&&SC(e)&&8192&Vx(e)&&(s&=ae(e,t,!1,i,0))):s&&jv(t)&&!fS(t)&&2097152&e.flags&&3670016&Nd(e).flags&&!_e(e.types,(e=>e===t||!!(262144&Vx(e))))&&(s&=Z(e,t,i,void 0,!0,o))}return s&&A(a),s}(e,t,i,o),null==(_=Ur)||_.pop()),zt&&(zt=S),1&a&&y--,2&a&&v--,b=k,T){if(-1===T||0===y&&0===v){if(-1===T||3===T)for(let e=g;e{return!!(16&Px(t))&&(n=e,r=Kk(t),!Qk(n,(e=>{const t=Kk(e);return!!t&&w_(t,r)})));var n,r}))}(r,i))return a&&N(ja.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Ms(i),Bs(Kk(r)||e),Bs(Kk(i)||t)),0}else if(16&_)return a&&N(ja.Property_0_is_protected_in_type_1_but_public_in_type_2,Ms(i),Bs(e),Bs(t)),0;if(n===Xi&&TI(r)&&!TI(i))return 0;const u=function(e,t,n,r,i){const o=j&&!!(48&Fx(t)),a=Cc(k_(t),!1,o);return M(n(e),a,3,r,void 0,i)}(r,i,o,a,s);return u?!c&&16777216&r.flags&&106500&i.flags&&!(16777216&i.flags)?(a&&N(ja.Property_0_is_optional_in_type_1_but_required_in_type_2,Ms(i),Bs(e),Bs(t)),0):u:(a&&D(ja.Types_of_property_0_are_incompatible,Ms(i)),0)}function Z(e,t,r,i,o,s){if(n===eo)return function(e,t,n){if(!(524288&e.flags&&524288&t.flags))return 0;const r=X(ud(e),n),i=X(ud(t),n);if(r.length!==i.length)return 0;let o=-1;for(const e of r){const n=dd(t,e.escapedName);if(!n)return 0;const r=rS(e,n,M);if(!r)return 0;o&=r}return o}(e,t,i);let c=-1;if(IS(t)){if(fS(e)){if(!t.target.readonly&&(lS(e)||IS(e)&&e.target.readonly))return 0;const n=_f(e),o=_f(t),a=IS(e)?4&e.target.combinedFlags:4,_=4&t.target.combinedFlags,l=IS(e)?e.target.minLength:0,u=t.target.minLength;if(!a&&n!(11&e)));return n>=0?n:e.elementFlags.length}(t.target),m=sh(t.target,11),g=t.target.hasRestElement;let h=!!i;for(let a=0;a=f?o-1-Math.min(l,m):a,y=t.target.elementFlags[u];if(8&y&&!(8&_))return r&&N(ja.Source_provides_no_match_for_variadic_element_at_position_0_in_target,u),0;if(8&_&&!(12&y))return r&&N(ja.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,a,u),0;if(1&y&&!(1&_))return r&&N(ja.Source_provides_no_match_for_required_element_at_position_0_in_target,u),0;if(h&&((12&_||12&y)&&(h=!1),h&&(null==i?void 0:i.has(""+a))))continue;const v=$S(d[a],!!(_&y&2)),b=p[u],x=M(v,8&_&&4&y?kg(b):$S(b,!!(2&y)),3,r,void 0,s);if(!x)return r&&(o>1||n>1)&&(g&&a>=f&&l>=m&&f!==n-m-1?D(ja.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,f,n-m-1,u):D(ja.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,a,u)),0;c&=x}return c}if(12&t.target.combinedFlags)return 0}const _=!(n!==Gi&&n!==Xi||SC(e)||bS(e)||IS(e)),u=_C(e,t,_,!1);if(u)return r&&function(e,t){const n=Ud(e,0),r=Ud(e,1),i=ud(e);return!((n.length||r.length)&&!i.length&&!(qd(t,0).length&&n.length||qd(t,1).length&&r.length))}(e,t)&&function(e,t,n,r){let i=!1;if(n.valueDeclaration&&zc(n.valueDeclaration)&&Cw(n.valueDeclaration.name)&&e.symbol&&32&e.symbol.flags){const r=n.valueDeclaration.name.escapedText,i=Iy(e.symbol,r);if(i&&zd(e,i)){const n=dC.getDeclarationName(e.symbol.valueDeclaration),i=dC.getDeclarationName(t.symbol.valueDeclaration);return void N(ja.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,Uo(r),Uo(""===n.escapedText?wB:n),Uo(""===i.escapedText?wB:i))}}const o=Ze(cC(e,t,r,!1));if((!a||a.code!==ja.Class_0_incorrectly_implements_interface_1.code&&a.code!==ja.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(i=!0),1===o.length){const r=Ms(n,void 0,0,20);N(ja.Property_0_is_missing_in_type_1_but_required_in_type_2,r,...js(e,t)),S(n.declarations)&&F(zf(n.declarations[0],ja._0_is_declared_here,r)),i&&l&&k++}else I(e,t,!1)&&(o.length>5?N(ja.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Bs(e),Bs(t),V(o.slice(0,4),(e=>Ms(e))).join(", "),o.length-4):N(ja.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Bs(e),Bs(t),V(o,(e=>Ms(e))).join(", ")),i&&l&&k++)}(e,t,u,_),0;if(SC(t))for(const n of X(fd(e),i))if(!(dd(t,n.escapedName)||32768&x_(n).flags))return r&&N(ja.Property_0_does_not_exist_on_type_1,Ms(n),Bs(t)),0;const d=fd(t),p=IS(e)&&IS(t);for(const a of X(d,i)){const i=a.escapedName;if(!(4194304&a.flags)&&(!p||MT(i)||"length"===i)&&(!o||16777216&a.flags)){const o=zd(e,i);if(o&&o!==a){const i=Y(e,t,o,a,k_,r,s,n===Zi);if(!i)return 0;c&=i}}}return c}function ee(e,t,r,i,o){var a,s;if(n===eo)return function(e,t,n){const r=qd(e,n),i=qd(t,n);if(r.length!==i.length)return 0;let o=-1;for(let e=0;eRs(e,void 0,262144,r);return N(ja.Type_0_is_not_assignable_to_type_1,e(t),e(c)),N(ja.Types_of_construct_signatures_are_incompatible),d}}else e:for(const t of u){const n=w();let a=i;for(const e of l){const r=ie(e,t,!0,a,o,p(e,t));if(r){d&=r,A(n);continue e}a=!1}return a&&N(ja.Type_0_provides_no_match_for_the_signature_1,Bs(e),Rs(t,void 0,void 0,r)),0}return d}function te(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>D(ja.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Bs(e),Bs(t)):(e,t)=>D(ja.Call_signature_return_types_0_and_1_are_incompatible,Bs(e),Bs(t))}function re(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>D(ja.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Bs(e),Bs(t)):(e,t)=>D(ja.Construct_signature_return_types_0_and_1_are_incompatible,Bs(e),Bs(t))}function ie(e,t,r,i,o,a){const s=n===Gi?16:n===Xi?24:0;return ik(r?Bp(e):e,r?Bp(t):t,s,i,N,a,(function(e,t,n){return M(e,t,3,n,void 0,o)}),dn)}function oe(e,t,n,r){const i=M(e.type,t.type,3,n,void 0,r);return!i&&n&&(e.keyType===t.keyType?N(ja._0_index_signatures_are_incompatible,Bs(e.keyType)):N(ja._0_and_1_index_signatures_are_incompatible,Bs(e.keyType),Bs(t.keyType))),i}function ae(e,t,r,i,o){if(n===eo)return function(e,t){const n=Hd(e),r=Hd(t);if(n.length!==r.length)return 0;for(const t of r){const n=$d(e,t.keyType);if(!n||!M(n.type,t.type,3)||n.isReadonly!==t.isReadonly)return 0}return-1}(e,t);const a=Hd(t),s=_e(a,(e=>e.keyType===Pt));let c=-1;for(const t of a){const a=n!==Xi&&!r&&s&&1&t.type.flags?-1:cd(e)&&s?M(Ru(e),t.type,3,i):se(e,t,i,o);if(!a)return 0;c&=a}return c}function se(e,t,r,i){const o=Yd(e,t.keyType);return o?oe(o,t,r,i):1&i||!(n!==Xi||8192&Vx(e))||!tT(e)?(r&&N(ja.Index_signature_for_type_0_is_missing_in_type_1,Bs(t.keyType),Bs(e)),0):function(e,t,n,r){let i=-1;const o=t.keyType,a=2097152&e.flags?pd(e):ud(e);for(const s of a)if(!fk(e,s)&&Kd(hy(s,8576),o)){const e=k_(s),a=M(ne||32768&e.flags||o===It||!(16777216&s.flags)?e:ZC(e,524288),t.type,3,n,void 0,r);if(!a)return n&&N(ja.Property_0_is_incompatible_with_index_signature,Ms(s)),0;i&=a}for(const a of Hd(e))if(Kd(a.keyType,o)){const e=oe(a,t,n,r);if(!e)return 0;i&=e}return i}(e,t,r,i)}}function yk(e){if(16&e.flags)return!1;if(3145728&e.flags)return!!T(e.types,yk);if(465829888&e.flags){const t=md(e);if(t&&t!==e)return yk(t)}return TS(e)||!!(134217728&e.flags)||!!(268435456&e.flags)}function vk(e,t){return IS(e)&&IS(t)?r:fd(t).filter((t=>bk(cc(e,t.escapedName),x_(t))))}function bk(e,t){return!!e&&!!t&&PI(e,32768)&&!!XS(t)}function xk(e,t,n=wx){return KB(e,t,n,!0)||function(e,t){const n=Vx(e);if(20&n&&1048576&t.flags)return P(t.types,(t=>{if(524288&t.flags){const r=n&Vx(t);if(4&r)return e.target===t.target;if(16&r)return!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}return!1}))}(e,t)||function(e,t){if(128&Vx(e)&&kA(t,hS))return P(t.types,(e=>!hS(e)))}(e,t)||function(e,t){let n=0;if(qd(e,n).length>0||(n=1,qd(e,n).length>0))return P(t.types,(e=>qd(e,n).length>0))}(e,t)||function(e,t){let n;if(!(406978556&e.flags)){let r=0;for(const i of t.types)if(!(406978556&i.flags)){const t=Yh([Py(e),Py(i)]);if(4194304&t.flags)return i;if(TS(t)||1048576&t.flags){const e=1048576&t.flags?J(t.types,TS):1;e>=r&&(n=i,r=e)}}}return n}(e,t)}function Ck(e,t,n,r,i){const o=e.types.map((e=>{}));for(const[r,a]of t){const t=Od(e,a);if(i&&t&&16&Fx(t))continue;let s=0;for(const t of e.types){const e=cc(t,a);e&&n(r(),e)?o[s]=void 0===o[s]||o[s]:o[s]=!1,s++}}const a=o.indexOf(!0);if(-1===a)return r;let s=o.indexOf(!0,a+1);for(;-1!==s;){if(!Cx(e.types[a],e.types[s]))return r;s=o.indexOf(!0,s+1)}return e.types[a]}function Dk(e){if(524288&e.flags){const t=ld(e);return 0===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.indexInfos.length&&t.properties.length>0&&F(t.properties,(e=>!!(16777216&e.flags)))}return!!(2097152&e.flags)&&F(e.types,Dk)}function Nk(e){return e===Wn||e===Hn||8&e.objectFlags?k:Pk(e.symbol,e.typeParameters)}function Fk(e){return Pk(e,No(e).typeParameters)}function Pk(e,t=r){var n,i;const o=No(e);if(!o.variances){null==(n=Ur)||n.push(Ur.Phase.CheckTypes,"getVariancesWorker",{arity:t.length,id:_h(ul(e))}),o.variances=r;const a=[];for(const n of t){const t=Lk(n);let r=65536&t?32768&t?0:1:32768&t?2:void 0;if(void 0===r){let t=!1,i=!1;const o=zt;zt=e=>e?i=!0:t=!0;const a=Ik(e,n,On),s=Ik(e,n,Ln);r=(Ix(s,a)?1:0)|(Ix(a,s)?2:0),3===r&&Ix(Ik(e,n,Mn),a)&&(r=4),zt=o,(t||i)&&(t&&(r|=8),i&&(r|=16))}a.push(r)}o.variances=a,null==(i=Ur)||i.pop({variances:a.map(In.formatVariance)})}return o.variances}function Ik(e,t,n){const r=Gb(t,n),i=ul(e);if(lc(i))return i;const o=524288&e.flags?mf(e,Fb(No(e).typeParameters,r)):rf(i,Fb(i.typeParameters,r));return nt.add(_h(o)),o}function Ok(e){return nt.has(_h(e))}function Lk(e){var t;return 100352&Ke(null==(t=e.symbol)?void 0:t.declarations,((e,t)=>e|bb(t)),0)}function Mk(e){return 262144&e.flags&&!gd(e)}function zk(e){return function(e){return!!(4&Vx(e))&&!e.node}(e)&&_e(cf(e),(e=>!!(262144&e.flags)||zk(e)))}function Vk(e,t,n,r,i){if(r===eo&&e.id>t.id){const n=e;e=t,t=n}const o=n?":"+n:"";return zk(e)&&zk(t)?function(e,t,n,r){const i=[];let o="";const a=c(e,0),s=c(t,0);return`${o}${a},${s}${n}`;function c(e,t=0){let n=""+e.target.id;for(const a of cf(e)){if(262144&a.flags){if(r||Mk(a)){let e=i.indexOf(a);e<0&&(e=i.length,i.push(a)),n+="="+e;continue}o="*"}else if(t<4&&zk(a)){n+="<"+c(a,t+1)+">";continue}n+="-"+a.id}return n}}(e,t,o,i):`${e.id},${t.id}${o}`}function Qk(e,t){if(!(6&Fx(e)))return t(e);for(const n of e.links.containingType.types){const r=zd(n,e.escapedName),i=r&&Qk(r,t);if(i)return i}}function Kk(e){return e.parent&&32&e.parent.flags?ul(Ya(e)):void 0}function Wk(e){const t=Kk(e),n=t&&X_(t)[0];return n&&cc(n,e.escapedName)}function Gk(e,t,n){return Qk(t,(t=>!!(16&Px(t,n))&&!w_(e,Kk(t))))?void 0:e}function Yk(e,t,n,r=3){if(n>=r){if(2097152&e.flags)return _e(e.types,(e=>Yk(e,t,n,r)));const i=Zk(e);let o=0,a=0;for(let e=0;eZk(e)===i)):Zk(n)===i){if(n.id>=a&&(o++,o>=r))return!0;a=n.id}}}return!1}function Zk(e){if(524288&e.flags&&!TC(e)){if(Vx(e)&&e.node)return e.node;if(e.symbol&&!(16&Vx(e)&&32&e.symbol.flags))return e.symbol;if(IS(e))return e.target}if(262144&e.flags)return e.symbol;if(8388608&e.flags){do{e=e.objectType}while(8388608&e.flags);return e}return 16777216&e.flags?e.root:e}function rS(e,t,n){if(e===t)return-1;const r=24&Px(e);if(r!==(24&Px(t)))return 0;if(r){if(vM(e)!==vM(t))return 0}else if((16777216&e.flags)!=(16777216&t.flags))return 0;return TI(e)!==TI(t)?0:n(x_(e),x_(t))}function oS(e,t,n,r,i,o){if(e===t)return-1;if(!function(e,t,n){const r=$P(e),i=$P(t),o=GP(e),a=GP(t),s=XP(e),c=XP(t);return r===i&&o===a&&s===c||!!(n&&o<=a)}(e,t,n))return 0;if(S(e.typeParameters)!==S(t.typeParameters))return 0;if(t.typeParameters){const n=jb(e.typeParameters,t.typeParameters);for(let r=0;re|(1048576&t.flags?sS(t.types):t.flags)),0)}function cS(e){if(1===e.length)return e[0];const t=j?K(e,(e=>TA(e,(e=>!(98304&e.flags))))):e,n=function(e){let t;for(const n of e)if(!(131072&n.flags)){const e=wS(n);if(null!=t||(t=e),e===n||e!==t)return!1}return!0}(t)?wh(t):Ke(t,((e,t)=>Ex(e,t)?t:e));return t===e?n:zS(n,98304&sS(e))}function _S(e){return!!(4&Vx(e))&&(e.target===Wn||e.target===Hn)}function lS(e){return!!(4&Vx(e))&&e.target===Hn}function fS(e){return _S(e)||IS(e)}function mS(e){return _S(e)&&!lS(e)||IS(e)&&!e.target.readonly}function gS(e){return _S(e)?cf(e)[0]:void 0}function hS(e){return _S(e)||!(98304&e.flags)&&Ix(e,nr)}function yS(e){if(!(4&Vx(e)&&3&Vx(e.target)))return;if(33554432&Vx(e))return 67108864&Vx(e)?e.cachedEquivalentBaseType:void 0;e.objectFlags|=33554432;const t=e.target;if(1&Vx(t)){const e=Q_(t);if(e&&79!==e.expression.kind&&208!==e.expression.kind)return}const n=X_(t);if(1!==n.length)return;if(Hl(e.symbol).size)return;let r=S(t.typeParameters)?gx(n[0],jb(t.typeParameters,cf(e).slice(0,t.typeParameters.length))):n[0];return S(cf(e))>S(t.typeParameters)&&(r=Gl(r,je(cf(e)))),e.objectFlags|=67108864,e.cachedEquivalentBaseType=r}function vS(e){return j?e===Wt:e===Ct}function bS(e){const t=gS(e);return!!t&&vS(t)}function xS(e){return IS(e)||!!zd(e,"0")}function kS(e){return hS(e)||xS(e)}function SS(e){return!(240544&e.flags)}function TS(e){return!!(109472&e.flags)}function CS(e){const t=Sd(e);return 2097152&t.flags?_e(t.types,TS):TS(t)}function AS(e){return!!(16&e.flags)||(1048576&e.flags?!!(1024&e.flags)||F(e.types,TS):TS(e))}function wS(e){return 1056&e.flags?il(e):402653312&e.flags?Pt:256&e.flags?It:2048&e.flags?Ot:512&e.flags?Ut:1048576&e.flags?function(e){var t;const n="B"+_h(e);return null!=(t=io(n))?t:oo(n,wA(e,wS))}(e):e}function DS(e){return 402653312&e.flags?Pt:288&e.flags?It:2048&e.flags?Ot:512&e.flags?Ut:1048576&e.flags?wA(e,DS):e}function ES(e){return 1056&e.flags&&rb(e)?il(e):128&e.flags&&rb(e)?Pt:256&e.flags&&rb(e)?It:2048&e.flags&&rb(e)?Ot:512&e.flags&&rb(e)?Ut:1048576&e.flags?wA(e,ES):e}function NS(e){return 8192&e.flags?qt:1048576&e.flags?wA(e,NS):e}function FS(e,t){return XI(e,t)||(e=NS(ES(e))),nb(e)}function PS(e,t,n,r){return e&&TS(e)&&(e=FS(e,t?rM(n,t,r):void 0)),e}function IS(e){return!!(4&Vx(e)&&8&e.target.objectFlags)}function OS(e){return IS(e)&&!!(8&e.target.combinedFlags)}function LS(e){return OS(e)&&1===e.target.elementFlags.length}function MS(e){return RS(e,e.target.fixedLength)}function RS(e,t,n=0,r=!1,i=!1){const o=_f(e)-n;if(t!!(4194304&YC(e))))}function JS(e){return 4&e.flags?ki:8&e.flags?Si:64&e.flags?Ti:e===Rt||e===Lt||114691&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&BS(e)?e:Qt}function zS(e,t){const n=t&~e.flags&98304;return 0===n?e:wh(32768===n?[e,Tt]:65536===n?[e,Et]:[e,Tt,Et])}function US(e,t=!1){In.assert(j);const n=t?wt:Tt;return e===n||1048576&e.flags&&e.types[0]===n?e:wh([e,n])}function qS(e){return j?eA(e,2097152):e}function QS(e){return j?wh([e,Dt]):e}function KS(e){return j?CA(e,Dt):e}function WS(e,t,n){return n?j_(t)?US(e):QS(e):e}function HS(e,t){return B_(t)?qS(e):M_(t)?KS(e):e}function $S(e,t){return ne&&t?CA(e,At):e}function XS(e){return e===At||!!(1048576&e.flags)&&e.types[0]===At}function YS(e){return ne?CA(e,At):ZC(e,524288)}function tT(e){const t=Vx(e);return 2097152&e.flags?F(e.types,tT):!(!e.symbol||0==(7040&e.symbol.flags)||32&e.symbol.flags||uR(e))||!!(4194304&t)||!!(1024&t&&tT(e.source))}function nT(e,t){const n=vo(e.flags,e.escapedName,8&Fx(e));n.declarations=e.declarations,n.parent=e.parent,n.links.type=t,n.links.target=e,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration);const r=No(e).nameType;return r&&(n.links.nameType=r),n}function cT(e){if(!(SC(e)&&8192&Vx(e)))return e;const t=e.regularType;if(t)return t;const n=e,r=function(e,t){const n=ip();for(const r of ud(e)){const e=x_(r),i=t(e);n.set(r.escapedName,i===e?r:nT(r,i))}return n}(e,cT),i=hs(n.symbol,r,n.callSignatures,n.constructSignatures,n.indexInfos);return i.flags=n.flags,i.objectFlags|=-8193&n.objectFlags,e.regularType=i,i}function uT(e,t,n){return{parent:e,propertyName:t,siblings:n,resolvedProperties:void 0}}function hT(e){if(!e.siblings){const t=[];for(const n of hT(e.parent))if(SC(n)){const r=dd(n,e.propertyName);r&&xA(x_(r),(e=>{t.push(e)}))}e.siblings=t}return e.siblings}function yT(e){if(!e.resolvedProperties){const t=new Map;for(const n of hT(e))if(SC(n)&&!(2097152&Vx(n)))for(const e of fd(n))t.set(e.escapedName,e);e.resolvedProperties=Ze(t.values())}return e.resolvedProperties}function bT(e,t){if(!(4&e.flags))return e;const n=x_(e),r=CT(n,t&&uT(t,e.escapedName,void 0));return r===n?e:nT(e,r)}function ST(e){const t=tt.get(e.escapedName);if(t)return t;const n=nT(e,wt);return n.flags|=16777216,tt.set(e.escapedName,n),n}function TT(e){return CT(e,void 0)}function CT(e,t){if(196608&Vx(e)){if(void 0===t&&e.widened)return e.widened;let n;if(98305&e.flags)n=_t;else if(SC(e))n=function(e,t){const n=ip();for(const r of ud(e))n.set(r.escapedName,bT(r,t));if(t)for(const e of yT(t))n.has(e.escapedName)||n.set(e.escapedName,ST(e));const i=hs(e.symbol,n,r,r,K(Hd(e),(e=>qp(e.keyType,TT(e.type),e.isReadonly))));return i.objectFlags|=266240&Vx(e),i}(e,t);else if(1048576&e.flags){const r=t||uT(void 0,void 0,e.types),i=K(e.types,(e=>98304&e.flags?e:CT(e,r)));n=wh(i,_e(i,sk)?2:1)}else 2097152&e.flags?n=Yh(K(e.types,TT)):fS(e)&&(n=rf(e.target,K(cf(e),TT)));return n&&void 0===t&&(e.widened=n),n||e}return e}function AT(e){let t=!1;if(65536&Vx(e)){if(1048576&e.flags)if(_e(e.types,sk))t=!0;else for(const n of e.types)AT(n)&&(t=!0);if(fS(e))for(const n of cf(e))AT(n)&&(t=!0);if(SC(e))for(const n of ud(e)){const e=x_(n);65536&Vx(e)&&(AT(e)||uo(n.valueDeclaration,ja.Object_literal_s_property_0_implicitly_has_an_1_type,Ms(n),Bs(TT(e))),t=!0)}}return t}function DT(e,t,n){const r=Bs(TT(t));if(Sg(e)&&!eT(wp(e),C))return;let i;switch(e.kind){case 223:case 169:case 168:i=G?ja.Member_0_implicitly_has_an_1_type:ja.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 166:const t=e;if(Tw(t.name)){const n=Lc(t.name);if((Yw(t.parent)||Kw(t.parent)||rD(t.parent))&&t.parent.parameters.indexOf(t)>-1&&(Ro(t,t.name.escapedText,788968,void 0,t.name.escapedText,!0)||n&&Xx(n))){const n="arg"+t.parent.parameters.indexOf(t),r=Lf(t.name)+(t.dotDotDotToken?"[]":"");return void fo(G,e,ja.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,n,r)}}i=e.dotDotDotToken?G?ja.Rest_parameter_0_implicitly_has_an_any_type:ja.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:G?ja.Parameter_0_implicitly_has_an_1_type:ja.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 205:if(i=ja.Binding_element_0_implicitly_has_an_1_type,!G)return;break;case 320:return void uo(e,ja.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);case 326:return void(G&&ZN(e.parent)&&uo(e.parent.tagName,ja.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,r));case 259:case 171:case 170:case 174:case 175:case 215:case 216:if(G&&!e.name)return void uo(e,3===n?ja.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:ja.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);i=G?3===n?ja._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:ja._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:ja._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 197:return void(G&&uo(e,ja.Mapped_object_type_implicitly_has_an_any_template_type));default:i=G?ja.Variable_0_implicitly_has_an_1_type:ja.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}fo(G,e,i,Lf(qc(e)),r)}function ET(e,t,n){_((()=>{!(G&&65536&Vx(t))||n&&LD(e)||AT(t)||DT(e,t,n)}))}function PT(e,t,n){const r=$P(e),i=$P(t),o=YP(e),a=YP(t),s=a?i-1:i,c=o?s:Math.min(r,s),_=xp(e);if(_){const e=xp(t);e&&n(_,e)}for(let r=0;re.typeParameter)),V(e.inferences,((t,n)=>()=>(t.isFixed||(function(e){if(e.intraExpressionInferenceSites){for(const{node:t,type:n}of e.intraExpressionInferenceSites){const r=171===t.kind?Fw(t,2):sD(t,2);r&&bC(e.inferences,n,r)}e.intraExpressionInferenceSites=void 0}}(e),QT(e.inferences),t.isFixed=!0),CC(e,n)))))}(i),i.nonFixingMapper=function(e){return ex(V(e.inferences,(e=>e.typeParameter)),V(e.inferences,((t,n)=>()=>CC(e,n))))}(i),i}function QT(e){for(const t of e)t.isFixed||(t.inferredType=void 0)}function YT(e,t,n){var r;(null!=(r=e.intraExpressionInferenceSites)?r:e.intraExpressionInferenceSites=[]).push({node:t,type:n})}function ZT(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function eC(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed,impliedArity:e.impliedArity}}function tC(e){return e&&e.mapper}function nC(e){const t=Vx(e);if(524288&t)return!!(1048576&t);const n=!!(465829888&e.flags||524288&e.flags&&!rC(e)&&(4&t&&(e.node||T(cf(e),nC))||16&t&&e.symbol&&14384&e.symbol.flags&&e.symbol.declarations||12583968&t)||3145728&e.flags&&!(1024&e.flags)&&!rC(e)&&_e(e.types,nC));return 3899393&e.flags&&(e.objectFlags|=524288|(n?1048576:0)),n}function rC(e){if(e.aliasSymbol&&!e.aliasTypeArguments){const t=np(e.aliasSymbol,262);return!(!t||!Ec(t.parent,(e=>308===e.kind||264!==e.kind&&"quit")))}return!1}function iC(e,t,n=0){return!!(e===t||3145728&e.flags&&_e(e.types,(e=>iC(e,t,n)))||n<3&&16777216&e.flags&&(iC(Dv(e),t,n+1)||iC(Ev(e),t,n+1)))}function oC(e,t,n){if(ci)return;const r=e.id+","+t.id+","+n.id;if(si.has(r))return si.get(r);ci=!0;const i=function(e,t,n){if(!($d(e,Pt)||0!==fd(e).length&&aC(e)))return;if(_S(e))return kg(sC(cf(e)[0],t,n),lS(e));if(IS(e))return Vg(V(cf(e),(e=>sC(e,t,n))),4&Vu(t)?K(e.target.elementFlags,(e=>2&e?1:e)):e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations);const r=us(1040,void 0);return r.source=e,r.mappedType=t,r.constraintType=n,r}(e,t,n);return ci=!1,si.set(r,i),i}function aC(e){return!(262144&Vx(e))||SC(e)&&_e(fd(e),(e=>aC(x_(e))))||IS(e)&&_e(cf(e),aC)}function sC(e,t,n){const r=gv(n.type,Ou(t)),i=Ru(t),o=ZT(r);return bC([o],e,i),lC(o)||bt}function*cC(e,t,n,r){const i=fd(t);for(const t of i)if(!Ol(t)&&(n||!(16777216&t.flags||48&Fx(t)))){const n=zd(e,t.escapedName);if(n){if(r){const e=x_(t);if(109472&e.flags){const r=x_(n);1&r.flags||nb(r)===nb(e)||(yield t)}}}else yield t}}function _C(e,t,n,r){return Le(cC(e,t,n,r))}function lC(e){return e.candidates?wh(e.candidates,2):e.contraCandidates?Yh(e.contraCandidates):void 0}function uC(e){return!!Fo(e).skipDirectInference}function pC(e){return!(!e.symbol||!_e(e.symbol.declarations,uC))}function fC(e,t){if(""===e)return!1;const n=+e;return isFinite(n)&&(!t||""+n===e)}function mC(e,t){if(1&t.flags)return!0;if(134217732&t.flags)return Ix(e,t);if(268435456&t.flags){const n=[];for(;268435456&t.flags;)n.unshift(t.symbol),t=t.type;return Ke(n,((e,t)=>By(t,e)),e)===e&&mC(e,t)}return!1}function gC(e,t){return 128&e.flags?vC([e.value],r,t):134217728&e.flags?B(e.texts,t.texts)?V(e.types,yC):vC(e.texts,e.types,t):void 0}function hC(e,t){const n=gC(e,t);return!!n&&F(n,((e,n)=>function(e,t){if(e===t||5&t.flags)return!0;if(128&e.flags){const n=e.value;return!!(8&t.flags&&fC(n,!1)||64&t.flags&&pT(n,!1)||98816&t.flags&&n===t.intrinsicName||268435456&t.flags&&mC(ib(n),t))}if(134217728&e.flags){const n=e.texts;return 2===n.length&&""===n[0]&&""===n[1]&&Ix(e.types[0],t)}return Ix(e,t)}(e,t.types[n])))}function yC(e){return 402653317&e.flags?e:My(["",""],[e])}function vC(e,t,n){const r=e.length-1,i=e[0],o=e[r],a=n.texts,s=a.length-1,c=a[0],_=a[s];if(0===r&&i.length0){let t=d,r=p;for(;r=f(t).indexOf(n,r),!(r>=0);){if(t++,t===e.length)return;r=0}m(t,r),p+=n.length}else if(p{if(!(128&e.flags))return;const n=Pc(e.value),r=vo(4,n);r.links.type=_t,e.symbol&&(r.declarations=e.symbol.declarations,r.valueDeclaration=e.symbol.valueDeclaration),t.set(n,r)}));const n=4&e.flags?[qp(Pt,hn,!1)]:r;return hs(void 0,t,r,r,n)}(t),s.type);else if(8388608&t.flags&&8388608&s.flags)f(t.objectType,s.objectType),f(t.indexType,s.indexType);else if(268435456&t.flags&&268435456&s.flags)t.symbol===s.symbol&&f(t.type,s.type);else if(33554432&t.flags)f(t.baseType,s),m(Df(t),s,4);else if(16777216&s.flags)g(t,s,T);else if(3145728&s.flags)k(t,s.types,s.flags);else if(1048576&t.flags){const e=t.types;for(const t of e)f(t,s)}else if(134217728&s.flags)!function(e,t){const n=gC(e,t),r=t.types;if(n||F(t.texts,(e=>0===e.length)))for(let e=0;ee|t.flags),0);if(!(4&r)){const n=t.value;296&r&&!fC(n,!0)&&(r&=-297),2112&r&&!pT(n,!0)&&(r&=-2113);const o=Ke(e,((e,i)=>i.flags&r?4&e.flags?e:4&i.flags?t:134217728&e.flags?e:134217728&i.flags&&hC(t,i)?t:268435456&e.flags?e:268435456&i.flags&&n===Jy(i.symbol,n)?t:128&e.flags?e:128&i.flags&&i.value===n?i:8&e.flags?e:8&i.flags?yb(+n):32&e.flags?e:32&i.flags?yb(+n):256&e.flags?e:256&i.flags&&i.value===+n?i:64&e.flags?e:64&i.flags?vb(dT(n)):2048&e.flags?e:2048&i.flags&&lT(i.value)===n?i:16&e.flags?e:16&i.flags?"true"===n?Bt:"false"===n?Lt:Ut:512&e.flags?e:512&i.flags&&i.intrinsicName===n?i:32768&e.flags?e:32768&i.flags&&i.intrinsicName===n?i:65536&e.flags?e:65536&i.flags&&i.intrinsicName===n?i:e:e),Qt);if(!(131072&o.flags)){f(o,i);continue}}}}f(t,i)}}(t,s);else{if(t=Md(t),!(512&i&&467927040&t.flags)){const e=Nd(t);if(e!==t&&d&&!(2621440&e.flags))return d=!1,f(e,s);t=e}2621440&t.flags&&g(t,s,C)}else y(cf(t),cf(s),Nk(t.target))}}}function m(e,t,n){const r=i;i|=n,f(e,t),i=r}function g(e,t,n){const r=e.id+","+t.id,i=s&&s.get(r);if(void 0!==i)return void(u=Math.min(u,i));(s||(s=new Map)).set(r,-1);const o=u;u=2048;const a=p,l=Zk(e),d=Zk(t);R(c,l)&&(p|=1),R(_,d)&&(p|=2),3!==p?((c||(c=[])).push(l),(_||(_=[])).push(d),n(e,t),_.pop(),c.pop()):u=-1,p=a,s.set(r,u),u=Math.min(u,o)}function h(e,t,n){let r,i;for(const o of t)for(const t of e)n(t,o)&&(f(t,o),r=De(r,t),i=De(i,o));return[r?z(e,(e=>!R(r,e))):e,i?z(t,(e=>!R(i,e))):t]}function y(e,t,n){const r=e.length!!x(e)));if(!e||t&&e!==t)return;t=e}return t}(t);return void(n&&m(e,n,1))}if(1===r&&!s){const e=H(o,((e,t)=>a[t]?void 0:e));if(e.length)return void f(wh(e),n)}}else for(const n of t)x(n)?r++:f(e,n);if(2097152&n?1===r:r>0)for(const n of t)x(n)&&m(e,n,1)}function S(e,t,n){if(1048576&n.flags){let r=!1;for(const i of n.types)r=S(e,t,i)||r;return r}if(4194304&n.flags){const r=x(n.type);if(r&&!r.isFixed&&!pC(e)){const i=oC(e,t,n);i&&m(i,r.typeParameter,262144&Vx(e)?16:8)}return!0}if(262144&n.flags){m(Py(e),n,32);const r=md(n);return r&&S(e,t,r)||f(wh(ue(V(fd(e),x_),V(Hd(e),(e=>e!==Zr?e.type:Qt)))),Ru(t)),!0}return!1}function T(e,t){16777216&e.flags?(f(e.checkType,t.checkType),f(e.extendsType,t.extendsType),f(Dv(e),Dv(t)),f(Ev(e),Ev(t))):function(e,t,n,r){const o=i;i|=r,k(e,t,n),i=o}(e,[Dv(t),Ev(t)],t.flags,o?64:0)}function C(e,t){var n,r;if(4&Vx(e)&&4&Vx(t)&&(e.target===t.target||_S(e)&&_S(t)))y(cf(e),cf(t),Nk(e.target));else{if(cd(e)&&cd(t)){f(Lu(e),Lu(t)),f(Ru(e),Ru(t));const n=Mu(e),r=Mu(t);n&&r&&f(n,r)}if(32&Vx(t)&&!t.declaration.nameType&&S(e,t,Lu(t)))return;if(!function(e,t){return IS(e)&&IS(t)?function(e,t){return!(8&t.target.combinedFlags)&&t.target.minLength>e.target.minLength||!t.target.hasRestElement&&(e.target.hasRestElement||t.target.fixedLength(12&e)==(12&o.target.elementFlags[t]))))){for(let t=0;t1){const t=z(e,TC);if(t.length){const n=wh(t,2);return ue(z(e,(e=>!TC(e))),[n])}}return e}(e.candidates),r=function(e){const t=gd(e);return!!t&&PI(16777216&t.flags?vd(t):t,406978556)}(e.typeParameter)||hd(e.typeParameter),i=!r&&e.topLevel&&(e.isFixed||!function(e,t){const n=kp(e);return n?!!n.type&&iC(n.type,t):iC(Tp(e),t)}(t,e.typeParameter)),o=r?K(n,nb):i?K(n,ES):n;return TT(416&e.priority?wh(o,2):cS(o))}(n,a):void 0;if(n.contraCandidates)o=s&&!(131072&s.flags)&&_e(n.contraCandidates,(e=>Ex(s,e)))&&F(e.inferences,(e=>e!==n&&gd(e.typeParameter)!==n.typeParameter||F(e.candidates,(e=>Ex(e,s)))))?s:function(e){return 416&e.priority?Yh(e.contraCandidates):Ke(e.contraCandidates,((e,t)=>Ex(t,e)?t:e))}(n);else if(s)o=s;else if(1&e.flags)o=Kt;else{const a=wd(n.typeParameter);a&&(o=gx(a,(r=function(e,t){const n=e.inferences.slice(t);return jb(V(n,(e=>e.typeParameter)),V(n,(()=>bt)))}(e,t),i=e.nonFixingMapper,r?tx(5,r,i):i)))}}else o=lC(n);n.inferredType=o||AC(!!(2&e.flags));const s=gd(n.typeParameter);if(s){const t=gx(s,e.nonFixingMapper);o&&e.compareTypes(o,Gl(t,o))||(n.inferredType=o=t)}}var r,i;return n.inferredType}function AC(e){return e?_t:bt}function wC(e){const t=[];for(let n=0;n183===e.kind||79!==e.kind&&163!==e.kind&&"quit"))}function FC(e){return!!(16777216&e.flags||Ec(e,(e=>FE(e)||aD(e))))}function IC(e,t,n,r){switch(e.kind){case 79:if(!qv(e)){const i=EC(e);return i!==rt?`${r?qB(r):"-1"}|${_h(t)}|${_h(n)}|${VB(i)}`:void 0}case 108:return`0|${r?qB(r):"-1"}|${_h(t)}|${_h(n)}`;case 232:case 214:return IC(e.expression,t,n,r);case 163:const i=IC(e.left,t,n,r);return i&&i+"."+e.right.escapedText;case 208:case 209:const o=LC(e);if(void 0!==o){const i=IC(e.expression,t,n,r);return i&&i+"."+o}break;case 203:case 204:case 259:case 215:case 216:case 171:return`${qB(e)}#${_h(t)}`}}function OC(e,t){switch(t.kind){case 214:case 232:return OC(e,t.expression);case 223:return Rb(t)&&OC(e,t.left)||QD(t)&&27===t.operatorToken.kind&&OC(e,t.right)}switch(e.kind){case 233:return 233===t.kind&&e.keywordToken===t.keywordToken&&e.name.escapedText===t.name.escapedText;case 79:case 80:return qv(e)?108===t.kind:79===t.kind&&EC(e)===EC(t)||(wE(t)||wD(t))&&rs(EC(e))===Ga(t);case 108:return 108===t.kind;case 106:return 106===t.kind;case 232:case 214:return OC(e.expression,t);case 208:case 209:const n=LC(e),r=Yx(t)?LC(t):void 0;return void 0!==n&&void 0!==r&&r===n&&OC(e.expression,t.expression);case 163:return Yx(t)&&e.right.escapedText===LC(t)&&OC(e.left,t.expression);case 223:return QD(e)&&27===e.operatorToken.kind&&OC(e.right,t)}return!1}function LC(e){if(ND(e))return e.name.escapedText;if(FD(e))return function(e){if(Ty(e.argumentExpression))return Pc(e.argumentExpression.text);if(zb(e.argumentExpression)){const t=Fa(e.argumentExpression,111551,!0);if(!t||!(YA(t)||8&t.flags))return;const n=t.valueDeclaration;if(void 0===n)return;const r=o_(n);if(r){const e=MC(r);if(void 0!==e)return e}if(Gu(n)&&Oo(n,e.argumentExpression)){const e=Rg(n);if(e)return MC(_O(e));if(kN(n))return jf(n.name)}}}(e);if(wD(e)){const t=hc(e);return t?Pc(t):void 0}return Uw(e)?""+e.parent.parameters.indexOf(e):void 0}function MC(e){return 8192&e.flags?e.escapedName:384&e.flags?Pc(""+e.value):void 0}function BC(e,t){for(;Yx(e);)if(OC(e=e.expression,t))return!0;return!1}function jC(e,t){for(;M_(e);)if(OC(e=e.expression,t))return!0;return!1}function JC(e,t){if(e&&1048576&e.flags){const n=Od(e,t);if(n&&2&Fx(n))return void 0===n.links.isDiscriminantProperty&&(n.links.isDiscriminantProperty=192==(192&n.links.checkFlags)&&!nv(x_(n))),!!n.links.isDiscriminantProperty}return!1}function zC(e,t){let n;for(const r of e)if(JC(t,r.escapedName)){if(n){n.push(r);continue}n=[r]}return n}function UC(e){const t=e.types;if(!(t.length<10||32768&Vx(e)||J(t,(e=>!!(59506688&e.flags)))<10)){if(void 0===e.keyPropertyName){const n=T(t,(e=>59506688&e.flags?T(fd(e),(e=>TS(x_(e))?e.escapedName:void 0)):void 0)),r=n&&function(e,t){const n=new Map;let r=0;for(const i of e)if(61603840&i.flags){const e=cc(i,t);if(e){if(!AS(e))return;let t=!1;xA(e,(e=>{const r=_h(nb(e)),o=n.get(r);o?o!==bt&&(n.set(r,bt),t=!0):n.set(r,i)})),t||r++}}return r>=10&&2*r>=e.length?n:void 0}(t,n);e.keyPropertyName=r?n:"",e.constituentMap=r}return e.keyPropertyName.length?e.keyPropertyName:void 0}}function qC(e,t){var n;const r=null==(n=e.constituentMap)?void 0:n.get(_h(nb(t)));return r!==bt?r:void 0}function VC(e,t){const n=UC(e),r=n&&cc(t,n);return r&&qC(e,r)}function QC(e,t){return OC(e,t)||BC(e,t)}function KC(e,t){if(e.arguments)for(const n of e.arguments)if(QC(t,n))return!0;return!(208!==e.expression.kind||!QC(t,e.expression.expression))}function WC(e){return(!e.id||e.id<0)&&(e.id=FB,FB++),e.id}function $C(e){const t=ld(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&Ex(e,Vn))}function YC(e){467927040&e.flags&&(e=kd(e)||bt);const t=e.flags;if(268435460&t)return j?16317953:16776705;if(134217856&t){const n=128&t&&""===e.value;return j?n?12123649:7929345:n?12582401:16776705}if(40&t)return j?16317698:16776450;if(256&t){const t=0===e.value;return j?t?12123394:7929090:t?12582146:16776450}if(64&t)return j?16317188:16775940;if(2048&t){const t=BS(e);return j?t?12122884:7928580:t?12581636:16775940}return 16&t?j?16316168:16774920:528&t?j?e===Lt||e===Rt?12121864:7927560:e===Lt||e===Rt?12580616:16774920:524288&t?16&Vx(e)&&sk(e)?j?83427327:83886079:$C(e)?j?7880640:16728e3:j?7888800:16736160:16384&t?9830144:32768&t?26607360:65536&t?42917664:12288&t?j?7925520:16772880:67108864&t?j?7888800:16736160:131072&t?0:1048576&t?Ke(e.types,((e,t)=>e|YC(t)),0):2097152&t?function(e){const t=PI(e,134348796);let n=0,r=134217727;for(const i of e.types)if(!(t&&524288&i.flags)){const e=YC(i);n|=e,r&=e}return 8256&n|134209471&r}(e):83886079}function ZC(e,t){return TA(e,(e=>0!=(YC(e)&t)))}function eA(e,t){const n=tA(ZC(j&&2&e.flags?wn:e,t));if(j)switch(t){case 524288:return wA(n,(e=>65536&YC(e)?Yh([e,131072&YC(e)&&!PI(n,65536)?wh([hn,Et]):hn]):e));case 1048576:return wA(n,(e=>131072&YC(e)?Yh([e,65536&YC(e)&&!PI(n,32768)?wh([hn,Tt]):hn]):e));case 2097152:case 4194304:return wA(n,(e=>262144&YC(e)?function(e){return rr||(rr=fm("NonNullable",524288,void 0)||rt),rr!==rt?mf(rr,[e]):Yh([e,hn])}(e):e))}return n}function tA(e){return e===wn?bt:e}function nA(e,t){return t?wh([fc(e),_O(t)]):e}function rA(e,t){var n;const r=gy(t);if(!Ml(r))return pt;const i=Ql(r);return cc(e,i)||oA(null==(n=Zd(e,i))?void 0:n.type)||pt}function iA(e,t){return SA(e,xS)&&function(e,t){return cc(e,""+t)||(SA(e,IS)?wA(e,(e=>{const n=e,r=MS(n);return r?C.noUncheckedIndexedAccess&&t>=n.target.fixedLength+sh(n.target,3)?wh([r,Tt]):r:Tt})):void 0)}(e,t)||oA(OL(65,e,Tt,void 0))||pt}function oA(e){return e&&C.noUncheckedIndexedAccess?wh([e,At]):e}function aA(e){return kg(OL(65,e,Tt,void 0)||pt)}function sA(e){return 223===e.parent.kind&&e.parent.left===e||247===e.parent.kind&&e.parent.initializer===e}function cA(e){return rA(_A(e.parent),e.name)}function _A(e){const{parent:t}=e;switch(t.kind){case 246:return Pt;case 247:return IL(t)||pt;case 223:return function(e){return 206===e.parent.kind&&sA(e.parent)||299===e.parent.kind&&sA(e.parent.parent)?nA(_A(e),e.right):_O(e.right)}(t);case 217:return Tt;case 206:return function(e,t){return iA(_A(e),e.elements.indexOf(t))}(t,e);case 227:return function(e){return aA(_A(e.parent))}(t);case 299:return cA(t);case 300:return function(e){return nA(cA(e),e.objectAssignmentInitializer)}(t)}return pt}function lA(e){return Fo(e).resolvedType||_O(e)}function uA(e){return 257===e.kind?function(e){return e.initializer?lA(e.initializer):246===e.parent.parent.kind?Pt:247===e.parent.parent.kind&&IL(e.parent.parent)||pt}(e):function(e){const t=e.parent,n=uA(t.parent);return nA(203===t.kind?rA(n,e.propertyName||e.name):e.dotDotDotToken?aA(n):iA(n,t.elements.indexOf(e)),e.initializer)}(e)}function dA(e){switch(e.kind){case 214:return dA(e.expression);case 223:switch(e.operatorToken.kind){case 63:case 75:case 76:case 77:return dA(e.left);case 27:return dA(e.right)}}return e}function pA(e){const{parent:t}=e;return 214===t.kind||223===t.kind&&63===t.operatorToken.kind&&t.left===e||223===t.kind&&27===t.operatorToken.kind&&t.right===e?pA(t):e}function gA(e){return 292===e.kind?nb(_O(e.expression)):Qt}function hA(e){const t=Fo(e);if(!t.switchTypes){t.switchTypes=[];for(const n of e.caseBlock.clauses)t.switchTypes.push(gA(n))}return t.switchTypes}function yA(e){if(_e(e.caseBlock.clauses,(e=>292===e.kind&&!ed(e.expression))))return;const t=[];for(const n of e.caseBlock.clauses){const e=292===n.kind?n.expression.text:void 0;t.push(e&&!R(t,e)?e:void 0)}return t}function bA(e,t){return e===t||1048576&t.flags&&function(e,t){if(1048576&e.flags){for(const n of e.types)if(!uh(t.types,n))return!1;return!0}return!!(1056&e.flags&&il(e)===t)||uh(t.types,e)}(e,t)}function xA(e,t){return 1048576&e.flags?T(e.types,t):t(e)}function kA(e,t){return 1048576&e.flags?_e(e.types,t):t(e)}function SA(e,t){return 1048576&e.flags?F(e.types,t):t(e)}function TA(e,t){if(1048576&e.flags){const n=e.types,r=z(n,t);if(r===n)return e;const i=e.origin;let o;if(i&&1048576&i.flags){const e=i.types,a=z(e,(e=>!!(1048576&e.flags)||t(e)));if(e.length-a.length==n.length-r.length){if(1===a.length)return a[0];o=Th(1048576,a)}}return Eh(r,16809984&e.objectFlags,void 0,void 0,o)}return 131072&e.flags||t(e)?e:Qt}function CA(e,t){return TA(e,(e=>e!==t))}function AA(e){return 1048576&e.flags?e.types.length:1}function wA(e,t,n){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);const r=e.origin,i=r&&1048576&r.flags?r.types:e.types;let o,a=!1;for(const e of i){const r=1048576&e.flags?wA(e,t,n):t(e);a||(a=e!==r),r&&(o?o.push(r):o=[r])}return a?o&&wh(o,n?0:1):e}function DA(e,t,n,r){return 1048576&e.flags&&n?wh(V(e.types,t),1,n,r):wA(e,t)}function EA(e,t){return TA(e,(e=>0!=(e.flags&t)))}function NA(e,t){return PI(e,134217804)&&PI(t,402655616)?wA(e,(e=>4&e.flags?EA(t,402653316):tv(e)&&!PI(t,402653188)?EA(t,128):8&e.flags?EA(t,264):64&e.flags?EA(t,2112):e)):e}function FA(e){return 0===e.flags}function PA(e){return 0===e.flags?e.type:e}function IA(e,t){return t?{flags:0,type:131072&e.flags?Kt:e}:e}function OA(e){return et[e.id]||(et[e.id]=function(e){const t=us(256);return t.elementType=e,t}(e))}function LA(e,t){const n=cT(wS(uO(t)));return bA(n,e.elementType)?e:OA(wh([e.elementType,n]))}function MA(e){return 256&Vx(e)?(t=e).finalArrayType||(t.finalArrayType=131072&(n=t.elementType).flags?tr:kg(1048576&n.flags?wh(n.types,2):n)):e;var t,n}function RA(e){return 256&Vx(e)?e.elementType:Qt}function BA(e){const t=pA(e),n=t.parent,r=ND(n)&&("length"===n.name.escapedText||210===n.parent.kind&&Tw(n.name)&&zy(n.name)),i=209===n.kind&&n.expression===t&&223===n.parent.kind&&63===n.parent.operatorToken.kind&&n.parent.left===n&&!Jh(n.parent)&&II(_O(n.argumentExpression),296);return r||i}function jA(e,t){if(8752&(e=ba(e)).flags)return x_(e);if(7&e.flags){if(262144&Fx(e)){const t=e.links.syntheticOrigin;if(t&&jA(t))return x_(e)}const r=e.valueDeclaration;if(r){if((wE(n=r)||Qw(n)||Vw(n)||Uw(n))&&(Kv(n)||Sg(n)&&$u(n)&&n.initializer&&OT(n.initializer)&&Hv(n.initializer)))return x_(e);if(wE(r)&&247===r.parent.parent.kind){const e=r.parent.parent,t=JA(e.expression,void 0);if(t)return OL(e.awaitModifier?15:13,t,Tt,void 0)}t&&rT(t,zf(r,ja._0_needs_an_explicit_type_annotation,Ms(e)))}}var n}function JA(e,t){if(!(33554432&e.flags))switch(e.kind){case 79:return jA(rs(EC(e)),t);case 108:return function(e){const t=Km(e,!1,!1);if(Sl(t)){const e=mp(t);if(e.thisParameter)return jA(e.thisParameter)}if(Fl(t.parent)){const e=Ga(t.parent);return _b(t)?x_(e):ul(e).thisType}}(e);case 106:return mw(e);case 208:{const n=JA(e.expression,t);if(n){const r=e.name;let i;if(Cw(r)){if(!n.symbol)return;i=zd(n,Iy(n.symbol,r.escapedText))}else i=zd(n,r.escapedText);return i&&jA(i,t)}return}case 214:return JA(e.expression,t)}}function zA(e){const t=Fo(e);let n=t.effectsSignature;if(void 0===n){let r;241===e.parent.kind?r=JA(e.expression,void 0):106!==e.expression.kind&&(r=M_(e)?mN(HS(dO(e.expression),e.expression),e.expression):tN(e.expression));const i=qd(r&&Nd(r)||bt,0),o=1!==i.length||i[0].typeParameters?_e(i,UA)?hP(e):void 0:i[0];n=t.effectsSignature=o&&UA(o)?o:Gr}return n===Gr?void 0:n}function UA(e){return!!(kp(e)||e.declaration&&131072&(Cp(e.declaration)||bt).flags)}function qA(e){const t=QA(e,!1);return qr=e,Vr=t,t}function VA(e){const t=Hh(e,!0);return 95===t.kind||223===t.kind&&(55===t.operatorToken.kind&&(VA(t.left)||VA(t.right))||56===t.operatorToken.kind&&VA(t.left)&&VA(t.right))}function QA(e,t){for(;;){if(e===qr)return Vr;const n=e.flags;if(4096&n){if(!t){const t=WC(e),n=Bi[t];return void 0!==n?n:Bi[t]=QA(e,!0)}t=!1}if(368&n)e=e.antecedent;else if(512&n){const t=zA(e.node);if(t){const n=kp(t);if(n&&3===n.kind&&!n.type){const t=e.node.arguments[n.parameterIndex];if(t&&VA(t))return!1}if(131072&Tp(t).flags)return!1}e=e.antecedent}else{if(4&n)return _e(e.antecedents,(e=>QA(e,!1)));if(8&n){const t=e.antecedents;if(void 0===t||0===t.length)return!1;e=t[0]}else{if(!(128&n)){if(1024&n){qr=void 0;const t=e.target,n=t.antecedents;t.antecedents=e.antecedents;const r=QA(e.antecedent,!1);return t.antecedents=n,r}return!(1&n)}if(e.clauseStart===e.clauseEnd&&mI(e.switchStatement))return!1;e=e.antecedent}}}}function KA(e,t){for(;;){const n=e.flags;if(4096&n){if(!t){const t=WC(e),n=ji[t];return void 0!==n?n:ji[t]=KA(e,!0)}t=!1}if(496&n)e=e.antecedent;else if(512&n){if(106===e.node.expression.kind)return!0;e=e.antecedent}else{if(4&n)return F(e.antecedents,(e=>KA(e,!1)));if(!(8&n)){if(1024&n){const t=e.target,n=t.antecedents;t.antecedents=e.antecedents;const r=KA(e.antecedent,!1);return t.antecedents=n,r}return!!(1&n)}e=e.antecedents[0]}}}function WA(e){switch(e.kind){case 79:if(!qv(e)){const t=EC(e);return YA(t)||IT(t)&&!GA(t)}break;case 208:case 209:return WA(e.expression)&&TI(Fo(e).resolvedSymbol||rt)}return!1}function HA(e,t,n=t,r,i=(t=>null==(t=xt(e,Ch))?void 0:t.flowNode)()){let o,a=!1,s=0;if(pi)return pt;if(!i)return t;fi++;const c=di,_=PA(d(i));di=c;const l=256&Vx(_)&&BA(e)?tr:MA(_);return l===Ht||e.parent&&232===e.parent.kind&&!(131072&l.flags)&&131072&ZC(l,2097152).flags?t:l===St?bt:l;function u(){return a?o:(a=!0,o=IC(e,t,n,r))}function d(i){var o;if(2e3===s)return null==(o=Ur)||o.instant(Ur.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:i.id}),pi=!0,function(e){const t=Ec(e,El),n=wp(e),r=Xf(n,t.statements.pos);Wi.add(kk(n,r.start,r.length,ja.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}(e),pt;let a;for(s++;;){const o=i.flags;if(4096&o){for(let e=c;efunction(e,t){if(!(1048576&e.flags))return Ix(e,t);for(const n of e.types)if(Ix(n,t))return!0;return!1}(t,e))),r=512&t.flags&&rb(t)?wA(n,tb):n;return Ix(t,r)?r:e}(e,t))}(t,p(n)):t}if(BC(e,r)){if(!qA(n))return Ht;if(wE(r)&&(Sg(r)||im(r))){const e=Bg(r);if(e&&(215===e.kind||216===e.kind))return d(n.antecedent)}return t}if(wE(r)&&246===r.parent.parent.kind&&(OC(e,r.parent.parent.expression)||jC(r.parent.parent.expression,e)))return sN(MA(PA(d(n.antecedent))))}function m(e,t){const n=Hh(t,!0);if(95===n.kind)return Ht;if(223===n.kind){if(55===n.operatorToken.kind)return m(m(e,n.left),n.right);if(56===n.operatorToken.kind)return wh([m(e,n.left),m(e,n.right)])}return X(e,n,!0)}function g(e){const t=zA(e.node);if(t){const n=kp(t);if(n&&(2===n.kind||3===n.kind)){const t=d(e.antecedent),r=MA(PA(t)),i=n.type?G(r,n,e.node,!0):3===n.kind&&n.parameterIndex>=0&&n.parameterIndex293===e.kind));if(n===r||o>=n&&o(YC(e)&t)===t))}return wh(V(i.slice(n,r),(t=>t?U(e,t):Qt)))}(i,t.switchStatement,t.clauseStart,t.clauseEnd);else{j&&(jC(n,e)?i=J(i,t.switchStatement,t.clauseStart,t.clauseEnd,(e=>!(163840&e.flags))):218===n.kind&&jC(n.expression,e)&&(i=J(i,t.switchStatement,t.clauseStart,t.clauseEnd,(e=>!(131072&e.flags||128&e.flags&&"undefined"===e.value)))));const r=T(n,i);r&&(i=function(e,t,n,r,i){if(rqC(e,t)||bt)));if(t!==bt)return t}return C(e,t,(e=>z(e,n,r,i)))}(i,r,t.switchStatement,t.clauseStart,t.clauseEnd))}return IA(i,FA(r))}function x(e){const r=[];let i,o=!1,a=!1;for(const s of e.antecedents){if(!i&&128&s.flags&&s.clauseStart===s.clauseEnd){i=s;continue}const e=d(s),c=PA(e);if(c===t&&t===n)return c;we(r,c),bA(c,t)||(o=!0),FA(e)&&(a=!0)}if(i){const e=d(i),s=PA(e);if(!(131072&s.flags||R(r,s)||mI(i.switchStatement))){if(s===t&&t===n)return s;r.push(s),bA(s,t)||(o=!0),FA(e)&&(a=!0)}}return IA(S(r,o?2:1),a)}function k(e){const n=WC(e),r=Pi[n]||(Pi[n]=new Map),i=u();if(!i)return t;const o=r.get(i);if(o)return o;for(let t=li;t{const t=function(e,t){var n;return cc(e,t)||(null==(n=Zd(e,t))?void 0:n.type)||bt}(e,r);return!(131072&t.flags)&&!(131072&s.flags)&&jx(s,t)}))}function A(e,t,n,r,i){if((36===n||37===n)&&1048576&e.flags){const o=UC(e);if(o&&o===LC(t)){const t=qC(e,_O(r));if(t)return n===(i?36:37)?t:TS(cc(t,o)||bt)?CA(e,t):e}}return C(e,t,(e=>I(e,n,r,i)))}function w(t,n,r){if(OC(e,n))return eA(t,r?4194304:8388608);j&&r&&jC(n,e)&&(t=eA(t,2097152));const i=T(n,t);return i?C(t,i,(e=>ZC(e,r?4194304:8388608))):t}function D(e,t,n){const r=zd(e,t);return r?!!(16777216&r.flags)||n:!!Zd(e,t)||!n}function E(t,n,r){switch(n.operatorToken.kind){case 63:case 75:case 76:case 77:return w(X(t,n.right,r),n.left,r);case 34:case 35:case 36:case 37:const i=n.operatorToken.kind,o=dA(n.left),a=dA(n.right);if(218===o.kind&&ed(a))return L(t,o,i,a,r);if(218===a.kind&&ed(o))return L(t,a,i,o,r);if(OC(e,o))return I(t,i,a,r);if(OC(e,a))return I(t,i,o,r);j&&(jC(o,e)?t=N(t,i,a,r):jC(a,e)&&(t=N(t,i,o,r)));const s=T(o,t);if(s)return A(t,s,i,a,r);const c=T(a,t);if(c)return A(t,c,i,o,r);if(Q(o))return W(t,i,a,r);if(Q(a))return W(t,i,o,r);break;case 102:return function(t,n,r){const i=dA(n.left);if(!OC(e,i))return r&&j&&jC(i,e)?eA(t,2097152):t;const o=_O(n.right);if(!Rx(o,Vn))return t;const a=wA(o,H);return(!_c(t)||a!==qn&&a!==Vn)&&(r||524288&a.flags&&!ck(a))?$(t,a,r,!0):t}(t,n,r);case 101:if(Cw(n.left))return function(t,n,r){const i=dA(n.right);if(!OC(e,i))return t;In.assertNode(n.left,Cw);const o=FN(n.left);if(void 0===o)return t;const a=o.parent;return $(t,lb(In.checkDefined(o.valueDeclaration,"should always have a declaration"))?x_(a):ul(a),r,!0)}(t,n,r);const _=dA(n.right),l=_O(n.left);if(8576&l.flags){if(XS(t)&&Yx(e)&&OC(e.expression,_)&&LC(e)===Ql(l))return ZC(t,r?524288:65536);if(OC(e,_))return function(e,t,n){const r=Ql(t);if(kA(e,(e=>D(e,r,!0))))return TA(e,(e=>D(e,r,n)));if(n){const n=(Ir||(Ir=pm("Record",2,!0)||rt),Ir===rt?void 0:Ir);if(n)return Yh([e,mf(n,[t,bt])])}return e}(t,l,r)}break;case 27:return X(t,n.right,r);case 55:return r?X(X(t,n.left,!0),n.right,!0):wh([X(t,n.left,!1),X(t,n.right,!1)]);case 56:return r?wh([X(t,n.left,!0),X(t,n.right,!0)]):X(X(t,n.left,!1),n.right,!1)}return t}function N(e,t,n,r){const i=34===t||36===t,o=34===t||35===t?98304:32768,a=_O(n);return i!==r&&SA(a,(e=>!!(e.flags&o)))||i===r&&SA(a,(e=>!(e.flags&(3|o))))?eA(e,2097152):e}function I(e,t,n,r){if(1&e.flags)return e;35!==t&&37!==t||(r=!r);const i=_O(n),o=34===t||35===t;if(98304&i.flags)return j?eA(e,o?r?262144:2097152:65536&i.flags?r?131072:1048576:r?65536:524288):e;if(r){if(!o&&(2&e.flags||kA(e,ck))){if(201457660&i.flags||ck(i))return i;if(524288&i.flags)return $t}return NA(TA(e,(e=>{return jx(e,i)||o&&(t=i,0!=(524&e.flags)&&0!=(28&t.flags));var t})),i)}return TS(i)?TA(e,(e=>!(CS(e)&&jx(e,i)))):e}function L(t,n,r,i,o){35!==r&&37!==r||(o=!o);const a=dA(n.expression);if(!OC(e,a)){j&&jC(a,e)&&o===("undefined"!==i.text)&&(t=eA(t,2097152));const n=T(a,t);return n?C(t,n,(e=>M(e,i,o))):t}return M(t,i,o)}function M(e,t,n){return n?U(e,t.text):eA(e,IB.get(t.text)||32768)}function J(e,t,n,r,i){return n!==r&&F(hA(t).slice(n,r),i)?ZC(e,2097152):e}function z(e,t,n,r){const i=hA(t);if(!i.length)return e;const o=i.slice(n,r),a=n===r||R(o,Qt);if(2&e.flags&&!a){let t;for(let n=0;njx(s,e))),s);if(!a)return c;const _=TA(e,(e=>!(CS(e)&&R(i,nb(function(e){return 2097152&e.flags&&P(e.types,TS)||e}(e))))));return 131072&c.flags?_:wh([c,_])}function U(e,t){switch(t){case"string":return q(e,Pt,1);case"number":return q(e,It,2);case"bigint":return q(e,Ot,4);case"boolean":return q(e,Ut,8);case"symbol":return q(e,qt,16);case"object":return 1&e.flags?e:wh([q(e,$t,32),q(e,Et,131072)]);case"function":return 1&e.flags?e:q(e,Vn,64);case"undefined":return q(e,Tt,65536)}return q(e,$t,128)}function q(e,t,n){return wA(e,(e=>pk(e,t,Xi)?YC(e)&n?e:Qt:Ex(t,e)?t:YC(e)&n?Yh([e,t]):Qt))}function Q(t){return(ND(t)&&"constructor"===Oc(t.name)||FD(t)&&ed(t.argumentExpression)&&"constructor"===t.argumentExpression.text)&&OC(e,t.expression)}function W(e,t,n,r){if(r?34!==t&&36!==t:35!==t&&37!==t)return e;const i=_O(n);if(!MR(i)&&!V_(i))return e;const o=zd(i,"prototype");if(!o)return e;const a=x_(o),s=_c(a)?void 0:a;return s&&s!==qn&&s!==Vn?_c(e)?s:TA(e,(e=>{return n=s,524288&(t=e).flags&&1&Vx(t)||524288&n.flags&&1&Vx(n)?t.symbol===n.symbol:Ex(t,n);var t,n})):e}function H(e){const t=cc(e,"prototype");if(t&&!_c(t))return t;const n=qd(e,1);return n.length?wh(V(n,(e=>Tp(Bp(e))))):hn}function $(e,t,n,r){var i;const o=1048576&e.flags?`N${_h(e)},${_h(t)},${(n?1:0)|(r?2:0)}`:void 0;return null!=(i=io(o))?i:oo(o,function(e,t,n,r){if(!n){if(r)return TA(e,(e=>!Rx(e,t)));const n=$(e,t,!0,!1);return TA(e,(e=>!bA(e,n)))}if(3&e.flags)return t;const i=r?Rx:Ex,o=1048576&e.flags?UC(e):void 0,a=wA(t,(t=>{const n=o&&cc(t,o),a=wA(n&&qC(e,n)||e,r?e=>Rx(e,t)?e:Rx(t,e)?t:Qt:e=>Nx(e,t)?e:Nx(t,e)?t:Ex(e,t)?e:Ex(t,e)?t:Qt);return 131072&a.flags?wA(e,(e=>PI(e,465829888)&&i(t,kd(e)||bt)?Yh([e,t]):Qt)):a}));return 131072&a.flags?Ex(t,e)?t:Ix(e,t)?e:Ix(t,e)?t:Yh([e,t]):a}(e,t,n,r))}function G(t,n,r,i){if(n.type&&(!_c(t)||n.type!==qn&&n.type!==Vn)){const o=function(e,t){if(1===e.kind||3===e.kind)return t.arguments[e.parameterIndex];const n=Hh(t.expression);return Yx(n)?Hh(n.expression):void 0}(n,r);if(o){if(OC(e,o))return $(t,n.type,i,!1);j&&i&&jC(o,e)&&!(65536&YC(n.type))&&(t=eA(t,2097152));const r=T(o,t);if(r)return C(t,r,(e=>$(e,n.type,i,!1)))}}return t}function X(t,n,r){if(B_(n)||QD(n.parent)&&(60===n.parent.operatorToken.kind||77===n.parent.operatorToken.kind)&&n.parent.left===n)return function(t,n,r){if(OC(e,n))return eA(t,r?2097152:262144);const i=T(n,t);return i?C(t,i,(e=>ZC(e,r?2097152:262144))):t}(t,n,r);switch(n.kind){case 79:if(!OC(e,n)&&v<5){const i=EC(n);if(YA(i)){const n=i.valueDeclaration;if(n&&wE(n)&&!n.type&&n.initializer&&WA(e)){v++;const e=X(t,n.initializer,r);return v--,e}}}case 108:case 106:case 208:case 209:return w(t,n,r);case 210:return function(t,n,r){if(KC(n,e)){const e=r||!L_(n)?zA(n):void 0,i=e&&kp(e);if(i&&(0===i.kind||1===i.kind))return G(t,i,n,r)}if(XS(t)&&Yx(e)&&ND(n.expression)){const i=n.expression;if(OC(e.expression,dA(i.expression))&&Tw(i.name)&&"hasOwnProperty"===i.name.escapedText&&1===n.arguments.length){const i=n.arguments[0];if(ed(i)&&LC(e)===Pc(i.text))return ZC(t,r?524288:65536)}}return t}(t,n,r);case 214:case 232:return X(t,n.expression,r);case 223:return E(t,n,r);case 221:if(53===n.operator)return X(t,n.operand,!r)}return t}}function $A(e){return Ec(e.parent,(e=>Sl(e)&&!Xm(e)||265===e.kind||308===e.kind||169===e.kind))}function GA(e){if(!e.valueDeclaration)return!1;const t=qy(e.valueDeclaration).parent,n=Fo(t);return 524288&n.flags||(n.flags|=524288,Ec(t.parent,(e=>(Sl(e)||yN(e))&&!!(524288&Fo(e).flags)))||XA(t)),e.isAssigned||!1}function XA(e){if(79===e.kind){if(Jh(e)){const t=EC(e);IT(t)&&(t.isAssigned=!0)}}else bI(e,XA)}function YA(e){return 3&e.flags&&0!=(2&VE(e))}function ZA(e){return 2097152&e.flags?_e(e.types,ZA):!!(465829888&e.flags&&1146880&Sd(e).flags)}function ew(e){return 2097152&e.flags?_e(e.types,ew):!(!(465829888&e.flags)||PI(Sd(e),98304))}function tw(e,t,n){const r=!(n&&2&n)&&kA(e,ZA)&&(function(e,t){const n=t.parent;return 208===n.kind||163===n.kind||210===n.kind&&n.expression===t||209===n.kind&&n.expression===t&&!(kA(e,ew)&&ov(_O(n.argumentExpression)))}(e,t)||function(e,t){const n=(Tw(e)||ND(e)||FD(e))&&!((aN(e.parent)||oN(e.parent))&&e.parent.tagName===e)&&sD(e,t&&64&t?8:void 0);return n&&!nv(n)}(t,n));return r?wA(e,Sd):e}function nw(e){return!!Ec(e,(e=>{const t=e.parent;return void 0===t?"quit":HE(t)?t.expression===e&&zb(e):!!XE(t)&&(t.name===e||t.propertyName===e)}))}function rw(e,t){if(!C.verbatimModuleSyntax&&va(e,111551)&&!NC(t)&&!Ca(e,111551)){const n=xa(e);1160127&ka(n)&&(qk(C)||nS(C)&&nw(t)||!kR(rs(n))?wa(e):function(e){const t=No(e);t.constEnumReferenced||(t.constEnumReferenced=!0)}(e))}}function iw(e,t){if(qv(e))return dw(e);const n=EC(e);if(n===rt)return pt;if(n===ge){if(HN(e))return uo(e,ja.arguments_cannot_be_referenced_in_property_initializers),pt;const t=zm(e);return w<2&&(216===t.kind?uo(e,ja.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):cb(t,512)&&uo(e,ja.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Fo(t).flags|=512,x_(n)}(function(e){var t;const n=e.parent;if(n){if(ND(n)&&n.expression===e)return!1;if(XE(n)&&n.isTypeOnly)return!1;const r=null==(t=n.parent)?void 0:t.parent;if(r&&$E(r)&&r.isTypeOnly)return!1}return!0})(e)&&rw(n,e);const r=rs(n),i=IM(r,e);ho(i)&&$y(e,i)&&i.declarations&&yo(e,i.declarations,e.escapedText);let o=r.valueDeclaration;if(o&&32&r.flags)if(260===o.kind&&ag(E,o)){let t=qm(e);for(;void 0!==t;){if(t===o&&t.name!==e){Fo(o).flags|=1048576,Fo(e).flags|=2097152;break}t=qm(t)}}else if(228===o.kind){let t=Km(e,!1,!1);for(;308!==t.kind;){if(t.parent===o){(Qw(t)&&_b(t)||Hw(t))&&(Fo(o).flags|=1048576,Fo(e).flags|=2097152);break}t=Km(t,!1,!1)}}!function(e,t){if(w>=2||0==(34&t.flags)||!t.valueDeclaration||TN(t.valueDeclaration)||295===t.valueDeclaration.parent.kind)return;const n=If(t.valueDeclaration),r=function(e,t){return!!Ec(e,(e=>e===t?"quit":Sl(e)||e.parent&&Qw(e.parent)&&!lb(e.parent)&&e.parent.initializer===e))}(e,n),i=aw(n);if(i){if(r){let r=!0;if(mE(n)){const i=py(t.valueDeclaration,258);if(i&&i.parent===n){const i=function(e,t){return Ec(e,(e=>e===t?"quit":e===t.initializer||e===t.condition||e===t.incrementor||e===t.statement))}(e.parent,n);if(i){const e=Fo(i);e.flags|=8192,we(e.capturedBlockScopeBindings||(e.capturedBlockScopeBindings=[]),t),i===n.initializer&&(r=!1)}}}r&&(Fo(i).flags|=4096)}if(mE(n)){const r=py(t.valueDeclaration,258);r&&r.parent===n&&function(e,t){let n=e;for(;214===n.parent.kind;)n=n.parent;let r=!1;if(Jh(n))r=!0;else if(221===n.parent.kind||222===n.parent.kind){const e=n.parent;r=45===e.operator||46===e.operator}return!!r&&!!Ec(n,(e=>e===t?"quit":e===t.statement))}(e,n)&&(Fo(t.valueDeclaration).flags|=262144)}Fo(t.valueDeclaration).flags|=32768}r&&(Fo(t.valueDeclaration).flags|=16384)}(e,n);let a=function(e,t){var n;const r=x_(e),i=e.valueDeclaration;if(i){if(wD(i)&&!i.initializer&&!i.dotDotDotToken&&i.parent.elements.length>=2){const n=i.parent.parent;if(257===n.kind&&2&Ac(i)||166===n.kind){const r=Fo(n);if(!(16777216&r.flags)){r.flags|=16777216;const o=uc(n,0),a=o&&wA(o,Sd);if(r.flags&=-16777217,a&&1048576&a.flags&&(166!==n.kind||!GA(e))){const e=HA(i.parent,a,a,void 0,t.flowNode);return 131072&e.flags?Qt:bc(i,e)}}}}if(Uw(i)&&!i.type&&!i.initializer&&!i.dotDotDotToken){const r=i.parent;if(r.parameters.length>=2&&Sx(r)){const o=jD(r);if(o&&1===o.parameters.length&&XB(o)){const a=Pd(gx(x_(o.parameters[0]),null==(n=hD(r))?void 0:n.nonFixingMapper));if(1048576&a.flags&&SA(a,IS)&&!GA(e))return gv(HA(r,a,a,void 0,t.flowNode),yb(r.parameters.indexOf(i)-(Jv(r)?1:0)))}}}}return r}(r,e);const s=jh(e);if(s){if(!(3&r.flags||Sg(e)&&512&r.flags))return uo(e,384&r.flags?ja.Cannot_assign_to_0_because_it_is_an_enum:32&r.flags?ja.Cannot_assign_to_0_because_it_is_a_class:1536&r.flags?ja.Cannot_assign_to_0_because_it_is_a_namespace:16&r.flags?ja.Cannot_assign_to_0_because_it_is_a_function:2097152&r.flags?ja.Cannot_assign_to_0_because_it_is_an_import:ja.Cannot_assign_to_0_because_it_is_not_a_variable,Ms(n)),pt;if(TI(r))return 3&r.flags?uo(e,ja.Cannot_assign_to_0_because_it_is_a_constant,Ms(n)):uo(e,ja.Cannot_assign_to_0_because_it_is_a_read_only_property,Ms(n)),pt}const c=2097152&r.flags;if(3&r.flags){if(1===s)return a}else{if(!c)return a;o=$o(n)}if(!o)return a;a=tw(a,e,t);const _=166===qy(o).kind,l=$A(o);let u=$A(e);const d=u!==l,p=e.parent&&e.parent.parent&&xN(e.parent)&&sA(e.parent.parent),f=134217728&n.flags;for(;u!==l&&(215===u.kind||216===u.kind||Im(u))&&(YA(r)&&a!==tr||_&&!GA(r));)u=$A(u);const m=_||c||d||p||f||function(e,t){if(wD(t)){const n=Ec(e,wD);return n&&qy(n)===qy(t)}}(e,o)||a!==ut&&a!==tr&&(!j||0!=(16387&a.flags)||NC(e)||FC(e)||278===e.parent.kind)||232===e.parent.kind||257===o.kind&&o.exclamationToken||16777216&o.flags,g=HA(e,a,m?_?function(e,t){const n=j&&166===t.kind&&t.initializer&&16777216&YC(e)&&!function(e){const t=Fo(e);if(void 0===t.parameterInitializerContainsUndefined){if(!tc(e,9))return g_(e.symbol),!0;const n=!!(16777216&YC($I(e,0)));if(!ac())return g_(e.symbol),!0;t.parameterInitializerContainsUndefined=n}return t.parameterInitializerContainsUndefined}(t);return n?ZC(e,524288):e}(a,o):a:a===ut||a===tr?Tt:US(a),u);if(BA(e)||a!==ut&&a!==tr){if(!m&&!_k(a)&&_k(g))return uo(e,ja.Variable_0_is_used_before_being_assigned,Ms(n)),a}else if(g===ut||g===tr)return G&&(uo(qc(o),ja.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Ms(n),Bs(g)),uo(e,ja.Variable_0_implicitly_has_an_1_type,Ms(n),Bs(g))),SL(g);return s?wS(g):g}function aw(e){return Ec(e,(e=>!e||Vy(e)?"quit":du(e,!1)))}function cw(e,t){Fo(e).flags|=2,169===t.kind||173===t.kind?Fo(t.parent).flags|=4:Fo(t).flags|=4}function _w(e){return am(e)?e:Sl(e)?void 0:bI(e,_w)}function lw(e){return $_(ul(Ga(e)))===Nt}function uw(e,t,n){const r=t.parent;cy(r)&&!lw(r)&&Ch(e)&&e.flowNode&&!KA(e.flowNode,!1)&&uo(e,n)}function dw(e){const t=NC(e);let n=Km(e,!0,!0),r=!1,i=!1;for(173===n.kind&&uw(e,n,ja.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);216===n.kind&&(n=Km(n,!1,!i),r=!0),164===n.kind;)n=Km(n,!r,!1),i=!0;if(function(e,t){Qw(t)&&lb(t)&&E&&t.initializer&&rc(t.initializer,e.pos)&&gb(t.parent)&&uo(e,ja.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}(e,n),i)uo(e,ja.this_cannot_be_referenced_in_a_computed_property_name);else switch(n.kind){case 264:uo(e,ja.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 263:uo(e,ja.this_cannot_be_referenced_in_current_location);break;case 173:fw(e,n)&&uo(e,ja.this_cannot_be_referenced_in_constructor_arguments)}!t&&r&&w<2&&cw(e,n);const o=pw(e,!0,n);if(X){const t=x_(de);if(o===t&&r)uo(e,ja.The_containing_arrow_function_captures_the_global_value_of_this);else if(!o){const r=uo(e,ja.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!TN(n)){const e=pw(n);e&&e!==t&&rT(r,zf(n,ja.An_outer_value_of_this_is_shadowed_by_this_container))}}}return o||_t}function pw(e,t=!0,n=Km(e,!1,!1)){const r=Sg(e);if(Sl(n)&&(!xw(e)||Jv(n))){let t=xp(mp(n))||r&&function(e){const t=b_(e);if(t&&320===t.kind){const e=t;if(e.parameters.length>0&&e.parameters[0].name&&"this"===e.parameters[0].name.escapedText)return Db(e.parameters[0].type)}const n=m_(e);if(n&&n.typeExpression)return Db(n.typeExpression)}(n);if(!t){const e=function(e){return 215===e.kind&&QD(e.parent)&&3===Hg(e.parent)?e.parent.left.expression.expression:171===e.kind&&207===e.parent.kind&&QD(e.parent.parent)&&6===Hg(e.parent.parent)?e.parent.parent.left.expression:215===e.kind&&299===e.parent.kind&&207===e.parent.parent.kind&&QD(e.parent.parent.parent)&&6===Hg(e.parent.parent.parent)?e.parent.parent.parent.left.expression:215===e.kind&&vN(e.parent)&&Tw(e.parent.name)&&("value"===e.parent.name.escapedText||"get"===e.parent.name.escapedText||"set"===e.parent.name.escapedText)&&ED(e.parent.parent)&&PD(e.parent.parent.parent)&&e.parent.parent.parent.arguments[2]===e.parent.parent&&9===Hg(e.parent.parent.parent)?e.parent.parent.parent.arguments[0].expression:Ww(e)&&Tw(e.name)&&("value"===e.name.escapedText||"get"===e.name.escapedText||"set"===e.name.escapedText)&&ED(e.parent)&&PD(e.parent.parent)&&e.parent.parent.arguments[2]===e.parent&&9===Hg(e.parent.parent)?e.parent.parent.arguments[0].expression:void 0}(n);if(r&&e){const n=dO(e).symbol;n&&n.members&&16&n.flags&&(t=ul(n).thisType)}else vP(n)&&(t=ul($a(n.symbol)).thisType);t||(t=yw(n))}if(t)return HA(e,t)}if(Fl(n.parent)){const t=Ga(n.parent);return HA(e,_b(n)?x_(t):ul(t).thisType)}if(TN(n)){if(n.commonJsModuleIndicator){const e=Ga(n);return e&&x_(e)}if(n.externalModuleIndicator)return Tt;if(t)return x_(de)}}function fw(e,t){return!!Ec(e,(e=>Cl(e)?"quit":166===e.kind&&e.parent===t))}function mw(e){const t=210===e.parent.kind&&e.parent.expression===e,n=Gm(e,!0);let r=n,i=!1,o=!1;if(!t){for(;r&&216===r.kind;)cb(r,512)&&(o=!0),r=Gm(r,!0),i=w<2;r&&cb(r,512)&&(o=!0)}let a=0;if(!r||(s=r,!(t?173===s.kind:(Fl(s.parent)||207===s.parent.kind)&&(_b(s)?171===s.kind||170===s.kind||174===s.kind||175===s.kind||169===s.kind||172===s.kind:171===s.kind||170===s.kind||174===s.kind||175===s.kind||169===s.kind||168===s.kind||173===s.kind)))){const n=Ec(e,(e=>e===r?"quit":164===e.kind));return n&&164===n.kind?uo(e,ja.super_cannot_be_referenced_in_a_computed_property_name):t?uo(e,ja.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(Fl(r.parent)||207===r.parent.kind)?uo(e,ja.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):uo(e,ja.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),pt}var s;if(t||173!==n.kind||uw(e,r,ja.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),_b(r)||t?(a=32,!t&&w>=2&&w<=8&&(Qw(r)||Hw(r))&&Of(e.parent,(e=>{TN(e)&&!em(e)||(Fo(e).flags|=8388608)}))):a=16,Fo(e).flags|=a,171===r.kind&&o&&(Zm(e.parent)&&Jh(e.parent)?Fo(r).flags|=256:Fo(r).flags|=128),i&&cw(e.parent,r),207===r.parent.kind)return w<2?(uo(e,ja.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),pt):_t;const c=r.parent;if(!cy(c))return uo(e,ja.super_can_only_be_referenced_in_a_derived_class),pt;const _=ul(Ga(c)),l=_&&X_(_)[0];return l?173===r.kind&&fw(e,r)?(uo(e,ja.super_cannot_be_referenced_in_constructor_arguments),pt):32===a?$_(_):Gl(l,_.thisType):pt}function gw(e){return 4&Vx(e)&&e.target===Zn?cf(e)[0]:void 0}function hw(e){return wA(e,(e=>2097152&e.flags?T(e.types,gw):gw(e)))}function yw(e){if(216===e.kind)return;if(Sx(e)){const t=jD(e);if(t){const e=t.thisParameter;if(e)return x_(e)}}const t=Sg(e);if(X||t){const n=function(e){return 171!==e.kind&&174!==e.kind&&175!==e.kind||207!==e.parent.kind?215===e.kind&&299===e.parent.kind?e.parent.parent:void 0:e.parent}(e);if(n){const e=Mw(n,void 0);let t=n,r=e;for(;r;){const e=hw(r);if(e)return gx(e,tC(hD(n)));if(299!==t.parent.kind)break;t=t.parent.parent,r=Mw(t,void 0)}return TT(e?qS(e):WI(n))}const r=Qh(e.parent);if(223===r.kind&&63===r.operatorToken.kind){const e=r.left;if(Yx(e)){const{expression:n}=e;if(t&&Tw(n)){const e=wp(r);if(e.commonJsModuleIndicator&&EC(n)===e.symbol)return}return TT(WI(n))}}}}function vw(e){const t=e.parent;if(!Sx(t))return;const n=Xm(t);if(n&&n.arguments){const r=$F(n),i=t.parameters.indexOf(e);if(e.dotDotDotToken)return zF(r,i,r.length,_t,void 0,0);const o=Fo(n),a=o.resolvedSignature;o.resolvedSignature=$r;const s=i=r?gv(x_(n.parameters[r]),yb(t-r),256):KP(n,t)}function Dw(e,t=Hg(e)){if(4===t)return!0;if(!Sg(e)||5!==t||!Tw(e.left.expression))return!1;const n=e.left.expression.escapedText,r=Ro(e.left,n,111551,void 0,void 0,!0,!0);return tg(null==r?void 0:r.valueDeclaration)}function Ew(e){if(!e.symbol)return _O(e.left);if(e.symbol.valueDeclaration){const t=Kv(e.symbol.valueDeclaration);if(t){const e=Db(t);if(e)return e}}const t=kt(e.left,Yx);if(!Pm(Km(t.expression,!1,!1)))return;const n=dw(t.expression),r=rh(t);return void 0!==r&&Nw(n,r)||void 0}function Nw(e,t,n){return wA(e,(e=>{var r,i;if(cd(e)&&!e.declaration.nameType){const r=Lu(e),i=kd(r)||r,o=n||ib(Ic(t));if(Ix(o,i))return mv(e,o)}else if(3670016&e.flags){const o=zd(e,t);if(o)return 262144&Fx(i=o)&&!i.links.type&&ic(i,0)>=0?void 0:x_(o);if(IS(e)&&MT(t)&&+t>=0){const t=RS(e,e.target.fixedLength,0,!1,!0);if(t)return t}return null==(r=Qd(Wd(e),n||ib(Ic(t))))?void 0:r.type}}),!0)}function Fw(e,t){if(In.assert(Pm(e)),!(33554432&e.flags))return Pw(e,t)}function Pw(e,t){const n=e.parent,r=vN(e)&&bw(e,t);if(r)return r;const i=Mw(n,t);if(i){if(Vl(e)){const t=Ga(e);return Nw(i,t.escapedName,No(t).nameType)}if(e.name){const t=gy(e.name);return wA(i,(e=>{var n;return null==(n=Qd(Wd(e),t))?void 0:n.type}),!0)}}}function Iw(e,t){return e&&(t>=0&&Nw(e,""+t)||wA(e,(e=>IS(e)?RS(e,0,0,!1,!0):LL(1,e,Tt,void 0,!1)),!0))}function Ow(e,t){if(uN(e)){const n=Mw(e.parent,t);if(!n||_c(n))return;return Nw(n,e.name.escapedText)}return sD(e.parent,t)}function Lw(e){switch(e.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 155:return!0;case 208:case 214:return Lw(e.expression);case 291:return!e.expression||Lw(e.expression)}return!1}function Mw(e,t){const n=Bw(Pm(e)?Fw(e,t):sD(e,t),e,t);if(n&&!(t&&2&t&&8650752&n.flags)){const t=wA(n,Nd,!0);return 1048576&t.flags&&ED(e)?function(e,t){return function(e,t){const n=UC(e),r=n&&P(t.properties,(e=>e.symbol&&299===e.kind&&e.symbol.escapedName===n&&Lw(e.initializer))),i=r&&uO(r.initializer);return i&&qC(e,i)}(t,e)||Ck(t,ue(V(z(e.properties,(e=>!!e.symbol&&299===e.kind&&Lw(e.initializer)&&JC(t,e.symbol.escapedName))),(e=>[()=>uO(e.initializer),e.symbol.escapedName])),V(z(fd(t),(n=>{var r;return!!(16777216&n.flags)&&!!(null==(r=null==e?void 0:e.symbol)?void 0:r.members)&&!e.symbol.members.has(n.escapedName)&&JC(t,n.escapedName)})),(e=>[()=>Tt,e.escapedName]))),Ix,t)}(e,t):1048576&t.flags&&dN(e)?function(e,t){return Ck(t,ue(V(z(e.properties,(e=>!!e.symbol&&288===e.kind&&JC(t,e.symbol.escapedName)&&(!e.initializer||Lw(e.initializer)))),(e=>[e.initializer?()=>uO(e.initializer):()=>Bt,e.symbol.escapedName])),V(z(fd(t),(n=>{var r;return!!(16777216&n.flags)&&!!(null==(r=null==e?void 0:e.symbol)?void 0:r.members)&&!e.symbol.members.has(n.escapedName)&&JC(t,n.escapedName)})),(e=>[()=>Tt,e.escapedName]))),Ix,t)}(e,t):t}}function Bw(e,t,n){if(e&&PI(e,465829888)){const r=hD(t);if(r&&1&n&&_e(r.inferences,oO))return eD(e,r.nonFixingMapper);if(null==r?void 0:r.returnMapper){const t=eD(e,r.returnMapper);return 1048576&t.flags&&uh(t.types,Rt)&&uh(t.types,jt)?TA(t,(e=>e!==Rt&&e!==jt)):t}}return e}function eD(e,t){return 465829888&e.flags?gx(e,t):1048576&e.flags?wh(V(e.types,(e=>eD(e,t))),0):2097152&e.flags?Yh(V(e.types,(e=>eD(e,t)))):e}function sD(e,t){var n,r;if(33554432&e.flags)return;const i=mD(e,!t);if(i>=0)return gi[i];const{parent:o}=e;switch(o.kind){case 257:case 166:case 169:case 168:case 205:return function(e,t){const n=e.parent;if($u(n)&&e===n.initializer){const e=bw(n,t);if(e)return e;if(!(8&t)&&Ul(n.name)&&n.name.elements.length>0)return e_(n.name,!0,!1)}}(e,t);case 216:case 250:return function(e,t){const n=zm(e);if(n){let e=Sw(n,t);if(e){const t=ky(n);if(1&t){const n=0!=(2&t);1048576&e.flags&&(e=TA(e,(e=>!!rM(1,e,n))));const r=rM(1,e,0!=(2&t));if(!r)return;e=r}if(2&t){const t=wA(e,UO);return t&&wh([t,_I(t)])}return e}}}(e,t);case 226:return function(e,t){const n=zm(e);if(n){const r=ky(n);let i=Sw(n,t);if(i){const t=0!=(2&r);return!e.asteriskToken&&1048576&i.flags&&(i=TA(i,(e=>!!rM(1,e,t)))),e.asteriskToken?i:rM(0,i,t)}}}(o,t);case 220:return function(e,t){const n=sD(e,t);if(n){const e=UO(n);return e&&wh([e,_I(e)])}}(o,t);case 210:case 211:return Aw(o,e);case 167:return function(e){const t=sI(e);return t?Jp(t):void 0}(o);case 213:case 231:return z_(o.type)?sD(o,t):Db(o.type);case 223:return function(e,t){const n=e.parent,{left:r,operatorToken:i,right:o}=n;switch(i.kind){case 63:case 76:case 75:case 77:return e===o?function(e){var t,n;const r=Hg(e);switch(r){case 0:case 4:const i=function(e){if(Au(e)&&e.symbol)return e.symbol;if(Tw(e))return EC(e);if(ND(e)){const t=_O(e.expression);return Cw(e.name)?function(e,t){const n=NN(t.escapedText,t);return n&&PN(e,n)}(t,e.name):zd(t,e.name.escapedText)}if(FD(e)){const t=WI(e.argumentExpression);if(!Ml(t))return;return zd(_O(e.expression),Ql(t))}}(e.left),o=i&&i.valueDeclaration;if(o&&(Qw(o)||Vw(o))){const t=Kv(o);return t&&gx(Db(t),No(i).mapper)||(Qw(o)?o.initializer&&_O(e.left):void 0)}return 0===r?_O(e.left):Ew(e);case 5:if(Dw(e,r))return Ew(e);if(Au(e.left)&&e.left.symbol){const t=e.left.symbol.valueDeclaration;if(!t)return;const n=kt(e.left,Yx),r=Kv(t);if(r)return Db(r);if(Tw(n.expression)){const e=n.expression,t=Ro(e,e.escapedText,111551,void 0,e.escapedText,!0);if(t){const e=t.valueDeclaration&&Kv(t.valueDeclaration);if(e){const t=rh(n);if(void 0!==t)return Nw(Db(e),t)}return}}return Sg(t)?void 0:_O(e.left)}return _O(e.left);case 1:case 6:case 3:case 2:let a;2!==r&&(a=Au(e.left)?null==(t=e.left.symbol)?void 0:t.valueDeclaration:void 0),a||(a=null==(n=e.symbol)?void 0:n.valueDeclaration);const s=a&&Kv(a);return s?Db(s):void 0;case 7:case 8:case 9:return In.fail("Does not apply");default:return In.assertNever(r)}}(n):void 0;case 56:case 60:const i=sD(n,t);return e===o&&(i&&i.pattern||!i&&!zg(n))?_O(r):i;case 55:case 27:return e===o?sD(n,t):void 0;default:return}}(e,t);case 299:case 300:return Pw(o,t);case 301:return sD(o.parent,t);case 206:{const i=o,a=Mw(i,t),s=null!=(r=(n=Fo(i)).firstSpreadIndex)?r:n.firstSpreadIndex=O(i.elements,$D),c=nf(i.elements,e);return Iw(a,s<0||chS(e)?gv(e,yb(a)):e),!0))}(n,e,t):void 0}(o,t);case 288:case 290:return Ow(o,t);case 283:case 282:return function(e,t){if(aN(e)&&4!==t){const n=mD(e.parent,!t);if(n>=0)return gi[n]}return ww(e,0)}(o,t)}}function dD(e){pD(e,sD(e,void 0),!0)}function pD(e,t,n){mi[yi]=e,gi[yi]=t,hi[yi]=n,yi++}function fD(){yi--}function mD(e,t){for(let n=yi-1;n>=0;n--)if(e===mi[n]&&(t||!hi[n]))return n;return-1}function hD(e){for(let t=xi-1;t>=0;t--)if(Gh(e,vi[t]))return bi[t]}function bD(e,t){return 0!==QF(t)?function(e,t){let n=tI(e,bt);n=SD(t,vE(t),n);const r=pE(jB.IntrinsicAttributes,t);return lc(r)||(n=bu(r,n)),n}(e,t):function(e,t){const n=vE(t),r=(i=n,bE(jB.ElementAttributesPropertyNameContainer,i));var i;let o=void 0===r?tI(e,bt):""===r?Tp(e):function(e,t){if(e.compositeSignatures){const n=[];for(const r of e.compositeSignatures){const e=Tp(r);if(_c(e))return e;const i=cc(e,t);if(!i)return;n.push(i)}return Yh(n)}const n=Tp(e);return _c(n)?n:cc(n,t)}(e,r);if(!o)return r&&S(t.attributes.properties)&&uo(t,ja.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Ic(r)),bt;if(o=SD(t,n,o),_c(o))return o;{let n=o;const r=pE(jB.IntrinsicClassAttributes,t);if(!lc(r)){const i=U_(r.symbol),o=Tp(e);let a;a=i?gx(r,jb(i,lp([o],i,_p(i),Sg(t)))):r,n=bu(a,n)}const i=pE(jB.IntrinsicAttributes,t);return lc(i)||(n=bu(i,n)),n}}(e,t)}function SD(e,t,n){const r=(i=t)&&Io(i.exports,jB.LibraryManagedAttributes,788968);var i;if(r){const t=ul(r),i=function(e){if(iE(e.tagName))return Jp(fP(e,TE(e)));const t=WI(e.tagName);if(128&t.flags){const n=SE(t,e);return n?Jp(fP(e,n)):pt}return t}(e);if(524288&r.flags){const t=No(r).typeParameters;if(S(t)>=2)return mf(r,lp([i,n],t,2,Sg(e)))}if(S(t.typeParameters)>=2)return rf(t,lp([i,n],t.typeParameters,2,Sg(e)))}return n}function TD(e,t){const n=z(qd(e,0),(e=>!function(e,t){let n=0;for(;ne!==t&&e?pu(e.typeParameters,t.typeParameters)?function(e,t){const n=e.typeParameters||t.typeParameters;let r;e.typeParameters&&t.typeParameters&&(r=jb(t.typeParameters,e.typeParameters));const i=e.declaration,o=function(e,t,n){const r=$P(e),i=$P(t),o=r>=i?e:t,a=o===e?t:e,s=o===e?r:i,c=XP(e)||XP(t),_=c&&!XP(o),l=Array(s+(_?1:0));for(let u=0;u=GP(o)&&u>=GP(a),h=u>=r?void 0:zP(e,u),y=u>=i?void 0:zP(t,u),v=vo(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||"arg"+u);v.links.type=m?kg(f):f,l[u]=v}if(_){const e=vo(1,"args");e.links.type=kg(KP(a,s)),a===t&&(e.links.type=gx(e.links.type,n)),l[s]=e}return l}(e,t,r),a=function(e,t,n){return e&&t?nT(e,wh([x_(e),gx(x_(t),n)])):e||t}(e.thisParameter,t.thisParameter,r),s=Zl(i,n,a,o,void 0,void 0,Math.max(e.minArgumentCount,t.minArgumentCount),39&(e.flags|t.flags));return s.compositeKind=2097152,s.compositeSignatures=ue(2097152===e.compositeKind&&e.compositeSignatures||[e],[t]),r&&(s.mapper=2097152===e.compositeKind&&e.mapper&&e.compositeSignatures?rx(e.mapper,r):r),s}(e,t):void 0:e)):void 0);var r}function LD(e){return OT(e)||Pm(e)?jD(e):void 0}function jD(e){In.assert(171!==e.kind||Pm(e));const t=hp(e);if(t)return t;const n=Mw(e,1);if(!n)return;if(!(1048576&n.flags))return TD(n,e);let r;const i=n.types;for(const t of i){const n=TD(t,e);if(n)if(r){if(!oS(r[0],n,!1,!0,!0,Ax))return;r.push(n)}else r=[n]}return r?1===r.length?r[0]:iu(r[0],r):void 0}function zD(e){return 205===e.kind&&!!e.initializer||223===e.kind&&63===e.operatorToken.kind}function VD(e,t,n){const r=e.elements,i=r.length,o=[],a=[];dD(e);const s=Jh(e),c=YI(e),_=Mw(e,void 0),l=!!_&&kA(_,xS);let u=!1;for(let c=0;c8&a[t]?vv(e,It)||_t:e)),2):j?Wt:Ct,c))}function KD(e){const t=Fo(e.expression);if(!t.resolvedType){if((aD(e.parent.parent)||Fl(e.parent.parent)||FE(e.parent.parent))&&QD(e.expression)&&101===e.expression.operatorToken.kind&&174!==e.parent.kind&&175!==e.parent.kind)return t.resolvedType=pt;if(t.resolvedType=dO(e.expression),Qw(e.parent)&&!lb(e.parent)&&GD(e.parent.parent)){const t=aw(If(e.parent.parent));t&&(Fo(t).flags|=4096,Fo(e).flags|=32768,Fo(e.parent.parent).flags|=32768)}(98304&t.resolvedType.flags||!II(t.resolvedType,402665900)&&!Ix(t.resolvedType,Xt))&&uo(e,ja.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return t.resolvedType}function WD(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return MT(e.escapedName)||n&&zc(n)&&function(e){switch(e.kind){case 164:return function(e){return II(KD(e),296)}(e);case 79:return MT(e.escapedText);case 8:case 10:return MT(e.text);default:return!1}}(n.name)}function HD(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return Oy(e)||n&&zc(n)&&Jw(n.name)&&II(KD(n.name),4096)}function ZD(e,t,n,r){const i=[];for(let e=t;e1&&n.declarations&&uo(n.declarations[0],ja.The_global_type_JSX_0_may_not_have_more_than_one_property,Ic(e))}}function xE(e){return bE(jB.ElementChildrenAttributeNameContainer,e)}function kE(e,t){if(4&e.flags)return[$r];if(128&e.flags){const n=SE(e,t);return n?[fP(t,n)]:(uo(t,ja.Property_0_does_not_exist_on_type_1,e.value,"JSX."+jB.IntrinsicElements),r)}const n=Nd(e);let i=qd(n,1);return 0===i.length&&(i=qd(n,0)),0===i.length&&1048576&n.flags&&(i=uu(V(n.types,(e=>kE(e,t))))),i}function SE(e,t){const n=pE(jB.IntrinsicElements,t);if(!lc(n)){const t=zd(n,Pc(e.value));if(t)return x_(t);return Gd(n,Pt)||void 0}return _t}function TE(e){In.assert(iE(e.tagName));const t=Fo(e);if(!t.resolvedJsxElementAttributesType){const n=fE(e);return 1&t.jsxFlags?t.resolvedJsxElementAttributesType=x_(n)||pt:2&t.jsxFlags?t.resolvedJsxElementAttributesType=Gd(pE(jB.IntrinsicElements,e),Pt)||pt:t.resolvedJsxElementAttributesType=pt}return t.resolvedJsxElementAttributesType}function CE(e){const t=pE(jB.ElementClass,e);if(!lc(t))return t}function AE(e){return pE(jB.Element,e)}function ME(e){const t=AE(e);if(t)return wh([t,Et])}function zE(e){const t=Ju(e);var n;if(t&&function(e){(function(e){if(ND(e)){let n=e;do{const e=t(n.name);if(e)return e;n=n.expression}while(ND(n));const r=t(n);if(r)return r}function t(e){if(Tw(e)&&-1!==Oc(e).indexOf(":"))return EB(e,ja.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}})(e.tagName),aB(e,e.typeArguments);const t=new Map;for(const n of e.attributes.properties){if(290===n.kind)continue;const{name:e,initializer:r}=n;if(t.get(e.escapedText))return EB(e,ja.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(t.set(e.escapedText,!0),r&&291===r.kind&&!r.expression)return EB(r,ja.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}(e),n=e,0===(C.jsx||0)&&uo(n,ja.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===AE(n)&&G&&uo(n,ja.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),!yE(e)){const n=Wi&&2===C.jsx?ja.Cannot_find_name_0:void 0,r=ao(e),i=t?e.tagName:e;let o;if(_N(e)&&"null"===r||(o=Ro(i,r,111551,n,r,!0)),o&&(o.isReferenced=67108863,!C.verbatimModuleSyntax&&2097152&o.flags&&!Ca(o)&&wa(o)),_N(e)){const t=so(wp(e));t&&Ro(i,t,111551,n,t,!0)}}if(t){const t=e,n=hP(t);kP(n,e),function(e,t,n){if(1===e){const e=ME(n);e&&hk(t,e,Yi,n.tagName,ja.Its_return_type_0_is_not_a_valid_JSX_element,r)}else if(0===e){const e=CE(n);e&&hk(t,e,Yi,n.tagName,ja.Its_instance_type_0_is_not_a_valid_JSX_element,r)}else{const e=ME(n),i=CE(n);if(!e||!i)return;hk(t,wh([e,i]),Yi,n.tagName,ja.Its_element_type_0_is_not_a_valid_JSX_element,r)}function r(){const e=ef(n.tagName);return Ak(void 0,ja._0_cannot_be_used_as_a_JSX_component,e)}}(QF(t),Tp(n),t)}}function UE(e,t,n){if(524288&e.flags){if(dd(e,t)||Zd(e,t)||Bl(t)&&$d(e,Pt)||n&&rE(t))return!0}else if(3145728&e.flags&&qE(e))for(const r of e.types)if(UE(r,t,n))return!0;return!1}function qE(e){return!!(524288&e.flags&&!(512&Vx(e))||67108864&e.flags||1048576&e.flags&&_e(e.types,qE)||2097152&e.flags&&F(e.types,qE))}function VE(e){return e.valueDeclaration?Ac(e.valueDeclaration):0}function KE(e){if(8192&e.flags||4&Fx(e))return!0;if(Sg(e.valueDeclaration)){const t=e.valueDeclaration.parent;return t&&QD(t)&&3===Hg(t)}}function YE(e,t,n,r,i,o=!0){return ZE(e,t,n,r,i,o?163===e.kind?e.right:202===e.kind?e:205===e.kind&&e.propertyName?e.propertyName:e.name:void 0)}function ZE(e,t,n,r,i,o){const a=Px(i,n);if(t){if(w<2&&eN(i))return o&&uo(o,ja.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(256&a)return o&&uo(o,ja.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Ms(i),Bs(Kk(i))),!1}if(256&a&&eN(i)&&(eg(e)||ng(e)||CD(e.parent)&&tg(e.parent.parent))){const t=qx(Ya(i));if(t&&Ec(e,(e=>!!($w(e)&&Mp(e.body)||Qw(e))||!(!Fl(e)&&!Cl(e))&&"quit")))return o&&uo(o,ja.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Ms(i),Ny(t.name)),!1}if(!(24&a))return!0;if(8&a)return!!eR(e,qx(Ya(i)))||(o&&uo(o,ja.Property_0_is_private_and_only_accessible_within_class_1,Ms(i),Bs(Kk(i))),!1);if(t)return!0;let s=ZM(e,(e=>Gk(ul(Ga(e)),i,n)));return!s&&(s=function(e){const t=function(e){const t=Km(e,!1,!1);return t&&Sl(t)?Jv(t):void 0}(e);let n=(null==t?void 0:t.type)&&Db(t.type);if(n&&262144&n.flags&&(n=gd(n)),n&&7&Vx(n))return C_(n)}(e),s=s&&Gk(s,i,n),32&a||!s)?(o&&uo(o,ja.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Ms(i),Bs(Kk(i)||r)),!1):!!(32&a)||(262144&r.flags&&(r=r.isThisType?gd(r):kd(r)),!(!r||!w_(r,s))||(o&&uo(o,ja.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Ms(i),Bs(s),Bs(r)),!1))}function eN(e){return!!Qk(e,(e=>!(8192&e.flags)))}function tN(e){return mN(dO(e),e)}function nN(e){return!!(50331648&YC(e))}function sN(e){return nN(e)?qS(e):e}function cN(e,t){const n=zb(e)?Jf(e):void 0;if(104!==e.kind)if(void 0!==n&&n.length<100){if(Tw(e)&&"undefined"===n)return void uo(e,ja.The_value_0_cannot_be_used_here,"undefined");uo(e,16777216&t?33554432&t?ja._0_is_possibly_null_or_undefined:ja._0_is_possibly_undefined:ja._0_is_possibly_null,n)}else uo(e,16777216&t?33554432&t?ja.Object_is_possibly_null_or_undefined:ja.Object_is_possibly_undefined:ja.Object_is_possibly_null);else uo(e,ja.The_value_0_cannot_be_used_here,"null")}function lN(e,t){uo(e,16777216&t?33554432&t?ja.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:ja.Cannot_invoke_an_object_which_is_possibly_undefined:ja.Cannot_invoke_an_object_which_is_possibly_null)}function fN(e,t,n){if(j&&2&e.flags){if(zb(t)){const e=Jf(t);if(e.length<100)return uo(t,ja._0_is_of_type_unknown,e),pt}return uo(t,ja.Object_is_of_type_unknown),pt}const r=YC(e);if(50331648&r){n(t,r);const i=qS(e);return 229376&i.flags?pt:i}return e}function mN(e,t){return fN(e,t,cN)}function gN(e,t){const n=mN(e,t);if(16384&n.flags){if(zb(t)){const e=Jf(t);if(Tw(t)&&"undefined"===e)return uo(t,ja.The_value_0_cannot_be_used_here,e),n;if(e.length<100)return uo(t,ja._0_is_possibly_undefined,e),n}uo(t,ja.Object_is_possibly_undefined)}return n}function SN(e,t){return 32&e.flags?function(e,t){const n=dO(e.expression),r=HS(n,e.expression);return WS(zN(e,e.expression,mN(r,e.expression),e.name,t),e,r!==n)}(e,t):zN(e,e.expression,tN(e.expression),e.name,t)}function CN(e,t){const n=mg(e)&&Uv(e.left)?mN(dw(e.left),e.left):tN(e.left);return zN(e,e.left,n,e.right,t)}function AN(e){for(;214===e.parent.kind;)e=e.parent;return tu(e.parent)&&e.parent.expression===e}function NN(e,t){for(let n=qm(t);n;n=qm(n)){const{symbol:t}=n,r=Iy(t,e),i=t.members&&t.members.get(r)||t.exports&&t.exports.get(r);if(i)return i}}function FN(e){if(!pg(e))return;const t=Fo(e);return void 0===t.resolvedSymbol&&(t.resolvedSymbol=NN(e.escapedText,e)),t.resolvedSymbol}function PN(e,t){return zd(e,t.escapedName)}function JN(e,t){return(Nc(t)||eg(e)&&Rc(t))&&Km(e,!0,!1)===Bc(t)}function zN(e,t,n,r,i){const o=Fo(t).resolvedSymbol,a=jh(e),s=Nd(0!==a||AN(e)?TT(n):n),c=_c(s)||s===Kt;let _,l;if(Cw(r)){w<99&&(0!==a&&YR(e,1048576),1!==a&&YR(e,524288));const t=NN(r.escapedText,r);if(a&&t&&t.valueDeclaration&&Ww(t.valueDeclaration)&&EB(r,ja.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,Oc(r)),c){if(t)return lc(s)?pt:s;if(!qm(r))return EB(r,ja.Private_identifiers_are_not_allowed_outside_class_bodies),_t}if(_=t?PN(n,t):void 0,!_&&function(e,t,n){let r;const i=fd(e);i&&T(i,(e=>{const n=e.valueDeclaration;if(n&&zc(n)&&Cw(n.name)&&n.name.escapedText===t.escapedText)return r=e,!0}));const o=Uo(t);if(r){const i=In.checkDefined(r.valueDeclaration),a=In.checkDefined(qm(i));if(null==n?void 0:n.valueDeclaration){const r=n.valueDeclaration,s=qm(r);if(In.assert(!!s),Ec(s,(e=>a===e)))return rT(uo(t,ja.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,o,Bs(e)),zf(r,ja.The_shadowing_declaration_of_0_is_defined_here,o),zf(i,ja.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,o)),!0}return uo(t,ja.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,o,Uo(a.name||wB)),!0}return!1}(n,r,t))return pt;_&&65536&_.flags&&!(32768&_.flags)&&1!==a&&uo(e,ja.Private_accessor_was_defined_without_a_getter)}else{if(c)return Tw(t)&&o&&rw(o,e),lc(s)?pt:s;_=zd(s,r.escapedText,!1,163===e.kind)}if(Tw(t)&&o&&(qk(C)||!_||!(kR(_)||8&_.flags&&302===e.parent.kind)||nS(C)&&nw(e))&&rw(o,e),_){ho(_)&&$y(e,_)&&_.declarations&&yo(r,_.declarations,r.escapedText),function(e,t,n){const{valueDeclaration:r}=e;if(!r||wp(t).isDeclarationFile)return;let i;const o=Oc(n);!HN(t)||function(e){return Qw(e)&&!fb(e)&&e.questionToken}(r)||Yx(t)&&Yx(t.expression)||Oo(r,n)||Ww(r)&&32&Tc(r)||!C.useDefineForClassFields&&function(e){if(!(32&e.parent.flags))return!1;let t=x_(e.parent);for(;;){if(t=t.symbol&&$N(t),!t)return!1;const n=zd(t,e.escapedName);if(n&&n.valueDeclaration)return!0}}(e)?260!==r.kind||180===t.parent.kind||16777216&r.flags||Oo(r,n)||(i=uo(n,ja.Class_0_used_before_its_declaration,o)):i=uo(n,ja.Property_0_is_used_before_its_initialization,o),i&&rT(i,zf(r,ja._0_is_declared_here,o))}(_,e,r),pF(_,e,fF(t,o)),Fo(e).resolvedSymbol=_;const n=Mx(e);if(YE(e,106===t.kind,n,s,_),AI(e,_,a))return uo(r,ja.Cannot_assign_to_0_because_it_is_a_read_only_property,Oc(r)),pt;l=JN(e,_)?ut:n?y_(_):x_(_)}else{const t=Cw(r)||0!==a&&rv(n)&&!BT(n)?void 0:Zd(s,r.escapedText);if(!t||!t.type){const t=QN(e,n.symbol,!0);return!t&&Wy(n)?_t:n.symbol===de?(de.exports.has(r.escapedText)&&418&de.exports.get(r.escapedText).flags?uo(r,ja.Property_0_does_not_exist_on_type_1,Ic(r.escapedText),Bs(n)):G&&uo(r,ja.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Bs(n)),_t):(r.escapedText&&!Vo(e)&&GN(r,BT(n)?s:n,t),pt)}t.isReadonly&&(Jh(e)||$h(e))&&uo(e,ja.Index_signature_in_type_0_only_permits_reading,Bs(s)),l=C.noUncheckedIndexedAccess&&!Jh(e)?wh([t.type,At]):t.type,C.noPropertyAccessFromIndexSignature&&ND(e)&&uo(r,ja.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Ic(r.escapedText)),t.declaration&&268435456&Ac(t.declaration)&&yo(r,[t.declaration],r.escapedText)}return KN(e,_,l,r,i)}function QN(e,t,n){const r=wp(e);if(r&&void 0===C.checkJs&&void 0===r.checkJsDirective&&(1===r.scriptKind||2===r.scriptKind)){const i=T(null==t?void 0:t.declarations,wp);return!(r!==i&&i&&Po(i)||n&&t&&32&t.flags||e&&n&&ND(e)&&108===e.expression.kind)}return!1}function KN(e,t,n,r,i){const o=jh(e);if(1===o)return $S(n,!!(t&&16777216&t.flags));if(t&&!(98311&t.flags)&&!(8192&t.flags&&1048576&n.flags)&&!zM(t.declarations))return n;if(n===ut)return Uc(e,t);n=tw(n,e,i);let a=!1;if(j&&$&&Yx(e)&&108===e.expression.kind){const n=t&&t.valueDeclaration;if(n&&xM(n)&&!_b(n)){const t=$A(e);173!==t.kind||t.parent!==n.parent||16777216&n.flags||(a=!0)}}else j&&t&&t.valueDeclaration&&ND(t.valueDeclaration)&&ih(t.valueDeclaration)&&$A(e)===$A(t.valueDeclaration)&&(a=!0);const s=HA(e,n,a?US(n):n);return a&&!_k(n)&&_k(s)?(uo(r,ja.Property_0_is_used_before_being_assigned,Ms(t)),n):o?wS(s):s}function HN(e){return!!Ec(e,(e=>{switch(e.kind){case 169:return!0;case 299:case 171:case 174:case 175:case 301:case 164:case 236:case 291:case 288:case 289:case 290:case 283:case 230:case 294:return!1;case 216:case 241:return!(!cE(e.parent)||!Hw(e.parent.parent))||"quit";default:return!pg(e)&&"quit"}}))}function $N(e){const t=X_(e);if(0!==t.length)return Yh(t)}function GN(e,t,n){let r,i;if(!Cw(e)&&1048576&t.flags&&!(134348796&t.flags))for(const n of t.types)if(!zd(n,e.escapedText)&&!Zd(n,e.escapedText)){r=Ak(r,ja.Property_0_does_not_exist_on_type_1,Lf(e),Bs(n));break}if(XN(e.escapedText,t)){const n=Lf(e),i=Bs(t);r=Ak(r,ja.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,n,i,i+"."+n)}else{const o=LO(t);if(o&&zd(o,e.escapedText))r=Ak(r,ja.Property_0_does_not_exist_on_type_1,Lf(e),Bs(t)),i=zf(e,ja.Did_you_forget_to_use_await);else{const o=Lf(e),a=Bs(t),s=function(e,t){const n=Nd(t).symbol;if(!n)return;const r=Mc(n),i=af().get(r);if(i)for(const[t,n]of i)if(R(n,e))return t}(o,t);if(void 0!==s)r=Ak(r,ja.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,o,a,s);else{const s=eF(e,t);if(void 0!==s){const e=Mc(s);r=Ak(r,n?ja.Property_0_may_not_exist_on_type_1_Did_you_mean_2:ja.Property_0_does_not_exist_on_type_1_Did_you_mean_2,o,a,e),i=s.valueDeclaration&&zf(s.valueDeclaration,ja._0_is_declared_here,e)}else{const e=function(e){return C.lib&&!C.lib.includes("dom")&&(n=e=>e.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Ic(e.symbol.escapedName)),3145728&(t=e).flags?F(t.types,n):n(t))&&sk(e);var t,n}(t)?ja.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:ja.Property_0_does_not_exist_on_type_1;r=Ak(Jd(r,t),e,o,a)}}}}const o=Vf(wp(e),e,r);i&&rT(o,i),po(!n||r.code!==ja.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,o)}function XN(e,t){const n=t.symbol&&zd(x_(t.symbol),e);return void 0!==n&&!!n.valueDeclaration&&_b(n.valueDeclaration)}function YN(e,t){return uF(e,fd(t),106500)}function eF(e,t){let n=fd(t);if("string"!=typeof e){const r=e.parent;ND(r)&&(n=z(n,(e=>mF(r,t,e)))),e=Oc(e)}return uF(e,n,111551)}function tF(e,t){const n=vt(e)?e:Oc(e),r=fd(t),i="for"===n?P(r,(e=>"htmlFor"===Mc(e))):"class"===n?P(r,(e=>"className"===Mc(e))):void 0;return null!=i?i:uF(n,r,111551)}function nF(e,t){const n=eF(e,t);return n&&Mc(n)}function oF(e,t,n){return In.assert(void 0!==t,"outername should always be defined"),Bo(e,t,n,void 0,t,!1,!1,!0,((e,n,r)=>{In.assertEqual(t,n,"name should equal outerName");const i=Io(e,n,r);if(i)return i;let o;return o=e===ce?Z(["string","number","boolean","object","bigint","symbol"],(t=>e.has(t.charAt(0).toUpperCase()+t.slice(1))?vo(524288,t):void 0)).concat(Ze(e.values())):Ze(e.values()),uF(Ic(n),o,r)}))}function _F(e,t){return t.exports&&uF(Oc(e),Ua(t),2623475)}function uF(e,t,n){return Yt(e,t,(function(e){const t=Mc(e);if(!fn(t,'"')){if(e.flags&n)return t;if(2097152&e.flags){const r=function(e){if(No(e).aliasTarget!==at)return xa(e)}(e);if(r&&r.flags&n)return t}}}))}function pF(e,t,n){const r=e&&106500&e.flags&&e.valueDeclaration;if(!r)return;const i=sb(r,8),o=e.valueDeclaration&&zc(e.valueDeclaration)&&Cw(e.valueDeclaration.name);if((i||o)&&(!t||!Lx(t)||65536&e.flags)){if(n){const n=Ec(t,Cl);if(n&&n.symbol===e)return}(1&Fx(e)?No(e).target:e).isReferenced=67108863}}function fF(e,t){return 108===e.kind||!!t&&zb(e)&&t===EC(Ub(e))}function mF(e,t,n){return hF(e,208===e.kind&&106===e.expression.kind,!1,t,n)}function gF(e,t,n,r){if(_c(r))return!0;const i=zd(r,n);return!!i&&hF(e,t,!1,r,i)}function hF(e,t,n,r,i){if(_c(r))return!0;if(i.valueDeclaration&&fl(i.valueDeclaration)){const t=qm(i.valueDeclaration);return!M_(e)&&!!Ec(e,(e=>e===t))}return ZE(e,t,n,r,i)}function vF(e){const t=e.initializer;if(258===t.kind){const e=t.declarations[0];if(e&&!Ul(e.name))return Ga(e)}else if(79===t.kind)return EC(t)}function bF(e,t,n){const r=0!==jh(e)||AN(e)?TT(t):t,i=e.argumentExpression,o=dO(i);if(lc(r)||r===Kt)return r;if(LI(r)&&!ed(i))return uo(i,ja.A_const_enum_member_can_only_be_accessed_using_a_string_literal),pt;const a=function(e){const t=Hh(e);if(79===t.kind){const r=EC(t);if(3&r.flags){let t=e,i=e.parent;for(;i;){if(246===i.kind&&t===i.statement&&vF(i)===r&&1===Hd(n=_O(i.expression)).length&&$d(n,It))return!0;t=i,i=i.parent}}}var n;return!1}(i)?It:o,s=vv(r,a,Jh(e)?4|(rv(r)&&!BT(r)?2:0):32,e)||pt;return EO(KN(e,Fo(e).resolvedSymbol,s,i,n),e)}function xF(e){return tu(e)||OD(e)||Ju(e)}function kF(e){return xF(e)&&T(e.typeArguments,UM),212===e.kind?dO(e.template):Ju(e)?dO(e.attributes):167!==e.kind&&T(e.arguments,(e=>{dO(e)})),$r}function SF(e){return kF(e),Gr}function TF(e){return!!e&&(227===e.kind||234===e.kind&&e.isSpread)}function CF(e){return O(e,TF)}function AF(e){return!!(16384&e.flags)}function wF(e){return!!(49155&e.flags)}function DF(e,t,n,r=!1){let i,o=!1,a=$P(n),s=GP(n);if(212===e.kind)if(i=t.length,225===e.template.kind){const t=je(e.template.templateSpans);o=Lp(t.literal)||!!t.literal.isUnterminated}else{const t=e.template;In.assert(14===t.kind),o=!!t.isUnterminated}else if(167===e.kind)i=GF(e,n);else if(Ju(e)){if(o=e.attributes.end===e.end,o)return!0;i=0===s?t.length:1,a=0===t.length?a:1,s=Math.min(s,1)}else{if(!e.arguments)return In.assert(211===e.kind),0===GP(n);{i=r?t.length+1:t.length,o=e.arguments.end===e.end;const a=CF(t);if(a>=0)return a>=GP(n)&&(XP(n)||a<$P(n))}}if(!XP(n)&&i>a)return!1;if(o||i>=s)return!0;for(let t=i;t=r&&t.length<=n}function NF(e){return PF(e,0,!1)}function FF(e){return PF(e,0,!1)||PF(e,1,!1)}function PF(e,t,n){if(524288&e.flags){const r=ld(e);if(n||0===r.properties.length&&0===r.indexInfos.length){if(0===t&&1===r.callSignatures.length&&0===r.constructSignatures.length)return r.callSignatures[0];if(1===t&&1===r.constructSignatures.length&&0===r.callSignatures.length)return r.constructSignatures[0]}}}function IF(e,t,n,r){const i=jT(e.typeParameters,e,0,r),o=YP(t),a=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return PT(a?sx(t,a):t,e,((e,t)=>{bC(i.inferences,e,t)})),n||LT(t,e,((e,t)=>{bC(i.inferences,e,t,128)})),Ip(e,wC(i),Sg(t.declaration))}function OF(e){if(!e)return Vt;const t=dO(e);return R_(e.parent)?qS(t):M_(e.parent)?KS(t):t}function MF(e,t,n,r,i){if(Ju(e))return function(e,t,n,r){const i=bD(t,e),o=KI(e.attributes,i,r,n);return bC(r.inferences,o,i),wC(r)}(e,t,r,i);if(167!==e.kind){const n=F(t.typeParameters,(e=>!!wd(e))),r=sD(e,n?8:0);if(r){const o=Tp(t);if(nC(o)){const a=hD(e);if(n||sD(e,8)===r){const e=tC(function(e,t=0){return e&&JT(V(e.inferences,eC),e.signature,e.flags|t,e.compareTypes)}(a,1)),t=gx(r,e),n=NF(t),s=n&&n.typeParameters?Jp(Op(n,n.typeParameters)):t;bC(i.inferences,s,o,128)}const s=jT(t.typeParameters,t,i.flags),c=gx(r,a&&a.returnMapper);bC(s.inferences,c,o),i.returnMapper=_e(s.inferences,iO)?tC(function(e){const t=z(e.inferences,iO);return t.length?JT(V(t,eC),e.signature,e.flags,e.compareTypes):void 0}(s)):void 0}}}const o=ZP(t),a=o?Math.min($P(t)-1,n.length):n.length;if(o&&262144&o.flags){const e=P(i.inferences,(e=>e.typeParameter===o));e&&(e.impliedArity=O(n,TF,a)<0?n.length-a:void 0)}const s=xp(t);if(s&&nC(s)){const t=WF(e);bC(i.inferences,OF(t),s)}for(let e=0;e=n-1){const t=e[n-1];if(TF(t))return RF(234===t.kind?t.type:KI(t.expression,r,i,o))}const a=[],s=[],c=[],_=hd(r);for(let l=t;lAk(void 0,ja.Type_0_does_not_satisfy_the_constraint_1):void 0,_=r||ja.Type_0_does_not_satisfy_the_constraint_1;s||(s=jb(o,a));const l=a[e];if(!Jx(l,Gl(gx(i,s),l),n?t[e]:void 0,_,c))return}}return a}function QF(e){if(iE(e.tagName))return 2;const t=Nd(dO(e.tagName));return S(qd(t,1))?0:S(qd(t,0))?1:2}function KF(e,t,n,i,o,a,s){const c={errors:void 0,skipLogging:!0};if(Ju(e))return function(e,t,n,r,i,o,a){const s=bD(t,e),c=KI(e.attributes,s,void 0,r);return function(){var t;if(yE(e))return!0;const n=aN(e)||oN(e)&&!iE(e.tagName)?dO(e.tagName):void 0;if(!n)return!0;const r=qd(n,0);if(!S(r))return!0;const o=HR(e);if(!o)return!0;const s=Fa(o,111551,!0,!1,e);if(!s)return!0;const c=qd(x_(s),0);if(!S(c))return!0;let _=!1,l=0;for(const e of c){const t=qd(KP(e,0),0);if(S(t))for(const e of t){if(_=!0,XP(e))return!0;const t=$P(e);t>l&&(l=t)}}if(!_)return!0;let u=1/0;for(const e of r){const t=GP(e);t{n.push(e.expression)})),n}if(167===e.kind)return function(e){const t=e.expression,n=sI(e);if(n){const e=[];for(const r of n.parameters){const n=x_(r);e.push(HF(t,n))}return e}return In.fail()}(e);if(Ju(e))return e.attributes.properties.length>0||aN(e)&&e.parent.children.length>0?[e.attributes]:r;const t=e.arguments||r,n=CF(t);if(n>=0){const e=t.slice(0,n);for(let r=n;r{var o;const a=i.target.elementFlags[r],s=HF(n,4&a?kg(t):t,!!(12&a),null==(o=i.target.labeledElementDeclarations)?void 0:o[r]);e.push(s)})):e.push(n)}return e}return t}function GF(e,t){return C.experimentalDecorators?function(e,t){switch(e.parent.kind){case 260:case 228:return 1;case 169:return fb(e.parent)?3:2;case 171:case 174:case 175:return 0===w||t.parameters.length<=2?2:3;case 166:return 3;default:return In.fail()}}(e,t):2}function XF(e,t){let n,r;const i=wp(e);if(ND(e.expression)){const o=Zf(i,e.expression.name);n=o.start,r=t?o.length:e.end-n}else{const o=Zf(i,e.expression);n=o.start,r=t?o.length:e.end-n}return{start:n,length:r,sourceFile:i}}function YF(e,t,n,r,i,o){if(PD(e)){const{sourceFile:a,start:s,length:c}=XF(e);return"message"in t?kk(a,s,c,t,n,r,i,o):Hf(a,t)}return"message"in t?zf(e,t,n,r,i,o):Vf(wp(e),e,t)}function ZF(e,t,n,r){var i;const o=CF(n);if(o>-1)return zf(n[o],ja.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let a,s=1/0,c=-1/0,_=-1/0,l=1/0;for(const e of t){const t=GP(e),r=$P(e);t_&&(_=t),n.length1&&(y=C(d,Gi,f,x)),y||(y=C(d,Yi,f,x)),y)return y;if(y=function(e,t,n,r,i){return In.assert(t.length>0),QM(e),r||1===t.length||t.some((e=>!!e.typeParameters))?function(e,t,n,r){const i=function(e,t){let n=-1,r=-1;for(let i=0;i=t)return i;a>r&&(r=a,n=i)}return n}(t,void 0===me?n.length:me),o=t[i],{typeParameters:a}=o;if(!a)return o;const s=xF(e)?e.typeArguments:void 0,c=s?Rp(o,function(e,t,n){const r=e.map(oR);for(;r.length>t.length;)r.pop();for(;r.lengthe.thisParameter));let n;t.length&&(n=nP(t,t.map(jP)));const{min:r,max:i}=iT(e,tP),o=[];for(let t=0;tXB(e)?tWP(e,t)))))}const a=Z(e,(e=>XB(e)?je(e.parameters):void 0));let s=0;if(0!==a.length){const t=kg(wh(Z(e,Pp),2));o.push(rP(a,t)),s|=1}return e.some(YB)&&(s|=2),Zl(e[0].declaration,void 0,n,o,Yh(e.map(Tp)),void 0,r,s)}(t)}(e,d,p,!!n,i),Fo(e).resolvedSignature=y,l)if(m)if(1===m.length||m.length>3){const t=m[m.length-1];let n;m.length>3&&(n=Ak(n,ja.The_last_overload_gave_the_following_error),n=Ak(n,ja.No_overload_matches_this_call)),a&&(n=Ak(n,a));const r=KF(e,p,t,Yi,0,!0,(()=>n));if(r)for(const e of r)t.declaration&&m.length>3&&rT(e,zf(t.declaration,ja.The_last_overload_is_declared_here)),k(t,e),Wi.add(e);else In.fail("No error for last overload signature")}else{const t=[];let n=0,r=Number.MAX_VALUE,i=0,o=0;for(const a of m){const s=KF(e,p,a,Yi,0,!0,(()=>Ak(void 0,ja.Overload_0_of_1_2_gave_the_following_error,o+1,d.length,Rs(a))));s?(s.length<=r&&(r=s.length,i=o),n=Math.max(n,s.length),t.push(s)):In.fail("No error for 3 or fewer overload signatures"),o++}const s=n>1?t[i]:W(t);In.assert(s.length>0,"No errors reported for 3 or fewer overload signatures");let c=Ak(V(s,$f),ja.No_overload_matches_this_call);a&&(c=Ak(c,a));const _=[...H(s,(e=>e.relatedInformation))];let l;if(F(s,(e=>e.start===s[0].start&&e.length===s[0].length&&e.file===s[0].file))){const{file:e,start:t,length:n}=s[0];l={file:e,start:t,length:n,code:c.code,category:c.category,messageText:c,relatedInformation:_}}else l=Vf(wp(e),e,c,_);k(m[0],l),Wi.add(l)}else if(g)Wi.add(ZF(e,[g],p,a));else if(h)VF(h,e.typeArguments,!0,a);else{const n=z(t,(e=>EF(e,u)));0===n.length?Wi.add(function(e,t,n,r){const i=n.length;if(1===t.length){const o=t[0],a=_p(o.typeParameters),s=S(o.typeParameters);if(r){let t=Ak(void 0,ja.Expected_0_type_arguments_but_got_1,ai?a=Math.min(a,t):n1?P(c,(e=>Cl(e)&&Mp(e.body))):void 0;if(_){const e=mp(_),n=!e.typeParameters;C([e],Yi,n)&&rT(t,zf(_,ja.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}m=o,g=a,h=s}function C(t,n,r,o=!1){if(m=void 0,g=void 0,h=void 0,r){const r=t[0];if(_e(u)||!DF(e,p,r,o))return;return KF(e,p,r,n,0,!1,void 0)?void(m=[r]):r}for(let r=0;r=0&&uo(e.arguments[t],ja.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let r=tN(e.expression);if(r===Kt)return Yr;if(r=Nd(r),lc(r))return SF(e);if(_c(r))return e.typeArguments&&uo(e,ja.Untyped_function_calls_may_not_accept_type_arguments),kF(e);const i=qd(r,1);if(i.length){if(!function(e,t){if(!t||!t.declaration)return!0;const n=t.declaration,r=hb(n,24);if(!r||173!==n.kind)return!0;const i=qx(n.parent.symbol),o=ul(n.parent.symbol);if(!eR(e,i)){const t=qm(e);if(t&&16&r){const e=oR(t);if(cP(n.parent.symbol,e))return!0}return 8&r&&uo(e,ja.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Bs(o)),16&r&&uo(e,ja.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Bs(o)),!1}return!0}(e,i[0]))return SF(e);if(sP(i,(e=>!!(4&e.flags))))return uo(e,ja.Cannot_create_an_instance_of_an_abstract_class),SF(e);const o=r.symbol&&qx(r.symbol);return o&&cb(o,256)?(uo(e,ja.Cannot_create_an_instance_of_an_abstract_class),SF(e)):eP(e,i,t,n,0)}const o=qd(r,0);if(o.length){const r=eP(e,o,t,n,0);return G||(r.declaration&&!vP(r.declaration)&&Tp(r)!==Vt&&uo(e,ja.Only_a_void_function_can_be_called_with_the_new_keyword),xp(r)===Vt&&uo(e,ja.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),r}return dP(e.expression,r,1),SF(e)}function sP(e,t){return ht(e)?_e(e,(e=>sP(e,t))):1048576===e.compositeKind?_e(e.compositeSignatures,t):t(e)}function cP(e,t){const n=X_(t);if(!S(n))return!1;const r=n[0];if(2097152&r.flags){const t=xu(r.types);let n=0;for(const i of r.types){if(!t[n]&&3&Vx(i)){if(i.symbol===e)return!0;if(cP(e,i))return!0}n++}return!1}return r.symbol===e||cP(e,r)}function uP(e,t,n){let r;const i=0===n,o=zO(t),a=o&&qd(o,n).length>0;if(1048576&t.flags){const e=t.types;let o=!1;for(const a of e)if(0!==qd(a,n).length){if(o=!0,r)break}else if(r||(r=Ak(r,i?ja.Type_0_has_no_call_signatures:ja.Type_0_has_no_construct_signatures,Bs(a)),r=Ak(r,i?ja.Not_all_constituents_of_type_0_are_callable:ja.Not_all_constituents_of_type_0_are_constructable,Bs(t))),o)break;o||(r=Ak(void 0,i?ja.No_constituent_of_type_0_is_callable:ja.No_constituent_of_type_0_is_constructable,Bs(t))),r||(r=Ak(r,i?ja.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:ja.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Bs(t)))}else r=Ak(r,i?ja.Type_0_has_no_call_signatures:ja.Type_0_has_no_construct_signatures,Bs(t));let s=i?ja.This_expression_is_not_callable:ja.This_expression_is_not_constructable;if(PD(e.parent)&&0===e.parent.arguments.length){const{resolvedSymbol:t}=Fo(e);t&&32768&t.flags&&(s=ja.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Ak(r,s),relatedMessage:a?ja.Did_you_forget_to_use_await:void 0}}function dP(e,t,n,r){const{messageChain:i,relatedMessage:o}=uP(e,t,n),a=Vf(wp(e),e,i);if(o&&rT(a,zf(e,o)),PD(e.parent)){const{start:t,length:n}=XF(e.parent,!0);a.start=t,a.length=n}Wi.add(a),pP(t,n,r?rT(a,r):a)}function pP(e,t,n){if(!e.symbol)return;const r=No(e.symbol).originatingImport;if(r&&!sm(r)){const i=qd(x_(No(e.symbol).target),t);if(!i||!i.length)return;rT(n,zf(r,ja.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function fP(e,t){const n=vE(e),r=n&&Qa(n),i=r&&Io(r,jB.Element,788968),o=i&&se.symbolToEntityName(i,788968,e),a=dC.createFunctionTypeNode(void 0,[dC.createParameterDeclaration(void 0,void 0,"props",void 0,se.typeToTypeNode(t,e))],o?dC.createTypeReferenceNode(o,void 0):dC.createKeywordTypeNode(131)),s=vo(1,"props");return s.links.type=t,Zl(a,void 0,void 0,[s],i?ul(i):pt,void 0,1,0)}function mP(e,t,n){if(iE(e.tagName)){const t=TE(e),n=fP(e,t);return zx(KI(e.attributes,bD(n,e),void 0,0),t,e.tagName,e.attributes),S(e.typeArguments)&&(T(e.typeArguments,UM),Wi.add(Uf(wp(e),e.typeArguments,ja.Expected_0_type_arguments_but_got_1,0,S(e.typeArguments)))),n}const r=dO(e.tagName),i=Nd(r);if(lc(i))return SF(e);const o=kE(r,e);return oP(r,i,o.length,0)?kF(e):0===o.length?(uo(e.tagName,ja.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,ef(e.tagName)),SF(e)):eP(e,o,t,n,0)}function gP(e,t,n){switch(e.kind){case 210:return function(e,t,n){if(106===e.expression.kind){const r=mw(e.expression);if(_c(r)){for(const t of e.arguments)dO(t);return $r}if(!lc(r)){const i=sy(qm(e));if(i)return eP(e,W_(r,i.typeArguments,i),t,n,0)}return kF(e)}let r,i=dO(e.expression);if(L_(e)){const t=HS(i,e.expression);r=t===i?0:j_(e)?16:8,i=t}else r=0;if(i=fN(i,e.expression,lN),i===Kt)return Yr;const o=Nd(i);if(lc(o))return SF(e);const a=qd(o,0),s=qd(o,1).length;if(oP(i,o,a.length,s))return!lc(i)&&e.typeArguments&&uo(e,ja.Untyped_function_calls_may_not_accept_type_arguments),kF(e);if(!a.length){if(s)uo(e,ja.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Bs(i));else{let t;if(1===e.arguments.length){const n=wp(e).text;xs(n.charCodeAt(As(n,e.expression.end,!0)-1))&&(t=zf(e.expression,ja.Are_you_missing_a_semicolon))}dP(e.expression,o,0,t)}return SF(e)}return 8&n&&!e.typeArguments&&a.some(iP)?(rO(e,n),Xr):a.some((e=>Sg(e.declaration)&&!!n_(e.declaration)))?(uo(e,ja.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Bs(i)),SF(e)):eP(e,a,t,n,r)}(e,t,n);case 211:return aP(e,t,n);case 212:return function(e,t,n){const r=dO(e.tag),i=Nd(r);if(lc(i))return SF(e);const o=qd(i,0),a=qd(i,1).length;if(oP(r,i,o.length,a))return kF(e);if(!o.length){if(DD(e.parent)){const t=zf(e.tag,ja.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return Wi.add(t),SF(e)}return dP(e.tag,i,0),SF(e)}return eP(e,o,t,n,0)}(e,t,n);case 167:return function(e,t,n){const r=dO(e.expression),i=Nd(r);if(lc(i))return SF(e);const o=qd(i,0),a=qd(i,1).length;if(oP(r,i,o.length,a))return kF(e);if(s=e,(c=o).length&&F(c,(e=>0===e.minArgumentCount&&!XB(e)&&e.parameters.length{const t=TT(i);Bx(o,t)||tk(i,o,e,ja.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})),o}function FP(e){return _B(e),T(e.typeArguments,UM),PP(230===e.kind?dO(e.expression):Uv(e.exprName)?dw(e.exprName):dO(e.exprName),e)}function PP(e,t){const n=t.typeArguments;if(e===Kt||lc(e)||!_e(n))return e;let r,i=!1;const o=function e(n){let o=!1,a=!1;const c=function n(r){if(524288&r.flags){const e=ld(r),n=s(e.callSignatures),i=s(e.constructSignatures);if(o||(o=0!==e.callSignatures.length||0!==e.constructSignatures.length),a||(a=0!==n.length||0!==i.length),n!==e.callSignatures||i!==e.constructSignatures){const r=hs(void 0,e.members,n,i,e.indexInfos);return r.objectFlags|=8388608,r.node=t,r}}else if(58982400&r.flags){const e=kd(r);if(e){const t=n(e);if(t!==e)return t}}else{if(1048576&r.flags)return wA(r,e);if(2097152&r.flags)return Yh(K(r.types,n))}return r}(n);return i||(i=a),o&&!a&&(null!=r||(r=n)),c}(e),a=i?r:e;return a&&Wi.add(Uf(wp(t),n,ja.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Bs(a))),o;function s(e){return K(z(e,(e=>!!e.typeParameters&&EF(e,n))),(e=>{const t=VF(e,n,!0);return t?Ip(e,t,Sg(e.declaration)):e}))}}function IP(e,t,n){const r=dO(e,n),i=Db(t);return lc(i)?i:(zx(r,i,t,e,ja.Type_0_does_not_satisfy_the_expected_type_1),r)}function RP(e){switch(e.keywordToken){case 100:return Nm();case 103:const t=BP(e);return lc(t)?pt:function(e){const t=vo(0,"NewTargetExpression"),n=vo(4,"target",8);n.parent=t,n.links.type=e;const i=ip([n]);return t.members=i,hs(t,i,r,r,r)}(t);default:In.assertNever(e.keywordToken)}}function BP(e){const t=$m(e);return t?173===t.kind?x_(Ga(t.parent)):x_(Ga(t)):(uo(e,ja.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),pt)}function jP(e){const t=x_(e);if(j){const n=e.valueDeclaration;if(n&&$u(n))return US(t)}return t}function JP(e){return In.assert(Tw(e.name)),e.name.escapedText}function zP(e,t,n){const r=e.parameters.length-(XB(e)?1:0);if(t=n-1)return t===n-1?i:kg(gv(i,It));const o=[],a=[],s=[];for(let c=t;c!(1&e))),i=r<0?n.target.fixedLength:r;i>0&&(t=e.parameters.length-1+i)}}if(void 0===t){if(!n&&32&e.flags)return 0;t=e.minArgumentCount}if(r)return t;for(let n=t-1;n>=0&&!(131072&TA(KP(e,n),AF).flags);n--)t=n;e.resolvedMinArgumentCount=t}return e.resolvedMinArgumentCount}function XP(e){if(XB(e)){const t=x_(e.parameters[e.parameters.length-1]);return!IS(t)||t.target.hasRestElement}return!1}function YP(e){if(XB(e)){const t=x_(e.parameters[e.parameters.length-1]);if(!IS(t))return t;if(t.target.hasRestElement)return th(t,t.target.fixedLength)}}function ZP(e){const t=YP(e);return!t||_S(t)||_c(t)||0!=(131072&Md(t).flags)?void 0:t}function eI(e){return tI(e,Qt)}function tI(e,t){return e.parameters.length>0?KP(e,0):t}function nI(e,t){const n=No(e);if(n.type)t&&In.assertEqual(n.type,t,"Parameter symbol already has a cached type which differs from newly assigned type");else{const r=e.valueDeclaration;n.type=t||(r?t_(r,!0):x_(e)),r&&79!==r.name.kind&&(n.type===bt&&(n.type=e_(r.name)),rI(r.name,n.type))}}function rI(e,t){for(const n of e.elements)if(!XD(n)){const e=bc(n,t);79===n.name.kind?No(Ga(n)).type=e:rI(n.name,e)}}function iI(e,t,n){const i=lb(e),o=Cw(e.name),a=o?ib(Oc(e.name)):gy(e.name),s=Ww(e)?function(e,t){return tf(null!=(n=null!=Lr?Lr:Lr=mm("ClassMethodDecoratorContext",2,!0))?n:Dn,[e,t]);var n}(t,n):Gw(e)?function(e,t){return tf(null!=(n=null!=Mr?Mr:Mr=mm("ClassGetterDecoratorContext",2,!0))?n:Dn,[e,t]);var n}(t,n):Xw(e)?function(e,t){return tf(null!=(n=null!=Rr?Rr:Rr=mm("ClassSetterDecoratorContext",2,!0))?n:Dn,[e,t]);var n}(t,n):Il(e)?function(e,t){return tf(null!=(n=null!=Br?Br:Br=mm("ClassAccessorDecoratorContext",2,!0))?n:Dn,[e,t]);var n}(t,n):Qw(e)?function(e,t){return tf(null!=(n=null!=zr?zr:zr=mm("ClassFieldDecoratorContext",2,!0))?n:Dn,[e,t]);var n}(t,n):In.failBadSyntaxKind(e),c=function(e,t,n){const i=`${t?"p":"P"}${n?"s":"S"}${e.id}`;let o=Ge.get(i);if(!o){const a=ip();a.set("name",xo("name",e)),a.set("private",xo("private",t?Bt:Lt)),a.set("static",xo("static",n?Bt:Lt)),o=hs(void 0,a,r,r,r),Ge.set(i,o)}return o}(a,o,i);return Yh([s,c])}function oI(e,t,n){return VO(void 0,void 0,[bo("target",e),bo("context",t)],wh([n,Vt]))}function aI(e){const{parent:t}=e,n=Fo(t);if(!n.decoratorSignature)switch(n.decoratorSignature=$r,t.kind){case 260:case 228:{const e=x_(Ga(t)),o=(r=e,tf(null!=(i=null!=Or?Or:Or=mm("ClassDecoratorContext",1,!0))?i:Dn,[r]));n.decoratorSignature=oI(e,o,e);break}case 171:case 174:case 175:{const e=t;if(!Fl(e.parent))break;const r=Ww(e)?Jp(mp(e)):oR(e),i=lb(e)?x_(Ga(e.parent)):el(Ga(e.parent)),o=Gw(e)?KO(r):Xw(e)?WO(r):r,a=iI(e,i,r),s=Gw(e)?KO(r):Xw(e)?WO(r):r;n.decoratorSignature=oI(o,a,s);break}case 169:{const e=t;if(!Fl(e.parent))break;const r=oR(e),i=lb(e)?x_(Ga(e.parent)):el(Ga(e.parent)),o=fb(e)?function(e,t){return tf(null!=(n=null!=jr?jr:jr=mm("ClassAccessorDecoratorTarget",2,!0))?n:Dn,[e,t]);var n}(i,r):Tt,a=iI(e,i,r),s=fb(e)?function(e,t){return tf(null!=(n=null!=Jr?Jr:Jr=mm("ClassAccessorDecoratorResult",2,!0))?n:Dn,[e,t]);var n}(i,r):function(e,t){return QO(void 0,bo("this",e),[bo("value",t)],t,void 0,1)}(i,r);n.decoratorSignature=oI(o,a,s);break}}var r,i;return n.decoratorSignature===$r?void 0:n.decoratorSignature}function sI(e){return E?function(e){const{parent:t}=e,n=Fo(t);if(!n.decoratorSignature)switch(n.decoratorSignature=$r,t.kind){case 260:case 228:{const e=x_(Ga(t)),r=bo("target",e);n.decoratorSignature=VO(void 0,void 0,[r],wh([e,Vt]));break}case 166:{const e=t;if(!$w(e.parent)&&!(Ww(e.parent)||Xw(e.parent)&&Fl(e.parent.parent)))break;if(Jv(e.parent)===e)break;const r=Jv(e.parent)?e.parent.parameters.indexOf(e)-1:e.parent.parameters.indexOf(e);In.assert(r>=0);const i=$w(e.parent)?x_(Ga(e.parent.parent)):cR(e.parent),o=$w(e.parent)?Tt:_R(e.parent),a=yb(r),s=bo("target",i),c=bo("propertyKey",o),_=bo("parameterIndex",a);n.decoratorSignature=VO(void 0,void 0,[s,c,_],Vt);break}case 171:case 174:case 175:case 169:{const e=t;if(!Fl(e.parent))break;const r=bo("target",cR(e)),i=bo("propertyKey",_R(e)),o=Qw(e)?Vt:cg(oR(e));if(0===w||Qw(t)&&!fb(t))n.decoratorSignature=VO(void 0,void 0,[r,i],wh([o,Vt]));else{const t=bo("descriptor",cg(oR(e)));n.decoratorSignature=VO(void 0,void 0,[r,i,t],wh([o,Vt]))}break}}return n.decoratorSignature===$r?void 0:n.decoratorSignature}(e):aI(e)}function cI(e){const t=Rm(!0);return t!==Dn?rf(t,[e=UO(jO(e))||bt]):bt}function _I(e){const t=Bm(!0);return t!==Dn?rf(t,[e=UO(jO(e))||bt]):bt}function lI(e,t){const n=cI(t);return n===bt?(uo(e,sm(e)?ja.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:ja.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),pt):(jm(!0)||uo(e,sm(e)?ja.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:ja.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),n)}function uI(e,t){if(!e.body)return pt;const n=ky(e),r=0!=(2&n),i=0!=(1&n);let o,a,s,c=Vt;if(238!==e.body.kind)o=WI(e.body,t&&-9&t),r&&(o=jO(MO(o,!1,e,ja.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(i){const n=hI(e,t);n?n.length>0&&(o=wh(n,2)):c=Qt;const{yieldTypes:r,nextTypes:i}=function(e,t){const n=[],r=[],i=0!=(2&ky(e));return bm(e.body,(e=>{const o=e.expression?dO(e.expression,t):Ct;let a;if(we(n,pI(e,o,_t,i)),e.asteriskToken){const t=zL(o,i?19:17,e.expression);a=t&&t.nextType}else a=sD(e,void 0);a&&we(r,a)})),{yieldTypes:n,nextTypes:r}}(e,t);a=_e(r)?wh(r,2):void 0,s=_e(i)?Yh(i):void 0}else{const r=hI(e,t);if(!r)return 2&n?lI(e,Qt):Qt;if(0===r.length)return 2&n?lI(e,Vt):Vt;o=wh(r,2)}if(o||a||s){if(a&&ET(e,a,3),o&&ET(e,o,1),s&&ET(e,s,2),o&&TS(o)||a&&TS(a)||s&&TS(s)){const t=LD(e),n=t?t===mp(e)?i?void 0:o:Bw(Tp(t),e,void 0):void 0;i?(a=PS(a,n,0,r),o=PS(o,n,1,r),s=PS(s,n,2,r)):o=function(e,t,n){return e&&TS(e)&&(e=FS(e,t?n?LO(t):t:void 0)),e}(o,n,r)}a&&(a=TT(a)),o&&(o=TT(o)),s&&(s=TT(s))}return i?dI(a||Qt,o||c,s||kw(2,e)||bt,r):r?cI(o||c):o||c}function dI(e,t,n,r){const i=r?oi:ai,o=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||bt,t=i.resolveIterationType(t,void 0)||bt,n=i.resolveIterationType(n,void 0)||bt,o===Dn){const r=i.getGlobalIterableIteratorType(!1),o=r!==Dn?QL(r,i):void 0,a=o?o.returnType:_t,s=o?o.nextType:Tt;return Ix(t,a)&&Ix(s,n)?r!==Dn?sg(r,[e]):(i.getGlobalIterableIteratorType(!0),hn):(i.getGlobalGeneratorType(!0),hn)}return sg(o,[e,t,n])}function pI(e,t,n,r){const i=e.expression||e,o=e.asteriskToken?OL(r?19:17,t,n,i):t;return r?zO(o,i,e.asteriskToken?ja.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:ja.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function fI(e,t,n){let r=0;for(let i=0;i=t?n[i]:void 0;r|=void 0!==o?IB.get(o)||32768:0}return r}function mI(e){const t=Fo(e);if(void 0===t.isExhaustive){t.isExhaustive=0;const n=function(e){if(218===e.expression.kind){const t=yA(e);if(!t)return!1;const n=Sd(WI(e.expression.expression)),r=fI(0,0,t);return 3&n.flags?556800==(556800&r):!kA(n,(e=>(YC(e)&r)===r))}const t=WI(e.expression);if(!AS(t))return!1;const n=hA(e);return!(!n.length||_e(n,SS))&&(r=wA(t,nb),i=n,1048576&r.flags?!T(r.types,(e=>!R(i,e))):R(i,r));var r,i}(e);0===t.isExhaustive&&(t.isExhaustive=n)}else 0===t.isExhaustive&&(t.isExhaustive=!1);return t.isExhaustive}function gI(e){return e.endFlowNode&&qA(e.endFlowNode)}function hI(e,t){const n=ky(e),r=[];let i=gI(e),o=!1;if(vm(e.body,(a=>{const s=a.expression;if(s){let i=WI(s,t&&-9&t);2&n&&(i=jO(MO(i,!1,e,ja.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),131072&i.flags&&(o=!0),we(r,i)}else i=!0})),0!==r.length||i||!o&&!function(e){switch(e.kind){case 215:case 216:return!0;case 171:return 207===e.parent.kind;default:return!1}}(e))return!(j&&r.length&&i)||vP(e)&&r.some((t=>t.symbol===e.symbol))||we(r,Tt),r}function yI(e,t){_((function(){const n=ky(e),r=t&&oM(t,n);if(r&&PI(r,16385))return;if(170===e.kind||Lp(e.body)||238!==e.body.kind||!gI(e))return;const i=512&e.flags,o=Hv(e)||e;if(r&&131072&r.flags)uo(o,ja.A_function_returning_never_cannot_have_a_reachable_end_point);else if(r&&!i)uo(o,ja.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(r&&j&&!Ix(Tt,r))uo(o,ja.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(C.noImplicitReturns){if(!r){if(!i)return;const t=Tp(mp(e));if(aM(e,t))return}uo(o,ja.Not_all_code_paths_return_a_value)}}))}function vI(e,t){if(In.assert(171!==e.kind||Pm(e)),QM(e),RD(e)&&kL(e,e.name),t&&4&t&&xx(e)){if(!Hv(e)&&!NT(e)){const n=jD(e);if(n&&nC(Tp(n))){const n=Fo(e);if(n.contextFreeType)return n.contextFreeType;const i=uI(e,t),o=Zl(void 0,void 0,void 0,r,i,void 0,0,0),a=hs(e.symbol,x,[o],r,r);return a.objectFlags|=262144,n.contextFreeType=a}}return En}return oB(e)||215!==e.kind||uB(e),function(e,t){const n=Fo(e);if(!(64&n.flags)){const r=jD(e);if(!(64&n.flags)){n.flags|=64;const i=Oe(qd(x_(Ga(e)),0));if(!i)return;if(xx(e))if(r){const n=hD(e);let o;if(t&&2&t){!function(e,t,n){const r=e.parameters.length-(XB(e)?1:0);for(let i=0;iOI(e,t,n))):II(e,t,n)}function LI(e){return!!(16&Vx(e))&&!!e.symbol&&MI(e.symbol)}function MI(e){return 0!=(128&e.flags)}function RI(e,t,n,r,i=!1){const o=e.properties,a=o[n];if(299===a.kind||300===a.kind){const e=a.name,n=gy(e);if(Ml(n)){const e=zd(t,Ql(n));e&&(pF(e,a,i),YE(a,!1,!0,t,e))}const r=mc(a,gv(t,n,32,e));return jI(300===a.kind?a:a.initializer,r)}if(301===a.kind){if(!(nth(e,n))):kg(r),i);uo(o.operatorToken,ja.A_rest_element_cannot_have_an_initializer)}}}function jI(e,t,n,r){let i;if(300===e.kind){const r=e;r.objectAssignmentInitializer&&(!j||16777216&YC(dO(r.objectAssignmentInitializer))||(t=ZC(t,524288)),function(e,t,n,r,i){const o=t.kind;if(63===o&&(207===e.kind||206===e.kind))return jI(e,dO(n,r),r,108===n.kind);let a;a=Pb(o)?FL(e,r):dO(e,r);UI(e,t,n,a,dO(n,r),void 0)}(r.name,r.equalsToken,r.objectAssignmentInitializer,n)),i=e.name}else i=e;return 223===i.kind&&63===i.operatorToken.kind&&(re(i,n),i=i.left,j&&(t=ZC(t,524288))),207===i.kind?function(e,t,n){const r=e.properties;if(j&&0===r.length)return mN(t,e);for(let i=0;iII(t,e)&&II(n,e))),_t}return 64===a&&d(g),g;case 29:case 31:case 32:case 33:return u(a)&&(r=DS(mN(r,e)),i=DS(mN(i,n)),p(((e,t)=>{if(_c(e)||_c(t))return!0;const n=Ix(e,tn),r=Ix(t,tn);return n&&r||!n&&!r&&jx(e,t)}))),Ut;case 34:case 35:case 36:case 37:if(nl(e)||nl(n)){const e=34===a||36===a;uo(o,ja.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,e?"false":"true")}return function(e,t,n,r){const i=m(Hh(n)),o=m(Hh(r));if(i||o){const a=uo(e,ja.This_condition_will_always_return_0,_s(36===t||34===t?95:110));if(i&&o)return;const s=37===t||35===t?_s(53):"",c=i?r:n,_=Hh(c);rT(a,zf(c,ja.Did_you_mean_0,`${s}Number.isNaN(${zb(_)?Jf(_):"..."})`))}}(o,a,e,n),p(((e,t)=>zI(e,t)||zI(t,e))),Ut;case 102:return function(e,t,n,r){return n===Kt||r===Kt?Kt:(!_c(n)&&OI(n,134348796)&&uo(e,ja.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),_c(r)||uR(r)||Ex(r,Vn)||uo(t,ja.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Ut)}(e,n,r,i);case 101:return function(e,t,n,r){return n===Kt||r===Kt?Kt:(Cw(e)?(w<99&&YR(e,2097152),!Fo(e).resolvedSymbol&&qm(e)&&GN(e,r,QN(e,r.symbol,!0))):Jx(mN(n,e),Xt,e),Jx(mN(r,t),$t,t)&&kA(r,(e=>e===An||!!(2097152&e.flags)&&ck(Sd(e))))&&uo(t,ja.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Bs(r)),Ut)}(e,n,r,i);case 55:case 76:{const e=4194304&YC(r)?wh([(c=j?r:wS(i),wA(c,JS)),i]):r;return 76===a&&d(i),e}case 56:case 75:{const e=8388608&YC(r)?wh([qS(jS(r)),i],2):r;return 75===a&&d(i),e}case 60:case 77:{const e=262144&YC(r)?wh([qS(r),i],2):r;return 77===a&&d(i),e}case 63:const h=QD(e.parent)?Hg(e.parent):0;return function(e,t){if(2===e)for(const e of ud(t)){const t=x_(e);if(t.symbol&&32&t.symbol.flags){const t=e.escapedName,n=Ro(e.valueDeclaration,t,788968,void 0,t,!1);(null==n?void 0:n.declarations)&&n.declarations.some(cF)&&(Ao(n,ja.Duplicate_identifier_0,Ic(t),e),Ao(e,ja.Duplicate_identifier_0,Ic(t),n))}}}(h,i),function(t){var r;switch(t){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const t=Xa(e),i=jg(n);return!!i&&ED(i)&&!!(null==(r=null==t?void 0:t.exports)?void 0:r.size);default:return!1}}(h)?(524288&i.flags&&(2===h||6===h||sk(i)||$C(i)||1&Vx(i))||d(i),r):(d(i),i);case 27:if(!C.allowUnreachableCode&&JI(e)&&!(214===(s=e.parent).parent.kind&&ow(s.left)&&"0"===s.left.text&&(PD(s.parent.parent)&&s.parent.parent.expression===s.parent||212===s.parent.parent.kind)&&(Yx(s.right)||Tw(s.right)&&"eval"===s.right.escapedText))){const t=wp(e),n=As(t.text,e.pos);t.parseDiagnostics.some((e=>e.code===ja.JSX_expressions_must_have_one_parent_element.code&&nc(e,n)))||uo(e,ja.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return i;default:return In.fail()}var s,c;function l(e,t){return II(e,2112)&&II(t,2112)}function u(t){const o=NI(r,12288)?e:NI(i,12288)?n:void 0;return!o||(uo(o,ja.The_0_operator_cannot_be_applied_to_type_symbol,_s(t)),!1)}function d(t){Ob(a)&&_((function(){if(DI(e,ja.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,ja.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let i;if(ne&&ND(e)&&PI(t,32768)){const n=cc(_O(e.expression),e.name.escapedText);bk(t,n)&&(i=ja.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}zx(t,r,e,n,i)}}))}function p(e){return!e(r,i)&&(f(e),!0)}function f(e){let n=!1;const a=o||t;if(e){const t=UO(r),o=UO(i);n=!(t===r&&o===i)&&!(!t||!o)&&e(t,o)}let s=r,c=i;!n&&e&&([s,c]=function(e,t,n){let r=e,i=t;const o=wS(e),a=wS(t);return n(o,a)||(r=o,i=a),[r,i]}(r,i,e));const[_,l]=js(s,c);(function(e,n,r,i){switch(t.kind){case 36:case 34:case 37:case 35:return mo(e,n,ja.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,r,i);default:return}})(a,n,_,l)||mo(a,n,ja.Operator_0_cannot_be_applied_to_types_1_and_2,_s(t.kind),_,l)}function m(e){if(Tw(e)&&"NaN"===e.escapedText){const t=Pr||(Pr=um("NaN",!1));return!!t&&t===EC(e)}return!1}}function qI(e){const t=e.parent;return MD(t)&&qI(t)||FD(t)&&t.argumentExpression===e}function VI(e){const t=[e.head.text],n=[];for(const r of e.templateSpans){const e=dO(r.expression);NI(e,12288)&&uo(r.expression,ja.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),t.push(r.literal.text),n.push(Ix(e,nn)?e:Pt)}return YI(e)||qI(e)||kA(sD(e,void 0)||bt,QI)?My(t,n):Pt}function QI(e){return!!(134217856&e.flags||58982400&e.flags&&PI(kd(e)||bt,402653316))}function KI(e,t,n,r){const i=function(e){return dN(e)&&!oN(e.parent)?e.parent.parent:e}(e);pD(i,t,!1),function(e,t){vi[xi]=e,bi[xi]=t,xi++}(i,n);const o=dO(e,1|r|(n?2:0));n&&n.intraExpressionInferenceSites&&(n.intraExpressionInferenceSites=void 0);const a=PI(o,2944)&&XI(o,Bw(t,e,void 0))?nb(o):o;return xi--,fD(),a}function WI(e,t){if(t)return dO(e,t);const n=Fo(e);if(!n.resolvedType){const r=li,i=Qr;li=ui,Qr=void 0,n.resolvedType=dO(e,t),Qr=i,li=r}return n.resolvedType}function HI(e){return 213===(e=Hh(e,!0)).kind||231===e.kind||jF(e)}function $I(e,t,n){const r=Rg(e);if(Sg(e)){const n=XT(e);if(n)return IP(r,n,t)}const i=lO(r)||(n?KI(r,n,void 0,t||0):WI(r,t));return Uw(e)&&204===e.name.kind&&IS(i)&&!i.target.hasRestElement&&_f(i)XI(e,t)));if(58982400&t.flags){const n=kd(t)||bt;return PI(n,4)&&PI(e,128)||PI(n,8)&&PI(e,256)||PI(n,64)&&PI(e,2048)||PI(n,4096)&&PI(e,8192)||XI(e,n)}return!!(406847616&t.flags&&PI(e,128)||256&t.flags&&PI(e,256)||2048&t.flags&&PI(e,2048)||512&t.flags&&PI(e,512)||8192&t.flags&&PI(e,8192))}return!1}function YI(e){const t=e.parent;return lu(t)&&z_(t.type)||jF(t)&&z_(JF(t))||EP(e)&&function(e){const t=sD(e,0);return!!t&&kA(t,hd)}(e)||(MD(t)||DD(t)||$D(t))&&YI(t)||(vN(t)||bN(t)||aE(t))&&YI(t.parent)}function ZI(e,t,n){const r=dO(e,t,n);return YI(e)||Am(e)?nb(r):HI(e)?r:FS(r,Bw(sD(e,void 0),e,void 0))}function eO(e,t){return 164===e.name.kind&&KD(e.name),ZI(e.initializer,t)}function tO(e,t){return hB(e),164===e.name.kind&&KD(e.name),nO(e,vI(e,t),t)}function nO(e,t,n){if(n&&10&n){const r=PF(t,0,!0),i=PF(t,1,!0),o=r||i;if(o&&o.typeParameters){const t=Mw(e,2);if(t){const i=PF(qS(t),r?0:1,!1);if(i&&!i.typeParameters){if(8&n)return rO(e,n),En;const t=hD(e),r=t.signature&&Tp(t.signature),a=r&&FF(r);if(a&&!a.typeParameters&&!F(t.inferences,iO)){const e=function(e,t){const n=[];let r,i;for(const o of t){const t=o.symbol.escapedName;if(aO(e.inferredTypeParameters,t)||aO(n,t)){const a=ds(vo(262144,sO(ue(e.inferredTypeParameters,n),t)));a.target=o,r=Se(r,o),i=Se(i,a),n.push(a)}else n.push(o)}if(i){const e=jb(r,i);for(const t of i)t.mapper=e}return n}(t,o.typeParameters),n=Op(o,e),r=V(t.inferences,(e=>ZT(e.typeParameter)));if(PT(n,i,((e,t)=>{bC(r,e,t,0,!0)})),_e(r,iO)&&(LT(n,i,((e,t)=>{bC(r,e,t)})),!function(e,t){for(let n=0;ne.symbol.escapedName===t))}function sO(e,t){let n=t.length;for(;n>1&&t.charCodeAt(n-1)>=48&&t.charCodeAt(n-1)<=57;)n--;const r=t.slice(0,n);for(let t=1;;t++){const n=r+t;if(!aO(e,n))return n}}function cO(e){const t=NF(e);if(t&&!t.typeParameters)return Tp(t)}function _O(e){const t=lO(e);if(t)return t;if(134217728&e.flags&&Qr){const t=Qr[qB(e)];if(t)return t}const n=fi,r=dO(e);return fi!==n&&((Qr||(Qr=[]))[qB(e)]=r,xT(e,134217728|e.flags)),r}function lO(e){let t=Hh(e,!0);if(jF(t)){const e=JF(t);if(!z_(e))return Db(e)}if(t=Hh(e),UD(t)){const e=lO(t.expression);return e?zO(e):void 0}return!PD(t)||106===t.expression.kind||Dg(t,!0)||TP(t)?lu(t)&&!z_(t.type)?Db(t.type):tl(e)||Al(e)?dO(e):void 0:L_(t)?function(e){const t=dO(e.expression),n=HS(t,e.expression),r=cO(t);return r&&WS(r,e,n!==t)}(t):cO(tN(t.expression))}function uO(e){const t=Fo(e);if(t.contextFreeType)return t.contextFreeType;pD(e,_t,!1);const n=t.contextFreeType=dO(e,4);return fD(),n}function dO(e,n,i){var a,s;null==(a=Ur)||a.push(Ur.Phase.Check,"checkExpression",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});const c=o;o=e,h=0;const l=function(e,n,i){const o=e.kind;if(t)switch(o){case 228:case 215:case 216:t.throwIfCancellationRequested()}switch(o){case 79:return iw(e,n);case 80:return function(e){!function(e){if(!qm(e))return EB(e,ja.Private_identifiers_are_not_allowed_outside_class_bodies);if(!gE(e.parent)){if(!pg(e))return EB(e,ja.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);const t=QD(e.parent)&&101===e.parent.operatorToken.kind;FN(e)||t||EB(e,ja.Cannot_find_name_0,Oc(e))}}(e);const t=FN(e);return t&&pF(t,void 0,!1),_t}(e);case 108:return dw(e);case 106:return mw(e);case 104:return Nt;case 14:case 10:return tb(ib(e.text));case 8:return LB(e),tb(yb(+e.text));case 9:return function(e){!(xD(e.parent)||qD(e.parent)&&xD(e.parent.parent))&&w<7&&EB(e,ja.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020)}(e),tb(vb({negative:!1,base10Value:_T(e.text)}));case 110:return Bt;case 95:return Lt;case 225:return VI(e);case 13:return Yn;case 206:return VD(e,n,i);case 207:return function(e,t){var n;const i=Jh(e);!function(e,t){const n=new Map;for(const r of e.properties){if(301===r.kind){if(t){const e=Hh(r.expression);if(DD(e)||ED(e))return EB(r.expression,ja.A_rest_element_cannot_contain_a_binding_pattern)}continue}const e=r.name;if(164===e.kind&&lB(e),300===r.kind&&!t&&r.objectAssignmentInitializer&&EB(r.equalsToken,ja.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),80===e.kind&&EB(e,ja.Private_identifiers_are_not_allowed_outside_class_bodies),LP(r)&&r.modifiers)for(const e of r.modifiers)!vl(e)||132===e.kind&&171===r.kind||EB(e,ja._0_modifier_cannot_be_used_here,ef(e));else if(lP(r)&&r.modifiers)for(const e of r.modifiers)vl(e)&&EB(e,ja._0_modifier_cannot_be_used_here,ef(e));let i;switch(r.kind){case 300:case 299:pB(r.exclamationToken,ja.A_definite_assignment_assertion_is_not_permitted_in_this_context),dB(r.questionToken,ja.An_object_member_cannot_be_declared_optional),8===e.kind&&LB(e),i=4;break;case 171:i=8;break;case 174:i=1;break;case 175:i=2;break;default:throw In.assertNever(r,"Unexpected syntax kind:"+r.kind)}if(!t){const t=Dy(e);if(void 0===t)continue;const r=n.get(t);if(r)if(8&i&&8&r)EB(e,ja.Duplicate_identifier_0,ef(e));else if(4&i&&4&r)EB(e,ja.An_object_literal_cannot_have_multiple_properties_with_the_same_name,ef(e));else{if(!(3&i&&3&r))return EB(e,ja.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===r||i===r)return EB(e,ja.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);n.set(t,i|r)}else n.set(t,i)}}}(e,i);const o=j?ip():void 0;let a=ip(),s=[],c=hn;dD(e);const _=Mw(e,void 0),l=_&&_.pattern&&(203===_.pattern.kind||207===_.pattern.kind),u=YI(e),d=u?8:0,p=Sg(e)&&!Tg(e),f=f_(e),m=!_&&p&&!f;let g=te,h=!1,y=!1,v=!1,b=!1;for(const t of e.properties)t.name&&Jw(t.name)&&KD(t.name);let x=0;for(const n of e.properties){let r=Ga(n);const m=n.name&&164===n.name.kind?KD(n.name):void 0;if(299===n.kind||300===n.kind||Pm(n)){let a=299===n.kind?eO(n,t):300===n.kind?ZI(!i&&n.objectAssignmentInitializer?n.objectAssignmentInitializer:n.name,t):tO(n,t);if(p){const e=xc(n);e?(Jx(a,e,n),a=e):f&&f.typeExpression&&Jx(a,Db(f.typeExpression),n)}g|=458752&Vx(a);const s=m&&Ml(m)?m:void 0,c=s?vo(4|r.flags,Ql(s),4096|d):vo(4|r.flags,r.escapedName,d);if(s&&(c.links.nameType=s),i)(299===n.kind&&zD(n.initializer)||300===n.kind&&n.objectAssignmentInitializer)&&(c.flags|=16777216);else if(l&&!(512&Vx(_))){const e=zd(_,r.escapedName);e?c.flags|=16777216&e.flags:C.suppressExcessPropertyErrors||$d(_,Pt)||uo(n.name,ja.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ms(r),Bs(_))}if(c.declarations=r.declarations,c.parent=r.parent,r.valueDeclaration&&(c.valueDeclaration=r.valueDeclaration),c.links.type=a,c.links.target=r,r=c,null==o||o.set(c.escapedName,c),_&&t&&2&t&&!(4&t)&&(299===n.kind||171===n.kind)&&xx(n)){const t=hD(e);In.assert(t),YT(t,299===n.kind?n.initializer:n,a)}}else{if(301===n.kind){w<2&&YR(n,2),s.length>0&&(c=Xv(c,k(),e.symbol,g,u),s=[],a=ip(),y=!1,v=!1,b=!1);const t=Md(dO(n.expression));if(tE(t)){const r=Wv(t,u);if(o&&lE(r,o,n),x=s.length,lc(c))continue;c=Xv(c,r,e.symbol,g,u)}else uo(n,ja.Spread_types_may_only_be_created_from_object_types),c=pt;continue}In.assert(174===n.kind||175===n.kind),QM(n)}!m||8576&m.flags?a.set(r.escapedName,r):Ix(m,Xt)&&(Ix(m,It)?v=!0:Ix(m,qt)?b=!0:y=!0,i&&(h=!0)),s.push(r)}if(fD(),l){const t=Ec(_.pattern.parent,(e=>257===e.kind||223===e.kind||166===e.kind));if(301!==Ec(e,(e=>e===t||301===e.kind)).kind)for(const e of fd(_))a.get(e.escapedName)||zd(c,e.escapedName)||(16777216&e.flags||uo(e.valueDeclaration||(null==(n=xt(e,op))?void 0:n.links.bindingElement),ja.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),a.set(e.escapedName,e),s.push(e))}return lc(c)?pt:c!==hn?(s.length>0&&(c=Xv(c,k(),e.symbol,g,u),s=[],a=ip(),y=!1,v=!1),wA(c,(e=>e===hn?k():e))):k();function k(){const t=[];y&&t.push(ZD(e,x,s,Pt)),v&&t.push(ZD(e,x,s,It)),b&&t.push(ZD(e,x,s,qt));const n=hs(e.symbol,a,r,r,t);return n.objectFlags|=131200|g,m&&(n.objectFlags|=4096),h&&(n.objectFlags|=512),i&&(n.pattern=e),n}}(e,n);case 208:return SN(e,n);case 163:return CN(e,n);case 209:return function(e,t){return 32&e.flags?function(e,t){const n=dO(e.expression),r=HS(n,e.expression);return WS(bF(e,mN(r,e.expression),t),e,r!==n)}(e,t):bF(e,tN(e.expression),t)}(e,n);case 210:if(100===e.expression.kind)return function(e){if(function(e){if(C.verbatimModuleSyntax&&1===D)return EB(e,ja.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(5===D)return EB(e,ja.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(e.typeArguments)return EB(e,ja.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const t=e.arguments;if(99!==D&&199!==D&&100!==D&&(nB(t),t.length>1))return EB(t[1],ja.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext);if(0===t.length||t.length>2)return EB(e,ja.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);const n=P(t,$D);n&&EB(n,ja.Argument_of_dynamic_import_cannot_be_spread_element)}(e),0===e.arguments.length)return lI(e,_t);const t=e.arguments[0],n=WI(t),r=e.arguments.length>1?WI(e.arguments[1]):void 0;for(let t=2;tfunction(e){const t=Qm(e);if(t&&Hw(t))uo(e,ja.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(32768&e.flags))if(Hm(e)){const t=wp(e);if(!TB(t)){let n;if(!kf(t,C)){null!=n||(n=Xf(t,e.pos));const r=kk(t,n.start,n.length,ja.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module);Wi.add(r)}switch(D){case 100:case 199:if(1===t.impliedNodeFormat){null!=n||(n=Xf(t,e.pos)),Wi.add(kk(t,n.start,n.length,ja.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(w>=4)break;default:null!=n||(n=Xf(t,e.pos)),Wi.add(kk(t,n.start,n.length,ja.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher))}}}else{const n=wp(e);if(!TB(n)){const r=Xf(n,e.pos),i=kk(n,r.start,r.length,ja.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);t&&173!==t.kind&&0==(2&ky(t))&&rT(i,zf(t,ja.Did_you_mean_to_mark_this_function_as_async)),Wi.add(i)}}xw(e)&&uo(e,ja.await_expressions_cannot_be_used_in_a_parameter_initializer)}(e)));const t=dO(e.expression),n=MO(t,!0,e,ja.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return n!==t||lc(n)||3&t.flags||po(!1,zf(e,ja.await_has_no_effect_on_the_type_of_this_expression)),n}(e);case 221:return function(e){const t=dO(e.operand);if(t===Kt)return Kt;switch(e.operand.kind){case 8:switch(e.operator){case 40:return tb(yb(-e.operand.text));case 39:return tb(yb(+e.operand.text))}break;case 9:if(40===e.operator)return tb(vb({negative:!0,base10Value:_T(e.operand.text)}))}switch(e.operator){case 39:case 40:case 54:return mN(t,e.operand),NI(t,12288)&&uo(e.operand,ja.The_0_operator_cannot_be_applied_to_type_symbol,_s(e.operator)),39===e.operator?(NI(t,2112)&&uo(e.operand,ja.Operator_0_cannot_be_applied_to_type_1,_s(e.operator),Bs(wS(t))),It):EI(t);case 53:FL(e.operand);const n=12582912&YC(t);return 4194304===n?Lt:8388608===n?Bt:Ut;case 45:case 46:return kI(e.operand,mN(t,e.operand),ja.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&DI(e.operand,ja.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,ja.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),EI(t)}return pt}(e);case 222:return function(e){const t=dO(e.operand);return t===Kt?Kt:(kI(e.operand,mN(t,e.operand),ja.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&DI(e.operand,ja.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,ja.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),EI(t))}(e);case 223:return re(e,n);case 224:return function(e,t){const n=FL(e.condition);return EL(e.condition,n,e.whenTrue),wh([dO(e.whenTrue,t),dO(e.whenFalse,t)],2)}(e,n);case 227:return function(e,t){return w<2&&YR(e,C.downlevelIteration?1536:1024),OL(33,dO(e.expression,t),Tt,e.expression)}(e,n);case 229:return Ct;case 226:return function(e){_((function(){8192&e.flags||CB(e,ja.A_yield_expression_is_only_allowed_in_a_generator_body),xw(e)&&uo(e,ja.yield_expressions_cannot_be_used_in_a_parameter_initializer)}));const t=zm(e);if(!t)return _t;const n=ky(t);if(!(1&n))return _t;const r=0!=(2&n);e.asteriskToken&&(r&&w<99&&YR(e,26624),!r&&w<2&&C.downlevelIteration&&YR(e,256));const i=Cp(t),o=i&&iM(i,r),a=o&&o.yieldType||_t,s=o&&o.nextType||_t,c=r?zO(s)||_t:s,l=e.expression?dO(e.expression):Ct,u=pI(e,l,c,r);if(i&&u&&zx(u,a,e.expression||e,e.expression),e.asteriskToken)return ML(r?19:17,1,l,e.expression)||_t;if(i)return rM(2,i,r)||_t;let d=kw(2,t);return d||(d=_t,_((()=>{if(G&&!wT(e)){const t=sD(e,void 0);t&&!_c(t)||uo(e,ja.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}}))),d}(e);case 234:return function(e){return e.isSpread?gv(e.type,It):e.type}(e);case 291:return function(e,t){if(function(e){e.expression&&BF(e.expression)&&EB(e.expression,ja.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(e),e.expression){const n=dO(e.expression,t);return e.dotDotDotToken&&n!==_t&&!_S(n)&&uo(e,ja.JSX_spread_child_must_be_an_array_type),n}return pt}(e,n);case 281:case 282:return function(e,t){return QM(e),AE(e)||_t}(e);case 285:return function(e){zE(e.openingFragment);const t=wp(e);return!uS(C)||!C.jsxFactory&&!t.pragmas.has("jsx")||C.jsxFragmentFactory||t.pragmas.has("jsxfrag")||uo(e,C.jsxFactory?ja.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:ja.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),sE(e),AE(e)||_t}(e);case 289:return function(e,t){return function(e,t){const n=e.attributes,i=sD(n,0),o=j?ip():void 0;let a,s=ip(),c=xn,_=!1,l=!1,u=2048;const d=xE(vE(e));for(const e of n.properties){const r=e.symbol;if(uN(e)){const n=oE(e,t);u|=458752&Vx(n);const a=vo(4|r.flags,r.escapedName);if(a.declarations=r.declarations,a.parent=r.parent,r.valueDeclaration&&(a.valueDeclaration=r.valueDeclaration),a.links.type=n,a.links.target=r,s.set(a.escapedName,a),null==o||o.set(a.escapedName,a),e.name.escapedText===d&&(l=!0),i){const t=zd(i,r.escapedName);t&&t.declarations&&ho(t)&&yo(e.name,t.declarations,e.name.escapedText)}}else{In.assert(290===e.kind),s.size>0&&(c=Xv(c,f(),n.symbol,u,!1),s=ip());const r=Md(WI(e.expression,t));_c(r)&&(_=!0),tE(r)?(c=Xv(c,r,n.symbol,u,!1),o&&lE(r,o,e)):(uo(e.expression,ja.Spread_types_may_only_be_created_from_object_types),a=a?Yh([a,r]):r)}}_||s.size>0&&(c=Xv(c,f(),n.symbol,u,!1));const p=281===e.parent.kind?e.parent:void 0;if(p&&p.openingElement===e&&p.children.length>0){const i=sE(p,t);if(!_&&d&&""!==d){l&&uo(n,ja._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Ic(d));const t=Mw(e.attributes,void 0),o=t&&Nw(t,d),a=vo(4,d);a.links.type=1===i.length?i[0]:o&&kA(o,xS)?Vg(i):kg(wh(i)),a.valueDeclaration=dC.createPropertySignature(void 0,Ic(d),void 0,void 0),kT(a.valueDeclaration,n),a.valueDeclaration.symbol=a;const s=ip();s.set(d,a),c=Xv(c,hs(n.symbol,s,r,r,r),n.symbol,u,!1)}}return _?_t:a&&c!==xn?Yh([a,c]):a||(c===xn?f():c);function f(){u|=te;const e=hs(n.symbol,s,r,r,r);return e.objectFlags|=131200|u,e}}(e.parent,t)}(e,n);case 283:In.fail("Shouldn't ever directly check a JsxOpeningElement")}return pt}(e,n,i),u=nO(e,l,n);return LI(u)&&function(e,t){208===e.parent.kind&&e.parent.expression===e||209===e.parent.kind&&e.parent.expression===e||(79===e.kind||163===e.kind)&&tR(e)||183===e.parent.kind&&e.parent.exprName===e||278===e.parent.kind||uo(e,ja.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),qk(C)&&(In.assert(!!(128&t.symbol.flags)),16777216&t.symbol.valueDeclaration.flags&&uo(e,ja.Cannot_access_ambient_const_enums_when_0_is_enabled,ye))}(e,u),o=c,null==(s=Ur)||s.pop(),u}function pO(e){eB(e),e.expression&&CB(e.expression,ja.Type_expected),UM(e.constraint),UM(e.default);const t=ll(Ga(e));kd(t),function(e){return Ad(e)!==Fn}(t)||uo(e.default,ja.Type_parameter_0_has_a_circular_default,Bs(t));const n=gd(t),r=wd(t);n&&r&&Jx(r,Gl(gx(n,Gb(t,r)),r),e.default,ja.Type_0_does_not_satisfy_the_constraint_1),QM(e),_((()=>lM(e.name,ja.Type_parameter_name_cannot_be_0)))}function fO(e){eB(e),TL(e);const t=zm(e);cb(e,16476)&&(173===t.kind&&Mp(t.body)||uo(e,ja.A_parameter_property_is_only_allowed_in_a_constructor_implementation),173===t.kind&&Tw(e.name)&&"constructor"===e.name.escapedText&&uo(e.name,ja.constructor_cannot_be_used_as_a_parameter_property_name)),!e.initializer&&WT(e)&&Ul(e.name)&&t.body&&uo(e,ja.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),e.name&&Tw(e.name)&&("this"===e.name.escapedText||"new"===e.name.escapedText)&&(0!==t.parameters.indexOf(e)&&uo(e,ja.A_0_parameter_must_be_the_first_parameter,e.name.escapedText),173!==t.kind&&177!==t.kind&&182!==t.kind||uo(e,ja.A_constructor_cannot_have_a_this_parameter),216===t.kind&&uo(e,ja.An_arrow_function_cannot_have_a_this_parameter),174!==t.kind&&175!==t.kind||uo(e,ja.get_and_set_accessors_cannot_declare_this_parameters)),!e.dotDotDotToken||Ul(e.name)||Ix(Md(x_(e.symbol)),nr)||uo(e,ja.A_rest_parameter_must_be_of_an_array_type)}function mO(e,t,n){for(const r of e.elements){if(XD(r))continue;const e=r.name;if(79===e.kind&&e.escapedText===n)return uo(t,ja.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((204===e.kind||203===e.kind)&&mO(e,t,n))return!0}}function gO(e){178===e.kind?function(e){eB(e)||function(e){const t=e.parameters[0];if(1!==e.parameters.length)return EB(t?t.name:e,ja.An_index_signature_must_have_exactly_one_parameter);if(nB(e.parameters,ja.An_index_signature_cannot_have_a_trailing_comma),t.dotDotDotToken)return EB(t.dotDotDotToken,ja.An_index_signature_cannot_have_a_rest_parameter);if(ob(t))return EB(t.name,ja.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return EB(t.questionToken,ja.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return EB(t.name,ja.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return EB(t.name,ja.An_index_signature_parameter_must_have_a_type_annotation);const n=Db(t.type);kA(n,(e=>!!(8576&e.flags)))||nv(n)?EB(t.name,ja.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):SA(n,Kp)?e.type||EB(e,ja.An_index_signature_must_have_a_type_annotation):EB(t.name,ja.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}(e)}(e):181!==e.kind&&259!==e.kind&&182!==e.kind&&176!==e.kind&&173!==e.kind&&177!==e.kind||oB(e);const t=ky(e);4&t||(3==(3&t)&&w<99&&YR(e,6144),2==(3&t)&&w<4&&YR(e,64),0!=(3&t)&&w<2&&YR(e,128)),uM(E_(e)),function(e){const t=z(S_(e),rF);if(!S(t))return;const n=Sg(e),r=new Set,i=new Set;if(T(e.parameters,(({name:e},t)=>{Tw(e)&&r.add(e.escapedText),Ul(e)&&i.add(t)})),yp(e)){const e=t.length-1,o=t[e];n&&o&&Tw(o.name)&&o.typeExpression&&o.typeExpression.type&&!r.has(o.name.escapedText)&&!i.has(e)&&!_S(Db(o.typeExpression.type))&&uo(o.name,ja.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,Oc(o.name))}else T(t,(({name:e,isNameFirst:t},o)=>{i.has(o)||Tw(e)&&r.has(e.escapedText)||(jw(e)?n&&uo(e,ja.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Jf(e),Jf(e.left)):t||fo(n,e,ja.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Oc(e)))}))}(e),T(e.parameters,fO),e.type&&UM(e.type),_((function(){!function(e){w>=2||!nd(e)||16777216&e.flags||Lp(e.body)||T(e.parameters,(e=>{e.name&&!Ul(e.name)&&e.name.escapedText===ge.escapedName&&_o("noEmit",e,ja.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(e);const t=Hv(e);if(G&&!t)switch(e.kind){case 177:uo(e,ja.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 176:uo(e,ja.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(t){const n=ky(e);if(1==(5&n)){const e=Db(t);if(e===Vt)uo(t,ja.A_generator_cannot_have_a_void_type_annotation);else{const r=rM(0,e,0!=(2&n))||_t;Jx(dI(r,rM(1,e,0!=(2&n))||r,rM(2,e,0!=(2&n))||bt,!!(2&n)),e,t)}}else 2==(3&n)&&function(e,t){const n=Db(t);if(w>=2){if(lc(n))return;const e=Rm(!0);if(e!==Dn&&!T_(n,e))return void uo(t,ja.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,Bs(UO(n)||Vt))}else{if(function(e){HO(e&&rg(e),!1)}(t),lc(n))return;const r=rg(t);if(void 0===r)return void uo(t,ja.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Bs(n));const i=Fa(r,111551,!0),o=i?x_(i):pt;if(lc(o))return void(79===r.kind&&"Promise"===r.escapedText&&C_(n)===Rm(!1)?uo(t,ja.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):uo(t,ja.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Jf(r)));const a=(!0,ur||(ur=mm("PromiseConstructorLike",0,true))||hn);if(a===hn)return void uo(t,ja.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Jf(r));if(!Jx(o,a,t,ja.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;const s=r&&Ub(r),c=Io(e.locals,s.escapedText,111551);if(c)return void uo(c.valueDeclaration,ja.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Oc(s),Jf(r))}MO(n,!1,e,ja.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(e,t)}178!==e.kind&&320!==e.kind&&nL(e)}))}function hO(e){const t=new Map;for(const n of e.members)if(168===n.kind){let e;const r=n.name;switch(r.kind){case 10:case 8:e=r.text;break;case 79:e=Oc(r);break;default:continue}t.get(e)?(uo(qc(n.symbol.valueDeclaration),ja.Duplicate_identifier_0,e),uo(n.name,ja.Duplicate_identifier_0,e)):t.set(e,!0)}}function yO(e){if(261===e.kind){const t=Ga(e);if(t.declarations&&t.declarations.length>0&&t.declarations[0]!==e)return}const t=zp(Ga(e));if(null==t?void 0:t.declarations){const e=new Map;for(const n of t.declarations)1===n.parameters.length&&n.parameters[0].type&&xA(Db(n.parameters[0].type),(t=>{const r=e.get(_h(t));r?r.declarations.push(n):e.set(_h(t),{type:t,declarations:[n]})}));e.forEach((e=>{if(e.declarations.length>1)for(const t of e.declarations)uo(t,ja.Duplicate_index_signature_for_type_0,Bs(e.type))}))}}function vO(e){eB(e)||function(e){if(Jw(e.name)&&QD(e.name.expression)&&101===e.name.expression.operatorToken.kind)return EB(e.parent.members[0],ja.A_mapped_type_may_not_declare_properties_or_methods);if(Fl(e.parent)){if(sw(e.name)&&"constructor"===e.name.text)return EB(e.name,ja.Classes_may_not_have_a_field_named_constructor);if(gB(e.name,ja.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(w<2&&Cw(e.name))return EB(e.name,ja.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(w<2&&Il(e))return EB(e.name,ja.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Il(e)&&dB(e.questionToken,ja.An_accessor_property_cannot_be_declared_optional))return!0}else if(261===e.parent.kind){if(gB(e.name,ja.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(In.assertNode(e,Vw),e.initializer)return EB(e.initializer,ja.An_interface_property_cannot_have_an_initializer)}else if(aD(e.parent)){if(gB(e.name,ja.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(In.assertNode(e,Vw),e.initializer)return EB(e.initializer,ja.A_type_literal_property_cannot_have_an_initializer)}if(16777216&e.flags&&vB(e),Qw(e)&&e.exclamationToken&&(!Fl(e.parent)||!e.type||e.initializer||16777216&e.flags||_b(e)||db(e))){const t=e.initializer?ja.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.type?ja.A_definite_assignment_assertion_is_not_permitted_in_this_context:ja.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return EB(e.exclamationToken,t)}}(e)||lB(e.name),TL(e),bO(e),cb(e,256)&&169===e.kind&&e.initializer&&uo(e,ja.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Lf(e.name))}function bO(e){if(Cw(e.name)&&w<99){for(let t=If(e);t;t=If(t))Fo(t).flags|=4194304;if(GD(e.parent)){const t=aw(e.parent);t&&(Fo(e.name).flags|=32768,Fo(t).flags|=4096)}}}function xO(e){return 106===e.kind||108===e.kind||!Wm(e)&&!!bI(e,xO)}function kO(e){Tw(e.name)&&"constructor"===Oc(e.name)&&uo(e.name,ja.Class_constructor_may_not_be_an_accessor),_((function(){if(oB(e)||function(e){if(!(16777216&e.flags)&&184!==e.parent.kind&&261!==e.parent.kind){if(w<1)return EB(e.name,ja.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(w<2&&Cw(e.name))return EB(e.name,ja.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(void 0===e.body&&!cb(e,256))return DB(e,e.end-1,1,ja._0_expected,"{")}if(e.body){if(cb(e,256))return EB(e,ja.An_abstract_accessor_cannot_have_an_implementation);if(184===e.parent.kind||261===e.parent.kind)return EB(e.body,ja.An_implementation_cannot_be_declared_in_ambient_contexts)}if(e.typeParameters)return EB(e.name,ja.An_accessor_cannot_have_type_parameters);if(!function(e){return mB(e)||e.parameters.length===(174===e.kind?0:1)}(e))return EB(e.name,174===e.kind?ja.A_get_accessor_cannot_have_parameters:ja.A_set_accessor_must_have_exactly_one_parameter);if(175===e.kind){if(e.type)return EB(e.name,ja.A_set_accessor_cannot_have_a_return_type_annotation);const t=In.checkDefined(Bv(e),"Return value does not match parameter count assertion.");if(t.dotDotDotToken)return EB(t.dotDotDotToken,ja.A_set_accessor_cannot_have_rest_parameter);if(t.questionToken)return EB(t.questionToken,ja.A_set_accessor_cannot_have_an_optional_parameter);if(t.initializer)return EB(e.name,ja.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}(e)||lB(e.name),ZO(e),gO(e),174===e.kind&&!(16777216&e.flags)&&Mp(e.body)&&256&e.flags&&(512&e.flags||uo(e.name,ja.A_get_accessor_must_return_a_value)),164===e.name.kind&&KD(e.name),Vl(e)){const t=Ga(e),n=np(t,174),r=np(t,175);if(n&&r&&!(1&PR(n))){Fo(n).flags|=1;const e=bb(n),t=bb(r);(256&e)!=(256&t)&&(uo(n.name,ja.Accessors_must_both_be_abstract_or_non_abstract),uo(r.name,ja.Accessors_must_both_be_abstract_or_non_abstract)),(16&e&&!(24&t)||8&e&&!(8&t))&&(uo(n.name,ja.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),uo(r.name,ja.A_get_accessor_must_be_at_least_as_accessible_as_the_setter));const i=s_(n),o=s_(r);i&&o&&Jx(i,o,n,ja.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type)}}const t=c_(Ga(e));174===e.kind&&yI(e,t)})),UM(e.body),bO(e)}function SO(e,t,n){return e.typeArguments&&n{const t=AO(e);t&&CO(e,t)}));const t=Fo(e).resolvedSymbol;t&&_e(t.declarations,(e=>zT(e)&&!!(268435456&e.flags)))&&yo(SP(e),t.declarations,t.escapedName)}}function EO(e,t){if(!(8388608&e.flags))return e;const n=e.objectType,r=e.indexType;if(Ix(r,Py(n,!1)))return 209===t.kind&&Jh(t)&&32&Vx(n)&&1&Vu(n)&&uo(t,ja.Index_signature_in_type_0_only_permits_reading,Bs(n)),e;const i=Nd(n);if($d(i,It)&&II(r,296))return e;if(rv(n)){const e=Hy(r,t);if(e){const n=xA(i,(t=>zd(t,e)));if(n&&24&Px(n))return uo(t,ja.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Ic(e)),pt}}return uo(t,ja.Type_0_cannot_be_used_to_index_type_1,Bs(r),Bs(n)),pt}function NO(e){return(sb(e,8)||fl(e))&&!!(16777216&e.flags)}function FO(e,t){let n=Tc(e);return 261!==e.parent.kind&&260!==e.parent.kind&&228!==e.parent.kind&&16777216&e.flags&&(2&n||LE(e.parent)&&OE(e.parent.parent)&&yf(e.parent.parent)||(n|=1),n|=2),n&t}function PO(e){_((()=>function(e){function t(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}let n,r,i,o=0,a=283,s=!1,c=!0,_=!1;const l=e.declarations,u=0!=(16384&e.flags);function d(e){if(e.name&&Lp(e.name))return;let t=!1;const n=bI(e.parent,(n=>{if(t)return n;t=n===e}));if(n&&n.pos===e.end&&n.kind===e.kind){const t=n.name||n,r=n.name;if(e.name&&r&&(Cw(e.name)&&Cw(r)&&e.name.escapedText===r.escapedText||Jw(e.name)&&Jw(r)||Ey(e.name)&&Ey(r)&&Fy(e.name)===Fy(r)))return void(171!==e.kind&&170!==e.kind||_b(e)===_b(n)||uo(t,_b(e)?ja.Function_overload_must_be_static:ja.Function_overload_must_not_be_static));if(Mp(n.body))return void uo(t,ja.Function_implementation_name_must_be_0,Lf(e.name))}const r=e.name||e;u?uo(r,ja.Constructor_implementation_is_missing):cb(e,256)?uo(r,ja.All_declarations_of_an_abstract_method_must_be_consecutive):uo(r,ja.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let p=!1,f=!1,m=!1;const g=[];if(l)for(const e of l){const t=e,l=16777216&t.flags,h=t.parent&&(261===t.parent.kind||184===t.parent.kind)||l;if(h&&(i=void 0),260!==t.kind&&228!==t.kind||l||(m=!0),259===t.kind||171===t.kind||170===t.kind||173===t.kind){g.push(t);const e=FO(t,283);o|=e,a&=e,s=s||hh(t),c=c&&hh(t);const l=Mp(t.body);l&&n?u?f=!0:p=!0:(null==i?void 0:i.parent)===t.parent&&i.end!==t.pos&&d(i),l?n||(n=t):_=!0,i=t,h||(r=t)}if(Sg(e)&&Sl(e)&&e.jsDoc)for(const t of e.jsDoc)if(t.tags)for(const e of t.tags)ZN(e)&&(_=!0)}if(f&&T(g,(e=>{uo(e,ja.Multiple_constructor_implementations_are_not_allowed)})),p&&T(g,(e=>{uo(qc(e)||e,ja.Duplicate_function_implementation)})),m&&!u&&16&e.flags&&l){const t=z(l,(e=>260===e.kind)).map((e=>zf(e,ja.Consider_adding_a_declare_modifier_to_this_class)));T(l,(n=>{const r=260===n.kind?ja.Class_declaration_cannot_implement_overload_list_for_0:259===n.kind?ja.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;r&&rT(uo(qc(n)||n,r,Mc(e)),...t)}))}if(!r||r.body||cb(r,256)||r.questionToken||d(r),_&&(l&&(function(e,n,r,i,o){if(0!=(i^o)){const i=FO(t(e,n),r);T(e,(e=>{const t=FO(e,r)^i;1&t?uo(qc(e),ja.Overload_signatures_must_all_be_exported_or_non_exported):2&t?uo(qc(e),ja.Overload_signatures_must_all_be_ambient_or_non_ambient):24&t?uo(qc(e)||e,ja.Overload_signatures_must_all_be_public_private_or_protected):256&t&&uo(qc(e),ja.Overload_signatures_must_all_be_abstract_or_non_abstract)}))}}(l,n,283,o,a),function(e,n,r,i){if(r!==i){const r=hh(t(e,n));T(e,(e=>{hh(e)!==r&&uo(qc(e),ja.Overload_signatures_must_all_be_optional_or_required)}))}}(l,n,s,c)),n)){const t=vp(e),r=mp(n);for(const e of t)if(!ok(r,e)){rT(uo(e.declaration&&qN(e.declaration)?e.declaration.parent.tagName:e.declaration,ja.This_overload_signature_is_not_compatible_with_its_implementation_signature),zf(n,ja.The_implementation_signature_is_declared_here));break}}}(e)))}function IO(e){_((()=>function(e){let t=e.localSymbol;if(!t&&(t=Ga(e),!t.exportSymbol))return;if(np(t,e.kind)!==e)return;let n=0,r=0,i=0;for(const e of t.declarations){const t=s(e),o=FO(e,1025);1&o?1024&o?i|=t:n|=t:r|=t}const o=n&r,a=i&(n|r);if(o||a)for(const e of t.declarations){const t=s(e),n=qc(e);t&a?uo(n,ja.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Lf(n)):t&o&&uo(n,ja.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Lf(n))}function s(e){let t=e;switch(t.kind){case 261:case 262:case 349:case 341:case 343:return 2;case 264:return df(t)||0!==BR(t)?5:4;case 260:case 263:case 302:return 3;case 308:return 7;case 274:case 223:const e=t,n=HE(e)?e.expression:e.right;if(!zb(n))return 1;t=n;case 268:case 271:case 270:let r=0;return T(xa(Ga(t)).declarations,(e=>{r|=s(e)})),r;case 257:case 205:case 259:case 273:case 79:return 1;case 170:case 168:return 2;default:return In.failBadSyntaxKind(t)}}}(e)))}function OO(e,t,n,r){const i=LO(e,t);return i&&zO(i,t,n,r)}function LO(e,t,n){if(_c(e))return;const i=e;if(i.promisedTypeOfPromise)return i.promisedTypeOfPromise;if(T_(e,Rm(!1)))return i.promisedTypeOfPromise=cf(e)[0];if(OI(Sd(e),134479868))return;const o=cc(e,"then");if(_c(o))return;const a=o?qd(o,0):r;if(0===a.length)return void(t&&uo(t,ja.A_promise_must_have_a_then_method));let s,c;for(const t of a){const n=xp(t);n&&n!==Vt&&!pk(e,n,Gi)?s=n:c=Se(c,t)}if(!c)return In.assertIsDefined(s),n&&(n.value=s),void(t&&uo(t,ja.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Bs(e),Bs(s)));const _=ZC(wh(V(c,eI)),2097152);if(_c(_))return;const l=qd(_,0);if(0!==l.length)return i.promisedTypeOfPromise=wh(V(l,eI),2);t&&uo(t,ja.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}function MO(e,t,n,r,i){return(t?zO(e,n,r,i):UO(e,n,r,i))||pt}function RO(e){if(OI(Sd(e),134479868))return!1;const t=cc(e,"then");return!!t&&qd(ZC(t,2097152),0).length>0}function BO(e){var t;if(16777216&e.flags){const n=Ym(!1);return!!n&&e.aliasSymbol===n&&1===(null==(t=e.aliasTypeArguments)?void 0:t.length)}return!1}function jO(e){return 1048576&e.flags?wA(e,jO):BO(e)?e.aliasTypeArguments[0]:e}function JO(e){if(_c(e)||BO(e))return!1;if(rv(e)){const t=kd(e);if(t?3&t.flags||sk(t)||kA(t,RO):PI(e,8650752))return!0}return!1}function zO(e,t,n,r){const i=UO(e,t,n,r);return i&&function(e){if(JO(e)){const t=function(e){const t=Ym(!0);if(t)return mf(t,[jO(e)])}(e);if(t)return t}return In.assert(BO(e)||void 0===LO(e),"type provided should not be a non-generic 'promise'-like."),e}(i)}function UO(e,t,n,r){if(_c(e))return e;if(BO(e))return e;const i=e;if(i.awaitedTypeOfType)return i.awaitedTypeOfType;if(1048576&e.flags){if(Ki.lastIndexOf(e.id)>=0)return void(t&&uo(t,ja.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));const o=t?e=>UO(e,t,n,r):UO;Ki.push(e.id);const a=wA(e,o);return Ki.pop(),i.awaitedTypeOfType=a}if(JO(e))return i.awaitedTypeOfType=e;const o={value:void 0},a=LO(e,void 0,o);if(a){if(e.id===a.id||Ki.lastIndexOf(a.id)>=0)return void(t&&uo(t,ja.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));Ki.push(e.id);const o=UO(a,t,n,r);if(Ki.pop(),!o)return;return i.awaitedTypeOfType=o}if(!RO(e))return i.awaitedTypeOfType=e;if(t){let i;In.assertIsDefined(n),o.value&&(i=Ak(i,ja.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Bs(e),Bs(o.value))),i=Ak(i,n,r),Wi.add(Vf(wp(t),t,i))}}function qO(e){const t=hP(e);kP(t,e);const n=Tp(t);if(1&n.flags)return;const r=sI(e);if(!(null==r?void 0:r.resolvedReturnType))return;let i;const o=r.resolvedReturnType;switch(e.parent.kind){case 260:case 228:i=ja.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 169:if(!E){i=ja.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 166:i=ja.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 171:case 174:case 175:i=ja.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return In.failBadSyntaxKind(e.parent)}Jx(n,o,e.expression,i)}function VO(e,t,n,i,o,a=n.length,s=0){return Zl(dC.createFunctionTypeNode(void 0,r,dC.createKeywordTypeNode(131)),e,t,n,i,o,a,s)}function QO(e,t,n,r,i,o,a){return Jp(VO(e,t,n,r,i,o,a))}function KO(e){return QO(void 0,void 0,r,e)}function WO(e){return QO(void 0,void 0,[bo("value",e)],Vt)}function HO(e,t){if(!e)return;const n=Ub(e),i=2097152|(79===e.kind?788968:1920),o=Ro(n,n.escapedText,i,void 0,void 0,!0);if(o&&2097152&o.flags)if(C.verbatimModuleSyntax||!is(o)||kR(xa(o))||Ca(o)){if(t&&qk(C)&&Bk(C)>=5&&!is(o)&&!_e(o.declarations,_l)){const t=uo(e,ja.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),i=P(o.declarations||r,Go);i&&rT(t,zf(i,ja._0_was_imported_here,Oc(n)))}}else wa(o)}function $O(e){const t=GO(e);t&&bl(t)&&HO(t,!0)}function GO(e){if(e)switch(e.kind){case 190:case 189:return XO(e.types);case 191:return XO([e.trueType,e.falseType]);case 193:case 199:return GO(e.type);case 180:return e.typeName}}function XO(e){let t;for(let n of e){for(;193===n.kind||199===n.kind;)n=n.type;if(144===n.kind)continue;if(!j&&(198===n.kind&&104===n.literal.kind||155===n.kind))continue;const e=GO(n);if(!e)return;if(t){if(!Tw(t)||!Tw(e)||t.escapedText!==e.escapedText)return}else t=e}return t}function YO(e){const t=Kv(e);return rd(e)?xm(t):t}function ZO(e){if(!(MP(e)&&gb(e)&&e.modifiers&&og(E,e,e.parent,e.parent.parent)))return;const t=P(e.modifiers,qw);if(t){if(E?(YR(t,8),166===e.kind&&YR(t,32)):w<99&&(YR(t,8),NE(e)?e.name?fM(e)&&YR(t,8388608):YR(t,8388608):GD(e)||(Cw(e.name)&&(Ww(e)||Pl(e)||Il(e))&&YR(t,8388608),Jw(e.name)&&YR(t,16777216))),C.emitDecoratorMetadata)switch(YR(t,16),e.kind){case 260:const t=Rv(e);if(t)for(const e of t.parameters)$O(YO(e));break;case 174:case 175:const n=174===e.kind?175:174,r=np(Ga(e),n);$O(a_(e)||r&&a_(r));break;case 171:for(const t of e.parameters)$O(YO(t));$O(Hv(e));break;case 169:$O(Kv(e));break;case 166:$O(YO(e));const i=e.parent;for(const e of i.parameters)$O(YO(e))}for(const t of e.modifiers)qw(t)&&qO(t)}}function eL(e){switch(e.kind){case 79:return e;case 208:return e.name;default:return}}function tL(e){var t;ZO(e),gO(e);const n=ky(e);if(e.name&&164===e.name.kind&&KD(e.name),Vl(e)){const n=Ga(e),r=e.localSymbol||n,i=null==(t=r.declarations)?void 0:t.find((t=>t.kind===e.kind&&!(262144&t.flags)));e===i&&PO(r),n.parent&&PO(n)}const r=170===e.kind?void 0:e.body;if(UM(r),yI(e,Cp(e)),_((function(){Hv(e)||(Lp(r)&&!NO(e)&&DT(e,_t),1&n&&Mp(r)&&Tp(mp(e)))})),Sg(e)){const t=v_(e);t&&t.typeExpression&&!TD(Db(t.typeExpression),e)&&uo(t.typeExpression.type,ja.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function nL(e){_((function(){const t=wp(e);let n=_i.get(t.path);n||(n=[],_i.set(t.path,n)),n.push(e)}))}function rL(e,t){for(const n of e)switch(n.kind){case 260:case 228:aL(n,t),cL(n,t);break;case 308:case 264:case 238:case 266:case 245:case 246:case 247:pL(n,t);break;case 173:case 215:case 259:case 216:case 171:case 174:case 175:n.body&&pL(n,t),cL(n,t);break;case 170:case 176:case 177:case 181:case 182:case 262:case 261:cL(n,t);break;case 192:sL(n,t);break;default:In.assertNever(n,"Node should not have been registered for unused identifiers check")}}function iL(e,t,n){n(e,0,zf(qc(e)||e,zT(e)?ja._0_is_declared_but_never_used:ja._0_is_declared_but_its_value_is_never_read,t))}function oL(e){return Tw(e)&&95===Oc(e).charCodeAt(0)}function aL(e,t){for(const n of e.members)switch(n.kind){case 171:case 169:case 174:case 175:if(175===n.kind&&32768&n.symbol.flags)break;const e=Ga(n);e.isReferenced||!(sb(n,8)||zc(n)&&Cw(n.name))||16777216&n.flags||t(n,0,zf(n.name,ja._0_is_declared_but_its_value_is_never_read,Ms(e)));break;case 173:for(const e of n.parameters)!e.symbol.isReferenced&&cb(e,8)&&t(e,0,zf(e.name,ja.Property_0_is_declared_but_its_value_is_never_read,Mc(e.symbol)));break;case 178:case 237:case 172:break;default:In.fail("Unexpected class member")}}function sL(e,t){const{typeParameter:n}=e;_L(n)&&t(e,1,zf(e,ja._0_is_declared_but_its_value_is_never_read,Oc(n.name)))}function cL(e,t){const n=Ga(e).declarations;if(!n||je(n)!==e)return;const r=E_(e),i=new Set;for(const e of r){if(!_L(e))continue;const n=Oc(e.name),{parent:r}=e;if(192!==r.kind&&r.typeParameters.every(_L)){if(oe(i,r)){const i=wp(r),o=sF(r)?oT(r):aT(i,r.typeParameters),a=1===r.typeParameters.length,s=a?ja._0_is_declared_but_its_value_is_never_read:ja.All_type_parameters_are_unused,c=a?n:void 0;t(e,1,kk(i,o.pos,o.end-o.pos,s,c))}}else t(e,1,zf(e,ja._0_is_declared_but_its_value_is_never_read,n))}}function _L(e){return!(262144&$a(e.symbol).isReferenced||oL(e.name))}function lL(e,t,n,r){const i=r(t)+"",o=e.get(i);o?o[1].push(n):e.set(i,[t,[n]])}function uL(e){return xt(qy(e),Uw)}function dL(e){return wD(e)?CD(e.parent)?!(!e.propertyName||!oL(e.name)):oL(e.name):df(e)||(wE(e)&&hu(e.parent.parent)||mL(e))&&oL(e.name)}function pL(e,t){const n=new Map,r=new Map,i=new Map;e.locals.forEach((e=>{var o;if(!(262144&e.flags?!(3&e.flags)||3&e.isReferenced:e.isReferenced||e.exportSymbol)&&e.declarations)for(const a of e.declarations)if(!dL(a))if(mL(a))lL(n,270===(o=a).kind?o:271===o.kind?o.parent:o.parent.parent,a,qB);else if(wD(a)&&CD(a.parent))a!==je(a.parent.elements)&&je(a.parent.elements).dotDotDotToken||lL(r,a.parent,a,qB);else if(wE(a))lL(i,a.parent,a,qB);else{const n=e.valueDeclaration&&uL(e.valueDeclaration),i=e.valueDeclaration&&qc(e.valueDeclaration);n&&i?vc(n,n.parent)||zv(n)||oL(i)||(wD(a)&&AD(a.parent)?lL(r,a.parent,a,qB):t(n,1,zf(i,ja._0_is_declared_but_its_value_is_never_read,Mc(e)))):iL(a,Mc(e),t)}})),n.forEach((([e,n])=>{const r=e.parent;if((e.name?1:0)+(e.namedBindings?271===e.namedBindings.kind?1:e.namedBindings.elements.length:0)===n.length)t(r,0,1===n.length?zf(r,ja._0_is_declared_but_its_value_is_never_read,Oc(Me(n).name)):zf(r,ja.All_imports_in_import_declaration_are_unused));else for(const e of n)iL(e,Oc(e.name),t)})),r.forEach((([e,n])=>{const r=uL(e.parent)?1:0;if(e.elements.length===n.length)1===n.length&&257===e.parent.kind&&258===e.parent.parent.kind?lL(i,e.parent.parent,e.parent,qB):t(e,r,1===n.length?zf(e,ja._0_is_declared_but_its_value_is_never_read,fL(Me(n).name)):zf(e,ja.All_destructured_elements_are_unused));else for(const e of n)t(e,r,zf(e,ja._0_is_declared_but_its_value_is_never_read,fL(e.name)))})),i.forEach((([e,n])=>{if(e.declarations.length===n.length)t(e,0,1===n.length?zf(Me(n).name,ja._0_is_declared_but_its_value_is_never_read,fL(Me(n).name)):zf(240===e.parent.kind?e.parent:e,ja.All_variables_are_unused));else for(const e of n)t(e,0,zf(e,ja._0_is_declared_but_its_value_is_never_read,fL(e.name)))}))}function fL(e){switch(e.kind){case 79:return Oc(e);case 204:case 203:return fL(kt(Me(e.elements),wD).name);default:return In.assertNever(e)}}function mL(e){return 270===e.kind||273===e.kind||271===e.kind}function gL(e){if(238===e.kind&&OB(e),El(e)){const t=pi;T(e.statements,UM),pi=t}else T(e.statements,UM);e.locals&&nL(e)}function hL(e,t,n){if((null==t?void 0:t.escapedText)!==n)return!1;if(169===e.kind||168===e.kind||171===e.kind||170===e.kind||174===e.kind||175===e.kind||299===e.kind)return!1;if(16777216&e.flags)return!1;if((JE(e)||BE(e)||WE(e))&&_l(e))return!1;const r=qy(e);return!Uw(r)||!Lp(r.parent.body)}function yL(e){Ec(e,(t=>!!(4&PR(t))&&(79!==e.kind?uo(qc(e),ja.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):uo(e,ja.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)))}function vL(e){Ec(e,(t=>!!(8&PR(t))&&(79!==e.kind?uo(qc(e),ja.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):uo(e,ja.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)))}function bL(e){4194304&PR(If(e))&&(In.assert(zc(e)&&Tw(e.name)&&"string"==typeof e.name.escapedText,"The target of a WeakMap/WeakSet collision check should be an identifier"),_o("noEmit",e,ja.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,e.name.escapedText))}function xL(e){let t=!1;if(GD(e)){for(const n of e.members)if(8388608&PR(n)){t=!0;break}}else if(RD(e))8388608&PR(e)&&(t=!0);else{const n=If(e);n&&8388608&PR(n)&&(t=!0)}t&&(In.assert(zc(e)&&Tw(e.name),"The target of a Reflect collision check should be an identifier"),_o("noEmit",e,ja.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Lf(e.name),"Reflect"))}function kL(e,t){t&&(function(e,t){if(D>=5&&!(D>=100&&1===wp(e).impliedNodeFormat))return;if(!t||!hL(e,t,"require")&&!hL(e,t,"exports"))return;if(OE(e)&&1!==BR(e))return;const n=sc(e);308===n.kind&&em(n)&&_o("noEmit",t,ja.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Lf(t),Lf(t))}(e,t),function(e,t){if(!t||w>=4||!hL(e,t,"Promise"))return;if(OE(e)&&1!==BR(e))return;const n=sc(e);308===n.kind&&em(n)&&2048&n.flags&&_o("noEmit",t,ja.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Lf(t),Lf(t))}(e,t),function(e,t){w<=8&&(hL(e,t,"WeakMap")||hL(e,t,"WeakSet"))&&qi.push(e)}(e,t),function(e,t){t&&w>=2&&w<=8&&hL(e,t,"Reflect")&&Vi.push(e)}(e,t),Fl(e)?(lM(t,ja.Class_name_cannot_be_0),16777216&e.flags||function(e){w>=1&&"Object"===e.escapedText&&(D<5||1===wp(e).impliedNodeFormat)&&uo(e,ja.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,Ui[D])}(t)):IE(e)&&lM(t,ja.Enum_name_cannot_be_0))}function SL(e){return e===ut?_t:e===tr?er:e}function TL(e){var t;if(ZO(e),wD(e)||UM(e.type),!e.name)return;if(164===e.name.kind&&(KD(e.name),Gu(e)&&e.initializer&&WI(e.initializer)),wD(e)){if(e.propertyName&&Tw(e.name)&&Uy(e)&&Lp(zm(e).body))return void Qi.push(e);CD(e.parent)&&e.dotDotDotToken&&w<5&&YR(e,4),e.propertyName&&164===e.propertyName.kind&&KD(e.propertyName);const t=e.parent.parent,n=uc(t,e.dotDotDotToken?64:0),r=e.propertyName||e.name;if(n&&!Ul(r)){const i=gy(r);if(Ml(i)){const r=zd(n,Ql(i));r&&(pF(r,void 0,!1),YE(e,!!t.initializer&&106===t.initializer.kind,!1,n,r))}}}if(Ul(e.name)&&(204===e.name.kind&&w<2&&C.downlevelIteration&&YR(e,512),T(e.name.elements,UM)),Uw(e)&&e.initializer&&Lp(zm(e).body))return void uo(e,ja.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);if(Ul(e.name)){const t=Gu(e)&&e.initializer&&246!==e.parent.parent.kind,n=!_e(e.name.elements,bn(XD));if(t||n){const r=t_(e);if(t){const t=WI(e.initializer);j&&n?gN(t,e):zx(t,t_(e),e,e.initializer)}n&&(AD(e.name)?OL(65,r,Tt,e):j&&gN(r,e))}return}const n=Ga(e);if(2097152&n.flags&&(Ng(e)||Fg(e)))return void FM(e);const r=SL(x_(n));if(e===n.valueDeclaration){const i=Gu(e)&&Rg(e);i&&(Sg(e)&&ED(i)&&(0===i.properties.length||Kb(e.name))&&(null==(t=n.exports)?void 0:t.size)||246===e.parent.parent.kind||zx(WI(i),r,e,i,void 0)),n.declarations&&n.declarations.length>1&&_e(n.declarations,(t=>t!==e&&Sm(t)&&!AL(t,e)))&&uo(e.name,ja.All_declarations_of_0_must_have_identical_modifiers,Lf(e.name))}else{const t=SL(t_(e));lc(r)||lc(t)||Cx(r,t)||67108864&n.flags||CL(n.valueDeclaration,r,e,t),Gu(e)&&e.initializer&&zx(WI(e.initializer),t,e,e.initializer,void 0),n.valueDeclaration&&!AL(e,n.valueDeclaration)&&uo(e.name,ja.All_declarations_of_0_must_have_identical_modifiers,Lf(e.name))}169!==e.kind&&168!==e.kind&&(IO(e),257!==e.kind&&205!==e.kind||function(e){if(0!=(3&Ac(e))||Uy(e))return;if(257===e.kind&&!e.initializer)return;const t=Ga(e);if(1&t.flags){if(!Tw(e.name))return In.fail();const n=Ro(e,e.name.escapedText,3,void 0,void 0,!1);if(n&&n!==t&&2&n.flags&&3&VE(n)){const t=py(n.valueDeclaration,258),r=240===t.parent.kind&&t.parent.parent?t.parent.parent:void 0;if(!r||!(238===r.kind&&Sl(r.parent)||265===r.kind||264===r.kind||308===r.kind)){const t=Ms(n);uo(e,ja.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,t,t)}}}}(e),kL(e,e.name))}function CL(e,t,n,r){const i=qc(n),o=169===n.kind||168===n.kind?ja.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:ja.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,a=Lf(i),s=uo(i,o,a,Bs(t),Bs(r));e&&rT(s,zf(e,ja._0_was_also_declared_here,a))}function AL(e,t){return 166===e.kind&&257===t.kind||257===e.kind&&166===t.kind||hh(e)===hh(t)&&hb(e,888)===hb(t,888)}function wL(e){var t,n;null==(t=Ur)||t.push(Ur.Phase.Check,"checkVariableDeclaration",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath}),function(e){if(246!==e.parent.parent.kind&&247!==e.parent.parent.kind)if(16777216&e.flags)vB(e);else if(!e.initializer){if(Ul(e.name)&&!Ul(e.parent))return EB(e,ja.A_destructuring_declaration_must_have_an_initializer);if(im(e))return EB(e,ja.const_declarations_must_be_initialized)}if(e.exclamationToken&&(240!==e.parent.parent.kind||!e.type||e.initializer||16777216&e.flags)){const t=e.initializer?ja.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.type?ja.A_definite_assignment_assertion_is_not_permitted_in_this_context:ja.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return EB(e.exclamationToken,t)}!(D<5||1===wp(e).impliedNodeFormat)||4===D||16777216&e.parent.parent.flags||!cb(e.parent.parent,1)||bB(e.name),(om(e)||im(e))&&xB(e.name)}(e),TL(e),null==(n=Ur)||n.pop()}function DL(e){eB(e)||kB(e.declarationList)||function(e){if(!SB(e.parent)){if(om(e.declarationList))return EB(e,ja.let_declarations_can_only_be_declared_inside_a_block);im(e.declarationList)&&EB(e,ja.const_declarations_can_only_be_declared_inside_a_block)}}(e),T(e.declarationList.declarations,UM)}function EL(e,t,n){function r(e,t){for(i(e=Hh(e),t);QD(e)&&(56===e.operatorToken.kind||60===e.operatorToken.kind);)i(e=Hh(e.left),t)}function i(e,n){const i=Ib(e)?Hh(e.right):e;if(Wg(i))return;if(Ib(i))return void r(i,n);const o=i===e?t:FL(i),a=ND(i)&&HI(i.expression);if(!(4194304&YC(o))||a)return;const s=qd(o,0),c=!!OO(o);if(0===s.length&&!c)return;const _=Tw(i)?i:ND(i)?i.name:void 0,l=_&&iR(_);if(!l&&!c)return;const u=l&&QD(e.parent)&&function(e,t){for(;QD(e)&&55===e.operatorToken.kind;){if(bI(e.right,(function e(n){if(Tw(n)){const e=iR(n);if(e&&e===t)return!0}return bI(n,e)})))return!0;e=e.parent}return!1}(e.parent,l)||l&&n&&function(e,t,n,r){return!!bI(t,(function t(i){if(Tw(i)){const t=iR(i);if(t&&t===r){if(Tw(e)||Tw(n)&&QD(n.parent))return!0;let t=n.parent,r=i.parent;for(;t&&r;){if(Tw(t)&&Tw(r)||108===t.kind&&108===r.kind)return iR(t)===iR(r);if(ND(t)&&ND(r)){if(iR(t.name)!==iR(r.name))return!1;r=r.expression,t=t.expression}else{if(!PD(t)||!PD(r))return!1;r=r.expression,t=t.expression}}}}return bI(i,t)}))}(e,n,_,l);u||(c?mo(i,!0,ja.This_condition_will_always_return_true_since_this_0_is_always_defined,Js(o)):uo(i,ja.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}j&&r(e,n)}function NL(e,t){return 16384&e.flags&&uo(t,ja.An_expression_of_type_void_cannot_be_tested_for_truthiness),e}function FL(e,t){return NL(dO(e,t),e)}function PL(e){const t=e.initializer;t.declarations.length>=1&&wL(t.declarations[0])}function IL(e){return OL(e.awaitModifier?15:13,tN(e.expression),Tt,e.expression)}function OL(e,t,n,r){return _c(t)?t:LL(e,t,n,r,!0)||_t}function LL(e,t,n,r,i){const o=0!=(2&e);if(t===Qt)return void HL(r,t,o);const a=w>=2,s=!a&&C.downlevelIteration,c=C.noUncheckedIndexedAccess&&!!(128&e);if(a||s||o){const o=zL(t,e,a?r:void 0);if(i&&o){const t=8&e?ja.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&e?ja.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&e?ja.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&e?ja.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;t&&Jx(n,o.nextType,r,t)}if(o||a)return c?oA(o&&o.yieldType):o&&o.yieldType}let _=t,l=!1,u=!1;if(4&e){if(1048576&_.flags){const e=t.types,n=z(e,(e=>!(402653316&e.flags)));n!==e&&(_=wh(n,2))}else 402653316&_.flags&&(_=Qt);if(u=_!==t,u&&(w<1&&r&&(uo(r,ja.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),l=!0),131072&_.flags))return c?oA(Pt):Pt}if(!hS(_)){if(r&&!l){const n=!!(4&e)&&!u,[i,o]=function(n,r){var i;return r?n?[ja.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[ja.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:ML(e,0,t,void 0)?[ja.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:function(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}(null==(i=t.symbol)?void 0:i.escapedName)?[ja.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:n?[ja.Type_0_is_not_an_array_type_or_a_string_type,!0]:[ja.Type_0_is_not_an_array_type,!0]}(n,s);mo(r,o&&!!OO(_),i,Bs(_))}return u?c?oA(Pt):Pt:void 0}const d=Gd(_,It);return u&&d?402653316&d.flags&&!C.noUncheckedIndexedAccess?Pt:wh(c?[d,Pt,Tt]:[d,Pt],2):128&e?oA(d):d}function ML(e,t,n,r){if(_c(n))return;const i=zL(n,e,r);return i&&i[GB(t)]}function RL(e=Qt,t=Qt,n=bt){if(67359327&e.flags&&180227&t.flags&&180227&n.flags){const r=Xp([e,t,n]);let i=ei.get(r);return i||(i={yieldType:e,returnType:t,nextType:n},ei.set(r,i)),i}return{yieldType:e,returnType:t,nextType:n}}function BL(e){let t,n,r;for(const i of e)if(void 0!==i&&i!==ti){if(i===ni)return ni;t=Se(t,i.yieldType),n=Se(n,i.returnType),r=Se(r,i.nextType)}return t||n||r?RL(t&&wh(t),n&&wh(n),r&&Yh(r)):ti}function jL(e,t){return e[t]}function JL(e,t,n){return e[t]=n}function zL(e,t,n){var r,i;if(_c(e))return ni;if(!(1048576&e.flags)){const i=n?{errors:void 0}:void 0,o=qL(e,t,n,i);if(o===ti){if(n){const r=HL(n,e,!!(2&t));(null==i?void 0:i.errors)&&rT(r,...i.errors)}return}if(null==(r=null==i?void 0:i.errors)?void 0:r.length)for(const e of i.errors)Wi.add(e);return o}const o=2&t?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",a=jL(e,o);if(a)return a===ti?void 0:a;let s;for(const r of e.types){const a=n?{errors:void 0}:void 0,c=qL(r,t,n,a);if(c===ti){if(n){const r=HL(n,e,!!(2&t));(null==a?void 0:a.errors)&&rT(r,...a.errors)}return void JL(e,o,ti)}if(null==(i=null==a?void 0:a.errors)?void 0:i.length)for(const e of a.errors)Wi.add(e);s=Se(s,c)}const c=s?BL(s):ti;return JL(e,o,c),c===ti?void 0:c}function UL(e,t){if(e===ti)return ti;if(e===ni)return ni;const{yieldType:n,returnType:r,nextType:i}=e;return t&&Ym(!0),RL(zO(n,t)||_t,zO(r,t)||_t,i)}function qL(e,t,n,r){if(_c(e))return ni;let i=!1;if(2&t){const r=VL(e,oi)||KL(e,oi);if(r){if(r!==ti||!n)return 8&t?UL(r,n):r;i=!0}}if(1&t){let r=VL(e,ai)||KL(e,ai);if(r)if(r===ti&&n)i=!0;else{if(!(2&t))return r;if(r!==ti)return r=UL(r,n),i?r:JL(e,"iterationTypesOfAsyncIterable",r)}}if(2&t){const t=WL(e,oi,n,r,i);if(t!==ti)return t}if(1&t){let o=WL(e,ai,n,r,i);if(o!==ti)return 2&t?(o=UL(o,n),i?o:JL(e,"iterationTypesOfAsyncIterable",o)):o}return ti}function VL(e,t){return jL(e,t.iterableCacheKey)}function QL(e,t){const n=VL(e,t)||WL(e,t,void 0,void 0,!1);return n===ti?ii:n}function KL(e,t){let n;if(T_(e,n=t.getGlobalIterableType(!1))||T_(e,n=t.getGlobalIterableIteratorType(!1))){const[r]=cf(e),{returnType:i,nextType:o}=QL(n,t);return JL(e,t.iterableCacheKey,RL(t.resolveIterationType(r,void 0)||r,t.resolveIterationType(i,void 0)||i,o))}if(T_(e,t.getGlobalGeneratorType(!1))){const[n,r,i]=cf(e);return JL(e,t.iterableCacheKey,RL(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(r,void 0)||r,i))}}function WL(e,t,n,r,i){var o;const a=zd(e,function(e){const t=Lm(!1),n=t&&cc(x_(t),Pc(e));return n&&Ml(n)?Ql(n):"__@"+e}(t.iteratorSymbolName)),s=!a||16777216&a.flags?void 0:x_(a);if(_c(s))return i?ni:JL(e,t.iterableCacheKey,ni);const c=s?qd(s,0):void 0;if(!_e(c))return i?ti:JL(e,t.iterableCacheKey,ti);const _=null!=(o=$L(Yh(V(c,Tp)),t,n,r,i))?o:ti;return i?_:JL(e,t.iterableCacheKey,_)}function HL(e,t,n){const r=n?ja.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:ja.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;return mo(e,!!OO(t)||!n&&hE(e.parent)&&e.parent.expression===e&&Jm(!1)!==Dn&&Ix(t,Jm(!1)),r,Bs(t))}function $L(e,t,n,r,i){if(_c(e))return ni;let o=GL(e,t)||function(e,t){const n=t.getGlobalIterableIteratorType(!1);if(T_(e,n)){const[r]=cf(e),i=GL(n,t)||tM(n,t,void 0,void 0,!1),{returnType:o,nextType:a}=i===ti?ii:i;return JL(e,t.iteratorCacheKey,RL(r,o,a))}if(T_(e,t.getGlobalIteratorType(!1))||T_(e,t.getGlobalGeneratorType(!1))){const[n,r,i]=cf(e);return JL(e,t.iteratorCacheKey,RL(n,r,i))}}(e,t);return o===ti&&n&&(o=void 0,i=!0),null!=o||(o=tM(e,t,n,r,i)),o===ti?void 0:o}function GL(e,t){return jL(e,t.iteratorCacheKey)}function XL(e,t){const n=cc(e,"done")||Lt;return Ix(0===t?Lt:Bt,n)}function YL(e){return XL(e,0)}function ZL(e){return XL(e,1)}function eM(e,t,n,i,o){var a,s,c,_;const l=zd(e,n);if(!l&&"next"!==n)return;const u=!l||"next"===n&&16777216&l.flags?void 0:"next"===n?x_(l):ZC(x_(l),2097152);if(_c(u))return"next"===n?ni:ri;const d=u?qd(u,0):r;if(0===d.length){if(i){const e="next"===n?t.mustHaveANextMethodDiagnostic:t.mustBeAMethodDiagnostic;o?(null!=o.errors||(o.errors=[]),o.errors.push(zf(i,e,n))):uo(i,e,n)}return"next"===n?ti:void 0}if((null==u?void 0:u.symbol)&&1===d.length){const e=t.getGlobalGeneratorType(!1),r=t.getGlobalIteratorType(!1),i=(null==(s=null==(a=e.symbol)?void 0:a.members)?void 0:s.get(n))===u.symbol,o=!i&&(null==(_=null==(c=r.symbol)?void 0:c.members)?void 0:_.get(n))===u.symbol;if(i||o){const t=i?e:r,{mapper:o}=u;return RL(Hb(t.typeParameters[0],o),Hb(t.typeParameters[1],o),"next"===n?Hb(t.typeParameters[2],o):void 0)}}let p,f,m,g,h;for(const e of d)"throw"!==n&&_e(e.parameters)&&(p=Se(p,KP(e,0))),f=Se(f,Tp(e));if("throw"!==n){const e=p?wh(p):bt;"next"===n?g=e:"return"===n&&(m=Se(m,t.resolveIterationType(e,i)||_t))}const y=f?Yh(f):Qt,v=function(e){if(_c(e))return ni;const t=jL(e,"iterationTypesOfIteratorResult");if(t)return t;if(T_(e,gr||(gr=mm("IteratorYieldResult",1,!1))||Dn))return JL(e,"iterationTypesOfIteratorResult",RL(cf(e)[0],void 0,void 0));if(T_(e,hr||(hr=mm("IteratorReturnResult",1,!1))||Dn))return JL(e,"iterationTypesOfIteratorResult",RL(void 0,cf(e)[0],void 0));const n=TA(e,YL),r=n!==Qt?cc(n,"value"):void 0,i=TA(e,ZL),o=i!==Qt?cc(i,"value"):void 0;return JL(e,"iterationTypesOfIteratorResult",r||o?RL(r,o||Vt,void 0):ti)}(t.resolveIterationType(y,i)||_t);return v===ti?(i&&(o?(null!=o.errors||(o.errors=[]),o.errors.push(zf(i,t.mustHaveAValueDiagnostic,n))):uo(i,t.mustHaveAValueDiagnostic,n)),h=_t,m=Se(m,_t)):(h=v.yieldType,m=Se(m,v.returnType)),RL(h,wh(m),g)}function tM(e,t,n,r,i){const o=BL([eM(e,t,"next",n,r),eM(e,t,"return",n,r),eM(e,t,"throw",n,r)]);return i?o:JL(e,t.iteratorCacheKey,o)}function rM(e,t,n){if(_c(t))return;const r=iM(t,n);return r&&r[GB(e)]}function iM(e,t){if(_c(e))return ni;const n=t?oi:ai;return zL(e,t?2:1,void 0)||function(e,t,n,r){return $L(e,t,void 0,void 0,!1)}(e,n)}function oM(e,t){const n=!!(2&t);if(1&t){const t=rM(1,e,n);return t?n?UO(jO(t)):t:pt}return n?UO(e)||pt:e}function aM(e,t){const n=oM(t,ky(e));return!!n&&PI(n,16387)}function sM(e,t,n){const r=Hd(e);if(0===r.length)return;for(const t of ud(e))n&&4194304&t.flags||cM(e,t,hy(t,8576,!0),k_(t));const i=t.valueDeclaration;if(i&&Fl(i))for(const t of i.members)if(!_b(t)&&!Vl(t)){const n=Ga(t);cM(e,n,_O(t.name.expression),k_(n))}if(r.length>1)for(const t of r)_M(e,t)}function cM(e,t,n,r){const i=t.valueDeclaration,o=qc(i);if(o&&Cw(o))return;const a=Xd(e,n),s=2&Vx(e)?np(e.symbol,261):void 0,c=i&&223===i.kind||o&&164===o.kind?i:void 0,_=Ya(t)===e.symbol?i:void 0;for(const n of a){const i=n.declaration&&Ya(Ga(n.declaration))===e.symbol?n.declaration:void 0,o=_||i||(s&&!_e(X_(e),(e=>!!dd(e,t.escapedName)&&!!Gd(e,n.keyType)))?s:void 0);if(o&&!Ix(r,n.type)){const e=lo(o,ja.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Ms(t),Bs(r),Bs(n.keyType),Bs(n.type));c&&o!==c&&rT(e,zf(c,ja._0_is_declared_here,Ms(t))),Wi.add(e)}}}function _M(e,t){const n=t.declaration,r=Xd(e,t.keyType),i=2&Vx(e)?np(e.symbol,261):void 0,o=n&&Ya(Ga(n))===e.symbol?n:void 0;for(const n of r){if(n===t)continue;const r=n.declaration&&Ya(Ga(n.declaration))===e.symbol?n.declaration:void 0,a=o||r||(i&&!_e(X_(e),(e=>!!$d(e,t.keyType)&&!!Gd(e,n.keyType)))?i:void 0);a&&!Ix(t.type,n.type)&&uo(a,ja._0_index_type_1_is_not_assignable_to_2_index_type_3,Bs(t.keyType),Bs(t.type),Bs(n.keyType),Bs(n.type))}}function lM(e,t){switch(e.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":uo(e,t,e.escapedText)}}function uM(e){let t=!1;if(e)for(let t=0;t{n.default?(t=!0,function(e,t,n){!function e(r){if(180===r.kind){const e=Wf(r);if(262144&e.flags)for(let i=n;i260===e.kind||261===e.kind))}(e);if(!n||n.length<=1)return;if(!pM(n,ul(e).localTypeParameters,E_)){const t=Ms(e);for(const e of n)uo(e.name,ja.All_declarations_of_0_must_have_identical_type_parameters,t)}}}function pM(e,t,n){const r=S(t),i=_p(t);for(const o of e){const e=n(o),a=e.length;if(ar)return!1;for(let n=0;n1)return CB(r.types[1],ja.Classes_can_only_extend_a_single_class);t=!0}else{if(In.assert(117===r.token),n)return CB(r,ja.implements_clause_already_seen);n=!0}sB(r)}})(e)||rB(e.typeParameters,t)}(e),ZO(e),kL(e,e.name),uM(E_(e)),IO(e);const t=Ga(e),n=ul(t),r=Gl(n),i=x_(t);dM(t),PO(t),function(e){const t=new Map,n=new Map,r=new Map;for(const o of e.members)if(173===o.kind)for(const e of o.parameters)vc(e,o)&&!Ul(e.name)&&i(t,e.name,e.name.escapedText,3);else{const e=_b(o),a=o.name;if(!a)continue;const s=Cw(a),c=s&&e?16:0,_=s?r:e?n:t,l=a&&Dy(a);if(l)switch(o.kind){case 174:i(_,a,l,1|c);break;case 175:i(_,a,l,2|c);break;case 169:i(_,a,l,3|c);break;case 171:i(_,a,l,8|c)}}function i(e,t,n,r){const i=e.get(n);if(i)if((16&i)!=(16&r))uo(t,ja.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,ef(t));else{const o=!!(8&i),a=!!(8&r);o||a?o!==a&&uo(t,ja.Duplicate_identifier_0,ef(t)):i&r&-17?uo(t,ja.Duplicate_identifier_0,ef(t)):e.set(n,i|r)}else e.set(n,r)}}(e),16777216&e.flags||function(e){for(const t of e.members){const n=t.name;if(_b(t)&&n){const t=Dy(n);switch(t){case"name":case"length":case"caller":case"arguments":case"prototype":uo(n,ja.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,t,Gs(Ga(e)))}}}}(e);const o=sy(e);if(o){T(o.typeArguments,UM),w<2&&YR(o.parent,1);const t=cy(e);t&&t!==o&&dO(t.expression);const a=X_(n);a.length&&_((()=>{const t=a[0],s=$_(n),c=Nd(s);if(function(e,t){const n=qd(e,1);if(n.length){const r=n[0].declaration;r&&sb(r,8)&&(eR(t,qx(e.symbol))||uo(t,ja.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Na(e.symbol)))}}(c,o),UM(o.expression),_e(o.typeArguments)){T(o.typeArguments,UM);for(const e of K_(c,o.typeArguments,o))if(!CO(o,e.typeParameters))break}const _=Gl(t,n.thisType);Jx(r,_,void 0)?Jx(i,Tx(c),e.name||e,ja.Class_static_side_0_incorrectly_extends_base_class_static_side_1):yM(e,r,_,ja.Class_0_incorrectly_extends_base_class_1),8650752&s.flags&&(q_(i)?qd(s,1).some((e=>4&e.flags))&&!cb(e,256)&&uo(e.name||e,ja.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):uo(e.name||e,ja.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),c.symbol&&32&c.symbol.flags||8650752&s.flags||T(W_(c,o.typeArguments,o),(e=>!vP(e.declaration)&&!Cx(Tp(e),t)))&&uo(o.expression,ja.Base_constructors_must_all_have_the_same_return_type),function(e,t){var n,r,i,o;const a=fd(t);e:for(const s of a){const a=vM(s);if(4194304&a.flags)continue;const c=dd(e,a.escapedName);if(!c)continue;const _=vM(c),l=Px(a);if(In.assert(!!_,"derived should point to something, even if it is the base class' declaration."),_===a){const n=qx(e.symbol);if(256&l&&(!n||!cb(n,256))){for(const n of X_(e)){if(n===t)continue;const e=dd(n,a.escapedName),r=e&&vM(e);if(r&&r!==a)continue e}228===n.kind?uo(n,ja.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Ms(s),Bs(t)):uo(n,ja.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Bs(e),Ms(s),Bs(t))}}else{const s=Px(_);if(8&l||8&s)continue;let c;const u=98308&a.flags,d=98308&_.flags;if(u&&d){if((6&Fx(a)?null==(n=a.declarations)?void 0:n.some((e=>bM(e,l))):null==(r=a.declarations)?void 0:r.every((e=>bM(e,l))))||262144&Fx(a)||_.valueDeclaration&&QD(_.valueDeclaration))continue;const c=4!==u&&4===d,p=4===u&&4!==d;if(c||p){const n=c?ja._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:ja._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;uo(qc(_.valueDeclaration)||_.valueDeclaration,n,Ms(a),Bs(t),Bs(e))}else if(N){const n=null==(i=_.declarations)?void 0:i.find((e=>169===e.kind&&!e.initializer));if(n&&!(33554432&_.flags)&&!(256&l)&&!(256&s)&&!(null==(o=_.declarations)?void 0:o.some((e=>!!(16777216&e.flags))))){const r=os(qx(e.symbol)),i=n.name;if(n.exclamationToken||!r||!Tw(i)||!j||!kM(i,e,r)){const e=ja.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;uo(qc(_.valueDeclaration)||_.valueDeclaration,e,Ms(a),Bs(t))}}}continue}if(KE(a)){if(KE(_)||4&_.flags)continue;In.assert(!!(98304&_.flags)),c=ja.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else c=98304&a.flags?ja.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:ja.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;uo(qc(_.valueDeclaration)||_.valueDeclaration,c,Bs(t),Ms(a),Bs(e))}}}(n,t)}))}!function(e,t,n,r){const i=sy(e)&&X_(t),o=(null==i?void 0:i.length)?Gl(Me(i),t.thisType):void 0,a=$_(t);for(const i of e.members)pb(i)||($w(i)&&T(i.parameters,(s=>{vc(s,i)&&gM(e,r,a,o,t,n,s,!0)})),gM(e,r,a,o,t,n,i,!1))}(e,n,r,i);const a=_y(e);if(a)for(const e of a)zb(e.expression)&&!M_(e.expression)||uo(e.expression,ja.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),wO(e),_(s(e));function s(t){return()=>{const i=Md(Db(t));if(!lc(i))if(Z_(i)){const t=i.symbol&&32&i.symbol.flags?ja.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:ja.Class_0_incorrectly_implements_interface_1,o=Gl(i,n.thisType);Jx(r,o,void 0)||yM(e,r,o,t)}else uo(t,ja.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}_((()=>{sM(n,t),sM(i,t,!0),yO(e),function(e){if(!j||!$||16777216&e.flags)return;const t=os(e);for(const n of e.members)if(!(2&bb(n))&&!_b(n)&&xM(n)){const e=n.name;if(Tw(e)||Cw(e)||Jw(e)){const r=x_(Ga(n));3&r.flags||_k(r)||t&&kM(e,r,t)||uo(n.name,ja.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Lf(e))}}}(e)}))}function gM(e,t,n,r,i,o,a,s,c=!0){const _=a.name&&iR(a.name)||iR(a);return _?hM(e,t,n,r,i,o,ub(a),db(a),_b(a),s,Mc(_),c?a:void 0):0}function hM(e,t,n,r,i,o,a,s,c,_,l,u){const d=Sg(e),p=!!(16777216&e.flags);if(r&&(a||C.noImplicitOverride)){const e=Pc(l),i=c?n:r,f=zd(c?t:o,e),m=zd(i,e),g=Bs(r);if(f&&!m&&a){if(u){const e=YN(l,i);e?uo(u,d?ja.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:ja.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,g,Ms(e)):uo(u,d?ja.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:ja.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,g)}return 2}if(f&&(null==m?void 0:m.declarations)&&C.noImplicitOverride&&!p){const e=_e(m.declarations,db);if(a)return 0;if(!e)return u&&uo(u,_?d?ja.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:ja.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:d?ja.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:ja.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0,g),1;if(s&&e)return u&&uo(u,ja.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,g),1}}else if(a){if(u){const e=Bs(i);uo(u,d?ja.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:ja.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,e)}return 2}return 0}function yM(e,t,n,r){let i=!1;for(const r of e.members){if(_b(r))continue;const e=r.name&&iR(r.name)||iR(r);if(e){const o=zd(t,e.escapedName),a=zd(n,e.escapedName);if(o&&a){const s=()=>Ak(void 0,ja.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Ms(e),Bs(t),Bs(n));Jx(x_(o),x_(a),r.name||r,void 0,s)||(i=!0)}}}i||Jx(t,n,e.name||e,r)}function vM(e){return 1&Fx(e)?e.links.target:e}function bM(e,t){return 256&t&&(!Qw(e)||!e.initializer)||FE(e.parent)}function xM(e){return 169===e.kind&&!db(e)&&!e.exclamationToken&&!e.initializer}function kM(e,t,n){const r=Jw(e)?dC.createElementAccessExpression(dC.createThis(),e.expression):dC.createPropertyAccessExpression(dC.createThis(),e);return kT(r.expression,r),kT(r,n),r.flowNode=n.returnFlowNode,!_k(HA(r,t,US(t)))}function SM(e){const t=Fo(e);if(!(1024&t.flags)){t.flags|=1024;let n=0;for(const t of e.members){const e=TM(t,n);Fo(t).enumMemberValue=e,n="number"==typeof e?e+1:void 0}}}function TM(e,t){if(Rf(e.name))uo(e.name,ja.Computed_property_names_are_not_allowed_in_enums);else{const t=jf(e.name);MT(t)&&!FT(t)&&uo(e.name,ja.An_enum_member_cannot_have_a_numeric_name)}return e.initializer?function(e){const t=nm(e.parent),n=e.initializer,r=CM(n,e);return void 0!==r?t&&"number"==typeof r&&!isFinite(r)&&uo(n,isNaN(r)?ja.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:ja.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):t?uo(n,ja.const_enum_member_initializers_must_be_constant_expressions):16777216&e.parent.flags?uo(n,ja.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):Jx(dO(n),It,n,ja.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),r}(e):16777216&e.parent.flags&&!nm(e.parent)?void 0:void 0!==t?t:void uo(e.name,ja.Enum_member_must_have_initializer)}function CM(e,t){switch(e.kind){case 221:const n=CM(e.operand,t);if("number"==typeof n)switch(e.operator){case 39:return n;case 40:return-n;case 54:return~n}break;case 223:const r=CM(e.left,t),i=CM(e.right,t);if("number"==typeof r&&"number"==typeof i)switch(e.operatorToken.kind){case 51:return r|i;case 50:return r&i;case 48:return r>>i;case 49:return r>>>i;case 47:return r<!!(268435456&Ac(e))))}function IM(e,t){if(!(2097152&e.flags))return e;const n=xa(e);if(n===rt)return n;for(;2097152&e.flags;){const r=eE(e);if(!r)break;if(r===n)break;if(r.declarations&&S(r.declarations)){if(PM(r)){yo(t,r.declarations,r.escapedName);break}if(e===n)break;e=r}}return n}function OM(e){kL(e,e.name),FM(e),273===e.kind&&"default"===Oc(e.propertyName||e.name)&&Hk(C)&&4!==D&&(D<5||1===wp(e).impliedNodeFormat)&&YR(e,131072)}function LM(e){var t;if(e.assertClause){const n=mq(e),r=hq(e.assertClause,n?EB:void 0);if(n&&r)return dv()||EB(e.assertClause,ja.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),3!==Jk(C)&&99!==Jk(C)?EB(e.assertClause,ja.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext):void 0;if(99!==(199===D&&e.moduleSpecifier&&ia(e.moduleSpecifier))&&99!==D)return EB(e.assertClause,199===D?ja.Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:ja.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext);if(jE(e)?null==(t=e.importClause)?void 0:t.isTypeOnly:e.isTypeOnly)return EB(e.assertClause,ja.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(r)return EB(e.assertClause,ja.resolution_mode_can_only_be_set_for_type_only_imports)}}function MM(e,t){const n=308===e.parent.kind||265===e.parent.kind||264===e.parent.kind;return n||CB(e,t),!n}function RM(e){return jE(e)&&e.importClause&&!e.importClause.isTypeOnly&&gh(e.importClause,(e=>!!Ga(e).isReferenced))&&!SR(e.importClause,!0)&&!gh(e.importClause,(e=>!!No(Ga(e)).constEnumReferenced))}function BM(e){return BE(e)&&rN(e.moduleReference)&&!e.isTypeOnly&&Ga(e).isReferenced&&!SR(e,!1)&&!No(Ga(e)).constEnumReferenced}function jM(e){if(FM(e),tS(C)&&Zs(e.propertyName||e.name,!0),e.parent.parent.moduleSpecifier)Hk(C)&&4!==D&&(D<5||1===wp(e).impliedNodeFormat)&&"default"===Oc(e.propertyName||e.name)&&YR(e,131072);else{const t=e.propertyName||e.name,n=Ro(t,t.escapedText,2998271,void 0,void 0,!0);if(n&&(n===le||n===de||n.declarations&&Po(sc(n.declarations[0]))))uo(t,ja.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Oc(t));else{e.isTypeOnly||e.parent.parent.isTypeOnly||Aa(e);const t=n&&(2097152&n.flags?xa(n):n);(!t||111551&ka(t))&&WI(e.propertyName||e.name)}}}function JM(e){const t=Ga(e),n=No(t);if(!n.exportsChecked){const e=t.exports.get("export=");if(e&&function(e){return up(e.exports,((e,t)=>"export="!==t))}(t)){const t=$o(e)||e.valueDeclaration;!t||Ws(t)||Sg(t)||uo(t,ja.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const r=Ka(t);r&&r.forEach((({declarations:e,flags:t},n)=>{if("__export"===n)return;if(1920&t)return;const r=J(e,yn(MB,bn(FE)));if(!(524288&t&&r<=2)&&r>1&&!zM(e))for(const t of e)HB(t)&&Wi.add(zf(t,ja.Cannot_redeclare_exported_variable_0,Ic(n)))})),n.exportsChecked=!0}}function zM(e){return e&&e.length>1&&e.every((e=>Sg(e)&&Yx(e)&&(Qg(e.expression)||Wg(e.expression))))}function UM(e){if(e){const n=o;o=e,h=0,function(e){Ah(e)&&T(e.jsDoc,(({comment:t,tags:n})=>{qM(t),T(n,(t=>{qM(t.comment),Sg(e)&&UM(t)}))}));const n=e.kind;if(t)switch(n){case 264:case 260:case 261:case 259:t.throwIfCancellationRequested()}switch(n>=240&&n<=256&&Ch(e)&&e.flowNode&&!qA(e.flowNode)&&fo(!1===C.allowUnreachableCode,e,ja.Unreachable_code_detected),n){case 165:return pO(e);case 166:return fO(e);case 169:return vO(e);case 168:return function(e){return Cw(e.name)&&uo(e,ja.Private_identifiers_are_not_allowed_outside_class_bodies),vO(e)}(e);case 182:case 181:case 176:case 177:case 178:return gO(e);case 171:case 170:return function(e){hB(e)||lB(e.name),Ww(e)&&e.asteriskToken&&Tw(e.name)&&"constructor"===Oc(e.name)&&uo(e.name,ja.Class_constructor_may_not_be_a_generator),tL(e),cb(e,256)&&171===e.kind&&e.body&&uo(e,ja.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Lf(e.name)),Cw(e.name)&&!qm(e)&&uo(e,ja.Private_identifiers_are_not_allowed_outside_class_bodies),bO(e)}(e);case 172:return function(e){eB(e),bI(e,UM)}(e);case 173:return function(e){gO(e),function(e){const t=Sg(e)?$v(e):void 0,n=e.typeParameters||t&&Oe(t);if(n){const t=n.pos===n.end?n.pos:As(wp(e).text,n.pos);return DB(e,t,n.end-t,ja.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(e)||function(e){const t=e.type||Hv(e);t&&EB(t,ja.Type_annotation_cannot_appear_on_a_constructor_declaration)}(e),UM(e.body);const t=Ga(e),n=np(t,e.kind);function r(e){return!!fl(e)||169===e.kind&&!_b(e)&&!!e.initializer}e===n&&PO(t),Lp(e.body)||_((function(){const t=e.parent;if(cy(t)){cw(e.parent,t);const n=lw(t),i=_w(e.body);if(i){if(n&&uo(i,ja.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),(99!==Rk(C)||!N)&&(_e(e.parent.members,r)||_e(e.parameters,(e=>cb(e,16476)))))if(function(e,t){const n=Qh(e.parent);return uE(n)&&n.parent===t}(i,e.body)){let t;for(const n of e.body.statements){if(uE(n)&&am(UF(n.expression))){t=n;break}if(xO(n))break}void 0===t&&uo(e,ja.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}else uo(i,ja.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers)}else n||uo(e,ja.Constructors_for_derived_classes_must_contain_a_super_call)}}))}(e);case 174:case 175:return kO(e);case 180:return wO(e);case 179:return function(e){const t=function(e){switch(e.parent.kind){case 216:case 176:case 259:case 215:case 181:case 171:case 170:const t=e.parent;if(e===t.type)return t}}(e);if(!t)return void uo(e,ja.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);const n=mp(t),r=kp(n);if(!r)return;UM(e.type);const{parameterName:i}=e;if(0===r.kind||2===r.kind)Sb(i);else if(r.parameterIndex>=0){if(XB(n)&&r.parameterIndex===n.parameters.length-1)uo(i,ja.A_type_predicate_cannot_reference_a_rest_parameter);else if(r.type){const t=()=>Ak(void 0,ja.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);Jx(r.type,x_(n.parameters[r.parameterIndex]),e.type,void 0,t)}}else if(i){let n=!1;for(const{name:e}of t.parameters)if(Ul(e)&&mO(e,i,r.parameterName)){n=!0;break}n||uo(e.parameterName,ja.Cannot_find_parameter_0,r.parameterName)}}(e);case 183:return function(e){cm(e)}(e);case 184:return function(e){T(e.members,UM),_((function(){const t=Ov(e);sM(t,t.symbol),yO(e),hO(e)}))}(e);case 185:return function(e){UM(e.elementType)}(e);case 186:return function(e){const t=e.elements;let n=!1,r=!1;const i=_e(t,_D);for(const e of t){if(199!==e.kind&&i){EB(e,ja.Tuple_members_must_all_have_names_or_all_not_have_names);break}const t=Cg(e);if(8&t){const t=Db(e.type);if(!hS(t)){uo(e,ja.A_rest_element_type_must_be_an_array_type);break}(_S(t)||IS(t)&&4&t.target.combinedFlags)&&(r=!0)}else if(4&t){if(r){EB(e,ja.A_rest_element_cannot_follow_another_rest_element);break}r=!0}else if(2&t){if(r){EB(e,ja.An_optional_element_cannot_follow_a_rest_element);break}n=!0}else if(n){EB(e,ja.A_required_element_cannot_follow_an_optional_element);break}}T(e.elements,UM),Db(e)}(e);case 189:case 190:return function(e){T(e.types,UM),Db(e)}(e);case 193:case 187:case 188:return UM(e.type);case 194:return function(e){Sb(e)}(e);case 195:return function(e){!function(e){if(156===e.operator){if(153!==e.type.kind)return EB(e.type,ja._0_expected,_s(153));let t=Vh(e.parent);if(Sg(t)&&wN(t)){const e=Lh(t);e&&(t=Sh(e)||e)}switch(t.kind){case 257:const n=t;if(79!==n.name.kind)return EB(e,ja.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!Cm(n))return EB(e,ja.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&n.parent.flags))return EB(t.name,ja.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 169:if(!_b(t)||!mb(t))return EB(t.name,ja.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 168:if(!cb(t,64))return EB(t.name,ja.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:EB(e,ja.unique_symbol_types_are_not_allowed_here)}}else 146===e.operator&&185!==e.type.kind&&186!==e.type.kind&&CB(e,ja.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,_s(153))}(e),UM(e.type)}(e);case 191:return function(e){bI(e,UM)}(e);case 192:return function(e){Ec(e,(e=>e.parent&&191===e.parent.kind&&e.parent.extendsType===e))||EB(e,ja.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),UM(e.typeParameter);const t=Ga(e.typeParameter);if(t.declarations&&t.declarations.length>1){const e=No(t);if(!e.typeParametersChecked){e.typeParametersChecked=!0;const n=ll(t),r=rp(t,165);if(!pM(r,[n],(e=>[e]))){const e=Ms(t);for(const t of r)uo(t.name,ja.All_declarations_of_0_must_have_identical_constraints,e)}}}nL(e)}(e);case 200:return function(e){for(const t of e.templateSpans)UM(t.type),Jx(Db(t.type),nn,t.type);Db(e)}(e);case 202:return function(e){UM(e.argument),e.assertions&&hq(e.assertions.assertClause,EB)&&(dv()||EB(e.assertions.assertClause,ja.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),3!==Jk(C)&&99!==Jk(C)&&EB(e.assertions.assertClause,ja.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)),DO(e)}(e);case 199:return function(e){e.dotDotDotToken&&e.questionToken&&EB(e,ja.A_tuple_member_cannot_be_both_optional_and_rest),187===e.type.kind&&EB(e.type,ja.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),188===e.type.kind&&EB(e.type,ja.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),UM(e.type),Db(e)}(e);case 331:return function(e){const t=Oh(e);if(!t||!NE(t)&&!GD(t))return void uo(t,ja.JSDoc_0_is_not_attached_to_a_class,Oc(e.tagName));const n=S_(t).filter(VN);In.assert(n.length>0),n.length>1&&uo(n[1],ja.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const r=eL(e.class.expression),i=cy(t);if(i){const t=eL(i.expression);t&&r.escapedText!==t.escapedText&&uo(r,ja.JSDoc_0_1_does_not_match_the_extends_2_clause,Oc(e.tagName),Oc(r),Oc(t))}}(e);case 332:return function(e){const t=Oh(e);t&&(NE(t)||GD(t))||uo(t,ja.JSDoc_0_is_not_attached_to_a_class,Oc(e.tagName))}(e);case 349:case 341:case 343:return function(e){e.typeExpression||uo(e.name,ja.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),e.name&&lM(e.name,ja.Type_alias_name_cannot_be_0),UM(e.typeExpression),uM(E_(e))}(e);case 348:return function(e){UM(e.constraint);for(const t of e.typeParameters)UM(t)}(e);case 347:return function(e){UM(e.typeExpression)}(e);case 327:case 328:case 329:return function(e){e.name&&rR(e.name,!0)}(e);case 344:case 351:return function(e){UM(e.typeExpression)}(e);case 320:!function(e){_((function(){e.type||yh(e)||DT(e,_t)})),gO(e)}(e);case 318:case 317:case 315:case 316:case 325:return VM(e),void bI(e,UM);case 321:return void function(e){VM(e),UM(e.type);const{parent:t}=e;if(Uw(t)&&BN(t.parent))return void(je(t.parent.parameters)!==t&&uo(e,ja.A_rest_parameter_must_be_last_in_a_parameter_list));wN(t)||uo(e,ja.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const n=e.parent.parent;if(!rF(n))return void uo(e,ja.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const r=Fh(n);if(!r)return;const i=Ih(n);i&&je(i.parameters).symbol===r||uo(e,ja.A_rest_parameter_must_be_last_in_a_parameter_list)}(e);case 312:return UM(e.type);case 336:case 338:case 337:return function(e){const t=Lh(e);t&&fl(t)&&uo(e,ja.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}(e);case 353:return function(e){UM(e.typeExpression);const t=Oh(e);if(t){const e=A_(t,dF);if(S(e)>1)for(let t=1;t{var i;293!==e.kind||n||(void 0===t?t=e:(EB(e,ja.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0)),292===e.kind&&_((i=e,()=>{const e=dO(i.expression);zI(r,e)||tk(e,r,i.expression,void 0)})),T(e.statements,UM),C.noFallthroughCasesInSwitch&&e.fallthroughFlowNode&&qA(e.fallthroughFlowNode)&&uo(e,ja.Fallthrough_case_in_switch)})),e.caseBlock.locals&&nL(e.caseBlock)}(e);case 253:return function(e){OB(e)||Ec(e.parent,(t=>Sl(t)?"quit":253===t.kind&&t.label.escapedText===e.label.escapedText&&(EB(e.label,ja.Duplicate_label_0,ef(e.label)),!0))),UM(e.statement)}(e);case 254:return function(e){OB(e)||Tw(e.expression)&&!e.expression.escapedText&&function(e,t,n,r,i){const o=wp(e);if(!TB(o)){const n=Xf(o,e.pos);Wi.add(kk(o,ec(n),0,t,void 0,void 0,void 0))}}(e,ja.Line_break_not_permitted_here),e.expression&&dO(e.expression)}(e);case 255:return function(e){OB(e),gL(e.tryBlock);const t=e.catchClause;if(t){if(t.variableDeclaration){const e=t.variableDeclaration;TL(e);const n=Kv(e);if(n){const e=Db(n);!e||3&e.flags||CB(n,ja.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(e.initializer)CB(e.initializer,ja.Catch_clause_variable_cannot_have_an_initializer);else{const e=t.block.locals;e&&dp(t.locals,(t=>{const n=e.get(t);(null==n?void 0:n.valueDeclaration)&&0!=(2&n.flags)&&EB(n.valueDeclaration,ja.Cannot_redeclare_identifier_0_in_catch_clause,t)}))}}gL(t.block)}e.finallyBlock&&gL(e.finallyBlock)}(e);case 257:return wL(e);case 205:return function(e){return function(e){if(e.dotDotDotToken){const t=e.parent.elements;if(e!==je(t))return EB(e,ja.A_rest_element_must_be_last_in_a_destructuring_pattern);if(nB(t,ja.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e.propertyName)return EB(e.name,ja.A_rest_element_cannot_have_a_property_name)}e.dotDotDotToken&&e.initializer&&DB(e,e.initializer.pos-1,1,ja.A_rest_element_cannot_have_an_initializer)}(e),TL(e)}(e);case 260:return function(e){const t=P(e.modifiers,qw);E&&t&&_e(e.members,(e=>lb(e)&&fl(e)))&&EB(t,ja.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),e.name||cb(e,1024)||CB(e,ja.A_class_declaration_without_the_default_modifier_must_have_a_name),mM(e),T(e.members,UM),nL(e)}(e);case 261:return function(e){eB(e)||function(e){let t=!1;if(e.heritageClauses)for(const n of e.heritageClauses){if(94!==n.token)return In.assert(117===n.token),CB(n,ja.Interface_declaration_cannot_have_implements_clause);if(t)return CB(n,ja.extends_clause_already_seen);t=!0,sB(n)}}(e),uM(e.typeParameters),_((()=>{lM(e.name,ja.Interface_name_cannot_be_0),IO(e);const t=Ga(e);dM(t);const n=np(t,261);if(e===n){const n=ul(t),r=Gl(n);if(function(e,t){const n=X_(e);if(n.length<2)return!0;const r=new Map;T(Ll(e).declaredProperties,(t=>{r.set(t.escapedName,{prop:t,containingType:e})}));let i=!0;for(const o of n){const n=fd(Gl(o,e.thisType));for(const a of n){const n=r.get(a.escapedName);if(n){if(n.containingType!==e&&0===rS(n.prop,a,Ax)){i=!1;const r=Bs(n.containingType),s=Bs(o);let c=Ak(void 0,ja.Named_property_0_of_types_1_and_2_are_not_identical,Ms(a),r,s);c=Ak(c,ja.Interface_0_cannot_simultaneously_extend_types_1_and_2,Bs(e),r,s),Wi.add(Vf(wp(t),t,c))}}else r.set(a.escapedName,{prop:a,containingType:o})}}return i}(n,e.name)){for(const t of X_(n))Jx(r,Gl(t,n.thisType),e.name,ja.Interface_0_incorrectly_extends_interface_1);sM(n,t)}}hO(e)})),T(uy(e),(e=>{zb(e.expression)&&!M_(e.expression)||uo(e.expression,ja.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),wO(e)})),T(e.members,UM),_((()=>{yO(e),nL(e)}))}(e);case 262:return function(e){eB(e),lM(e.name,ja.Type_alias_name_cannot_be_0),IO(e),uM(e.typeParameters),139===e.type.kind?RB.has(e.name.escapedText)&&1===S(e.typeParameters)||uo(e.type,ja.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(UM(e.type),nL(e))}(e);case 263:return function(e){_((()=>function(e){eB(e),kL(e,e.name),IO(e),e.members.forEach(wM),SM(e);const t=Ga(e);if(e===np(t,e.kind)){if(t.declarations&&t.declarations.length>1){const n=nm(e);T(t.declarations,(e=>{IE(e)&&nm(e)!==n&&uo(qc(e),ja.Enum_declarations_must_all_be_const_or_non_const)}))}let n=!1;T(t.declarations,(e=>{if(263!==e.kind)return!1;const t=e;if(!t.members.length)return!1;const r=t.members[0];r.initializer||(n?uo(r.name,ja.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):n=!0)}))}}(e)))}(e);case 264:return function(e){e.body&&(UM(e.body),yf(e)||nL(e)),_((function(){var t,n;const r=yf(e),i=16777216&e.flags;r&&!i&&uo(e.name,ja.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const o=df(e),a=o?ja.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:ja.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(MM(e,a))return;eB(e)||i||10!==e.name.kind||EB(e.name,ja.Only_ambient_modules_can_use_quoted_names),Tw(e.name)&&kL(e,e.name),IO(e);const s=Ga(e);if(512&s.flags&&!i&&QB(e,nS(C))){if(qk(C)&&!wp(e).externalModuleIndicator&&uo(e.name,ja.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,ye),(null==(t=s.declarations)?void 0:t.length)>1){const t=function(e){const t=e.declarations;if(t)for(const e of t)if((260===e.kind||259===e.kind&&Mp(e.body))&&!(16777216&e.flags))return e}(s);t&&(wp(e)!==wp(t)?uo(e.name,ja.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):e.pos93===e.kind));t&&uo(t,ja.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(o)if(vf(e)){if((r||33554432&Ga(e).flags)&&e.body)for(const t of e.body.statements)DM(t,r)}else Po(e.parent)?r?uo(e.name,ja.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Xs(Ny(e.name))&&uo(e.name,ja.Ambient_module_declaration_cannot_specify_relative_module_name):uo(e.name,r?ja.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:ja.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}))}(e);case 269:return function(e){if(!MM(e,Sg(e)?ja.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:ja.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!eB(e)&&ob(e)&&CB(e,ja.An_import_declaration_cannot_have_modifiers),EM(e)){const t=e.importClause;t&&!function(e){var t;return e.isTypeOnly&&e.name&&e.namedBindings?EB(e,ja.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):!(!e.isTypeOnly||272!==(null==(t=e.namedBindings)?void 0:t.kind))&&zB(e.namedBindings)}(t)&&(t.name&&OM(t),t.namedBindings)&&(271===t.namedBindings.kind?(OM(t.namedBindings),4!==D&&(D<5||1===wp(e).impliedNodeFormat)&&Hk(C)&&YR(e,65536)):Ia(e,e.moduleSpecifier)&&T(t.namedBindings.elements,OM))}LM(e)}}(e);case 268:return function(e){if(!MM(e,Sg(e)?ja.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:ja.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(eB(e),bg(e)||EM(e)))if(OM(e),cb(e,1)&&Aa(e),280!==e.moduleReference.kind){const t=xa(Ga(e));if(t!==rt){const n=ka(t);if(111551&n){const t=Ub(e.moduleReference);1920&Fa(t,112575).flags||uo(t,ja.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Lf(t))}788968&n&&lM(e.name,ja.Import_name_cannot_be_0)}e.isTypeOnly&&EB(e,ja.An_import_alias_cannot_use_import_type)}else!(D>=5&&void 0===wp(e).impliedNodeFormat)||e.isTypeOnly||16777216&e.flags||EB(e,ja.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(e);case 275:return function(e){if(!MM(e,Sg(e)?ja.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:ja.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!eB(e)&&ab(e)&&CB(e,ja.An_export_declaration_cannot_have_modifiers),e.moduleSpecifier&&e.exportClause&&GE(e.exportClause)&&S(e.exportClause.elements)&&0===w&&YR(e,4194304),function(e){var t;e.isTypeOnly&&276===(null==(t=e.exportClause)?void 0:t.kind)&&zB(e.exportClause)}(e),!e.moduleSpecifier||EM(e))if(e.exportClause&&!QE(e.exportClause)){T(e.exportClause.elements,jM);const t=265===e.parent.kind&&df(e.parent.parent),n=!t&&265===e.parent.kind&&!e.moduleSpecifier&&16777216&e.flags;308===e.parent.kind||t||n||uo(e,ja.Export_declarations_are_not_permitted_in_a_namespace)}else{const t=Ia(e,e.moduleSpecifier);t&&za(t)?uo(e.moduleSpecifier,ja.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Ms(t)):e.exportClause&&FM(e.exportClause),4!==D&&(D<5||1===wp(e).impliedNodeFormat)&&(e.exportClause?Hk(C)&&YR(e,65536):YR(e,32768))}LM(e)}}(e);case 274:return function(e){if(MM(e,e.isExportEquals?ja.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:ja.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration))return;const t=308===e.parent.kind?e.parent:e.parent.parent;if(264===t.kind&&!df(t))return void(e.isExportEquals?uo(e,ja.An_export_assignment_cannot_be_used_in_a_namespace):uo(e,ja.A_default_export_can_only_be_used_in_an_ECMAScript_style_module));!eB(e)&&ob(e)&&CB(e,ja.An_export_assignment_cannot_have_modifiers);const n=Kv(e);n&&Jx(WI(e.expression),Db(n),e.expression);const r=!e.isExportEquals&&!(16777216&e.flags)&&C.verbatimModuleSyntax&&(1===D||1===wp(e).impliedNodeFormat);if(79===e.expression.kind){const t=e.expression,n=rs(Fa(t,67108863,!0,!0,e));n?(rw(n,t),111551&ka(n)?(WI(t),r||16777216&e.flags||!C.verbatimModuleSyntax||!Ca(n,111551)||uo(t,e.isExportEquals?ja.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:ja.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,Oc(t))):r||16777216&e.flags||!C.verbatimModuleSyntax||uo(t,e.isExportEquals?ja.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:ja.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,Oc(t))):WI(t),tS(C)&&Zs(t,!0)}else WI(e.expression);r&&uo(e,ja.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),JM(t),16777216&e.flags&&!zb(e.expression)&&EB(e.expression,ja.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),e.isExportEquals&&(D>=5&&(16777216&e.flags&&99===wp(e).impliedNodeFormat||!(16777216&e.flags)&&1!==wp(e).impliedNodeFormat)?EB(e,ja.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):4!==D||16777216&e.flags||EB(e,ja.Export_assignment_is_not_supported_when_module_flag_is_system))}(e);case 239:case 256:return void OB(e);case 279:!function(e){ZO(e)}(e)}}(e),o=n}}function qM(e){ht(e)&&T(e,(e=>{td(e)&&UM(e)}))}function VM(e){if(!Sg(e))if(MN(e)||LN(e)){const t=_s(MN(e)?53:57),n=e.postfix?ja._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:ja._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,r=Db(e.type);EB(e,n,t,Bs(LN(e)&&r!==Qt&&r!==Vt?wh(Se([r,Tt],e.postfix?void 0:Et)):r))}else EB(e,ja.JSDoc_types_can_only_be_used_inside_documentation_comments)}function QM(e){const t=Fo(wp(e));1&t.flags?In.assert(!t.deferredNodes,"A type-checked file should have no deferred nodes."):(t.deferredNodes||(t.deferredNodes=new Set),t.deferredNodes.add(e))}function KM(e){var t,n;null==(t=Ur)||t.push(Ur.Phase.Check,"checkDeferredNode",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});const r=o;switch(o=e,h=0,e.kind){case 210:case 211:case 212:case 167:case 283:kF(e);break;case 215:case 216:case 171:case 170:!function(e){In.assert(171!==e.kind||Pm(e));const t=ky(e),n=Cp(e);if(yI(e,n),e.body)if(Hv(e)||Tp(mp(e)),238===e.body.kind)UM(e.body);else{const r=dO(e.body),i=n&&oM(n,t);i&&zx(2==(3&t)?MO(r,!1,e.body,ja.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):r,i,e.body,e.body)}}(e);break;case 174:case 175:kO(e);break;case 228:!function(e){T(e.members,UM),nL(e)}(e);break;case 165:!function(e){var t,n;if(FE(e.parent)||Fl(e.parent)||PE(e.parent)){const r=ll(Ga(e)),i=98304&Lk(r);if(i){const o=Ga(e.parent);if(!PE(e.parent)||48&Vx(ul(o))){if(32768===i||65536===i){null==(t=Ur)||t.push(Ur.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:_h(ul(o)),id:_h(r)});const s=Ik(o,r,65536===i?Bn:Rn),c=Ik(o,r,65536===i?Rn:Bn),_=r;a=r,Jx(s,c,e,ja.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),a=_,null==(n=Ur)||n.pop()}}else uo(e,ja.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types)}}}(e);break;case 282:!function(e){zE(e)}(e);break;case 281:!function(e){zE(e.openingElement),iE(e.closingElement.tagName)?fE(e.closingElement):dO(e.closingElement.tagName),sE(e)}(e)}o=r,null==(n=Ur)||n.pop()}function WM(e,t){if(t)return!1;switch(e){case 0:return!!C.noUnusedLocals;case 1:return!!C.noUnusedParameters;default:return In.assertNever(e)}}function HM(e){return _i.get(e.path)||r}function $M(n,r){try{return t=r,function(t){if(t){GM();const e=Wi.getGlobalDiagnostics(),n=e.length;XM(t);const r=Wi.getDiagnostics(t.fileName),i=Wi.getGlobalDiagnostics();return i!==e?ue(ke(e,i,Ek),r):0===n&&i.length>0?ue(i,r):r}return T(e.getSourceFiles(),XM),Wi.getDiagnostics()}(n)}finally{t=void 0}}function GM(){for(const e of c)e();c=[]}function XM(t){GM();const n=_;var r,i,o;_=e=>e(),r=t,null==(i=Ur)||i.push(Ur.Phase.Check,"checkSourceFile",{path:r.path},!0),Er("beforeCheck"),function(t){const n=Fo(t);if(!(1&n.flags)){if(sT(t,C,e))return;!function(e){16777216&e.flags&&function(e){for(const t of e.statements)if((Nu(t)||240===t.kind)&&PB(t))return!0}(e)}(t),q(Ji),q(zi),q(qi),q(Vi),q(Qi),T(t.statements,UM),UM(t.endOfFileToken),function(e){const t=Fo(e);t.deferredNodes&&t.deferredNodes.forEach(KM),t.deferredNodes=void 0}(t),em(t)&&nL(t),_((()=>{t.isDeclarationFile||!C.noUnusedLocals&&!C.noUnusedParameters||rL(HM(t),((e,t,n)=>{!Ap(e)&&WM(t,!!(16777216&e.flags))&&Wi.add(n)})),t.isDeclarationFile||function(){var e;for(const t of Qi)if(!(null==(e=Ga(t))?void 0:e.isReferenced)){const e=kc(t);In.assert(Uy(e),"Only parameter declaration should be checked here");const n=zf(t.name,ja._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Lf(t.name),Lf(t.propertyName));e.type||rT(n,kk(wp(e),e.end,1,ja.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Lf(t.propertyName))),Wi.add(n)}}()})),2===C.importsNotUsedAsValues&&!t.isDeclarationFile&&wI(t)&&function(e){for(const t of e.statements)(RM(t)||BM(t))&&uo(t,ja.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}(t),em(t)&&JM(t),Ji.length&&(T(Ji,yL),q(Ji)),zi.length&&(T(zi,vL),q(zi)),qi.length&&(T(qi,bL),q(qi)),Vi.length&&(T(Vi,xL),q(Vi)),n.flags|=1}}(r),Er("afterCheck"),Nr("Check","beforeCheck","afterCheck"),null==(o=Ur)||o.pop(),_=n}function YM(e){for(;163===e.parent.kind;)e=e.parent;return 180===e.parent.kind}function ZM(e,t){let n,r=qm(e);for(;r&&!(n=t(r));)r=qm(r);return n}function eR(e,t){return!!ZM(e,(e=>e===t))}function tR(e){return void 0!==function(e){for(;163===e.parent.kind;)e=e.parent;return 268===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:274===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function nR(e){if(Xh(e))return Xa(e.parent);if(Sg(e)&&208===e.parent.kind&&e.parent===e.parent.parent.left&&!Cw(e)&&!EN(e)){const t=function(e){switch(Hg(e.parent.parent)){case 1:case 3:return Xa(e.parent);case 4:case 2:case 5:return Ga(e.parent.parent)}}(e);if(t)return t}if(274===e.parent.kind&&zb(e)){const t=Fa(e,2998271,!0);if(t&&t!==rt)return t}else if(bl(e)&&tR(e)){const t=py(e,268);return In.assert(void 0!==t),Da(e,!0)}if(bl(e)){const t=function(e){let t=e.parent;for(;jw(t);)e=t,t=t.parent;if(t&&202===t.kind&&t.qualifier===e)return t}(e);if(t){Db(t);const n=Fo(e).resolvedSymbol;return n===rt?void 0:n}}for(;$b(e);)e=e.parent;if(function(e){for(;208===e.parent.kind;)e=e.parent;return 230===e.parent.kind}(e)){let t=0;230===e.parent.kind?(t=hm(e)?788968:111551,Jb(e.parent)&&(t|=111551)):t=1920,t|=2097152;const n=zb(e)?Fa(e,t):void 0;if(n)return n}if(344===e.parent.kind)return Fh(e.parent);if(165===e.parent.kind&&348===e.parent.parent.kind){In.assert(!Sg(e));const t=Rh(e.parent);return t&&t.symbol}if(pg(e)){if(Lp(e))return;const t=Ec(e,vn(td,DN,EN)),n=t?901119:111551;if(79===e.kind){if(dg(e)&&iE(e)){const t=fE(e.parent);return t===rt?void 0:t}const r=Fa(e,n,!1,!0,Ih(e));if(!r&&t){const t=Ec(e,vn(Fl,FE));if(t)return rR(e,!1,Ga(t))}if(r&&t){const t=Lh(e);if(t&&kN(t)&&t===r.valueDeclaration)return Fa(e,n,!0,!0,wp(t))||r}return r}if(Cw(e))return FN(e);if(208===e.kind||163===e.kind){const n=Fo(e);if(n.resolvedSymbol)return n.resolvedSymbol;if(208===e.kind){if(SN(e,0),!n.resolvedSymbol){const t=WI(e.expression),r=Xd(t,gy(e.name));if(r.length&&t.members){const e=ld(t).members.get("__index");if(r===Hd(t))n.resolvedSymbol=e;else if(e){const i=No(e),o=V(Z(r,(e=>e.declaration)),qB).join(",");if(i.filteredIndexSymbolCache||(i.filteredIndexSymbolCache=new Map),i.filteredIndexSymbolCache.has(o))n.resolvedSymbol=i.filteredIndexSymbolCache.get(o);else{const e=vo(131072,"__index");e.declarations=Z(r,(e=>e.declaration)),e.parent=t.aliasSymbol?t.aliasSymbol:t.symbol?t.symbol:iR(e.declarations[0].parent),i.filteredIndexSymbolCache.set(o,e),n.resolvedSymbol=i.filteredIndexSymbolCache.get(o)}}}}}else CN(e,0);return!n.resolvedSymbol&&t&&jw(e)?rR(e):n.resolvedSymbol}if(EN(e))return rR(e)}else if(YM(e)){const t=Fa(e,180===e.parent.kind?788968:1920,!1,!0);return t&&t!==rt?t:Tf(e)}return 179===e.parent.kind?Fa(e,1):void 0}function rR(e,t,n){if(bl(e)){const r=901119;let i=Fa(e,r,t,!0,Ih(e));if(!i&&Tw(e)&&n&&(i=$a(Io(Qa(n),e.escapedText,r))),i)return i}const r=Tw(e)?n:rR(e.left,t,n),i=Tw(e)?e.escapedText:e.right.escapedText;if(r){const e=111551&r.flags&&zd(x_(r),"prototype");return zd(e?x_(e):ul(r),i)}}function iR(e,t){if(TN(e))return wI(e)?$a(e.symbol):void 0;const{parent:n}=e,r=n.parent;if(!(33554432&e.flags)){if($B(e)){const t=Ga(n);return al(e.parent)&&e.parent.propertyName===e?eE(t):t}if(Zh(e))return Ga(n.parent);if(79===e.kind){if(tR(e))return nR(e);if(205===n.kind&&203===r.kind&&e===n.propertyName){const t=zd(oR(r),e.escapedText);if(t)return t}else if(nE(n)&&n.name===e)return 103===n.keywordToken&&"target"===Oc(e)?BP(n).symbol:100===n.keywordToken&&"meta"===Oc(e)?Nm().members.get("meta"):void 0}switch(e.kind){case 79:case 80:case 208:case 163:if(!qv(e))return nR(e);case 108:const i=Km(e,!1,!1);if(Sl(i)){const e=mp(i);if(e.thisParameter)return e.thisParameter}if(fg(e))return dO(e).symbol;case 194:return Sb(e).symbol;case 106:return dO(e).symbol;case 135:const o=e.parent;return o&&173===o.kind?o.parent.symbol:void 0;case 10:case 14:if(hg(e.parent.parent)&&yg(e.parent.parent)===e||(269===e.parent.kind||275===e.parent.kind)&&e.parent.moduleSpecifier===e||Sg(e)&&100!==Jk(C)&&Dg(e.parent,!1)||sm(e.parent)||xD(e.parent)&&_m(e.parent.parent)&&e.parent.parent.argument===e.parent)return Ia(e,e,t);if(PD(n)&&$g(n)&&n.arguments[1]===e)return Ga(n);case 8:const a=FD(n)?n.argumentExpression===e?_O(n.expression):void 0:xD(n)&&vD(r)?Db(r.objectType):void 0;return a&&zd(a,Pc(e.text));case 88:case 98:case 38:case 84:return Xa(e.parent);case 202:return _m(e)?iR(e.argument.literal,t):void 0;case 93:return HE(e.parent)?In.checkDefined(e.parent.symbol):void 0;case 100:case 103:return nE(e.parent)?RP(e.parent).symbol:void 0;case 233:return dO(e).symbol;default:return}}}function oR(e){if(TN(e)&&!wI(e))return pt;if(33554432&e.flags)return pt;const t=Mb(e),n=t&&el(Ga(t.class));if(hm(e)){const t=Db(e);return n?Gl(t,n.thisType):t}if(pg(e))return sR(e);if(n&&!t.isImplements){const e=Oe(X_(n));return e?Gl(e,n.thisType):pt}if(zT(e))return ul(Ga(e));if(79===(r=e).kind&&zT(r.parent)&&qc(r.parent)===r){const t=iR(e);return t?ul(t):pt}var r;if(Nu(e)){const t=Ga(e);return t?x_(t):pt}if($B(e)){const t=iR(e);return t?x_(t):pt}if(Ul(e))return wc(e.parent,!0,0)||pt;if(tR(e)){const t=iR(e);if(t){const e=ul(t);return lc(e)?x_(t):e}}return nE(e.parent)&&e.parent.keywordToken===e.kind?RP(e.parent):pt}function aR(e){if(In.assert(207===e.kind||206===e.kind),247===e.parent.kind)return jI(e,IL(e.parent)||pt);if(223===e.parent.kind)return jI(e,_O(e.parent.right)||pt);if(299===e.parent.kind){const t=kt(e.parent.parent,ED);return RI(t,aR(t)||pt,nf(t.properties,e.parent))}const t=kt(e.parent,DD),n=aR(t)||pt,r=OL(65,n,Tt,e.parent)||pt;return BI(t,n,t.elements.indexOf(e),r)}function sR(e){return Wb(e)&&(e=e.parent),nb(_O(e))}function cR(e){const t=Xa(e.parent);return _b(e)?x_(t):ul(t)}function _R(e){const t=e.name;switch(t.kind){case 79:return ib(Oc(t));case 8:case 10:return ib(t.text);case 164:const e=KD(t);return II(e,12288)?e:Pt;default:return In.fail("Unsupported property name.")}}function lR(e){const t=ip(fd(e=Nd(e))),n=qd(e,0).length?Qn:qd(e,1).length?Kn:void 0;return n&&T(fd(n),(e=>{t.has(e.escapedName)||t.set(e.escapedName,e)})),fs(t)}function uR(e){return 0!==qd(e,0).length||0!==qd(e,1).length}function dR(e){if(dl(e))return!1;const t=Fc(e,Tw);if(!t)return!1;const n=t.parent;return!(!n||(ND(n)||vN(n))&&n.name===t||VR(t)!==ge)}function pR(e){let t=Ia(e.parent,e);if(!t||gf(t))return!0;const n=za(t);t=Ra(t);const r=No(t);return void 0===r.exportsSomeValue&&(r.exportsSomeValue=n?!!(111551&t.flags):up(Ka(t),(function(e){return(e=ba(e))&&!!(111551&ka(e))}))),r.exportsSomeValue}function fR(e,t){var n;const r=Fc(e,Tw);if(r){let e=VR(r,function(e){return Cu(e.parent)&&e===e.parent.name}(r));if(e){if(1048576&e.flags){const n=$a(e.exportSymbol);if(!t&&944&n.flags&&!(3&n.flags))return;e=n}const i=Ya(e);if(i){if(512&i.flags&&308===(null==(n=i.valueDeclaration)?void 0:n.kind)){const e=i.valueDeclaration;return e!==wp(r)?void 0:e}return Ec(r.parent,(e=>Cu(e)&&Ga(e)===i))}}}}function mR(e){const t=vA(e);if(t)return t;const n=Fc(e,Tw);if(n){const e=function(e){const t=Fo(e).resolvedSymbol;return t&&t!==rt?t:Ro(e,e.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}(n);if(va(e,111551)&&!Ca(e,111551))return $o(e)}}function gR(e){if(418&e.flags&&e.valueDeclaration&&!TN(e.valueDeclaration)){const t=No(e);if(void 0===t.isDeclarationWithCollidingName){const n=If(e.valueDeclaration);if(Np(n)||function(e){return e.valueDeclaration&&wD(e.valueDeclaration)&&295===kc(e.valueDeclaration).parent.kind}(e)){const r=Fo(e.valueDeclaration);if(Ro(n.parent,e.escapedName,111551,void 0,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(16384&r.flags){const e=32768&r.flags,i=du(n,!1),o=238===n.kind&&du(n.parent,!1);t.isDeclarationWithCollidingName=!(hf(n)||e&&(i||o))}else t.isDeclarationWithCollidingName=!1}}return t.isDeclarationWithCollidingName}return!1}function hR(e){if(!dl(e)){const t=Fc(e,Tw);if(t){const e=VR(t);if(e&&gR(e))return e.valueDeclaration}}}function yR(e){const t=Fc(e,Nu);if(t){const e=Ga(t);if(e)return gR(e)}return!1}function vR(e){switch(In.assert(!C.verbatimModuleSyntax),e.kind){case 268:return xR(Ga(e));case 270:case 271:case 273:case 278:const t=Ga(e);return!!t&&xR(t)&&!Ca(t,111551);case 275:const n=e.exportClause;return!!n&&(QE(n)||_e(n.elements,vR));case 274:return!e.expression||79!==e.expression.kind||xR(Ga(e))}return!1}function bR(e){const t=Fc(e,BE);return!(void 0===t||308!==t.parent.kind||!bg(t))&&xR(Ga(t))&&t.moduleReference&&!Lp(t.moduleReference)}function xR(e){var t;if(!e)return!1;const n=rs(xa(e));return n===rt||!!(111551&(null!=(t=ka(n))?t:-1))&&(nS(C)||!kR(n))}function kR(e){return MI(e)||!!e.constEnumOnlyModule}function SR(e,t){if(In.assert(!C.verbatimModuleSyntax),Go(e)){const t=Ga(e),n=t&&No(t);if(null==n?void 0:n.referenced)return!0;const r=No(t).aliasTarget;if(r&&1&bb(e)&&111551&ka(r)&&(nS(C)||!kR(r)))return!0}return!!t&&!!bI(e,(e=>SR(e,t)))}function TR(e){if(Mp(e.body)){if(Ku(e)||Qu(e))return!1;const t=vp(Ga(e));return t.length>1||1===t.length&&t[0].declaration!==e}return!1}function wR(e){return!(!j||sp(e)||rF(e)||!e.initializer||cb(e,16476))}function DR(e){return j&&sp(e)&&!e.initializer&&cb(e,16476)}function ER(e){const t=Fc(e,EE);if(!t)return!1;const n=Ga(t);return!!(n&&16&n.flags)&&!!up(Qa(n),(e=>111551&e.flags&&e.valueDeclaration&&ND(e.valueDeclaration)))}function NR(e){const t=Fc(e,EE);if(!t)return r;const n=Ga(t);return n&&fd(x_(n))||r}function PR(e){var t;const n=e.id||0;return n<0||n>=Fi.length?0:(null==(t=Fi[n])?void 0:t.flags)||0}function IR(e){return SM(e.parent),Fo(e).enumMemberValue}function OR(e){switch(e.kind){case 302:case 208:case 209:return!0}return!1}function LR(e){if(302===e.kind)return IR(e);const t=Fo(e).resolvedSymbol;if(t&&8&t.flags){const e=t.valueDeclaration;if(nm(e.parent))return IR(e)}}function MR(e){return!!(524288&e.flags)&&qd(e,0).length>0}function RR(e,t){var n;const r=Fc(e,bl);if(!r)return 0;if(t&&!(t=Fc(t)))return 0;let i=!1;if(jw(r)){const e=Fa(Ub(r),111551,!0,!0,t);i=!!(null==(n=null==e?void 0:e.declarations)?void 0:n.every(_l))}const o=Fa(r,111551,!0,!0,t),a=o&&2097152&o.flags?xa(o):o;i||(i=!(!o||!Ca(o,111551)));const s=Fa(r,788968,!0,!1,t);if(a&&a===s){const e=jm(!1);if(e&&a===e)return 9;const t=x_(a);if(t&&V_(t))return i?10:1}if(!s)return i?11:0;const c=ul(s);return lc(c)?i?11:0:3&c.flags?11:II(c,245760)?2:II(c,528)?6:II(c,296)?3:II(c,2112)?4:II(c,402653316)?5:IS(c)?7:II(c,12288)?8:MR(c)?10:_S(c)?7:11}function jR(e,t,n,r,i){const o=Fc(e,Tm);if(!o)return dC.createToken(131);const a=Ga(o);let s=!a||133120&a.flags?pt:ES(x_(a));return 8192&s.flags&&s.symbol===a&&(n|=1048576),i&&(s=US(s)),se.typeToTypeNode(s,t,1024|n,r)}function JR(e,t,n,r){const i=Fc(e,Sl);if(!i)return dC.createToken(131);const o=mp(i);return se.typeToTypeNode(Tp(o),t,1024|n,r)}function zR(e,t,n,r){const i=Fc(e,_u);if(!i)return dC.createToken(131);const o=TT(sR(i));return se.typeToTypeNode(o,t,1024|n,r)}function qR(e){return ce.has(Pc(e))}function VR(e,t){const n=Fo(e).resolvedSymbol;if(n)return n;let r=e;if(t){const t=e.parent;Nu(t)&&e===t.name&&(r=sc(t))}return Ro(r,e.escapedText,3257279,void 0,void 0,!0)}function QR(e){if(!dl(e)){const t=Fc(e,Tw);if(t){const e=VR(t);if(e)return rs(e).valueDeclaration}}}function KR(e){return!!(rm(e)||wE(e)&&im(e))&&rb(x_(Ga(e)))}function WR(e,t){return function(e,t,n){const r=1056&e.flags?se.symbolToExpression(e.symbol,111551,t,void 0,n):e===Bt?dC.createTrue():e===Lt&&dC.createFalse();if(r)return r;const i=e.value;return"object"==typeof i?dC.createBigIntLiteral(i):"number"==typeof i?dC.createNumericLiteral(i):dC.createStringLiteral(i)}(x_(Ga(e)),e,t)}function HR(e){return e?(ao(e),wp(e).localJsxFactory||Wr):Wr}function GR(e){if(e){const t=wp(e);if(t){if(t.localJsxFragmentFactory)return t.localJsxFragmentFactory;const e=t.pragmas.get("jsxfrag"),n=ht(e)?e[0]:e;if(n)return t.localJsxFragmentFactory=CI(n.arguments.factory,w),t.localJsxFragmentFactory}}if(C.jsxFragmentFactory)return CI(C.jsxFragmentFactory,w)}function XR(e){const t=264===e.kind?xt(e.name,sw):ph(e),n=Oa(t,t,void 0);if(n)return np(n,308)}function YR(e,t){if((n&t)!==t&&C.importHelpers){const o=wp(e);if(kf(o,C)&&!(16777216&e.flags)){const a=(r=e,i||(i=La(o,od,ja.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,r)||rt),i);if(a!==rt){const r=t&~n;for(let t=1;t<=16777216;t<<=1)if(r&t)for(const n of ZR(t)){if(l.has(n))continue;l.add(n);const r=Io(a.exports,Pc(n),111551);r?524288&t?_e(vp(r),(e=>$P(e)>3))||uo(e,ja.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,od,n,4):1048576&t?_e(vp(r),(e=>$P(e)>4))||uo(e,ja.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,od,n,5):1024&t&&(_e(vp(r),(e=>$P(e)>2))||uo(e,ja.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,od,n,3)):uo(e,ja.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,od,n)}}n|=t}}var r}function ZR(e){switch(e){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return E?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__createBinding"];case 8388608:return["__setFunctionName"];case 16777216:return["__propKey"];default:return In.fail("Unrecognized helper")}}function eB(e){const t=function(e){const t=function(e){return _P(e)?P(e.modifiers,qw):void 0}(e);return t&&CB(t,ja.Decorators_are_not_valid_here)}(e)||function(e){if(!e.modifiers)return!1;const t=function(e){switch(e.kind){case 174:case 175:case 173:case 169:case 168:case 171:case 170:case 178:case 264:case 269:case 268:case 275:case 274:case 215:case 216:case 166:case 165:return;case 172:case 299:case 300:case 267:case 279:return P(e.modifiers,vl);default:if(265===e.parent.kind||308===e.parent.kind)return;switch(e.kind){case 259:return tB(e,132);case 260:case 182:return tB(e,126);case 228:case 261:case 240:case 262:return P(e.modifiers,vl);case 263:return tB(e,85);default:In.assertNever(e)}}}(e);return t&&CB(t,ja.Modifiers_cannot_appear_here)}(e);if(void 0!==t)return t;if(Uw(e)&&zv(e))return CB(e,ja.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let n,r,i,o,a,s=0,c=!1,_=!1;for(const t of e.modifiers)if(qw(t)){if(!og(E,e,e.parent,e.parent.parent))return 171!==e.kind||Mp(e.body)?CB(e,ja.Decorators_are_not_valid_here):CB(e,ja.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(E&&(174===e.kind||175===e.kind)){const t=Qv(e.parent.members,e);if(gb(t.firstAccessor)&&e===t.secondAccessor)return CB(e,ja.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}if(-132098&s)return EB(t,ja.Decorators_are_not_valid_here);if(_&&126975&s)return In.assertIsDefined(a),!TB(wp(t))&&(rT(uo(t,ja.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),zf(a,ja.Decorator_used_before_export_here)),!0);s|=131072,126975&s?1&s&&(c=!0):_=!0,null!=a||(a=t)}else{if(146!==t.kind){if(168===e.kind||170===e.kind)return EB(t,ja._0_modifier_cannot_appear_on_a_type_member,_s(t.kind));if(178===e.kind&&(124!==t.kind||!Fl(e.parent)))return EB(t,ja._0_modifier_cannot_appear_on_an_index_signature,_s(t.kind))}if(101!==t.kind&&145!==t.kind&&85!==t.kind&&165===e.kind)return EB(t,ja._0_modifier_cannot_appear_on_a_type_parameter,_s(t.kind));switch(t.kind){case 85:if(263!==e.kind&&165!==e.kind)return EB(e,ja.A_class_member_cannot_have_the_0_keyword,_s(85));const _=e.parent;if(165===e.kind&&!(Cl(_)||Fl(_)||rD(_)||iD(_)||Yw(_)||Zw(_)||Kw(_)))return EB(t,ja._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,_s(t.kind));break;case 161:if(16384&s)return EB(t,ja._0_modifier_already_seen,"override");if(2&s)return EB(t,ja._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(64&s)return EB(t,ja._0_modifier_must_precede_1_modifier,"override","readonly");if(128&s)return EB(t,ja._0_modifier_must_precede_1_modifier,"override","accessor");if(512&s)return EB(t,ja._0_modifier_must_precede_1_modifier,"override","async");s|=16384,o=t;break;case 123:case 122:case 121:const l=Ks(wb(t.kind));if(28&s)return EB(t,ja.Accessibility_modifier_already_seen);if(16384&s)return EB(t,ja._0_modifier_must_precede_1_modifier,l,"override");if(32&s)return EB(t,ja._0_modifier_must_precede_1_modifier,l,"static");if(128&s)return EB(t,ja._0_modifier_must_precede_1_modifier,l,"accessor");if(64&s)return EB(t,ja._0_modifier_must_precede_1_modifier,l,"readonly");if(512&s)return EB(t,ja._0_modifier_must_precede_1_modifier,l,"async");if(265===e.parent.kind||308===e.parent.kind)return EB(t,ja._0_modifier_cannot_appear_on_a_module_or_namespace_element,l);if(256&s)return 121===t.kind?EB(t,ja._0_modifier_cannot_be_used_with_1_modifier,l,"abstract"):EB(t,ja._0_modifier_must_precede_1_modifier,l,"abstract");if(fl(e))return EB(t,ja.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);s|=wb(t.kind);break;case 124:if(32&s)return EB(t,ja._0_modifier_already_seen,"static");if(64&s)return EB(t,ja._0_modifier_must_precede_1_modifier,"static","readonly");if(512&s)return EB(t,ja._0_modifier_must_precede_1_modifier,"static","async");if(128&s)return EB(t,ja._0_modifier_must_precede_1_modifier,"static","accessor");if(265===e.parent.kind||308===e.parent.kind)return EB(t,ja._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(166===e.kind)return EB(t,ja._0_modifier_cannot_appear_on_a_parameter,"static");if(256&s)return EB(t,ja._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(16384&s)return EB(t,ja._0_modifier_must_precede_1_modifier,"static","override");s|=32,n=t;break;case 127:if(128&s)return EB(t,ja._0_modifier_already_seen,"accessor");if(64&s)return EB(t,ja._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(2&s)return EB(t,ja._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(169!==e.kind)return EB(t,ja.accessor_modifier_can_only_appear_on_a_property_declaration);s|=128;break;case 146:if(64&s)return EB(t,ja._0_modifier_already_seen,"readonly");if(169!==e.kind&&168!==e.kind&&178!==e.kind&&166!==e.kind)return EB(t,ja.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(128&s)return EB(t,ja._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");s|=64;break;case 93:if(C.verbatimModuleSyntax&&!(16777216&e.flags)&&262!==e.kind&&261!==e.kind&&264!==e.kind&&308===e.parent.kind&&(1===D||1===wp(e).impliedNodeFormat))return EB(t,ja.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(1&s)return EB(t,ja._0_modifier_already_seen,"export");if(2&s)return EB(t,ja._0_modifier_must_precede_1_modifier,"export","declare");if(256&s)return EB(t,ja._0_modifier_must_precede_1_modifier,"export","abstract");if(512&s)return EB(t,ja._0_modifier_must_precede_1_modifier,"export","async");if(Fl(e.parent))return EB(t,ja._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(166===e.kind)return EB(t,ja._0_modifier_cannot_appear_on_a_parameter,"export");s|=1;break;case 88:const u=308===e.parent.kind?e.parent:e.parent.parent;if(264===u.kind&&!df(u))return EB(t,ja.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(!(1&s))return EB(t,ja._0_modifier_must_precede_1_modifier,"export","default");if(c)return EB(a,ja.Decorators_are_not_valid_here);s|=1024;break;case 136:if(2&s)return EB(t,ja._0_modifier_already_seen,"declare");if(512&s)return EB(t,ja._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(16384&s)return EB(t,ja._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(Fl(e.parent)&&!Qw(e))return EB(t,ja._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(166===e.kind)return EB(t,ja._0_modifier_cannot_appear_on_a_parameter,"declare");if(16777216&e.parent.flags&&265===e.parent.kind)return EB(t,ja.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(fl(e))return EB(t,ja._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(128&s)return EB(t,ja._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");s|=2,r=t;break;case 126:if(256&s)return EB(t,ja._0_modifier_already_seen,"abstract");if(260!==e.kind&&182!==e.kind){if(171!==e.kind&&169!==e.kind&&174!==e.kind&&175!==e.kind)return EB(t,ja.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(260!==e.parent.kind||!cb(e.parent,256))return EB(t,ja.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&s)return EB(t,ja._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&s)return EB(t,ja._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(512&s&&i)return EB(i,ja._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(16384&s)return EB(t,ja._0_modifier_must_precede_1_modifier,"abstract","override");if(128&s)return EB(t,ja._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(zc(e)&&80===e.name.kind)return EB(t,ja._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");s|=256;break;case 132:if(512&s)return EB(t,ja._0_modifier_already_seen,"async");if(2&s||16777216&e.parent.flags)return EB(t,ja._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(166===e.kind)return EB(t,ja._0_modifier_cannot_appear_on_a_parameter,"async");if(256&s)return EB(t,ja._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");s|=512,i=t;break;case 101:case 145:const d=101===t.kind?32768:65536,p=101===t.kind?"in":"out";if(165!==e.kind||!(FE(e.parent)||Fl(e.parent)||PE(e.parent)))return EB(t,ja._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,p);if(s&d)return EB(t,ja._0_modifier_already_seen,p);if(32768&d&&65536&s)return EB(t,ja._0_modifier_must_precede_1_modifier,"in","out");s|=d}}return 173===e.kind?32&s?EB(n,ja._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):16384&s?EB(o,ja._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):!!(512&s)&&EB(i,ja._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):(269===e.kind||268===e.kind)&&2&s?EB(r,ja.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):166===e.kind&&16476&s&&Ul(e.name)?EB(e,ja.A_parameter_property_may_not_be_declared_using_a_binding_pattern):166===e.kind&&16476&s&&e.dotDotDotToken?EB(e,ja.A_parameter_property_cannot_be_declared_using_a_rest_parameter):!!(512&s)&&function(e,t){switch(e.kind){case 171:case 259:case 215:case 216:return!1}return EB(t,ja._0_modifier_cannot_be_used_here,"async")}(e,i)}function tB(e,t){const n=P(e.modifiers,vl);return n&&n.kind!==t?n:void 0}function nB(e,t=ja.Trailing_comma_not_allowed){return!(!e||!e.hasTrailingComma)&&DB(e[0],e.end-1,1,t)}function rB(e,t){if(e&&0===e.length){const n=e.pos-1;return DB(t,n,As(t.text,e.end)+1-n,ja.Type_parameter_list_cannot_be_empty)}return!1}function oB(e){const t=wp(e);return eB(e)||rB(e.typeParameters,t)||function(e){let t=!1;const n=e.length;for(let r=0;r1||e.typeParameters.hasTrailingComma||e.typeParameters[0].constraint)&&t&&na(t.fileName,[".mts",".cts"])&&EB(e.typeParameters[0],ja.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:n}=e;return ys(t,n.pos).line!==ys(t,n.end).line&&EB(n,ja.Line_terminator_not_permitted_before_arrow)}(e,t)||Cl(e)&&function(e){if(w>=3){const t=e.body&&cE(e.body)&&LF(e.body.statements);if(t){const n=z(e.parameters,(e=>!!e.initializer||Ul(e.name)||rd(e)));if(S(n)){T(n,(e=>{rT(uo(e,ja.This_parameter_is_not_allowed_with_use_strict_directive),zf(t,ja.use_strict_directive_used_here))}));const e=n.map(((e,t)=>zf(e,0===t?ja.Non_simple_parameter_declared_here:ja.and_here)));return rT(uo(t,ja.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...e),!0}}}return!1}(e)}function aB(e,t){return nB(t)||function(e,t){if(t&&0===t.length){const n=wp(e),r=t.pos-1;return DB(n,r,As(n.text,t.end)+1-r,ja.Type_argument_list_cannot_be_empty)}return!1}(e,t)}function sB(e){const t=e.types;if(nB(t))return!0;if(t&&0===t.length){const n=_s(e.token);return DB(e,t.pos,0,ja._0_list_cannot_be_empty,n)}return _e(t,_B)}function _B(e){return YD(e)&&Rw(e.expression)&&e.typeArguments?EB(e,ja.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):aB(e,e.typeArguments)}function lB(e){if(164!==e.kind)return!1;const t=e;return 223===t.expression.kind&&27===t.expression.operatorToken.kind&&EB(t.expression,ja.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function uB(e){if(e.asteriskToken){if(In.assert(259===e.kind||215===e.kind||171===e.kind),16777216&e.flags)return EB(e.asteriskToken,ja.Generators_are_not_allowed_in_an_ambient_context);if(!e.body)return EB(e.asteriskToken,ja.An_overload_signature_cannot_be_declared_as_a_generator)}}function dB(e,t){return!!e&&EB(e,t)}function pB(e,t){return!!e&&EB(e,t)}function fB(e){if(OB(e))return!0;if(247===e.kind&&e.awaitModifier&&!(32768&e.flags)){const t=wp(e);if(Hm(e)){if(!TB(t))switch(kf(t,C)||Wi.add(zf(e.awaitModifier,ja.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),D){case 100:case 199:if(1===t.impliedNodeFormat){Wi.add(zf(e.awaitModifier,ja.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(w>=4)break;default:Wi.add(zf(e.awaitModifier,ja.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher))}}else if(!TB(t)){const t=zf(e.awaitModifier,ja.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),n=zm(e);return n&&173!==n.kind&&(In.assert(0==(2&ky(n)),"Enclosing function should never be an async function."),rT(t,zf(n,ja.Did_you_mean_to_mark_this_function_as_async))),Wi.add(t),!0}return!1}if(hE(e)&&!(32768&e.flags)&&Tw(e.initializer)&&"async"===e.initializer.escapedText)return EB(e.initializer,ja.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(258===e.initializer.kind){const t=e.initializer;if(!kB(t)){const n=t.declarations;if(!n.length)return!1;if(n.length>1){const n=246===e.kind?ja.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:ja.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return CB(t.declarations[1],n)}const r=n[0];if(r.initializer){const t=246===e.kind?ja.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:ja.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return EB(r.name,t)}if(r.type)return EB(r,246===e.kind?ja.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:ja.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function mB(e){if(e.parameters.length===(174===e.kind?1:2))return Jv(e)}function gB(e,t){if(function(e){return wy(e)&&!Rl(e)}(e))return EB(e,t)}function hB(e){if(oB(e))return!0;if(171===e.kind){if(207===e.parent.kind){if(e.modifiers&&(1!==e.modifiers.length||132!==Me(e.modifiers).kind))return CB(e,ja.Modifiers_cannot_appear_here);if(dB(e.questionToken,ja.An_object_member_cannot_be_declared_optional))return!0;if(pB(e.exclamationToken,ja.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===e.body)return DB(e,e.end-1,1,ja._0_expected,"{")}if(uB(e))return!0}if(Fl(e.parent)){if(w<2&&Cw(e.name))return EB(e.name,ja.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(16777216&e.flags)return gB(e.name,ja.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(171===e.kind&&!e.body)return gB(e.name,ja.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(261===e.parent.kind)return gB(e.name,ja.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(184===e.parent.kind)return gB(e.name,ja.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function yB(e){return Ty(e)||221===e.kind&&40===e.operator&&8===e.operand.kind}function vB(e){const t=e.initializer;if(t){const r=!(yB(t)||function(e){if((ND(e)||FD(e)&&yB(e.argumentExpression))&&zb(e.expression))return!!(1056&WI(e).flags)}(t)||110===t.kind||95===t.kind||(n=t,9===n.kind||221===n.kind&&40===n.operator&&9===n.operand.kind));if(!(rm(e)||wE(e)&&im(e))||e.type)return EB(t,ja.Initializers_are_not_allowed_in_ambient_contexts);if(r)return EB(t,ja.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}var n}function bB(e){if(79===e.kind){if("__esModule"===Oc(e))return"noEmit",t=e,n=ja.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules,!TB(wp(t))&&(_o("noEmit",t,n,undefined,undefined,undefined),!0)}else{const t=e.elements;for(const e of t)if(!XD(e))return bB(e.name)}var t,n;return!1}function xB(e){if(79===e.kind){if("let"===e.escapedText)return EB(e,ja.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const t=e.elements;for(const e of t)XD(e)||xB(e.name)}return!1}function kB(e){const t=e.declarations;return!!nB(e.declarations)||!e.declarations.length&&DB(e,t.pos,t.end-t.pos,ja.Variable_declaration_list_cannot_be_empty)}function SB(e){switch(e.kind){case 242:case 243:case 244:case 251:case 245:case 246:case 247:return!1;case 253:return SB(e.parent)}return!0}function TB(e){return e.parseDiagnostics.length>0}function CB(e,t,n,r,i){const o=wp(e);if(!TB(o)){const a=Xf(o,e.pos);return Wi.add(kk(o,a.start,a.length,t,n,r,i)),!0}return!1}function DB(e,t,n,r,i,o,a){const s=wp(e);return!TB(s)&&(Wi.add(kk(s,t,n,r,i,o,a)),!0)}function EB(e,t,n,r,i){return!TB(wp(e))&&(Wi.add(zf(e,t,n,r,i)),!0)}function PB(e){return 261!==e.kind&&262!==e.kind&&269!==e.kind&&268!==e.kind&&275!==e.kind&&274!==e.kind&&267!==e.kind&&!cb(e,1027)&&CB(e,ja.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function OB(e){if(16777216&e.flags){if(!Fo(e).hasReportedStatementInAmbientContext&&(Sl(e.parent)||Pl(e.parent)))return Fo(e).hasReportedStatementInAmbientContext=CB(e,ja.An_implementation_cannot_be_declared_in_ambient_contexts);if(238===e.parent.kind||265===e.parent.kind||308===e.parent.kind){const t=Fo(e.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=CB(e,ja.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function LB(e){if(32&e.numericLiteralFlags){let t;if(w>=1?t=ja.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:ym(e,198)?t=ja.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:ym(e,302)&&(t=ja.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),t){const n=qD(e.parent)&&40===e.parent.operator,r=(n?"-":"")+"0o"+e.text;return EB(n?e.parent:e,t,r)}}return function(e){const t=-1!==ef(e).indexOf("."),n=16&e.numericLiteralFlags;t||n||+e.text<=2**53-1||po(!1,zf(e,ja.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}(e),!1}function zB(e){return!!T(e.elements,(e=>{if(e.isTypeOnly)return CB(e,273===e.kind?ja.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:ja.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)}))}function KB(e,t,n,r){if(1048576&t.flags&&2621440&e.flags){const i=VC(t,e);if(i)return i;const o=fd(e);if(o){const e=zC(o,t);if(e)return Ck(t,V(e,(e=>[()=>x_(e),e.escapedName])),n,void 0,r)}}}}function WB(e){return!Pl(e)}function HB(e){return 259!==e.kind&&171!==e.kind||!!e.body}function $B(e){switch(e.parent.kind){case 273:case 278:return Tw(e);default:return Xh(e)}}function GB(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function XB(e){return!!(1&e.flags)}function YB(e){return!!(2&e.flags)}var ZB,ej=b({"src/compiler/checker.ts"(){var e;XK(),zB(),lo(),AB=/^".+"$/,wB="(anonymous)",DB=1,EB=1,NB=1,FB=1,PB=(e=>(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(PB||{}),IB=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),OB=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.IsForStringLiteralArgumentCompletions=32]="IsForStringLiteralArgumentCompletions",e[e.RestBindingElement=64]="RestBindingElement",e))(OB||{}),LB=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(LB||{}),MB=yn(HB,WB),RB=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3})),BB=class{},(e=jB||(jB={})).JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes",JB=class{constructor(e,t,n){var r;for(this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;t instanceof JB;)t=t.inner;this.inner=t,this.moduleResolverHost=n,this.context=e,this.canTrackSymbol=!!(null==(r=this.inner)?void 0:r.trackSymbol)}trackSymbol(e,t,n){var r;return!(!(null==(r=this.inner)?void 0:r.trackSymbol)||this.disableTrackSymbol||!this.inner.trackSymbol(e,t,n)||(this.onDiagnosticReported(),0))}reportInaccessibleThisError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleThisError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(e){var t;(null==(t=this.inner)?void 0:t.reportPrivateInBaseOfClassExpression)&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(e))}reportInaccessibleUniqueSymbolError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleUniqueSymbolError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var e;(null==(e=this.inner)?void 0:e.reportCyclicStructureError)&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(e){var t;(null==(t=this.inner)?void 0:t.reportLikelyUnsafeImportRequiredError)&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(e))}reportTruncationError(){var e;(null==(e=this.inner)?void 0:e.reportTruncationError)&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(e,t){var n;(null==(n=this.inner)?void 0:n.trackReferencedAmbientModule)&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(e,t))}trackExternalModuleSymbolOfImportTypeNode(e){var t;(null==(t=this.inner)?void 0:t.trackExternalModuleSymbolOfImportTypeNode)&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(e))}reportNonlocalAugmentation(e,t,n){var r;(null==(r=this.inner)?void 0:r.reportNonlocalAugmentation)&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(e,t,n))}reportNonSerializableProperty(e){var t;(null==(t=this.inner)?void 0:t.reportNonSerializableProperty)&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(e))}reportImportTypeNodeResolutionModeOverride(){var e;(null==(e=this.inner)?void 0:e.reportImportTypeNodeResolutionModeOverride)&&(this.onDiagnosticReported(),this.inner.reportImportTypeNodeResolutionModeOverride())}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function tj(e,t,n,r){if(void 0===e)return e;const i=t(e);let o;return void 0!==i?(o=ht(i)?(r||dj)(i):i,In.assertNode(o,n),o):void 0}function nj(e,t,n,r,i){if(void 0===e)return e;const o=e.length;let a;(void 0===r||r<0)&&(r=0),(void 0===i||i>o-r)&&(i=o-r);let s=-1,c=-1;r>0||io-r)&&(i=o-r),ij(e,t,n,r,i)}function ij(e,t,n,r,i){let o;const a=e.length;(r>0||i=2&&(i=function(e,t){let n;for(let r=0;r{const o=r_,addSource:F,setSourceContent:P,addName:I,addMapping:O,appendSourceMap:function(e,t,n,r,i,o){In.assert(e>=k,"generatedLine cannot backtrack"),In.assert(t>=0,"generatedCharacter cannot be negative"),s();const a=[];let _;const l=Tj(n.mappings);for(const s of l){if(o&&(s.generatedLine>o.line||s.generatedLine===o.line&&s.generatedCharacter>o.character))break;if(i&&(s.generatedLineJSON.stringify(B())};function F(t){s();const n=Ma(r,t,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let i=u.get(n);return void 0===i&&(i=l.length,l.push(n),_.push(t),u.set(n,i)),c(),i}function P(e,t){if(s(),null!==t){for(o||(o=[]);o.length=k,"generatedLine cannot backtrack"),In.assert(t>=0,"generatedCharacter cannot be negative"),In.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),In.assert(void 0===r||r>=0,"sourceLine cannot be negative"),In.assert(void 0===i||i>=0,"sourceCharacter cannot be negative"),s(),(function(e,t){return!D||k!==e||S!==t}(e,t)||function(e,t,n){return void 0!==e&&void 0!==t&&void 0!==n&&T===e&&(C>t||C===t&&A>n)}(n,r,i))&&(M(),k=e,S=t,E=!1,N=!1,D=!0),void 0!==n&&void 0!==r&&void 0!==i&&(T=n,C=r,A=i,E=!0,void 0!==o&&(w=o,N=!0)),c()}function L(e){p.push(e),p.length>=1024&&R()}function M(){if(D&&(!x||m!==k||g!==S||h!==T||y!==C||v!==A||b!==w)){if(s(),m0&&(f+=String.fromCharCode.apply(void 0,p),p.length=0)}function B(){return M(),R(),{version:3,file:t,sourceRoot:n,sources:l,names:d,mappings:f,sourcesContent:o}}function j(e){e<0?e=1+(-e<<1):e<<=1;do{let n=31&e;(e>>=5)>0&&(n|=32),L((t=n)>=0&&t<26?65+t:t>=26&&t<52?97+t-26:t>=52&&t<62?48+t-52:62===t?43:63===t?47:In.fail(t+": not a base64 value"))}while(e>0);var t}}function vj(e,t){return{getLineCount:()=>t.length,getLineText:n=>e.substring(t[n],t[n+1])}}function bj(e){for(let t=e.getLineCount()-1;t>=0;t--){const n=e.getLineText(t),r=fj.exec(n);if(r)return g(r[1]);if(!n.match(mj))break}}function xj(e){return"string"==typeof e||null===e}function kj(e){return null!==e&&"object"==typeof e&&3===e.version&&"string"==typeof e.file&&"string"==typeof e.mappings&&ht(e.sources)&&F(e.sources,vt)&&(void 0===e.sourceRoot||null===e.sourceRoot||"string"==typeof e.sourceRoot)&&(void 0===e.sourcesContent||null===e.sourcesContent||ht(e.sourcesContent)&&F(e.sourcesContent,xj))&&(void 0===e.names||null===e.names||ht(e.names)&&F(e.names,vt))}function Sj(e){try{const t=JSON.parse(e);if(kj(t))return t}catch(e){}}function Tj(e){let t,n=!1,r=0,i=0,o=0,a=0,s=0,c=0,_=0;return{get pos(){return r},get error(){return t},get state(){return l(!0,!0)},next(){for(;!n&&r=e.length)return d("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const a=(o=e.charCodeAt(r))>=65&&o<=90?o-65:o>=97&&o<=122?o-97+26:o>=48&&o<=57?o-48+52:43===o?62:47===o?63:-1;if(-1===a)return d("Invalid character in VLQ"),-1;t=0!=(32&a),i|=(31&a)<>=1:(i>>=1,i=-i),i}}function Cj(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function Aj(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function wj(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function Dj(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function Ej(e,t){return In.assert(e.sourceIndex===t.sourceIndex),Jt(e.sourcePosition,t.sourcePosition)}function Nj(e,t){return Jt(e.generatedPosition,t.generatedPosition)}function Fj(e){return e.sourcePosition}function Pj(e){return e.generatedPosition}function Ij(e,t,n){const i=sa(n),o=t.sourceRoot?ya(t.sourceRoot,i):i,a=ya(t.file,i),s=e.getSourceFileLike(a),c=t.sources.map((e=>ya(e,o))),_=new Map(c.map(((t,n)=>[e.getCanonicalFileName(t),n])));let l,u,d;return{getSourcePosition:function(e){const t=function(){if(void 0===u){const e=[];for(const t of f())e.push(t);u=he(e,Nj,Dj)}return u}();if(!_e(t))return e;let n=Qe(t,e.pos,Pj,Jt);n<0&&(n=~n);const r=t[n];return void 0!==r&&wj(r)?{fileName:c[r.sourceIndex],pos:r.sourcePosition}:e},getGeneratedPosition:function(t){const n=_.get(e.getCanonicalFileName(t.fileName));if(void 0===n)return t;const r=function(e){if(void 0===d){const e=[];for(const t of f()){if(!wj(t))continue;let n=e[t.sourceIndex];n||(e[t.sourceIndex]=n=[]),n.push(t)}d=e.map((e=>he(e,Ej,Dj)))}return d[e]}(n);if(!_e(r))return t;let i=Qe(r,t.pos,Fj,Jt);i<0&&(i=~i);const o=r[i];return void 0===o||o.sourceIndex!==n?t:{fileName:a,pos:o.generatedPosition}}};function p(n){const r=void 0!==s?ds(s,n.generatedLine,n.generatedCharacter,!0):-1;let i,o;if(Aj(n)){const r=e.getSourceFileLike(c[n.sourceIndex]);i=t.sources[n.sourceIndex],o=void 0!==r?ds(r,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:r,source:i,sourceIndex:n.sourceIndex,sourcePosition:o,nameIndex:n.nameIndex}}function f(){if(void 0===l){const n=Tj(t.mappings),i=Ze(n,p);void 0!==n.error?(e.log&&e.log("Encountered error while decoding sourcemap: "+n.error),l=r):l=i}return l}}var Oj=b({"src/compiler/sourcemap.ts"(){XK(),lo(),pj=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,fj=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,mj=/^\s*(\/\/[@#] .*)?$/,gj={getSourcePosition:wt,getGeneratedPosition:wt}}});function Lj(e){return(e=Dc(e))?qB(e):0}function Mj(e){return void 0!==e.propertyName&&"default"===e.propertyName.escapedText}function Rj(e,t){return function(n){return 308===n.kind?t(n):function(n){return e.factory.createBundle(V(n.sourceFiles,t),n.prepends)}(n)}}function Bj(e){return!!fh(e)}function jj(e){if(fh(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t)return!1;if(!KE(t))return!1;let n=0;for(const e of t.elements)Mj(e)&&n++;return n>0&&n!==t.elements.length||!!(t.elements.length-n)&&mh(e)}function Jj(e){return!jj(e)&&(mh(e)||!!e.importClause&&KE(e.importClause.namedBindings)&&function(e){return!!e&&!!KE(e)&&_e(e.elements,Mj)}(e.importClause.namedBindings))}function zj(e,t,n,r){const i=[],o=ut(),a=[],s=new Map;let c,_,l=!1,u=!1,d=!1,p=!1;for(const n of t.statements)switch(n.kind){case 269:i.push(n),!d&&jj(n)&&(d=!0),!p&&Jj(n)&&(p=!0);break;case 268:280===n.moduleReference.kind&&i.push(n);break;case 275:if(n.moduleSpecifier)if(n.exportClause)if(i.push(n),GE(n.exportClause))m(n);else{const e=n.exportClause.name;s.get(Oc(e))||(qj(a,Lj(n),e),s.set(Oc(e),!0),c=Se(c,e)),d=!0}else i.push(n),u=!0;else m(n);break;case 274:n.isExportEquals&&!_&&(_=n);break;case 240:if(cb(n,1))for(const e of n.declarationList.declarations)c=Uj(e,s,c);break;case 259:if(cb(n,1))if(cb(n,1024))l||(qj(a,Lj(n),e.factory.getDeclarationName(n)),l=!0);else{const e=n.name;s.get(Oc(e))||(qj(a,Lj(n),e),s.set(Oc(e),!0),c=Se(c,e))}break;case 260:if(cb(n,1))if(cb(n,1024))l||(qj(a,Lj(n),e.factory.getDeclarationName(n)),l=!0);else{const e=n.name;e&&!s.get(Oc(e))&&(qj(a,Lj(n),e),s.set(Oc(e),!0),c=Se(c,e))}}const f=HF(e.factory,e.getEmitHelperFactory(),t,r,u,d,p);return f&&i.unshift(f),{externalImports:i,exportSpecifiers:o,exportEquals:_,hasExportStarsToExportValues:u,exportedBindings:a,exportedNames:c,externalHelpersImportDeclaration:f};function m(e){for(const t of kt(e.exportClause,GE).elements)if(!s.get(Oc(t.name))){const r=t.propertyName||t.name;e.moduleSpecifier||o.add(Oc(r),t);const i=n.getReferencedImportDeclaration(r)||n.getReferencedValueDeclaration(r);i&&qj(a,Lj(i),t.name),s.set(Oc(t.name),!0),c=Se(c,t.name)}}}function Uj(e,t,n){if(Ul(e.name))for(const r of e.name.elements)XD(r)||(n=Uj(r,t,n));else if(!dl(e.name)){const r=Oc(e.name);t.get(r)||(t.set(r,!0),n=Se(n,e.name))}return n}function qj(e,t,n){let r=e[t];return r?r.push(n):e[t]=r=[n],r}function Vj(e){return ed(e)||8===e.kind||fy(e.kind)||Tw(e)}function Qj(e){return!Tw(e)&&Vj(e)}function Kj(e){return e>=64&&e<=78}function Wj(e){switch(e){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}}function Hj(e){if(!uE(e))return;const t=Hh(e.expression);return am(t)?t:void 0}function $j(e,t){for(let n=t;nfunction(e,t,n){return Qw(e)&&(!!e.initializer||!t)&&lb(e)===n}(e,t,n)))}function Xj(e){return Qw(t=e)&&lb(t)||Hw(e);var t}function Yj(e){return z(e.members,Xj)}function Zj(e){return 169===e.kind&&void 0!==e.initializer}function eJ(e){return!_b(e)&&(Ol(e)||Il(e))&&Cw(e.name)}function tJ(e){let t;if(e){const n=e.parameters,r=n.length>0&&zv(n[0]),i=r?1:0,o=r?n.length-1:n.length;for(let e=0;esJ(e.privateEnv,t)))}var lJ,uJ=b({"src/compiler/transformers/utilities.ts"(){XK()}});function dJ(e,t,n,r,i,o){let a,s,c=e;if(jb(e))for(a=e.right;Xb(e.left)||Gb(e.left);){if(!jb(a))return In.checkDefined(tj(a,t,_u));c=e=a,a=e.right}const _={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:l,emitBindingOrAssignment:function(e,r,i,a){In.assertNode(e,o?Tw:_u);const s=o?o(e,r,i):OP(n.factory.createAssignment(In.checkDefined(tj(e,t,_u)),r),i);s.original=a,l(s)},createArrayBindingOrAssignmentPattern:e=>function(e,t){return In.assertEachNode(t,Xl),e.createArrayLiteralExpression(V(t,e.converters.convertToArrayAssignmentElement))}(n.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,t){return In.assertEachNode(t,$l),e.createObjectLiteralExpression(V(t,e.converters.convertToObjectAssignmentElement))}(n.factory,e),createArrayBindingOrAssignmentElement:bJ,visitor:t};if(a&&(a=tj(a,t,_u),In.assert(a),Tw(a)&&pJ(e,a.escapedText)||fJ(e)?a=vJ(_,a,!1,c):i?a=vJ(_,a,!0,c):Qy(e)&&(c=a)),gJ(_,e,a,c,jb(e)),a&&i){if(!_e(s))return a;s.push(a)}return n.factory.inlineExpressions(s)||n.factory.createOmittedExpression();function l(e){s=Se(s,e)}}function pJ(e,t){const n=eP(e);return Wl(n)?function(e,t){const n=oP(e);for(const e of n)if(pJ(e,t))return!0;return!1}(n,t):!!Tw(n)&&n.escapedText===t}function fJ(e){const t=rP(e);if(t&&Jw(t)&&!tl(t.expression))return!0;const n=eP(e);return!!n&&Wl(n)&&!!T(oP(n),fJ)}function mJ(e,t,n,r,i,o=!1,a){let s;const c=[],_=[],l={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:o,emitExpression:function(e){s=Se(s,e)},emitBindingOrAssignment:u,createArrayBindingOrAssignmentPattern:e=>function(e,t){return In.assertEachNode(t,Vl),e.createArrayBindingPattern(t)}(n.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,t){return In.assertEachNode(t,wD),e.createObjectBindingPattern(t)}(n.factory,e),createArrayBindingOrAssignmentElement:e=>function(e,t){return e.createBindingElement(void 0,void 0,t)}(n.factory,e),visitor:t};if(wE(e)){let t=ZF(e);t&&(Tw(t)&&pJ(e,t.escapedText)||fJ(e))&&(t=vJ(l,In.checkDefined(tj(t,l.visitor,_u)),!1,t),e=n.factory.updateVariableDeclaration(e,e.name,void 0,void 0,t))}if(gJ(l,e,i,e,a),s){const e=n.factory.createTempVariable(void 0);if(o){const t=n.factory.inlineExpressions(s);s=void 0,u(e,t,void 0,void 0)}else{n.hoistVariableDeclaration(e);const t=je(c);t.pendingExpressions=Se(t.pendingExpressions,n.factory.createAssignment(e,t.value)),Ae(t.pendingExpressions,s),t.value=e}}for(const{pendingExpressions:e,name:t,value:r,location:i,original:o}of c){const a=n.factory.createVariableDeclaration(t,void 0,void 0,e?n.factory.inlineExpressions(Se(e,r)):r);a.original=o,OP(a,i),_.push(a)}return _;function u(e,t,r,i){In.assertNode(e,kl),s&&(t=n.factory.inlineExpressions(Se(s,t)),s=void 0),c.push({pendingExpressions:s,name:e,value:t,location:r,original:i})}}function gJ(e,t,n,r,i){const o=eP(t);if(!i){const i=tj(ZF(t),e.visitor,_u);i?n?(n=function(e,t,n,r){return t=vJ(e,t,!0,r),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,n,void 0,t)}(e,n,i,r),!Qj(i)&&Wl(o)&&(n=vJ(e,n,!0,r))):n=i:n||(n=e.context.factory.createVoidZero())}Hl(o)?function(e,t,n,r,i){const o=oP(n),a=o.length;let s,c;1!==a&&(r=vJ(e,r,!Ql(t)||0!==a,i));for(let t=0;t=1)||98304&_.transformFlags||98304&eP(_).transformFlags||Jw(t)){s&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n),s=void 0);const o=yJ(e,r,t);Jw(t)&&(c=Se(c,o.argumentExpression)),gJ(e,_,o,_)}else s=Se(s,tj(_,e.visitor,Kl))}}s&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n)}(e,t,o,n,r):Gl(o)?function(e,t,n,r,i){const o=oP(n),a=o.length;let s,c;e.level<1&&e.downlevelIteration?r=vJ(e,OP(e.context.getEmitHelperFactory().createReadHelper(r,a>0&&tP(o[a-1])?void 0:a),i),!1,i):(1!==a&&(e.level<1||0===a)||F(o,XD))&&(r=vJ(e,r,!Ql(t)||0!==a,i));for(let t=0;t=1)if(65536&n.transformFlags||e.hasTransformedPriorElement&&!hJ(n)){e.hasTransformedPriorElement=!0;const t=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(t),c=Se(c,[t,n]),s=Se(s,e.createArrayBindingOrAssignmentElement(t))}else s=Se(s,n);else{if(XD(n))continue;if(tP(n)){if(t===a-1){const i=e.context.factory.createArraySliceCall(r,t);gJ(e,n,i,n)}}else{const i=e.context.factory.createElementAccessExpression(r,t);gJ(e,n,i,n)}}}if(s&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(s),r,i,n),c)for(const[t,n]of c)gJ(e,n,t,n)}(e,t,o,n,r):e.emitBindingOrAssignment(o,n,r,t)}function hJ(e){const t=eP(e);if(!t||XD(t))return!0;const n=rP(e);if(n&&!Ey(n))return!1;const r=ZF(e);return!(r&&!Qj(r))&&(Wl(t)?F(oP(t),hJ):Tw(t))}function yJ(e,t,n){if(Jw(n)){const r=vJ(e,In.checkDefined(tj(n.expression,e.visitor,_u)),!1,n);return e.context.factory.createElementAccessExpression(t,r)}if(Ty(n)){const r=dC.cloneNode(n);return e.context.factory.createElementAccessExpression(t,r)}{const r=e.context.factory.createIdentifier(Oc(n));return e.context.factory.createPropertyAccessExpression(t,r)}}function vJ(e,t,n,r){if(Tw(t)&&n)return t;{const n=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(n),e.emitExpression(OP(e.context.factory.createAssignment(n,t),r))):e.emitBindingOrAssignment(n,t,r,void 0),n}}function bJ(e){return e}var xJ,kJ=b({"src/compiler/transformers/destructuring.ts"(){XK(),lJ=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(lJ||{})}});function SJ(e,t,n,r,i,o){const a=tj(t.tag,n,_u);In.assert(a);const s=[void 0],c=[],_=[],l=t.template;if(0===o&&!tv(l))return uj(t,n,e);if(lw(l))c.push(TJ(l)),_.push(CJ(l,r));else{c.push(TJ(l.head)),_.push(CJ(l.head,r));for(const e of l.templateSpans)c.push(TJ(e.literal)),_.push(CJ(e.literal,r)),s.push(In.checkDefined(tj(e.expression,n,_u)))}const u=e.getEmitHelperFactory().createTemplateObjectHelper(dC.createArrayLiteralExpression(c),dC.createArrayLiteralExpression(_));if(wI(r)){const e=dC.createUniqueName("templateObject");i(e),s[0]=dC.createLogicalOr(e,dC.createAssignment(e,u))}else s[0]=u;return dC.createCallExpression(a,void 0,s)}function TJ(e){return e.templateFlags?dC.createVoidZero():dC.createStringLiteral(e.text)}function CJ(e,t){let n=e.rawText;if(void 0===n){In.assertIsDefined(t,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),n=Xp(t,e);const r=14===e.kind||17===e.kind;n=n.substring(1,n.length-(r?1:2))}return n=n.replace(/\r\n?/g,"\n"),OP(dC.createStringLiteral(n),e)}var AJ,wJ=b({"src/compiler/transformers/taggedTemplate.ts"(){XK(),xJ=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(xJ||{})}});function DJ(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:a}=e,s=e.getEmitResolver(),c=e.getCompilerOptions(),_=Rk(c),l=Bk(c),u=!!c.experimentalDecorators,d=c.emitDecoratorMetadata?PJ(e):void 0,p=e.onEmitNode,f=e.onSubstituteNode;let m,g,h,y,v,b,x,k;return e.onEmitNode=function(e,t,n){const r=k,i=m;TN(t)&&(m=t),2&x&&function(e){return 264===Dc(e).kind}(t)&&(k|=2),8&x&&function(e){return 263===Dc(e).kind}(t)&&(k|=8),p(e,t,n),k=r,m=i},e.onSubstituteNode=function(e,n){return n=f(e,n),1===e?function(e){switch(e.kind){case 79:return function(e){return we(e)||e}(e);case 208:case 209:return function(e){return function(e){const n=function(e){if(!qk(c))return ND(e)||FD(e)?s.getConstantValue(e):void 0}(e);if(void 0!==n){rA(e,n);const i="string"==typeof n?t.createStringLiteral(n):t.createNumericLiteral(n);if(!c.removeComments){eA(i,3,` ${r=ef(Dc(e,Yx)),r.replace(/\*\//g,"*_/")} `)}return i}var r;return e}(e)}(e)}return e}(n):bN(n)?function(e){if(2&x){const n=e.name,r=we(n);if(r){if(e.objectAssignmentInitializer){const i=t.createAssignment(r,e.objectAssignmentInitializer);return OP(t.createPropertyAssignment(n,i),e)}return OP(t.createPropertyAssignment(n,r),e)}}return e}(n):n},e.enableSubstitution(208),e.enableSubstitution(209),function(e){return 309===e.kind?function(e){return t.createBundle(e.sourceFiles.map(S),Z(e.prepends,(e=>311===e.kind?wC(e,"js"):e)))}(e):S(e)};function S(t){if(t.isDeclarationFile)return t;m=t;const n=T(t,M);return oA(n,e.readEmitHelpers()),m=void 0,n}function T(e,t){const n=y,r=v,i=b;!function(e){switch(e.kind){case 308:case 266:case 265:case 238:y=e,v=void 0;break;case 260:case 259:if(cb(e,2))break;e.name?oe(e):In.assert(260===e.kind||cb(e,1024))}}(e);const o=t(e);return y!==n&&(v=r),y=n,b=i,o}function C(e){return T(e,A)}function A(e){return 1&e.transformFlags?L(e):e}function w(e){return T(e,D)}function D(n){switch(n.kind){case 269:case 268:case 274:case 275:return function(n){if(Fc(n)!==n)return 1&n.transformFlags?uj(n,C,e):n;switch(n.kind){case 269:return function(e){if(!e.importClause)return e;if(e.importClause.isTypeOnly)return;const n=tj(e.importClause,de,JE);return n||1===c.importsNotUsedAsValues||2===c.importsNotUsedAsValues?t.updateImportDeclaration(e,void 0,n,e.moduleSpecifier,e.assertClause):void 0}(n);case 268:return ge(n);case 274:return function(t){return c.verbatimModuleSyntax||s.isValueAliasDeclaration(t)?uj(t,C,e):void 0}(n);case 275:return function(e){if(e.isTypeOnly)return;if(!e.exportClause||QE(e.exportClause))return e;const n=c.verbatimModuleSyntax||!!e.moduleSpecifier&&(1===c.importsNotUsedAsValues||2===c.importsNotUsedAsValues),r=tj(e.exportClause,(e=>function(e,n){return QE(e)?function(e){return t.updateNamespaceExport(e,In.checkDefined(tj(e.name,C,Tw)))}(e):function(e,n){const r=nj(e.elements,me,XE);return n||_e(r)?t.updateNamedExports(e,r):void 0}(e,n)}(e,n)),Q_);return r?t.updateExportDeclaration(e,void 0,e.isTypeOnly,r,e.moduleSpecifier,e.assertClause):void 0}(n);default:In.fail("Unhandled ellided statement")}}(n);default:return A(n)}}function E(e){return T(e,N)}function N(e){if(275!==e.kind&&269!==e.kind&&270!==e.kind&&(268!==e.kind||280!==e.moduleReference.kind))return 1&e.transformFlags||cb(e,1)?L(e):e}function F(n){return r=>T(r,(r=>function(n,r){switch(n.kind){case 173:return function(n){if($(n))return t.updateConstructorDeclaration(n,void 0,aj(n.parameters,C,e),function(n,r){const a=r&&z(r.parameters,(e=>vc(e,r)));if(!_e(a))return cj(n,C,e);let s=[];i();const c=t.copyPrologue(n.statements,s,!1,C),_=$j(n.statements,c);_>=0&&Ae(s,nj(n.statements,C,Iu,c,_+1-c));const l=Z(a,G);_>=0?Ae(s,l):s=[...s.slice(0,c),...l,...s.slice(c)];const u=_>=0?_+1:c;Ae(s,nj(n.statements,C,Iu,u)),s=t.mergeLexicalEnvironment(s,o());const d=t.createBlock(OP(t.createNodeArray(s),n.statements),!0);return OP(d,n),PC(d,n),d}(n.body,n))}(n);case 169:return function(e,n){const r=16777216&e.flags||cb(e,256);if(r&&(!u||!gb(e)))return;let i=Fl(n)?nj(e.modifiers,r?I:C,Ml):nj(e.modifiers,P,Ml);return i=U(i,e,n),r?t.updatePropertyDeclaration(e,ue(i,t.createModifiersFromModifierFlags(2)),In.checkDefined(tj(e.name,C,xl)),void 0,void 0,void 0):t.updatePropertyDeclaration(e,i,H(e),void 0,void 0,tj(e.initializer,C,_u))}(n,r);case 174:return ee(n,r);case 175:return te(n,r);case 171:return X(n,r);case 172:return uj(n,C,e);case 237:return n;case 178:return;default:return In.failBadSyntaxKind(n)}}(r,n)))}function P(e){return qw(e)?void 0:C(e)}function I(e){return vl(e)?void 0:C(e)}function O(e){if(!qw(e)&&!(117086&wb(e.kind)||g&&93===e.kind))return e}function L(n){if(Iu(n)&&cb(n,2))return t.createNotEmittedStatement(n);switch(n.kind){case 93:case 88:return g?void 0:n;case 123:case 121:case 122:case 126:case 161:case 85:case 136:case 146:case 101:case 145:case 185:case 186:case 187:case 188:case 184:case 179:case 165:case 131:case 157:case 134:case 152:case 148:case 144:case 114:case 153:case 182:case 181:case 183:case 180:case 189:case 190:case 191:case 193:case 194:case 195:case 196:case 197:case 198:case 178:case 267:return;case 262:case 261:return t.createNotEmittedStatement(n);case 260:return function(n){var r;const i=function(e){let t=0;_e(Gj(e,!0,!0))&&(t|=1);const n=sy(e);return n&&104!==UF(n.expression).kind&&(t|=64),_g(u,e)&&(t|=2),cg(u,e)&&(t|=4),he(e)?t|=8:function(e){return ye(e)&&cb(e,1024)}(e)?t|=32:ve(e)&&(t|=16),t}(n),o=_<=1&&!!(7&i);if(!function(e){return gb(e)||_e(e.typeParameters)||_e(e.heritageClauses,R)||_e(e.members,R)}(n)&&!_g(u,n)&&!he(n))return t.updateClassDeclaration(n,nj(n.modifiers,O,vl),n.name,void 0,nj(n.heritageClauses,C,hN),nj(n.members,F(n),Nl));o&&e.startLexicalEnvironment();const a=o||8&i||2&i&&u||1&i;let s=nj(n.modifiers,a?I:C,Ml);2&i&&(s=J(s,n));const c=a&&!n.name||4&i||1&i?null!=(r=n.name)?r:t.getGeneratedNameForNode(n):n.name,l=t.updateClassDeclaration(n,s,c,void 0,nj(n.heritageClauses,C,hN),j(n));let d,p=rf(n);if(1&i&&(p|=64),RC(l,p),o){const r=[l],o=px(As(m.text,n.members.end),19),a=t.getInternalName(n),s=t.createPartiallyEmittedExpression(a);yT(s,o.end),RC(s,3072);const c=t.createReturnStatement(s);hT(c,o.pos),RC(c,3840),r.push(c),Up(r,e.endLexicalEnvironment());const _=t.createImmediatelyInvokedArrowFunction(r);jC(_,1);const u=16&i?t.createModifiersFromModifierFlags(1):void 0,p=t.createVariableStatement(u,t.createVariableDeclarationList([t.createVariableDeclaration(t.getLocalName(n,!1,!1),void 0,void 0,_)],1));PC(p,n),HC(p,n),UC(p,lx(n)),QF(p),d=p}else d=l;if(a){if(8&i)return B(d,be(n));if(32&i)return B(d,t.createExportDefault(t.getLocalName(n,!1,!0)));if(16&i&&!o)return B(d,t.createExternalModuleExport(t.getLocalName(n,!1,!0)))}return d}(n);case 228:return function(e){let n=nj(e.modifiers,I,Ml);return _g(u,e)&&(n=J(n,e)),t.updateClassExpression(e,n,e.name,void 0,nj(e.heritageClauses,C,hN),j(e))}(n);case 294:return function(t){if(117!==t.token)return uj(t,C,e)}(n);case 230:return function(e){return t.updateExpressionWithTypeArguments(e,In.checkDefined(tj(e.expression,C,ru)),void 0)}(n);case 207:return function(e){return t.updateObjectLiteralExpression(e,nj(e.properties,(n=e,e=>T(e,(e=>function(e,t){switch(e.kind){case 299:case 300:case 301:return C(e);case 174:return ee(e,t);case 175:return te(e,t);case 171:return X(e,t);default:return In.failBadSyntaxKind(e)}}(e,n)))),jl));var n}(n);case 173:case 169:case 171:case 174:case 175:case 172:return In.fail("Class and object literal elements must be visited with their respective visitors");case 259:return function(n){if(!$(n))return t.createNotEmittedStatement(n);const r=t.updateFunctionDeclaration(n,nj(n.modifiers,O,vl),n.asteriskToken,n.name,void 0,aj(n.parameters,C,e),void 0,cj(n.body,C,e)||t.createBlock([]));if(he(n)){const e=[r];return function(e,t){e.push(be(t))}(e,n),e}return r}(n);case 215:return function(n){return $(n)?t.updateFunctionExpression(n,nj(n.modifiers,O,vl),n.asteriskToken,n.name,void 0,aj(n.parameters,C,e),void 0,cj(n.body,C,e)||t.createBlock([])):t.createOmittedExpression()}(n);case 216:return function(n){return t.updateArrowFunction(n,nj(n.modifiers,O,vl),void 0,aj(n.parameters,C,e),void 0,n.equalsGreaterThanToken,cj(n.body,C,e))}(n);case 166:return function(e){if(zv(e))return;const n=t.updateParameterDeclaration(e,nj(e.modifiers,(e=>qw(e)?C(e):void 0),Ml),e.dotDotDotToken,In.checkDefined(tj(e.name,C,kl)),void 0,void 0,tj(e.initializer,C,_u));return n!==e&&(HC(n,e),OP(n,ux(e)),UC(n,ux(e)),RC(n.name,64)),n}(n);case 214:return function(n){if(lu(UF(n.expression,-7))){const e=tj(n.expression,C,_u);return In.assert(e),t.createPartiallyEmittedExpression(e,n)}return uj(n,C,e)}(n);case 213:case 231:return function(e){const n=tj(e.expression,C,_u);return In.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 235:return function(e){const n=tj(e.expression,C,_u);return In.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 210:return function(e){return t.updateCallExpression(e,In.checkDefined(tj(e.expression,C,_u)),void 0,nj(e.arguments,C,_u))}(n);case 211:return function(e){return t.updateNewExpression(e,In.checkDefined(tj(e.expression,C,_u)),void 0,nj(e.arguments,C,_u))}(n);case 212:return function(e){return t.updateTaggedTemplateExpression(e,In.checkDefined(tj(e.tag,C,_u)),void 0,In.checkDefined(tj(e.template,C,nu)))}(n);case 232:return function(e){const n=tj(e.expression,C,ru);return In.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 263:return function(e){if(!function(e){return!nm(e)||nS(c)}(e))return t.createNotEmittedStatement(e);const n=[];let i=4;const a=se(n,e);a&&(4===l&&y===m||(i|=1024));const s=Te(e),_=Ce(e),u=cb(e,1)?t.getExternalModuleOrNamespaceExportName(h,e,!1,!0):t.getLocalName(e,!1,!0);let d=t.createLogicalOr(u,t.createAssignment(u,t.createObjectLiteralExpression()));if(ie(e)){const n=t.getLocalName(e,!1,!0);d=t.createAssignment(n,d)}const p=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,s)],void 0,function(e,n){const i=h;h=n;const a=[];r();const s=V(e.members,re);return Up(a,o()),Ae(a,s),h=i,t.createBlock(OP(t.createNodeArray(a),e.members),!0)}(e,_)),void 0,[d]));return PC(p,e),a&&(GC(p,void 0),ZC(p,void 0)),OP(p,e),BC(p,i),n.push(p),n.push(t.createEndOfDeclarationMarker(e)),n}(n);case 240:return function(n){if(he(n)){const e=wx(n.declarationList);if(0===e.length)return;return OP(t.createExpressionStatement(t.inlineExpressions(V(e,ne))),n)}return uj(n,C,e)}(n);case 257:return function(e){const n=t.updateVariableDeclaration(e,In.checkDefined(tj(e.name,C,kl)),void 0,void 0,tj(e.initializer,C,_u));return e.type&&dA(n.name,e.type),n}(n);case 264:return ce(n);case 268:return ge(n);case 282:return function(e){return t.updateJsxSelfClosingElement(e,In.checkDefined(tj(e.tagName,C,Mu)),void 0,In.checkDefined(tj(e.attributes,C,dN)))}(n);case 283:return function(e){return t.updateJsxOpeningElement(e,In.checkDefined(tj(e.tagName,C,Mu)),void 0,In.checkDefined(tj(e.attributes,C,dN)))}(n);default:return uj(n,C,e)}}function M(n){const r=iS(c,"alwaysStrict")&&!(wI(n)&&l>=5)&&!tm(n);return t.updateSourceFile(n,oj(n.statements,w,e,0,r))}function R(e){return!!(8192&e.transformFlags)}function B(e,n){return BC(e,8388608),[e,n,t.createEndOfDeclarationMarker(e)]}function j(e){const n=nj(e.members,F(e),Nl);let r;const i=Rv(e),o=i&&z(i.parameters,(e=>vc(e,i)));if(o)for(const e of o){const n=t.createPropertyDeclaration(void 0,e.name,void 0,void 0,void 0);PC(n,e),r=Se(r,n)}return r?(r=Ae(r,n),OP(t.createNodeArray(r),e.members)):n}function J(e,n){const r=q(n,n);if(_e(r)){const n=[];Ae(n,Dn(e,bP)),Ae(n,z(e,qw)),Ae(n,r),Ae(n,z(En(e,bP),vl)),e=OP(t.createNodeArray(n),e)}return e}function U(e,n,r){if(Fl(r)&&lg(u,n,r)){const i=q(n,r);if(_e(i)){const n=[];Ae(n,z(e,qw)),Ae(n,i),Ae(n,z(e,vl)),e=OP(t.createNodeArray(n),e)}}return e}function q(e,r){if(u)return AJ?function(e,r){if(d){let i;if(Q(e)&&(i=Se(i,t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(38),d.serializeTypeOfNode({currentLexicalScope:y,currentNameScope:r},e))))),W(e)&&(i=Se(i,t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(38),d.serializeParameterTypesOfNode({currentLexicalScope:y,currentNameScope:r},e,r))))),K(e)&&(i=Se(i,t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(38),d.serializeReturnTypeOfNode({currentLexicalScope:y,currentNameScope:r},e))))),i){const e=n().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(i,!0));return[t.createDecorator(e)]}}}(e,r):function(e,r){if(d){let i;if(Q(e)){const o=n().createMetadataHelper("design:type",d.serializeTypeOfNode({currentLexicalScope:y,currentNameScope:r},e));i=Se(i,t.createDecorator(o))}if(W(e)){const o=n().createMetadataHelper("design:paramtypes",d.serializeParameterTypesOfNode({currentLexicalScope:y,currentNameScope:r},e,r));i=Se(i,t.createDecorator(o))}if(K(e)){const o=n().createMetadataHelper("design:returntype",d.serializeReturnTypeOfNode({currentLexicalScope:y,currentNameScope:r},e));i=Se(i,t.createDecorator(o))}return i}}(e,r)}function Q(e){const t=e.kind;return 171===t||174===t||175===t||169===t}function K(e){return 171===e.kind}function W(e){switch(e.kind){case 260:case 228:return void 0!==Rv(e);case 171:case 174:case 175:return!0}return!1}function H(e){const n=e.name;if(Jw(n)&&(!lb(e)&&b||gb(e)&&u)){const e=tj(n.expression,C,_u);if(In.assert(e),!Qj(U_(e))){const r=t.getGeneratedNameForNode(n);return a(r),t.updateComputedPropertyName(n,t.createAssignment(r,e))}}return In.checkDefined(tj(n,C,xl))}function $(e){return!Lp(e.body)}function G(e){const n=e.name;if(!Tw(n))return;const r=kT(OP(t.cloneNode(n),n),n.parent);RC(r,3168);const i=kT(OP(t.cloneNode(n),n),n.parent);return RC(i,3072),QF(MC(OP(PC(t.createExpressionStatement(t.createAssignment(OP(t.createPropertyAccessExpression(t.createThis(),r),e.name),i)),e),_x(e,-1))))}function X(n,r){if(!(1&n.transformFlags))return n;if(!$(n))return;let i=Fl(r)?nj(n.modifiers,C,Ml):nj(n.modifiers,P,Ml);return i=U(i,n,r),t.updateMethodDeclaration(n,i,n.asteriskToken,H(n),void 0,void 0,aj(n.parameters,C,e),void 0,cj(n.body,C,e))}function Y(e){return!(Lp(e.body)&&cb(e,256))}function ee(n,r){if(!(1&n.transformFlags))return n;if(!Y(n))return;let i=Fl(r)?nj(n.modifiers,C,Ml):nj(n.modifiers,P,Ml);return i=U(i,n,r),t.updateGetAccessorDeclaration(n,i,H(n),aj(n.parameters,C,e),void 0,cj(n.body,C,e)||t.createBlock([]))}function te(n,r){if(!(1&n.transformFlags))return n;if(!Y(n))return;let i=Fl(r)?nj(n.modifiers,C,Ml):nj(n.modifiers,P,Ml);return i=U(i,n,r),t.updateSetAccessorDeclaration(n,i,H(n),aj(n.parameters,C,e),cj(n.body,C,e)||t.createBlock([]))}function ne(n){const r=n.name;return Ul(r)?dJ(n,C,e,0,!1,xe):OP(t.createAssignment(ke(r),In.checkDefined(tj(n.initializer,C,_u))),n)}function re(n){const r=function(e,n){const r=e.name;return Cw(r)?t.createIdentifier(""):Jw(r)?r.expression:Tw(r)?t.createStringLiteral(Oc(r)):t.cloneNode(r)}(n),i=function(n){const r=s.getConstantValue(n);return void 0!==r?"string"==typeof r?t.createStringLiteral(r):t.createNumericLiteral(r):(0==(8&x)&&(x|=8,e.enableSubstitution(79)),n.initializer?In.checkDefined(tj(n.initializer,C,_u)):t.createVoidZero())}(n),o=t.createAssignment(t.createElementAccessExpression(h,r),i),a=10===i.kind?o:t.createAssignment(t.createElementAccessExpression(h,o),r);return OP(t.createExpressionStatement(OP(a,n)),n)}function ie(e){return he(e)||ye(e)&&5!==l&&6!==l&&7!==l&&99!==l&&4!==l}function oe(e){v||(v=new Map);const t=ae(e);v.has(t)||v.set(t,e)}function ae(e){return In.assertNode(e.name,Tw),e.name.escapedText}function se(e,n){const r=t.createVariableStatement(nj(n.modifiers,O,vl),t.createVariableDeclarationList([t.createVariableDeclaration(t.getLocalName(n,!1,!0))],308===y.kind?0:1));if(PC(r,n),oe(n),function(e){if(v){const t=ae(e);return v.get(t)===e}return!0}(n))return 263===n.kind?UC(r.declarationList,n):UC(r,n),HC(r,n),BC(r,8390656),e.push(r),!0;{const n=t.createMergeDeclarationMarker(r);return RC(n,8391680),e.push(n),!1}}function ce(n){if(!function(e){const t=Fc(e,OE);return!t||QB(t,nS(c))}(n))return t.createNotEmittedStatement(n);In.assertNode(n.name,Tw,"A TypeScript namespace should have an Identifier name."),0==(2&x)&&(x|=2,e.enableSubstitution(79),e.enableSubstitution(300),e.enableEmitNotification(264));const i=[];let a=4;const s=se(i,n);s&&(4===l&&y===m||(a|=1024));const _=Te(n),u=Ce(n),d=cb(n,1)?t.getExternalModuleOrNamespaceExportName(h,n,!1,!0):t.getLocalName(n,!1,!0);let p=t.createLogicalOr(d,t.createAssignment(d,t.createObjectLiteralExpression()));if(ie(n)){const e=t.getLocalName(n,!1,!0);p=t.createAssignment(e,p)}const f=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,_)],void 0,function(e,n){const i=h,a=g,s=v;h=n,g=e,v=void 0;const c=[];let _,l;if(r(),e.body)if(265===e.body.kind)T(e.body,(e=>Ae(c,nj(e.statements,E,Iu)))),_=e.body.statements,l=e.body;else{const t=ce(e.body);t&&(ht(t)?Ae(c,t):c.push(t)),_=_x(le(e).body.statements,-1)}Up(c,o()),h=i,g=a,v=s;const u=t.createBlock(OP(t.createNodeArray(c),_),!0);return OP(u,l),e.body&&265===e.body.kind||RC(u,3072|rf(u)),u}(n,u)),void 0,[p]));return PC(f,n),s&&(GC(f,void 0),ZC(f,void 0)),OP(f,n),BC(f,a),i.push(f),i.push(t.createEndOfDeclarationMarker(n)),i}function le(e){if(264===e.body.kind)return le(e.body)||e.body}function de(e){In.assert(!e.isTypeOnly);const n=De(e)?e.name:void 0,r=tj(e.namedBindings,pe,Tu);return n||r?t.updateImportClause(e,!1,n,r):void 0}function pe(e){if(271===e.kind)return De(e)?e:void 0;{const n=c.verbatimModuleSyntax||c.preserveValueImports&&(1===c.importsNotUsedAsValues||2===c.importsNotUsedAsValues),r=nj(e.elements,fe,WE);return n||_e(r)?t.updateNamedImports(e,r):void 0}}function fe(e){return!e.isTypeOnly&&De(e)?e:void 0}function me(e){return e.isTypeOnly||!c.verbatimModuleSyntax&&!s.isValueAliasDeclaration(e)?void 0:e}function ge(n){if(n.isTypeOnly)return;if(hg(n)){const r=De(n);return r||1!==c.importsNotUsedAsValues?r?uj(n,C,e):void 0:PC(OP(t.createImportDeclaration(void 0,void 0,n.moduleReference.expression,void 0),n),n)}if(!function(e){return De(e)||!wI(m)&&s.isTopLevelValueImportEqualsWithEntityName(e)}(n))return;const r=wF(t,n.moduleReference);return RC(r,7168),ve(n)||!he(n)?PC(OP(t.createVariableStatement(nj(n.modifiers,O,vl),t.createVariableDeclarationList([PC(t.createVariableDeclaration(n.name,void 0,void 0,r),n)])),n),n):PC((i=n.name,o=r,a=n,OP(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(h,i,!1,!0),o)),a)),n);var i,o,a}function he(e){return void 0!==g&&cb(e,1)}function ye(e){return void 0===g&&cb(e,1)}function ve(e){return ye(e)&&!cb(e,1024)}function be(e){const n=t.createAssignment(t.getExternalModuleOrNamespaceExportName(h,e,!1,!0),t.getLocalName(e));UC(n,sx(e.name?e.name.pos:e.pos,e.end));const r=t.createExpressionStatement(n);return UC(r,sx(-1,e.end)),r}function xe(e,n,r){return OP(t.createAssignment(ke(e),n),r)}function ke(e){return t.getNamespaceMemberName(h,e,!1,!0)}function Te(e){const n=t.getGeneratedNameForNode(e);return UC(n,e.name),n}function Ce(e){return t.getGeneratedNameForNode(e)}function we(e){if(x&k&&!dl(e)&&!PF(e)){const n=s.getReferencedExportContainer(e,!1);if(n&&308!==n.kind&&(2&k&&264===n.kind||8&k&&263===n.kind))return OP(t.createPropertyAccessExpression(t.getGeneratedNameForNode(n),e),e)}}function De(e){return c.verbatimModuleSyntax||Sg(e)||(c.preserveValueImports?s.isValueAliasDeclaration(e):s.isReferencedAliasDeclaration(e))}}var EJ=b({"src/compiler/transformers/ts.ts"(){XK(),AJ=!1}});function NJ(e){const{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:r,endLexicalEnvironment:i,startLexicalEnvironment:o,resumeLexicalEnvironment:a,addBlockScopedVariable:s}=e,c=e.getEmitResolver(),_=e.getCompilerOptions(),l=Rk(_),u=aS(_),d=!!_.experimentalDecorators,p=!u,f=u&&l<9,m=p||f,g=l<9,h=l<99?-1:u?0:3,y=l<9,v=y&&l>=2,b=m||g||-1===h,x=e.onSubstituteNode;e.onSubstituteNode=function(e,n){return n=x(e,n),1===e?function(e){switch(e.kind){case 79:return function(e){return function(e){if(1&S&&2097152&c.getNodeCheckFlags(e)){const n=c.getReferencedValueDeclaration(e);if(n){const r=T[n.id];if(r){const n=t.cloneNode(r);return UC(n,e),HC(n,e),n}}}}(e)||e}(e);case 108:return function(e){if(2&S&&(null==w?void 0:w.data)){const{facts:n,classConstructor:r,classThis:i}=w.data;if(1&n&&d)return t.createParenthesizedExpression(t.createVoidZero());const o=I&&null!=i?i:r;if(o)return OP(PC(t.cloneNode(o),e),e)}return e}(e)}return e}(n):n};const k=e.onEmitNode;e.onEmitNode=function(e,t,n){const r=Dc(t),i=E.get(r);if(i){const o=w,a=O;return w=i,O=I,I=!(Hw(r)&&32&of(r)),k(e,t,n),I=O,O=a,void(w=o)}switch(t.kind){case 215:if(BD(r)||524288&rf(t))break;case 259:case 173:case 174:case 175:case 171:case 169:{const r=w,i=O;return w=void 0,O=I,I=!1,k(e,t,n),I=O,O=i,void(w=r)}case 164:{const r=w,i=I;return w=null==w?void 0:w.previous,I=O,k(e,t,n),I=i,void(w=r)}}k(e,t,n)};let S,T,C,A,w,D=!1;const E=new Map;let N,F,I=!1,O=!1;return Rj(e,(function(t){if(t.isDeclarationFile)return t;if(w=void 0,D=!!(32&of(t)),!b&&!D)return t;const n=uj(t,M,e);return oA(n,e.readEmitHelpers()),n}));function L(e){return 127===e.kind?ee()?void 0:e:xt(e,vl)}function M(n){if(!(16777216&n.transformFlags||134234112&n.transformFlags))return n;switch(n.kind){case 127:return In.fail("Use `modifierVisitor` instead.");case 260:return function(e){return fe(e,void 0,me)}(n);case 228:return ge(n,void 0);case 172:case 169:return In.fail("Use `classElementVisitor` instead.");case 299:return function(n){if(Jy(n,se)){const{referencedName:e,name:r}=ue(n.name),i=tj(n.initializer,(t=>B(t,e)),_u);return t.updatePropertyAssignment(n,r,i)}return uj(n,M,e)}(n);case 240:return function(t){const n=A;A=[];const r=uj(t,M,e),i=_e(A)?[r,...A]:r;return A=n,i}(n);case 257:return function(n){if(Jy(n,se)){const e=W(n.name,n.initializer),r=tj(n.name,M,kl),i=tj(n.initializer,(t=>B(t,e)),_u);return t.updateVariableDeclaration(n,r,void 0,void 0,i)}return uj(n,M,e)}(n);case 166:return function(n){if(Jy(n,se)){const e=W(n.name,n.initializer),r=tj(n.name,M,kl),i=tj(n.initializer,(t=>B(t,e)),_u);return t.updateParameterDeclaration(n,void 0,void 0,r,void 0,void 0,i)}return uj(n,M,e)}(n);case 205:return function(n){if(Jy(n,se)){const e=W(n.name,n.initializer),r=tj(n.propertyName,M,xl),i=tj(n.name,M,kl),o=tj(n.initializer,(t=>B(t,e)),_u);return t.updateBindingElement(n,void 0,r,i,o)}return uj(n,M,e)}(n);case 274:return function(n){if(Jy(n,se)){const e=t.createStringLiteral(n.isExportEquals?"":"default"),r=nj(n.modifiers,L,vl),i=tj(n.expression,(t=>B(t,e)),_u);return t.updateExportAssignment(n,r,i)}return uj(n,M,e)}(n);case 80:return function(e){return g?Iu(e.parent)?e:PC(t.createIdentifier(""),e):e}(n);case 208:return function(n){if(Cw(n.name)){const e=Le(n.name);if(e)return OP(PC(ne(e,n.expression),n),n)}if(v&&Zm(n)&&Tw(n.name)&&F&&(null==w?void 0:w.data)){const{classConstructor:e,superClassReference:r,facts:i}=w.data;if(1&i)return Ce(n);if(e&&r){const i=t.createReflectGetCall(r,t.createStringLiteralFromNode(n.name),e);return PC(i,n.expression),OP(i,n.expression),i}}return uj(n,M,e)}(n);case 209:return function(n){if(v&&Zm(n)&&F&&(null==w?void 0:w.data)){const{classConstructor:e,superClassReference:r,facts:i}=w.data;if(1&i)return Ce(n);if(e&&r){const i=t.createReflectGetCall(r,tj(n.argumentExpression,M,_u),e);return PC(i,n.expression),OP(i,n.expression),i}}return uj(n,M,e)}(n);case 221:case 222:return ie(n,!1);case 223:return ce(n,!1);case 214:return le(n,!1,void 0);case 210:return function(n){var i;if(ml(n.expression)&&Le(n.expression.name)){const{thisArg:e,target:i}=t.createCallBinding(n.expression,r,l);return L_(n)?t.updateCallChain(n,t.createPropertyAccessChain(tj(i,M,_u),n.questionDotToken,"call"),void 0,void 0,[tj(e,M,_u),...nj(n.arguments,M,_u)]):t.updateCallExpression(n,t.createPropertyAccessExpression(tj(i,M,_u),"call"),void 0,[tj(e,M,_u),...nj(n.arguments,M,_u)])}if(v&&Zm(n.expression)&&F&&(null==(i=null==w?void 0:w.data)?void 0:i.classConstructor)){const e=t.createFunctionCallCall(tj(n.expression,M,_u),w.data.classConstructor,nj(n.arguments,M,_u));return PC(e,n),OP(e,n),e}return uj(n,M,e)}(n);case 241:return function(e){return t.updateExpressionStatement(e,tj(e.expression,j,_u))}(n);case 212:return function(n){var i;if(ml(n.tag)&&Le(n.tag.name)){const{thisArg:e,target:i}=t.createCallBinding(n.tag,r,l);return t.updateTaggedTemplateExpression(n,t.createCallExpression(t.createPropertyAccessExpression(tj(i,M,_u),"bind"),void 0,[tj(e,M,_u)]),void 0,tj(n.template,M,nu))}if(v&&Zm(n.tag)&&F&&(null==(i=null==w?void 0:w.data)?void 0:i.classConstructor)){const e=t.createFunctionBindCall(tj(n.tag,M,_u),w.data.classConstructor,[]);return PC(e,n),OP(e,n),t.updateTaggedTemplateExpression(n,e,void 0,tj(n.template,M,nu))}return uj(n,M,e)}(n);case 245:return function(n){return t.updateForStatement(n,tj(n.initializer,j,bu),tj(n.condition,M,_u),tj(n.incrementor,j,_u),_j(n.statement,M,e))}(n);case 259:case 215:case 173:case 171:case 174:case 175:return Y(void 0,R,n);default:return R(n)}}function R(t){return uj(t,M,e)}function B(e,n){switch(e.kind){case 356:return function(e,n,r){const i=r?e=>B(e,r):M,o=tj(e.expression,i,_u);return t.updatePartiallyEmittedExpression(e,o)}(e,0,n);case 214:return le(e,!1,n);case 228:return ge(e,n);default:return M(e)}}function j(e){switch(e.kind){case 221:case 222:return ie(e,!0);case 223:return ce(e,!0);case 357:return function(e,n){const r=lj(e.elements,j);return t.updateCommaListExpression(e,r)}(e);case 214:return le(e,!0,void 0);default:return M(e)}}function J(n){switch(n.kind){case 294:return uj(n,J,e);case 230:return function(n){var i;if(4&((null==(i=null==w?void 0:w.data)?void 0:i.facts)||0)){const e=t.createTempVariable(r,!0);return we().superClassReference=e,t.updateExpressionWithTypeArguments(n,t.createAssignment(e,tj(n.expression,M,_u)),void 0)}return uj(n,M,e)}(n);default:return M(n)}}function U(e){switch(e.kind){case 207:case 206:return Je(e);default:return M(e)}}function q(t){switch(t.kind){case 173:return function(e){return N?ve(e,N):R(e)}(t);case 174:case 175:case 171:return Y(void 0,X,t);case 169:return Y(void 0,te,t);case 172:return function(t){if(!g)return uj(t,M,e)}(t);case 164:return $(t);case 237:return t;default:return Ml(t)?L(t):M(t)}}function Q(e){return 164===e.kind?$(e):M(e)}function K(e){switch(e.kind){case 169:return Z(e);case 174:case 175:return q(e);default:In.assertMissingNode(e,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration")}}function W(e,n){const r=Dc(n,Fl);return r&&!r.name&&cb(r,1024)?t.createStringLiteral("default"):t.createStringLiteralFromNode(e)}function H(e){return _e(C)&&(MD(e)?(C.push(e.expression),e=t.updateParenthesizedExpression(e,t.inlineExpressions(C))):(C.push(e),e=t.inlineExpressions(C)),C=void 0),e}function $(e){const n=tj(e.expression,M,_u);return t.updateComputedPropertyName(e,H(n))}function G(e){return!!g||!!(lb(e)&&32&of(e))}function X(n){if(In.assert(!gb(n)),!fl(n)||!G(n))return uj(n,q,e);const r=Le(n.name);if(In.assert(r,"Undeclared private name for property declaration."),!r.isValid)return n;const i=function(e){In.assert(Cw(e.name));const t=Le(e.name);if(In.assert(t,"Undeclared private name for property declaration."),"m"===t.kind)return t.methodName;if("a"===t.kind){if(Ku(e))return t.getterName;if(Qu(e))return t.setterName}}(n);i&&Ee().push(t.createAssignment(i,t.createFunctionExpression(z(n.modifiers,(e=>vl(e)&&!Pw(e)&&!Lw(e))),n.asteriskToken,i,void 0,aj(n.parameters,M,e),void 0,cj(n.body,M,e))))}function Y(e,t,n){const r=F;F=e;const i=t(n);return F=r,i}function Z(e){return In.assert(!gb(e),"Decorators should already have been transformed and elided."),fl(e)?function(e){if(!G(e)){if(p&&!_b(e)&&(null==w?void 0:w.data)&&16&w.data.facts)return t.updatePropertyDeclaration(e,nj(e.modifiers,M,Ml),e.name,void 0,void 0,void 0);if(Jy(e,se)){const{referencedName:n,name:r}=ue(e.name);return t.updatePropertyDeclaration(e,nj(e.modifiers,L,vl),r,void 0,void 0,tj(e.initializer,(e=>B(e,n)),_u))}return t.updatePropertyDeclaration(e,nj(e.modifiers,L,vl),tj(e.name,Q,xl),void 0,void 0,tj(e.initializer,M,_u))}{const n=Le(e.name);if(In.assert(n,"Undeclared private name for property declaration."),!n.isValid)return e;if(n.isStatic&&!g){const n=ke(e,t.createThis());if(n)return t.createClassStaticBlockDeclaration(t.createBlock([n],!0))}}}(e):function(e){if(!m||Il(e))return t.updatePropertyDeclaration(e,nj(e.modifiers,L,vl),tj(e.name,Q,xl),void 0,void 0,tj(e.initializer,M,_u));{const i=function(e,i,o){if(Jw(e)){const a=EP(e);let _=tj(e.expression,M,_u);const l=U_(_),u=Qj(l);if(!(a||Rb(l)&&dl(l.left))&&!u&&i){const i=t.getGeneratedNameForNode(e);return 32768&c.getNodeCheckFlags(e)?s(i):r(i),o&&(_=n().createPropKeyHelper(_)),t.createAssignment(i,_)}return u||Tw(l)?void 0:_}}(e.name,!!e.initializer||u,Jy(e,se));if(i&&Ee().push(...FP(i)),_b(e)&&!g){const n=ke(e,t.createThis());if(n){const r=t.createClassStaticBlockDeclaration(t.createBlock([n]));return PC(r,e),HC(r,e),HC(n,{pos:-1,end:-1}),GC(n,void 0),ZC(n,void 0),r}}}}(e)}function ee(){return-1===h||3===h&&!!(null==w?void 0:w.data)&&!!(16&w.data.facts)}function te(e){return Il(e)&&(ee()||lb(e)&&32&of(e))?function(e){const n=WC(e),i=zC(e),o=e.name;let a=o,s=o;if(Jw(o)&&!Qj(o.expression)){const e=EP(o);if(e)a=t.updateComputedPropertyName(o,tj(o.expression,M,_u)),s=t.updateComputedPropertyName(o,e.left);else{const e=t.createTempVariable(r);UC(e,o.expression);const n=tj(o.expression,M,_u),i=t.createAssignment(e,n);UC(i,o.expression),a=t.updateComputedPropertyName(o,i),s=t.updateComputedPropertyName(o,e)}}const c=nj(e.modifiers,L,vl),_=AP(t,e,c,e.initializer);PC(_,e),RC(_,3072),UC(_,i);const l=wP(t,e,c,a);PC(l,e),HC(l,n),UC(l,i);const u=DP(t,e,c,s);return PC(u,e),RC(u,3072),UC(u,i),rj([_,l,u],K,Nl)}(e):Z(e)}function ne(e,t){return re(e,tj(t,M,_u))}function re(e,t){switch(HC(t,_x(t,-1)),e.kind){case"a":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.getterName);case"m":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.methodName);case"f":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return In.fail("Access helpers should not be created for untransformed private elements");default:In.assertNever(e,"Unknown private element type")}}function ie(n,i){if(45===n.operator||46===n.operator){const e=Hh(n.operand);if(ml(e)){let o;if(o=Le(e.name)){const a=tj(e.expression,M,_u),{readExpression:s,initializeExpression:c}=oe(a);let _=ne(o,s);const l=qD(n)||i?void 0:t.createTempVariable(r);return _=NF(t,n,_,r,l),_=de(o,c||s,_,63),PC(_,n),OP(_,n),l&&(_=t.createComma(_,l),OP(_,n)),_}}else if(v&&Zm(e)&&F&&(null==w?void 0:w.data)){const{classConstructor:o,superClassReference:a,facts:s}=w.data;if(1&s){const r=Ce(e);return qD(n)?t.updatePrefixUnaryExpression(n,r):t.updatePostfixUnaryExpression(n,r)}if(o&&a){let s,c;if(ND(e)?Tw(e.name)&&(c=s=t.createStringLiteralFromNode(e.name)):Qj(e.argumentExpression)?c=s=e.argumentExpression:(c=t.createTempVariable(r),s=t.createAssignment(c,tj(e.argumentExpression,M,_u))),s&&c){let _=t.createReflectGetCall(a,c,o);OP(_,e);const l=i?void 0:t.createTempVariable(r);return _=NF(t,n,_,r,l),_=t.createReflectSetCall(a,s,_,o),PC(_,n),OP(_,n),l&&(_=t.createComma(_,l),OP(_,n)),_}}}}return uj(n,M,e)}function oe(e){const n=Qy(e)?e:t.cloneNode(e);if(Qj(e))return{readExpression:n,initializeExpression:void 0};const i=t.createTempVariable(r);return{readExpression:i,initializeExpression:t.createAssignment(i,n)}}function ae(e){if(w&&E.set(Dc(e),w),g){o();let n=Y(e,(e=>nj(e,M,Iu)),e.body.statements);n=t.mergeLexicalEnvironment(n,i());const r=t.createImmediatelyInvokedArrowFunction(n);return PC(r,e),OP(r,e),BC(r,4),r}}function se(e){if(GD(e)&&!e.name){const t=Yj(e),n=P(t,Hw);if(n)for(const e of n.body.statements)if(uE(e)&&rw(e.expression,"___setFunctionName"))return!1;return(g||!!of(e))&&_e(t,(e=>Hw(e)||fl(e)||m&&Zj(e)))}return!1}function ce(i,o){if(jb(i)){const e=C;C=void 0,i=t.updateBinaryExpression(i,tj(i.left,U,_u),i.operatorToken,tj(i.right,M,_u));const n=_e(C)?t.inlineExpressions(xe([...C,i])):i;return C=e,n}if(Rb(i)){if(Jy(i,se)){const e=W(i.left,i.right),n=tj(i.left,M,_u),r=tj(i.right,(t=>B(t,e)),_u);return t.updateBinaryExpression(i,n,i.operatorToken,r)}if(ml(i.left)){const e=Le(i.left.name);if(e)return OP(PC(de(e,i.left.expression,i.right,i.operatorToken.kind),i),i)}else if(v&&Zm(i.left)&&F&&(null==w?void 0:w.data)){const{classConstructor:e,superClassReference:n,facts:a}=w.data;if(1&a)return t.updateBinaryExpression(i,Ce(i.left),i.operatorToken,tj(i.right,M,_u));if(e&&n){let a=FD(i.left)?tj(i.left.argumentExpression,M,_u):Tw(i.left.name)?t.createStringLiteralFromNode(i.left.name):void 0;if(a){let s=tj(i.right,M,_u);if(Kj(i.operatorToken.kind)){let o=a;Qj(a)||(o=t.createTempVariable(r),a=t.createAssignment(o,a));const c=t.createReflectGetCall(n,o,e);PC(c,i.left),OP(c,i.left),s=t.createBinaryExpression(c,Wj(i.operatorToken.kind),s),OP(s,i)}const c=o?void 0:t.createTempVariable(r);return c&&(s=t.createAssignment(c,s),OP(c,i)),s=t.createReflectSetCall(n,a,s,e),PC(s,i),OP(s,i),c&&(s=t.createComma(s,c),OP(s,i)),s}}}}return function(e){return Cw(e.left)&&101===e.operatorToken.kind}(i)?function(t){const r=Le(t.left);if(r){const e=tj(t.right,M,_u);return PC(n().createClassPrivateFieldInHelper(r.brandCheckIdentifier,e),t)}return uj(t,M,e)}(i):uj(i,M,e)}function le(e,n,r){const i=n?j:r?e=>B(e,r):M,o=tj(e.expression,i,_u);return t.updateParenthesizedExpression(e,o)}function ue(e){if(Ey(e)||Cw(e))return{referencedName:t.createStringLiteralFromNode(e),name:tj(e,M,xl)};if(Ey(e.expression)&&!Tw(e.expression))return{referencedName:t.createStringLiteralFromNode(e.expression),name:tj(e,M,xl)};const i=t.createTempVariable(r),o=n().createPropKeyHelper(tj(e.expression,M,_u)),a=t.createAssignment(i,o);return{referencedName:i,name:t.updateComputedPropertyName(e,H(a))}}function de(e,r,i,o){if(r=tj(r,M,_u),i=tj(i,M,_u),Kj(o)){const{readExpression:n,initializeExpression:a}=oe(r);r=a||n,i=t.createBinaryExpression(re(e,n),Wj(o),i)}switch(HC(r,_x(r,-1)),e.kind){case"a":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,e.setterName);case"m":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,void 0);case"f":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return In.fail("Access helpers should not be created for untransformed private elements");default:In.assertNever(e,"Unknown private element type")}}function pe(e){return z(e.members,eJ)}function fe(t,n,r){const i=N,o=C,a=w;N=t,C=void 0,w={previous:w,data:void 0};const s=32&of(t);if(g||s){const e=qc(t);e&&Tw(e)&&(De().data.className=e)}if(g){const e=pe(t);_e(e)&&(De().data.weakSetName=Ie("instances",e[0].name))}const c=function(e){let t=0;const n=Dc(e);NE(n)&&_g(d,n)&&(t|=1);let r=!1,i=!1,o=!1,a=!1;for(const n of e.members)_b(n)?(n.name&&(Cw(n.name)||Il(n))&&g&&(t|=2),(Qw(n)||Hw(n))&&(y&&16384&n.transformFlags&&(t|=8,1&t||(t|=2)),v&&134217728&n.transformFlags&&(1&t||(t|=6)))):db(Dc(n))||(Il(n)?(a=!0,o||(o=fl(n))):fl(n)?o=!0:Qw(n)&&(r=!0,i||(i=!!n.initializer)));return(f&&r||p&&i||g&&o||g&&a&&-1===h)&&(t|=16),t}(t);c&&(we().facts=c),8&c&&0==(2&S)&&(S|=2,e.enableSubstitution(108),e.enableEmitNotification(259),e.enableEmitNotification(215),e.enableEmitNotification(173),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(171),e.enableEmitNotification(169),e.enableEmitNotification(164));const _=r(t,c,n);return w=null==w?void 0:w.previous,In.assert(w===a),N=i,C=o,_}function me(e,n){var i,o;let a;if(2&n){if(g&&(null==(i=e.emitNode)?void 0:i.classThis))we().classConstructor=e.emitNode.classThis,a=t.createAssignment(e.emitNode.classThis,t.getInternalName(e));else{const n=t.createTempVariable(r,!0);we().classConstructor=t.cloneNode(n),a=t.createAssignment(n,t.getInternalName(e))}(null==(o=e.emitNode)?void 0:o.classThis)&&(we().classThis=e.emitNode.classThis)}const s=nj(e.modifiers,L,vl),c=nj(e.heritageClauses,J,hN),{members:_,prologue:l}=ye(e),u=t.updateClassDeclaration(e,s,e.name,void 0,c,_),d=[];if(l&&d.push(t.createExpressionStatement(l)),d.push(u),a&&Ee().unshift(a),_e(C)&&d.push(t.createExpressionStatement(t.inlineExpressions(C))),p||g||32&of(e)){const n=Yj(e);_e(n)&&be(d,n,t.getInternalName(e))}return d}function ge(e,t){return fe(e,t,he)}function he(i,o,a){var _,l,u,d,p,f;const h=!!(1&o),y=Yj(i),v=1048576&c.getNodeCheckFlags(i);let b;function x(){var e;if(g&&(null==(e=i.emitNode)?void 0:e.classThis))return we().classConstructor=i.emitNode.classThis;const n=c.getNodeCheckFlags(i),o=1048576&n,a=32768&n,_=t.createTempVariable(a?s:r,!!o);return we().classConstructor=t.cloneNode(_),_}(null==(_=i.emitNode)?void 0:_.classThis)&&(we().classThis=i.emitNode.classThis),2&o&&(null!=b||(b=x()));const k=nj(i.modifiers,L,vl),w=nj(i.heritageClauses,J,hN),{members:D,prologue:E}=ye(i);let N=t.updateClassExpression(i,k,i.name,void 0,w,D);const F=[];if(E&&F.push(E),(g||32&of(i))&&_e(y,(e=>Hw(e)||fl(e)||m&&Zj(e)))||_e(C)||a)if(h){if(In.assertIsDefined(A,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),_e(C)&&Ae(A,V(C,t.createExpressionStatement)),a)if(g){const e=n().createSetFunctionNameHelper(null!=(u=null!=b?b:null==(l=i.emitNode)?void 0:l.classThis)?u:t.getInternalName(i),a);A.push(t.createExpressionStatement(e))}else{const e=n().createSetFunctionNameHelper(t.createThis(),a);N=t.updateClassExpression(N,N.modifiers,N.name,N.typeParameters,N.heritageClauses,[t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(e)])),...N.members])}_e(y)&&be(A,y,null!=(p=null==(d=i.emitNode)?void 0:d.classThis)?p:t.getInternalName(i)),b?F.push(t.createAssignment(b,N)):g&&(null==(f=i.emitNode)?void 0:f.classThis)?F.push(t.createAssignment(i.emitNode.classThis,N)):F.push(N)}else{if(null!=b||(b=x()),v){0==(1&S)&&(S|=1,e.enableSubstitution(79),T=[]);const n=t.cloneNode(b);n.emitNode.autoGenerate.flags&=-9,T[Lj(i)]=n}F.push(t.createAssignment(b,N)),Ae(F,C),a&&F.push(n().createSetFunctionNameHelper(b,a)),Ae(F,function(e,t){const n=[];for(const r of e){const e=Hw(r)?ae(r):Te(r,t);e&&(QF(e),PC(e,r),BC(e,3072&rf(r)),UC(e,ux(r)),HC(e,r),n.push(e))}return n}(y,b)),F.push(t.cloneNode(b))}else F.push(N);return F.length>1&&(BC(N,131072),F.forEach(QF)),t.inlineExpressions(F)}function ye(e){const n=!!(32&of(e));if(g||D){for(const t of e.members)fl(t)&&(G(t)?Pe(t,t.name,Ne):cJ(De(),t.name,{kind:"untransformed"}));if(g&&_e(pe(e))&&function(){const{weakSetName:e}=De().data;In.assert(e,"weakSetName should be set in private identifier environment"),Ee().push(t.createAssignment(e,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}(),ee())for(const r of e.members)if(Il(r)){const e=t.getGeneratedPrivateNameForNode(r.name,void 0,"_accessor_storage");g||n&&lb(r)?Pe(r,e,Fe):cJ(De(),e,{kind:"untransformed"})}}let i,o,a,s=nj(e.members,q,Nl);if(_e(s,$w)||(i=ve(void 0,e)),!g&&_e(C)){let e=t.createExpressionStatement(t.inlineExpressions(C));if(134234112&e.transformFlags){const n=t.createTempVariable(r),i=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([e]));o=t.createAssignment(n,i),e=t.createExpressionStatement(t.createCallExpression(n,void 0,[]))}const n=t.createBlock([e]);a=t.createClassStaticBlockDeclaration(n),C=void 0}if(i||a){let n;n=Se(n,i),n=Se(n,a),n=Ae(n,s),s=OP(t.createNodeArray(n),e.members)}return{members:s,prologue:o}}function ve(n,r){if(n=tj(n,M,$w),!((null==w?void 0:w.data)&&16&w.data.facts))return n;const o=sy(r),s=!(!o||104===UF(o.expression).kind),c=aj(n?n.parameters:void 0,M,e),_=function(n,r,o){var s,c;const _=Gj(n,!1,!1);let l=_;u||(l=z(l,(e=>!!e.initializer||Cw(e.name)||fb(e))));const d=pe(n),p=_e(l)||_e(d);if(!r&&!p)return cj(void 0,M,e);a();const f=!r&&o;let m=0,h=0,y=-1,v=[];(null==(s=null==r?void 0:r.body)?void 0:s.statements)&&(h=t.copyPrologue(r.body.statements,v,!1,M),y=$j(r.body.statements,h),y>=0?(m=y+1,v=[...v.slice(0,h),...nj(r.body.statements,M,Iu,h,m-h),...v.slice(h)]):h>=0&&(m=h)),f&&v.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))])));let b=0;if(null==r?void 0:r.body){for(let e=m;e0&&(m+=b)}const x=t.createThis();if(function(e,n,r){if(!g||!_e(n))return;const{weakSetName:i}=De().data;In.assert(i,"weakSetName should be set in private identifier environment"),e.push(t.createExpressionStatement(function(e,t){return dC.createCallExpression(dC.createPropertyAccessExpression(t,"add"),void 0,[e])}(r,i)))}(v,d,x),r){const e=z(_,(e=>vc(Dc(e),r))),t=z(l,(e=>!vc(Dc(e),r)));be(v,e,x),be(v,t,x)}else be(v,l,x);if(r&&Ae(v,nj(r.body.statements,M,Iu,m)),v=t.mergeLexicalEnvironment(v,i()),0===v.length&&!r)return;const k=(null==r?void 0:r.body)&&r.body.statements.length>=v.length&&null!=(c=r.body.multiLine)?c:v.length>0;return OP(t.createBlock(OP(t.createNodeArray(v),r?r.body.statements:n.members),k),r?r.body:void 0)}(r,n,s);return _?n?(In.assert(c),t.updateConstructorDeclaration(n,void 0,c,_)):QF(PC(OP(t.createConstructorDeclaration(void 0,null!=c?c:[],_),n||r),n)):n}function be(e,t,n){for(const r of t){if(_b(r)&&!g)continue;const t=ke(r,n);t&&e.push(t)}}function ke(e,n){const r=Hw(e)?ae(e):Te(e,n);if(!r)return;const i=t.createExpressionStatement(r);PC(i,e),BC(i,3072&rf(e)),HC(i,e);const o=Dc(e);return Uw(o)?(UC(i,o),MC(i)):UC(i,ux(e)),GC(r,void 0),ZC(r,void 0),fb(o)&&BC(i,3072),i}function Te(e,n){var r;const i=F,o=function(e,n){const r=!u;let i;Jy(e,se)&&(i=Ey(e.name)||Cw(e.name)?t.createStringLiteralFromNode(e.name):Ey(e.name.expression)&&!Tw(e.name.expression)?t.createStringLiteralFromNode(e.name.expression):t.getGeneratedNameForNode(e.name));const o=fb(e)?t.getGeneratedPrivateNameForNode(e.name):Jw(e.name)&&!Qj(e.name.expression)?t.updateComputedPropertyName(e.name,t.getGeneratedNameForNode(e.name)):e.name;lb(e)&&(F=e);const a=i?e=>B(e,i):M;if(Cw(o)&&G(e)){const t=Le(o);if(t)return"f"===t.kind?t.isStatic?function(e,t){return dC.createAssignment(e,dC.createObjectLiteralExpression([dC.createPropertyAssignment("value",t||dC.createVoidZero())]))}(t.variableName,tj(e.initializer,a,_u)):function(e,t,n){return dC.createCallExpression(dC.createPropertyAccessExpression(n,"set"),void 0,[e,t||dC.createVoidZero()])}(n,tj(e.initializer,a,_u),t.brandCheckIdentifier):void 0;In.fail("Undeclared private name for property declaration.")}if((Cw(o)||lb(e))&&!e.initializer)return;const s=Dc(e);if(cb(s,256))return;let c=tj(e.initializer,a,_u);if(vc(s,s.parent)&&Tw(o)){const e=t.cloneNode(o);c?(MD(c)&&RF(c.expression)&&rw(c.expression.left,"___runInitializers")&&zD(c.expression.right)&&ow(c.expression.right.expression)&&(c=c.expression.left),c=t.inlineExpressions([c,e])):c=e,RC(o,3168),UC(e,s.name),RC(e,3072)}else null!=c||(c=t.createVoidZero());if(r||Cw(o)){const e=vF(t,n,o,o);return BC(e,1024),t.createAssignment(e,c)}{const e=Jw(o)?o.expression:Tw(o)?t.createStringLiteral(Ic(o.escapedText)):o,r=t.createPropertyDescriptor({value:c,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(n,e,r)}}(e,n);return o&&lb(e)&&(null==(r=null==w?void 0:w.data)?void 0:r.facts)&&(PC(o,e),BC(o,4),UC(o,zC(e.name)),E.set(Dc(e),w)),F=i,o}function Ce(e){return ND(e)?t.updatePropertyAccessExpression(e,t.createVoidZero(),e.name):t.updateElementAccessExpression(e,t.createVoidZero(),tj(e.argumentExpression,M,_u))}function we(){var e;return In.assert(w),null!=(e=w.data)?e:w.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0}}function De(){var e;return In.assert(w),null!=(e=w.privateEnv)?e:w.privateEnv=aJ({className:void 0,weakSetName:void 0})}function Ee(){return null!=C?C:C=[]}function Ne(e,t,n,r,i,o,a){Il(e)?function(e,t,n,r,i,o,a){var s;cJ(r,t,{kind:"a",getterName:Oe(t,"_get"),setterName:Oe(t,"_set"),brandCheckIdentifier:i?In.checkDefined(null!=(s=n.classThis)?s:n.classConstructor,"classConstructor should be set in private identifier environment"):In.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment"),isStatic:i,isValid:o})}(0,t,n,r,i,o):Qw(e)?Fe(0,t,n,r,i,o):Ww(e)?function(e,t,n,r,i,o,a){var s;cJ(r,t,{kind:"m",methodName:Oe(t),brandCheckIdentifier:i?In.checkDefined(null!=(s=n.classThis)?s:n.classConstructor,"classConstructor should be set in private identifier environment"):In.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment"),isStatic:i,isValid:o})}(0,t,n,r,i,o):Gw(e)?function(e,t,n,r,i,o,a){var s;const c=Oe(t,"_get"),_=i?In.checkDefined(null!=(s=n.classThis)?s:n.classConstructor,"classConstructor should be set in private identifier environment"):In.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");"a"!==(null==a?void 0:a.kind)||a.isStatic!==i||a.getterName?cJ(r,t,{kind:"a",getterName:c,setterName:void 0,brandCheckIdentifier:_,isStatic:i,isValid:o}):a.getterName=c}(0,t,n,r,i,o,a):Xw(e)&&function(e,t,n,r,i,o,a){var s;const c=Oe(t,"_set"),_=i?In.checkDefined(null!=(s=n.classThis)?s:n.classConstructor,"classConstructor should be set in private identifier environment"):In.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");"a"!==(null==a?void 0:a.kind)||a.isStatic!==i||a.setterName?cJ(r,t,{kind:"a",getterName:void 0,setterName:c,brandCheckIdentifier:_,isStatic:i,isValid:o}):a.setterName=c}(0,t,n,r,i,o,a)}function Fe(e,n,r,i,o,a,s){var c;if(o)cJ(i,n,{kind:"f",isStatic:!0,brandCheckIdentifier:In.checkDefined(null!=(c=r.classThis)?c:r.classConstructor,"classConstructor should be set in private identifier environment"),variableName:Oe(n),isValid:a});else{const e=Oe(n);cJ(i,n,{kind:"f",isStatic:!1,brandCheckIdentifier:e,isValid:a}),Ee().push(t.createAssignment(e,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function Pe(e,t,n){const r=we(),i=De(),o=sJ(i,t),a=lb(e),s=!function(e){return!pl(e)&&"#constructor"===e.escapedText}(t)&&void 0===o;n(e,t,r,i,a,s,o)}function Ie(e,n,i){const{className:o}=De().data,a=o?{prefix:"_",node:o,suffix:"_"}:"_",_="object"==typeof e?t.getGeneratedNameForNode(e,24,a,i):"string"==typeof e?t.createUniqueName(e,16,a,i):t.createTempVariable(void 0,!0,a,i);return 32768&c.getNodeCheckFlags(n)?s(_):r(_),_}function Oe(e,t){var n;const r=Bf(e);return Ie(null!=(n=null==r?void 0:r.substring(1))?n:e,e,t)}function Le(e){const t=_J(w,e);return"untransformed"===(null==t?void 0:t.kind)?void 0:t}function Me(n){if(ED(n)||DD(n))return Je(n);if(ml(n))return function(n){const i=t.getGeneratedNameForNode(n),o=Le(n.name);if(!o)return uj(n,M,e);let a=n.expression;return(eg(n)||Zm(n)||!Vj(n.expression))&&(a=t.createTempVariable(r,!0),Ee().push(t.createBinaryExpression(a,63,tj(n.expression,M,_u)))),t.createAssignmentTargetWrapper(i,de(o,a,i,63))}(n);if(v&&Zm(n)&&F&&(null==w?void 0:w.data)){const{classConstructor:e,superClassReference:r,facts:i}=w.data;if(1&i)return Ce(n);if(e&&r){const i=FD(n)?tj(n.argumentExpression,M,_u):Tw(n.name)?t.createStringLiteralFromNode(n.name):void 0;if(i){const n=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(n,t.createReflectSetCall(r,i,n,e))}}}return uj(n,M,e)}function Re(e){if(Jy(e,se)){const n=Me(e.left),r=W(e.left,e.right),i=tj(e.right,(e=>B(e,r)),_u);return t.updateBinaryExpression(e,n,e.operatorToken,i)}if(Rb(e,!0)){const n=Me(e.left),r=tj(e.right,M,_u);return t.updateBinaryExpression(e,n,e.operatorToken,r)}return Me(e)}function Be(n){if(Xl(n)){if($D(n))return function(n){if(ru(n.expression)){const e=Me(n.expression);return t.updateSpreadElement(n,e)}return uj(n,M,e)}(n);if(!XD(n))return Re(n)}return uj(n,M,e)}function je(n){return In.assertNode(n,$l),xN(n)?function(n){if(ru(n.expression)){const e=Me(n.expression);return t.updateSpreadAssignment(n,e)}return uj(n,M,e)}(n):bN(n)?function(n){if(Jy(n,se)){const e=W(n.name,n.objectAssignmentInitializer),r=tj(n.objectAssignmentInitializer,(t=>B(t,e)),_u);return t.updateShorthandPropertyAssignment(n,n.name,r)}return uj(n,M,e)}(n):vN(n)?function(n){const r=tj(n.name,M,xl);if(Rb(n.initializer,!0)){const e=Re(n.initializer);return t.updatePropertyAssignment(n,r,e)}if(ru(n.initializer)){const e=Me(n.initializer);return t.updatePropertyAssignment(n,r,e)}return uj(n,M,e)}(n):uj(n,M,e)}function Je(e){return DD(e)?t.updateArrayLiteralExpression(e,nj(e.elements,Be,_u)):t.updateObjectLiteralExpression(e,nj(e.properties,je,jl))}}var FJ=b({"src/compiler/transformers/classFields.ts"(){XK()}});function PJ(e){const{hoistVariableDeclaration:t}=e,n=e.getEmitResolver(),r=e.getCompilerOptions(),i=Rk(r),o=iS(r,"strictNullChecks");let a,s;return{serializeTypeNode:(e,t)=>c(e,d,t),serializeTypeOfNode:(e,t)=>c(e,_,t),serializeParameterTypesOfNode:(e,t,n)=>c(e,l,t,n),serializeReturnTypeOfNode:(e,t)=>c(e,u,t)};function c(e,t,n,r){const i=a,o=s;a=e.currentLexicalScope,s=e.currentNameScope;const c=void 0===r?t(n):t(n,r);return a=i,s=o,c}function _(e){switch(e.kind){case 169:case 166:return d(e.type);case 175:case 174:return d(function(e){const t=n.getAllAccessorDeclarations(e);return t.setAccessor&&jv(t.setAccessor)||t.getAccessor&&Hv(t.getAccessor)}(e));case 260:case 228:case 171:return dC.createIdentifier("Function");default:return dC.createVoidZero()}}function l(e,t){const n=Fl(e)?Rv(e):Sl(e)&&Mp(e.body)?e:void 0,r=[];if(n){const e=function(e,t){if(t&&174===e.kind){const{setAccessor:n}=Qv(t.members,e);if(n)return n.parameters}return e.parameters}(n,t),i=e.length;for(let t=0;te.parent&&fD(e.parent)&&(e.parent.trueType===e||e.parent.falseType===e))))return dC.createIdentifier("Object");const n=h(e.typeName),i=dC.createTempVariable(t);return dC.createConditionalExpression(dC.createTypeCheck(dC.createAssignment(i,n),"function"),void 0,i,void 0,dC.createIdentifier("Object"));case 1:return y(e.typeName);case 2:return dC.createVoidZero();case 4:return v("BigInt",7);case 6:return dC.createIdentifier("Boolean");case 3:return dC.createIdentifier("Number");case 5:return dC.createIdentifier("String");case 7:return dC.createIdentifier("Array");case 8:return v("Symbol",2);case 10:return dC.createIdentifier("Function");case 9:return dC.createIdentifier("Promise");case 11:return dC.createIdentifier("Object");default:return In.assertNever(r)}}(e);case 190:return f(e.types,!0);case 189:return f(e.types,!1);case 191:return f([e.trueType,e.falseType],!1);case 195:if(146===e.operator)return d(e.type);break;case 183:case 196:case 197:case 184:case 131:case 157:case 194:case 202:case 315:case 316:case 320:case 321:case 322:break;case 317:case 318:case 319:return d(e.type);default:return In.failBadSyntaxKind(e)}return dC.createIdentifier("Object")}function p(e){switch(e.kind){case 10:case 14:return dC.createIdentifier("String");case 221:{const t=e.operand;switch(t.kind){case 8:case 9:return p(t);default:return In.failBadSyntaxKind(t)}}case 8:return dC.createIdentifier("Number");case 9:return v("BigInt",7);case 110:case 95:return dC.createIdentifier("Boolean");case 104:return dC.createVoidZero();default:return In.failBadSyntaxKind(e)}}function f(e,t){let n;for(let r of e){if(r=Wh(r),144===r.kind){if(t)return dC.createVoidZero();continue}if(157===r.kind){if(!t)return dC.createIdentifier("Object");continue}if(131===r.kind)return dC.createIdentifier("Object");if(!o&&(xD(r)&&104===r.literal.kind||155===r.kind))continue;const e=d(r);if(Tw(e)&&"Object"===e.escapedText)return e;if(n){if(!m(n,e))return dC.createIdentifier("Object")}else n=e}return null!=n?n:dC.createVoidZero()}function m(e,t){return dl(e)?dl(t):Tw(e)?Tw(t)&&e.escapedText===t.escapedText:ND(e)?ND(t)&&m(e.expression,t.expression)&&m(e.name,t.name):zD(e)?zD(t)&&ow(e.expression)&&"0"===e.expression.text&&ow(t.expression)&&"0"===t.expression.text:sw(e)?sw(t)&&e.text===t.text:JD(e)?JD(t)&&m(e.expression,t.expression):MD(e)?MD(t)&&m(e.expression,t.expression):KD(e)?KD(t)&&m(e.condition,t.condition)&&m(e.whenTrue,t.whenTrue)&&m(e.whenFalse,t.whenFalse):!!QD(e)&&QD(t)&&e.operatorToken.kind===t.operatorToken.kind&&m(e.left,t.left)&&m(e.right,t.right)}function g(e,t){return dC.createLogicalAnd(dC.createStrictInequality(dC.createTypeOfExpression(e),dC.createStringLiteral("undefined")),t)}function h(e){if(79===e.kind){const t=y(e);return g(t,t)}if(79===e.left.kind)return g(y(e.left),y(e));const n=h(e.left),r=dC.createTempVariable(t);return dC.createLogicalAnd(dC.createLogicalAnd(n.left,dC.createStrictInequality(dC.createAssignment(r,n.right),dC.createVoidZero())),dC.createPropertyAccessExpression(r,e.right))}function y(e){switch(e.kind){case 79:const t=kT(OP(qP.cloneNode(e),e),e.parent);return t.original=void 0,kT(t,Fc(a)),t;case 163:return function(e){return dC.createPropertyAccessExpression(y(e.left),e.right)}(e)}}function v(e,t){return i1&&(l.push(t.createEndOfDeclarationMarker(a)),RC(l[0],8388608|rf(l[0]))),Ue(l)}(a);case 228:return function(e){return t.updateClassExpression(e,nj(e.modifiers,c,vl),e.name,void 0,nj(e.heritageClauses,_,hN),nj(e.members,_,Nl))}(a);case 173:return function(e){return t.updateConstructorDeclaration(e,nj(e.modifiers,c,vl),nj(e.parameters,_,Uw),tj(e.body,_,cE))}(a);case 171:return function(e){return p(t.updateMethodDeclaration(e,nj(e.modifiers,c,vl),e.asteriskToken,In.checkDefined(tj(e.name,_,xl)),void 0,void 0,nj(e.parameters,_,Uw),void 0,tj(e.body,_,cE)),e)}(a);case 175:return function(e){return p(t.updateSetAccessorDeclaration(e,nj(e.modifiers,c,vl),In.checkDefined(tj(e.name,_,xl)),nj(e.parameters,_,Uw),tj(e.body,_,cE)),e)}(a);case 174:return function(e){return p(t.updateGetAccessorDeclaration(e,nj(e.modifiers,c,vl),In.checkDefined(tj(e.name,_,xl)),nj(e.parameters,_,Uw),void 0,tj(e.body,_,cE)),e)}(a);case 169:return function(e){if(!(16777216&e.flags||cb(e,2)))return p(t.updatePropertyDeclaration(e,nj(e.modifiers,c,vl),In.checkDefined(tj(e.name,_,xl)),void 0,void 0,tj(e.initializer,_,_u)),e)}(a);case 166:return function(e){const n=t.updateParameterDeclaration(e,kP(t,e.modifiers),e.dotDotDotToken,In.checkDefined(tj(e.name,_,kl)),void 0,void 0,tj(e.initializer,_,_u));return n!==e&&(HC(n,e),OP(n,ux(e)),UC(n,ux(e)),RC(n.name,64)),n}(a);default:return uj(a,_,e)}}function l(e){return!!(536870912&e.transformFlags)}function u(e){return _e(e,l)}function d(e,n){let r=[];return g(r,e,!1),g(r,e,!0),function(e){for(const t of e.members){if(!MP(t))continue;const n=rJ(t,e,!0);if(_e(null==n?void 0:n.decorators,l))return!0;if(_e(null==n?void 0:n.parameters,u))return!0}return!1}(e)&&(n=OP(t.createNodeArray([...n,t.createClassStaticBlockDeclaration(t.createBlock(r,!0))]),n),r=void 0),{decorationStatements:r,members:n}}function p(e,t){return e!==t&&(HC(e,t),UC(e,ux(t))),e}function f(e){return rw(e.expression,"___metadata")}function m(e){if(!e)return;const{false:t,true:n}=at(e.decorators,f),r=[];return Ae(r,V(t,y)),Ae(r,H(e.parameters,v)),Ae(r,V(n,y)),r}function g(e,n,r){Ae(e,V(function(e,t){const n=function(e,t){return z(e.members,(n=>{return i=t,sg(!0,r=n,e)&&i===_b(r);var r,i}))}(e,t);let r;for(const t of n)r=Se(r,h(e,t));return r}(n,r),(e=>t.createExpressionStatement(e))))}function h(e,r){const i=m(rJ(r,e,!0));if(!i)return;const a=function(e,n){return _b(n)?t.getDeclarationName(e):function(e){return t.createPropertyAccessExpression(t.getDeclarationName(e),"prototype")}(e)}(e,r),s=function(e,n){const r=e.name;return Cw(r)?t.createIdentifier(""):Jw(r)?n&&!Qj(r.expression)?t.getGeneratedNameForNode(r):r.expression:Tw(r)?t.createStringLiteral(Oc(r)):t.cloneNode(r)}(r,!cb(r,2)),c=o>0?Qw(r)&&!fb(r)?t.createVoidZero():t.createNull():void 0,_=n().createDecorateHelper(i,a,s,c);return RC(_,3072),UC(_,ux(r)),_}function y(e){return In.checkDefined(tj(e.expression,_,_u))}function v(e,t){let r;if(e){r=[];for(const i of e){const e=n().createParamHelper(y(i),t);OP(e,i.expression),RC(e,3072),r.push(e)}}return r}}var LJ=b({"src/compiler/transformers/legacyDecorators.ts"(){XK()}});function MJ(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e;let a,s,c,_,l,u;return Rj(e,(function(t){a=void 0,u=!1;const n=uj(t,v,e);return oA(n,e.readEmitHelpers()),u&&(JC(n,32),u=!1),n}));function d(){switch(s=void 0,c=void 0,_=void 0,null==a?void 0:a.kind){case"class":s=a.classInfo;break;case"class-element":s=a.next.classInfo,c=a.classThis,_=a.classSuper;break;case"name":const e=a.next.next.next;"class-element"===(null==e?void 0:e.kind)&&(s=e.next.classInfo,c=e.classThis,_=e.classSuper)}}function p(e){a={kind:"class",next:a,classInfo:e,savedPendingExpressions:l},l=void 0,d()}function f(){In.assert("class"===(null==a?void 0:a.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class' but got '${null==a?void 0:a.kind}' instead.`)),l=a.savedPendingExpressions,a=a.next,d()}function m(e){var t,n;In.assert("class"===(null==a?void 0:a.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class' but got '${null==a?void 0:a.kind}' instead.`)),a={kind:"class-element",next:a},(Hw(e)||Qw(e)&&lb(e))&&(a.classThis=null==(t=a.next.classInfo)?void 0:t.classThis,a.classSuper=null==(n=a.next.classInfo)?void 0:n.classSuper),d()}function g(){var e;In.assert("class-element"===(null==a?void 0:a.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class-element' but got '${null==a?void 0:a.kind}' instead.`)),In.assert("class"===(null==(e=a.next)?void 0:e.kind),"Incorrect value for top.next.kind.",(()=>{var e;return`Expected top.next.kind to be 'class' but got '${null==(e=a.next)?void 0:e.kind}' instead.`})),a=a.next,d()}function h(){In.assert("class-element"===(null==a?void 0:a.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class-element' but got '${null==a?void 0:a.kind}' instead.`)),a={kind:"name",next:a},d()}function y(){In.assert("name"===(null==a?void 0:a.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'name' but got '${null==a?void 0:a.kind}' instead.`)),a=a.next,d()}function v(n){if(!function(e){return!!(33554432&e.transformFlags)||!!c&&!!(16384&e.transformFlags)||!!c&&!!_&&!!(134217728&e.transformFlags)}(n))return n;switch(n.kind){case 167:return In.fail("Use `modifierVisitor` instead.");case 260:return function(e){var n;if(D(e)){if(cb(e,1)&&cb(e,1024)){const r=null!=(n=Dc(e,Fl))?n:e,i=w(e,r.name?t.createStringLiteralFromNode(r.name):t.createStringLiteral("default")),o=t.createExportDefault(i);return PC(o,e),HC(o,WC(e)),UC(o,lx(e)),o}{In.assertIsDefined(e.name,"A class declaration that is not a default export must have a name.");const n=w(e,t.createStringLiteralFromNode(e.name)),r=nj(e.modifiers,x,vl),i=t.createVariableDeclaration(e.name,void 0,void 0,n),o=t.createVariableDeclarationList([i],1),a=t.createVariableStatement(r,o);return PC(a,e),HC(a,WC(e)),a}}{const n=nj(e.modifiers,x,vl),r=nj(e.heritageClauses,v,hN);p(void 0);const i=nj(e.members,k,Nl);return f(),t.updateClassDeclaration(e,n,e.name,void 0,r,i)}}(n);case 228:return E(n,void 0);case 173:case 169:case 172:return In.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 166:return function(e){let n;if(Jy(e,I)){const r=ie(e.name,e.initializer),i=tj(e.name,v,kl),o=tj(e.initializer,(e=>S(e,r)),_u);n=t.updateParameterDeclaration(e,void 0,void 0,i,void 0,void 0,o)}else n=t.updateParameterDeclaration(e,void 0,e.dotDotDotToken,tj(e.name,v,kl),void 0,void 0,tj(e.initializer,v,_u));return n!==e&&(HC(n,e),OP(n,ux(e)),UC(n,ux(e)),RC(n.name,64)),n}(n);case 223:return O(n,!1);case 299:return function(n){if(Jy(n,I)){const{referencedName:e,name:r}=R(n.name),i=tj(n.initializer,(t=>S(t,e)),_u);return t.updatePropertyAssignment(n,r,i)}return uj(n,v,e)}(n);case 257:return function(n){if(Jy(n,I)){const e=ie(n.name,n.initializer),r=tj(n.name,v,kl),i=tj(n.initializer,(t=>S(t,e)),_u);return t.updateVariableDeclaration(n,r,void 0,void 0,i)}return uj(n,v,e)}(n);case 205:return function(n){if(Jy(n,I)){const e=ie(n.name,n.initializer),r=tj(n.propertyName,v,xl),i=tj(n.name,v,kl),o=tj(n.initializer,(t=>S(t,e)),_u);return t.updateBindingElement(n,void 0,r,i,o)}return uj(n,v,e)}(n);case 274:return function(n){if(Jy(n,I)){const e=t.createStringLiteral(n.isExportEquals?"":"default"),r=nj(n.modifiers,x,vl),i=tj(n.expression,(t=>S(t,e)),_u);return t.updateExportAssignment(n,r,i)}return uj(n,v,e)}(n);case 108:return function(e){return null!=c?c:e}(n);case 245:return function(n){return t.updateForStatement(n,tj(n.initializer,T,bu),tj(n.condition,v,_u),tj(n.incrementor,T,_u),_j(n.statement,v,e))}(n);case 241:return function(t){return uj(t,T,e)}(n);case 357:return M(n,!1);case 214:return K(n,!1,void 0);case 356:return W(n,!1,void 0);case 210:return function(n){if(Zm(n.expression)&&c){const e=tj(n.expression,v,_u),r=nj(n.arguments,v,_u),i=t.createFunctionCallCall(e,c,r);return PC(i,n),OP(i,n),i}return uj(n,v,e)}(n);case 212:return function(n){if(Zm(n.tag)&&c){const e=tj(n.tag,v,_u),r=t.createFunctionBindCall(e,c,[]);PC(r,n),OP(r,n);const i=tj(n.template,v,nu);return t.updateTaggedTemplateExpression(n,r,void 0,i)}return uj(n,v,e)}(n);case 221:case 222:return L(n,!1);case 208:return function(n){if(Zm(n)&&Tw(n.name)&&c&&_){const e=t.createStringLiteralFromNode(n.name),r=t.createReflectGetCall(_,e,c);return PC(r,n.expression),OP(r,n.expression),r}return uj(n,v,e)}(n);case 209:return function(n){if(Zm(n)&&c&&_){const e=tj(n.argumentExpression,v,_u),r=t.createReflectGetCall(_,e,c);return PC(r,n.expression),OP(r,n.expression),r}return uj(n,v,e)}(n);case 164:return j(n);case 171:case 175:case 174:case 215:case 259:{"other"===(null==a?void 0:a.kind)?(In.assert(!l),a.depth++):(a={kind:"other",next:a,depth:0,savedPendingExpressions:l},l=void 0,d());const t=uj(n,b,e);return In.assert("other"===(null==a?void 0:a.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'other' but got '${null==a?void 0:a.kind}' instead.`)),a.depth>0?(In.assert(!l),a.depth--):(l=a.savedPendingExpressions,a=a.next,d()),t}default:return uj(n,b,e)}}function b(e){if(167!==e.kind)return v(e)}function x(e){if(167!==e.kind)return e}function k(a){switch(a.kind){case 173:return function(e){m(e);const n=nj(e.modifiers,x,vl),r=nj(e.parameters,v,Uw);let i;if(e.body&&s){const n=N(s.class,s);if(n){const r=[],o=t.copyPrologue(e.body.statements,r,!1,v),a=$j(e.body.statements,o);a>=0?(Ae(r,nj(e.body.statements,v,Iu,o,a+1-o)),Ae(r,n),Ae(r,nj(e.body.statements,v,Iu,a+1))):(Ae(r,n),Ae(r,nj(e.body.statements,v,Iu))),i=t.createBlock(r,!0),PC(i,e.body),OP(i,e.body)}}return null!=i||(i=tj(e.body,v,cE)),g(),t.updateConstructorDeclaration(e,n,r,i)}(a);case 171:return function(e){m(e);const{modifiers:n,name:r,descriptorName:i}=P(e,!1,s,Y);if(i)return g(),F(function(e,n,r){return e=nj(e,(e=>Pw(e)?e:void 0),vl),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(r,t.createIdentifier("value")))]))}(n,r,i),e);{const i=nj(e.parameters,v,Uw),o=tj(e.body,v,cE);return g(),F(t.updateMethodDeclaration(e,n,e.asteriskToken,r,void 0,void 0,i,void 0,o),e)}}(a);case 174:return function(e){m(e);const{modifiers:n,name:r,descriptorName:i}=P(e,!1,s,Z);if(i)return g(),F(ne(n,r,i),e);{const i=nj(e.parameters,v,Uw),o=tj(e.body,v,cE);return g(),F(t.updateGetAccessorDeclaration(e,n,r,i,void 0,o),e)}}(a);case 175:return function(e){m(e);const{modifiers:n,name:r,descriptorName:i}=P(e,!1,s,ee);if(i)return g(),F(re(n,r,i),e);{const i=nj(e.parameters,v,Uw),o=tj(e.body,v,cE);return g(),F(t.updateSetAccessorDeclaration(e,n,r,i,o),e)}}(a);case 169:return function(e){m(e),In.assert(!Tf(e),"Not yet implemented.");const a=Jy(e,I),{modifiers:c,name:_,referencedName:l,initializersName:u,descriptorName:d,thisArg:p}=P(e,a,s,fb(e)?te:void 0);r();let f=tj(e.initializer,l?e=>S(e,l):v,_u);u&&(f=n().createRunInitializersHelper(null!=p?p:t.createThis(),u,null!=f?f:t.createVoidZero())),_b(e)||!(null==s?void 0:s.instanceExtraInitializersName)||(null==s?void 0:s.hasInjectedInstanceInitializers)||(s.hasInjectedInstanceInitializers=!0,null!=f||(f=t.createVoidZero()),f=t.createParenthesizedExpression(t.createComma(n().createRunInitializersHelper(t.createThis(),s.instanceExtraInitializersName),f))),_b(e)&&s&&f&&(s.hasStaticInitializers=!0);const h=i();if(_e(h)&&(f=t.createImmediatelyInvokedArrowFunction([...h,t.createReturnStatement(f)])),g(),fb(e)&&d){const n=WC(e),r=zC(e),i=e.name;let a=i,s=i;if(Jw(i)&&!Qj(i.expression)){const e=EP(i);if(e)a=t.updateComputedPropertyName(i,tj(i.expression,v,_u)),s=t.updateComputedPropertyName(i,e.left);else{const e=t.createTempVariable(o);UC(e,i.expression);const n=tj(i.expression,v,_u),r=t.createAssignment(e,n);UC(r,i.expression),a=t.updateComputedPropertyName(i,r),s=t.updateComputedPropertyName(i,e)}}const _=nj(c,(e=>127!==e.kind?e:void 0),vl),l=AP(t,e,_,f);PC(l,e),RC(l,3072),UC(l,r),UC(l.name,e.name);const u=ne(_,a,d);PC(u,e),HC(u,n),UC(u,r);const p=re(_,s,d);return PC(p,e),RC(p,3072),UC(p,r),[l,u,p]}return F(t.updatePropertyDeclaration(e,c,_,void 0,void 0,f),e)}(a);case 172:return function(t){m(t),s&&(s.hasStaticInitializers=!0);const n=uj(t,v,e);return g(),n}(a);default:return v(a)}}function S(e,t){switch(e.kind){case 356:return W(e,!1,t);case 214:return K(e,!1,t);case 228:return E(e,t);default:return v(e)}}function T(e){switch(e.kind){case 221:case 222:return L(e,!0);case 223:return O(e,!0);case 357:return M(e,!0);case 214:return K(e,!0,void 0);default:return v(e)}}function C(e,n){return t.createUniqueName(`${function(e){let t=e.name&&Tw(e.name)&&!dl(e.name)?Oc(e.name):e.name&&Cw(e.name)&&!dl(e.name)?Oc(e.name).slice(1):e.name&&sw(e.name)&&Us(e.name.text,99)?e.name.text:Fl(e)?"class":"member";return Ku(e)&&(t="get_"+t),Qu(e)&&(t="set_"+t),e.name&&Cw(e.name)&&(t="private_"+t),_b(e)&&(t="static_"+t),"_"+t}(e)}_${n}`,24)}function A(e,n){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,n)],1))}function w(o,a){var s,c,_,d,m;r();const g=null!=(s=o.name)?s:t.getGeneratedNameForNode(o),h=function(e){let n,r,i=!1,o=!1,a=!1;for(const s of e.members)if(Ll(s)&&sg(!1,s,e)&&(lb(s)?null!=r||(r=t.createUniqueName("_staticExtraInitializers",16)):null!=n||(n=t.createUniqueName("_instanceExtraInitializers",16))),Hw(s)?i=!0:Qw(s)&&(lb(s)?i||(i=!!s.initializer||gb(s)):o||(o=!Tf(s))),(fl(s)||Il(s))&&lb(s)&&(a=!0),r&&n&&i&&o&&a)break;return{class:e,instanceExtraInitializersName:n,staticExtraInitializersName:r,hasStaticInitializers:i,hasNonAmbientInstanceFields:o,hasStaticPrivateClassElements:a}}(o),y=[];let b,x,S,T,C=!1;const w=$(nJ(o));if(w&&(h.classDecoratorsName=t.createUniqueName("_classDecorators",16),h.classDescriptorName=t.createUniqueName("_classDescriptor",16),h.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",16),h.classThis=t.createUniqueName("_classThis",16),y.push(A(h.classDecoratorsName,t.createArrayLiteralExpression(w)),A(h.classDescriptorName),A(h.classExtraInitializersName,t.createArrayLiteralExpression()),A(h.classThis)),h.hasStaticPrivateClassElements&&(C=!0,u=!0)),w&&function(e){for(const t of e.members)if((Hw(t)||Qw(t)&&lb(t))&&134217728&t.transformFlags)return!0;return!1}(o)){const e=dy(o.heritageClauses,94),n=e&&Oe(e.types),r=n&&tj(n.expression,v,_u);if(r){h.classSuper=t.createUniqueName("_classSuper",16);const i=UF(r),o=GD(i)&&!i.name||RD(i)&&!i.name||BD(i)?t.createComma(t.createNumericLiteral(0),r):r;y.push(A(h.classSuper,o));const a=t.updateExpressionWithTypeArguments(n,h.classSuper,void 0),s=t.updateHeritageClause(e,[a]);T=t.createNodeArray([s])}}else T=nj(o.heritageClauses,v,hN);const D=null!=(c=h.classThis)?c:t.createThis();if(!(null==(_=Dc(o,Fl))?void 0:_.name)&&(w||!sw(a)||!ug(a))){const e=n().createSetFunctionNameHelper(t.createThis(),a);b=Se(b,t.createExpressionStatement(e))}p(h);let E=nj(o.members,k,Nl);if(l){let n;for(let r of l)r=tj(r,(function r(i){return 16384&i.transformFlags?108===i.kind?(n||(n=t.createUniqueName("_outerThis",16),y.unshift(A(n,t.createThis()))),n):uj(i,r,e):i}),_u),b=Se(b,t.createExpressionStatement(r));l=void 0}if(f(),h.instanceExtraInitializersName&&!Rv(o)){const e=N(0,h);if(e){const n=sy(o),r=[];if(n&&104!==UF(n.expression).kind){const e=t.createSpreadElement(t.createIdentifier("arguments")),n=t.createCallExpression(t.createSuper(),void 0,[e]);r.push(t.createExpressionStatement(n))}Ae(r,e);const i=t.createBlock(r,!0);S=t.createConstructorDeclaration(void 0,[],i)}}if(h.staticExtraInitializersName&&y.push(A(h.staticExtraInitializersName,t.createArrayLiteralExpression())),h.instanceExtraInitializersName&&y.push(A(h.instanceExtraInitializersName,t.createArrayLiteralExpression())),h.memberInfos&&up(h.memberInfos,((e,n)=>{_b(n)&&(y.push(A(e.memberDecoratorsName)),e.memberInitializersName&&y.push(A(e.memberInitializersName,t.createArrayLiteralExpression())),e.memberDescriptorName&&y.push(A(e.memberDescriptorName)))})),h.memberInfos&&up(h.memberInfos,((e,n)=>{_b(n)||(y.push(A(e.memberDecoratorsName)),e.memberInitializersName&&y.push(A(e.memberInitializersName,t.createArrayLiteralExpression())),e.memberDescriptorName&&y.push(A(e.memberDescriptorName)))})),b=Ae(b,h.staticNonFieldDecorationStatements),b=Ae(b,h.nonStaticNonFieldDecorationStatements),b=Ae(b,h.staticFieldDecorationStatements),b=Ae(b,h.nonStaticFieldDecorationStatements),h.classDescriptorName&&h.classDecoratorsName&&h.classExtraInitializersName&&h.classThis){null!=b||(b=[]);const e=t.createPropertyAssignment("value",t.createThis()),r=t.createObjectLiteralExpression([e]),i=t.createAssignment(h.classDescriptorName,r),a=t.createPropertyAccessExpression(t.createThis(),"name"),s=n().createESDecorateHelper(t.createNull(),i,h.classDecoratorsName,{kind:"class",name:a},t.createNull(),h.classExtraInitializersName),c=t.createExpressionStatement(s);UC(c,lx(o)),b.push(c);const _=t.createPropertyAccessExpression(h.classDescriptorName,"value"),l=t.createAssignment(h.classThis,_),u=t.createAssignment(g,l);b.push(t.createExpressionStatement(u))}if(h.staticExtraInitializersName){const e=n().createRunInitializersHelper(D,h.staticExtraInitializersName),r=t.createExpressionStatement(e);UC(r,null!=(d=o.name)?d:lx(o)),b=Se(b,r)}if(h.classExtraInitializersName){const e=n().createRunInitializersHelper(D,h.classExtraInitializersName),r=t.createExpressionStatement(e);UC(r,null!=(m=o.name)?m:lx(o)),x=Se(x,r)}b&&x&&!h.hasStaticInitializers&&(Ae(b,x),x=void 0);let F=E;if(b){const e=t.createBlock(b,!0),n=t.createClassStaticBlockDeclaration(e);C&&jC(n,32),F=[n,...F]}if(S&&(F=[...F,S]),x){const e=t.createBlock(x,!0),n=t.createClassStaticBlockDeclaration(e);F=[...F,n]}F!==E&&(E=OP(t.createNodeArray(F),E));const P=i();let I;if(w){I=t.createClassExpression(void 0,void 0,void 0,T,E);const e=t.createVariableDeclaration(g,void 0,void 0,I),n=t.createVariableDeclarationList([e]),r=h.classThis?t.createAssignment(g,h.classThis):g;y.push(t.createVariableStatement(void 0,n),t.createReturnStatement(r))}else I=t.createClassExpression(void 0,o.name,void 0,T,E),y.push(t.createReturnStatement(I));if(C){JC(I,32);for(const e of I.members)(fl(e)||Il(e))&&lb(e)&&JC(e,32)}return PC(I,o),OC(I).classThis=h.classThis,t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(y,P))}function D(e){return _g(!1,e)||cg(!1,e)}function E(e,n){if(D(e)){const r=w(e,e.name?t.createStringLiteralFromNode(e.name):null!=n?n:t.createStringLiteral(""));return PC(r,e),r}{const n=nj(e.modifiers,x,vl),r=nj(e.heritageClauses,v,hN);p(void 0);const i=nj(e.members,k,Nl);return f(),t.updateClassExpression(e,n,e.name,void 0,r,i)}}function N(e,r){if(r.instanceExtraInitializersName&&!r.hasNonAmbientInstanceFields){const e=[];return e.push(t.createExpressionStatement(n().createRunInitializersHelper(t.createThis(),r.instanceExtraInitializersName))),e}}function F(e,t){return e!==t&&(HC(e,t),UC(e,lx(t))),e}function P(e,r,i,o){var a,s,c,_,u,d,p;let f,m,g,v,b;if(!i){const t=nj(e.modifiers,x,vl);return h(),r?({referencedName:f,name:m}=R(e.name)):m=B(e.name),y(),{modifiers:t,referencedName:f,name:m,initializersName:g,descriptorName:b,thisArg:v}}const k=$(rJ(e,i.class,!1)),S=nj(e.modifiers,x,vl);if(k){const r=C(e,"decorators"),x=t.createArrayLiteralExpression(k),T=t.createAssignment(r,x),A={memberDecoratorsName:r};null!=i.memberInfos||(i.memberInfos=new Map),i.memberInfos.set(e,A),null!=l||(l=[]),l.push(T);const w=Ol(e)||Il(e)?_b(e)?null!=(a=i.staticNonFieldDecorationStatements)?a:i.staticNonFieldDecorationStatements=[]:null!=(s=i.nonStaticNonFieldDecorationStatements)?s:i.nonStaticNonFieldDecorationStatements=[]:Qw(e)&&!Il(e)?_b(e)?null!=(c=i.staticFieldDecorationStatements)?c:i.staticFieldDecorationStatements=[]:null!=(_=i.nonStaticFieldDecorationStatements)?_:i.nonStaticFieldDecorationStatements=[]:In.fail(),D=Gw(e)?"getter":Xw(e)?"setter":Ww(e)?"method":Il(e)?"accessor":Qw(e)?"field":In.fail();let E;if(Tw(e.name)||Cw(e.name))E={computed:!1,name:e.name};else if(Ey(e.name))E={computed:!0,name:t.createStringLiteralFromNode(e.name)};else{const n=e.name.expression;Ey(n)&&!Tw(n)?E={computed:!0,name:t.createStringLiteralFromNode(n)}:(h(),({referencedName:f,name:m}=R(e.name)),E={computed:!0,name:f},y())}const N={kind:D,name:E,static:_b(e),private:Cw(e.name),access:{get:Qw(e)||Gw(e)||Ww(e),set:Qw(e)||Xw(e)}},F=_b(e)?null!=(u=i.staticExtraInitializersName)?u:i.staticExtraInitializersName=t.createUniqueName("_staticExtraInitializers",16):null!=(d=i.instanceExtraInitializersName)?d:i.instanceExtraInitializersName=t.createUniqueName("_instanceExtraInitializers",16);if(Ol(e)){let i;fl(e)&&o&&(i=o(e,nj(S,(e=>xt(e,Dw)),vl)),A.memberDescriptorName=b=C(e,"descriptor"),i=t.createAssignment(b,i));const a=n().createESDecorateHelper(t.createThis(),null!=i?i:t.createNull(),r,N,t.createNull(),F),s=t.createExpressionStatement(a);UC(s,lx(e)),w.push(s)}else if(Qw(e)){let a;g=null!=(p=A.memberInitializersName)?p:A.memberInitializersName=C(e,"initializers"),_b(e)&&(v=i.classThis),fl(e)&&fb(e)&&o&&(a=o(e,void 0),A.memberDescriptorName=b=C(e,"descriptor"),a=t.createAssignment(b,a));const s=n().createESDecorateHelper(Il(e)?t.createThis():t.createNull(),null!=a?a:t.createNull(),r,N,g,F),c=t.createExpressionStatement(s);UC(c,lx(e)),w.push(c)}}return void 0===m&&(h(),r?({referencedName:f,name:m}=R(e.name)):m=B(e.name),y()),_e(S)||!Ww(e)&&!Qw(e)||RC(m,1024),{modifiers:S,referencedName:f,name:m,initializersName:g,descriptorName:b,thisArg:v}}function I(e){return GD(e)&&!e.name&&D(e)}function O(n,r){if(jb(n)){const e=Q(n.left),r=tj(n.right,v,_u);return t.updateBinaryExpression(n,e,n.operatorToken,r)}if(Rb(n)){if(Jy(n,I)){const e=ie(n.left,n.right),r=tj(n.left,v,_u),i=tj(n.right,(t=>S(t,e)),_u);return t.updateBinaryExpression(n,r,n.operatorToken,i)}if(Zm(n.left)&&c&&_){let e=FD(n.left)?tj(n.left.argumentExpression,v,_u):Tw(n.left.name)?t.createStringLiteralFromNode(n.left.name):void 0;if(e){let i=tj(n.right,v,_u);if(Kj(n.operatorToken.kind)){let r=e;Qj(e)||(r=t.createTempVariable(o),e=t.createAssignment(r,e));const a=t.createReflectGetCall(_,r,c);PC(a,n.left),OP(a,n.left),i=t.createBinaryExpression(a,Wj(n.operatorToken.kind),i),OP(i,n)}const a=r?void 0:t.createTempVariable(o);return a&&(i=t.createAssignment(a,i),OP(a,n)),i=t.createReflectSetCall(_,e,i,c),PC(i,n),OP(i,n),a&&(i=t.createComma(i,a),OP(i,n)),i}}}if(27===n.operatorToken.kind){const e=tj(n.left,T,_u),i=tj(n.right,r?T:v,_u);return t.updateBinaryExpression(n,e,n.operatorToken,i)}return uj(n,v,e)}function L(n,r){if(45===n.operator||46===n.operator){const e=Hh(n.operand);if(Zm(e)&&c&&_){let i=FD(e)?tj(e.argumentExpression,v,_u):Tw(e.name)?t.createStringLiteralFromNode(e.name):void 0;if(i){let e=i;Qj(i)||(e=t.createTempVariable(o),i=t.createAssignment(e,i));let a=t.createReflectGetCall(_,e,c);PC(a,n),OP(a,n);const s=r?void 0:t.createTempVariable(o);return a=NF(t,n,a,o,s),a=t.createReflectSetCall(_,i,a,c),PC(a,n),OP(a,n),s&&(a=t.createComma(a,s),OP(a,n)),a}}}return uj(n,v,e)}function M(e,n){const r=n?lj(e.elements,T):lj(e.elements,v,T);return t.updateCommaListExpression(e,r)}function R(e){if(Ey(e)||Cw(e))return{referencedName:t.createStringLiteralFromNode(e),name:tj(e,v,xl)};if(Ey(e.expression)&&!Tw(e.expression))return{referencedName:t.createStringLiteralFromNode(e.expression),name:tj(e,v,xl)};const r=t.getGeneratedNameForNode(e);o(r);const i=n().createPropKeyHelper(tj(e.expression,v,_u)),a=t.createAssignment(r,i);return{referencedName:r,name:t.updateComputedPropertyName(e,H(a))}}function B(e){return Jw(e)?j(e):tj(e,v,xl)}function j(e){let n=tj(e.expression,v,_u);return Qj(n)||(n=H(n)),t.updateComputedPropertyName(e,n)}function J(n){if(ED(n)||DD(n))return Q(n);if(Zm(n)&&c&&_){const e=FD(n)?tj(n.argumentExpression,v,_u):Tw(n.name)?t.createStringLiteralFromNode(n.name):void 0;if(e){const r=t.createTempVariable(void 0),i=t.createAssignmentTargetWrapper(r,t.createReflectSetCall(_,e,r,c));return PC(i,n),OP(i,n),i}}return uj(n,v,e)}function z(e){if(Rb(e,!0)){const n=J(e.left);let r;if(Jy(e,I)){const t=ie(e.left,e.right);r=tj(e.right,(e=>S(e,t)),_u)}else r=tj(e.right,v,_u);return t.updateBinaryExpression(e,n,e.operatorToken,r)}return J(e)}function U(n){return In.assertNode(n,Xl),$D(n)?function(n){if(ru(n.expression)){const e=J(n.expression);return t.updateSpreadElement(n,e)}return uj(n,v,e)}(n):XD(n)?uj(n,v,e):z(n)}function q(n){return In.assertNode(n,$l),xN(n)?function(n){if(ru(n.expression)){const e=J(n.expression);return t.updateSpreadAssignment(n,e)}return uj(n,v,e)}(n):bN(n)?function(n){if(Jy(n,I)){const e=ie(n.name,n.objectAssignmentInitializer),r=tj(n.name,v,Tw),i=tj(n.objectAssignmentInitializer,(t=>S(t,e)),_u);return t.updateShorthandPropertyAssignment(n,r,i)}return uj(n,v,e)}(n):vN(n)?function(n){const r=tj(n.name,v,xl);if(Rb(n.initializer,!0)){const e=z(n.initializer);return t.updatePropertyAssignment(n,r,e)}if(ru(n.initializer)){const e=J(n.initializer);return t.updatePropertyAssignment(n,r,e)}return uj(n,v,e)}(n):uj(n,v,e)}function Q(e){if(DD(e)){const n=nj(e.elements,U,_u);return t.updateArrayLiteralExpression(e,n)}{const n=nj(e.properties,q,jl);return t.updateObjectLiteralExpression(e,n)}}function K(e,n,r){const i=n?T:r?e=>S(e,r):v,o=tj(e.expression,i,_u);return t.updateParenthesizedExpression(e,o)}function W(e,n,r){const i=n?T:r?e=>S(e,r):v,o=tj(e.expression,i,_u);return t.updatePartiallyEmittedExpression(e,o)}function H(e){return _e(l)&&(MD(e)?(l.push(e.expression),e=t.updateParenthesizedExpression(e,t.inlineExpressions(l))):(l.push(e),e=t.inlineExpressions(l)),l=void 0),e}function $(e){if(!e)return;const t=[];return Ae(t,V(e.decorators,G)),t}function G(e){const t=tj(e.expression,v,_u);return RC(t,3072),t}function X(e,r,i,o,a,s,c){const _=t.createFunctionExpression(i,o,void 0,void 0,s,void 0,null!=c?c:t.createBlock([]));PC(_,e),UC(_,lx(e)),RC(_,3072);const l="get"===a||"set"===a?a:void 0,u=t.createStringLiteralFromNode(r,void 0),d=n().createSetFunctionNameHelper(_,u,l),p=t.createPropertyAssignment(t.createIdentifier(a),d);return PC(p,e),UC(p,lx(e)),RC(p,3072),p}function Y(e,n){return t.createObjectLiteralExpression([X(e,e.name,n,e.asteriskToken,"value",nj(e.parameters,v,Uw),tj(e.body,v,cE))])}function Z(e,n){return t.createObjectLiteralExpression([X(e,e.name,n,void 0,"get",[],tj(e.body,v,cE))])}function ee(e,n){return t.createObjectLiteralExpression([X(e,e.name,n,void 0,"set",nj(e.parameters,v,Uw),tj(e.body,v,cE))])}function te(e,n){return t.createObjectLiteralExpression([X(e,e.name,n,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(e.name)))])),X(e,e.name,n,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(e.name)),t.createIdentifier("value")))]))])}function ne(e,n,r){return e=nj(e,(e=>Pw(e)?e:void 0),vl),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(r,t.createIdentifier("get")),t.createThis(),[]))]))}function re(e,n,r){return e=nj(e,(e=>Pw(e)?e:void 0),vl),t.createSetAccessorDeclaration(e,n,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(r,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function ie(e,n){const r=Dc(n,Fl);return r&&!r.name&&cb(r,1024)?t.createStringLiteral("default"):t.createStringLiteralFromNode(e)}}var RJ=b({"src/compiler/transformers/esDecorators.ts"(){XK()}});function BJ(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),c=Rk(s);let _,l,u,d,p=0;const f=[];let m=0;const g=e.onEmitNode,h=e.onSubstituteNode;return e.onEmitNode=function(e,t,n){if(1&_&&function(e){const t=e.kind;return 260===t||173===t||171===t||174===t||175===t}(t)){const r=384&a.getNodeCheckFlags(t);if(r!==p){const i=p;return p=r,g(e,t,n),void(p=i)}}else if(_&&f[qB(t)]){const r=p;return p=0,g(e,t,n),void(p=r)}g(e,t,n)},e.onSubstituteNode=function(e,n){return n=h(e,n),1===e&&p?function(e){switch(e.kind){case 208:return q(e);case 209:return Q(e);case 210:return function(e){const n=e.expression;if(Zm(n)){const r=ND(n)?q(n):Q(n);return t.createCallExpression(t.createPropertyAccessExpression(r,"call"),void 0,[t.createThis(),...e.arguments])}return e}(e)}return e}(n):n},Rj(e,(function(t){if(t.isDeclarationFile)return t;y(1,!1),y(2,!Sf(t,s));const n=uj(t,S,e);return oA(n,e.readEmitHelpers()),n}));function y(e,t){m=t?m|e:m&~e}function v(e){return 0!=(m&e)}function b(){return v(2)}function x(e,t,n){const r=e&~m;if(r){y(r,!0);const e=t(n);return y(r,!1),e}return t(n)}function k(t){return uj(t,S,e)}function S(n){if(0==(256&n.transformFlags))return n;switch(n.kind){case 132:return;case 220:return function(n){return v(1)?PC(OP(t.createYieldExpression(void 0,tj(n.expression,S,_u)),n),n):uj(n,S,e)}(n);case 171:return x(3,w,n);case 259:return x(3,N,n);case 215:return x(3,F,n);case 216:return x(1,P,n);case 208:return u&&ND(n)&&106===n.expression.kind&&u.add(n.name.escapedText),uj(n,S,e);case 209:return u&&106===n.expression.kind&&(d=!0),uj(n,S,e);case 174:return x(3,D,n);case 175:return x(3,E,n);case 173:return x(3,A,n);case 260:case 228:return x(3,k,n);default:return uj(n,S,e)}}function C(n){if(zh(n))switch(n.kind){case 240:return function(n){if(O(n.declarationList)){const e=L(n.declarationList,!1);return e?t.createExpressionStatement(e):void 0}return uj(n,S,e)}(n);case 245:return function(n){const r=n.initializer;return t.updateForStatement(n,O(r)?L(r,!1):tj(n.initializer,S,bu),tj(n.condition,S,_u),tj(n.incrementor,S,_u),_j(n.statement,C,e))}(n);case 246:return function(n){return t.updateForInStatement(n,O(n.initializer)?L(n.initializer,!0):In.checkDefined(tj(n.initializer,S,bu)),In.checkDefined(tj(n.expression,S,_u)),_j(n.statement,C,e))}(n);case 247:return function(n){return t.updateForOfStatement(n,tj(n.awaitModifier,S,Nw),O(n.initializer)?L(n.initializer,!0):In.checkDefined(tj(n.initializer,S,bu)),In.checkDefined(tj(n.expression,S,_u)),_j(n.statement,C,e))}(n);case 295:return function(t){const n=new Set;let r;if(I(t.variableDeclaration,n),n.forEach(((e,t)=>{l.has(t)&&(r||(r=new Set(l)),r.delete(t))})),r){const n=l;l=r;const i=uj(t,C,e);return l=n,i}return uj(t,C,e)}(n);case 238:case 252:case 266:case 292:case 293:case 255:case 243:case 244:case 242:case 251:case 253:return uj(n,C,e);default:return In.assertNever(n,"Unhandled node.")}return S(n)}function A(n){return t.updateConstructorDeclaration(n,nj(n.modifiers,S,vl),aj(n.parameters,S,e),j(n))}function w(n){return t.updateMethodDeclaration(n,nj(n.modifiers,S,Ml),n.asteriskToken,n.name,void 0,void 0,aj(n.parameters,S,e),void 0,2&ky(n)?J(n):j(n))}function D(n){return t.updateGetAccessorDeclaration(n,nj(n.modifiers,S,Ml),n.name,aj(n.parameters,S,e),void 0,j(n))}function E(n){return t.updateSetAccessorDeclaration(n,nj(n.modifiers,S,Ml),n.name,aj(n.parameters,S,e),j(n))}function N(n){return t.updateFunctionDeclaration(n,nj(n.modifiers,S,Ml),n.asteriskToken,n.name,void 0,aj(n.parameters,S,e),void 0,2&ky(n)?J(n):cj(n.body,S,e))}function F(n){return t.updateFunctionExpression(n,nj(n.modifiers,S,vl),n.asteriskToken,n.name,void 0,aj(n.parameters,S,e),void 0,2&ky(n)?J(n):cj(n.body,S,e))}function P(n){return t.updateArrowFunction(n,nj(n.modifiers,S,vl),void 0,aj(n.parameters,S,e),void 0,n.equalsGreaterThanToken,2&ky(n)?J(n):cj(n.body,S,e))}function I({name:e},t){if(Tw(e))t.add(e.escapedText);else for(const n of e.elements)XD(n)||I(n,t)}function O(e){return!!e&&DE(e)&&!(3&e.flags)&&e.declarations.some(B)}function L(e,n){!function(e){T(e.declarations,M)}(e);const r=wx(e);return 0===r.length?n?tj(t.converters.convertToAssignmentElementTarget(e.declarations[0].name),S,_u):void 0:t.inlineExpressions(V(r,R))}function M({name:e}){if(Tw(e))o(e);else for(const t of e.elements)XD(t)||M(t)}function R(e){const n=UC(t.createAssignment(t.converters.convertToAssignmentElementTarget(e.name),e.initializer),e);return In.checkDefined(tj(n,S,_u))}function B({name:e}){if(Tw(e))return l.has(e.escapedText);for(const t of e.elements)if(!XD(t)&&B(t))return!0;return!1}function j(n){In.assertIsDefined(n.body);const r=u,i=d;u=new Set,d=!1;let o=cj(n.body,S,e);const s=Dc(n,Cl);if(c>=2&&384&a.getNodeCheckFlags(n)&&3!=(3&ky(s))){if(U(),u.size){const e=jJ(t,a,n,u);f[qB(e)]=!0;const r=o.statements.slice();Up(r,[e]),o=t.updateBlock(o,r)}d&&(256&a.getNodeCheckFlags(n)?iA(o,XA):128&a.getNodeCheckFlags(n)&&iA(o,GA))}return u=r,d=i,o}function J(e){r();const o=Dc(e,Sl).type,s=c<2?function(e){const t=e&&rg(e);if(t&&bl(t)){const e=a.getTypeReferenceSerializationKind(t);if(1===e||0===e)return t}}(o):void 0,_=216===e.kind,p=0!=(512&a.getNodeCheckFlags(e)),m=l;l=new Set;for(const t of e.parameters)I(t,l);const g=u,h=d;let y;if(_||(u=new Set,d=!1),_){const r=n().createAwaiterHelper(b(),p,s,z(e.body)),o=i();if(_e(o)){const e=t.converters.convertToFunctionBlock(r);y=t.updateBlock(e,OP(t.createNodeArray(ue(o,e.statements)),e.statements))}else y=r}else{const r=[],o=t.copyPrologue(e.body.statements,r,!1,S);r.push(t.createReturnStatement(n().createAwaiterHelper(b(),p,s,z(e.body,o)))),Up(r,i());const _=c>=2&&384&a.getNodeCheckFlags(e);if(_&&(U(),u.size)){const n=jJ(t,a,e,u);f[qB(n)]=!0,Up(r,[n])}const l=t.createBlock(r,!0);OP(l,e.body),_&&d&&(256&a.getNodeCheckFlags(e)?iA(l,XA):128&a.getNodeCheckFlags(e)&&iA(l,GA)),y=l}return l=m,_||(u=g,d=h),y}function z(e,n){return cE(e)?t.updateBlock(e,nj(e.statements,C,Iu,n)):t.converters.convertToFunctionBlock(In.checkDefined(tj(e,C,yu)))}function U(){0==(1&_)&&(_|=1,e.enableSubstitution(210),e.enableSubstitution(208),e.enableSubstitution(209),e.enableEmitNotification(260),e.enableEmitNotification(171),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(173),e.enableEmitNotification(240))}function q(e){return 106===e.expression.kind?OP(t.createPropertyAccessExpression(t.createUniqueName("_super",48),e.name),e):e}function Q(e){return 106===e.expression.kind?(n=e.argumentExpression,r=e,OP(256&p?t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[n]),"value"):t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[n]),r)):e;var n,r}}function jJ(e,t,n,r){const i=0!=(256&t.getNodeCheckFlags(n)),o=[];return r.forEach(((t,n)=>{const r=Ic(n),a=[];a.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,RC(e.createPropertyAccessExpression(RC(e.createSuper(),8),r),8)))),i&&a.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(RC(e.createPropertyAccessExpression(RC(e.createSuper(),8),r),8),e.createIdentifier("v"))))),o.push(e.createPropertyAssignment(r,e.createObjectLiteralExpression(a)))})),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(o,!0)]))],2))}var JJ=b({"src/compiler/transformers/es2017.ts"(){XK()}});function zJ(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),c=Rk(s),_=e.onEmitNode;e.onEmitNode=function(e,t,n){if(1&u&&function(e){const t=e.kind;return 260===t||173===t||171===t||174===t||175===t}(t)){const r=384&a.getNodeCheckFlags(t);if(r!==v){const i=v;return v=r,_(e,t,n),void(v=i)}}else if(u&&x[qB(t)]){const r=v;return v=0,_(e,t,n),void(v=r)}_(e,t,n)};const l=e.onSubstituteNode;e.onSubstituteNode=function(e,n){return n=l(e,n),1===e&&v?function(e){switch(e.kind){case 208:return H(e);case 209:return $(e);case 210:return function(e){const n=e.expression;if(Zm(n)){const r=ND(n)?H(n):$(n);return t.createCallExpression(t.createPropertyAccessExpression(r,"call"),void 0,[t.createThis(),...e.arguments])}return e}(e)}return e}(n):n};let u,d,p,f,m,g,h,y=!1,v=0,b=0;const x=[];return Rj(e,(function(n){if(n.isDeclarationFile)return n;f=n;const r=function(n){const r=k(2,Sf(n,s)?0:1);y=!1;const i=uj(n,C,e),o=ue(i.statements,m&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(m))]),a=t.updateSourceFile(i,OP(t.createNodeArray(o),n.statements));return S(r),a}(n);return oA(r,e.readEmitHelpers()),f=void 0,m=void 0,r}));function k(e,t){const n=b;return b=3&(b&~e|t),n}function S(e){b=e}function T(e){m=Se(m,t.createVariableDeclaration(e))}function C(e){return N(e,!1)}function A(e){return N(e,!0)}function w(e){if(132!==e.kind)return e}function D(e,t,n,r){if(function(e,t){return b!==(b&~e|t)}(n,r)){const i=k(n,r),o=e(t);return S(i),o}return e(t)}function E(t){return uj(t,C,e)}function N(r,i){if(0==(128&r.transformFlags))return r;switch(r.kind){case 220:return function(r){return 2&d&&1&d?PC(OP(t.createYieldExpression(void 0,n().createAwaitHelper(tj(r.expression,C,_u))),r),r):uj(r,C,e)}(r);case 226:return function(r){if(2&d&&1&d){if(r.asteriskToken){const e=tj(In.checkDefined(r.expression),C,_u);return PC(OP(t.createYieldExpression(void 0,n().createAwaitHelper(t.updateYieldExpression(r,r.asteriskToken,OP(n().createAsyncDelegatorHelper(OP(n().createAsyncValuesHelper(e),e)),e)))),r),r)}return PC(OP(t.createYieldExpression(void 0,O(r.expression?tj(r.expression,C,_u):t.createVoidZero())),r),r)}return uj(r,C,e)}(r);case 250:return function(n){return 2&d&&1&d?t.updateReturnStatement(n,O(n.expression?tj(n.expression,C,_u):t.createVoidZero())):uj(n,C,e)}(r);case 253:return function(n){if(2&d){const e=Nm(n);return 247===e.kind&&e.awaitModifier?I(e,n):t.restoreEnclosingLabel(tj(e,C,Iu,t.liftToBlock),n)}return uj(n,C,e)}(r);case 207:return function(r){if(65536&r.transformFlags){const e=function(e){let n;const r=[];for(const i of e)if(301===i.kind){n&&(r.push(t.createObjectLiteralExpression(n)),n=void 0);const e=i.expression;r.push(tj(e,C,_u))}else n=Se(n,299===i.kind?t.createPropertyAssignment(i.name,tj(i.initializer,C,_u)):tj(i,C,jl));return n&&r.push(t.createObjectLiteralExpression(n)),r}(r.properties);e.length&&207!==e[0].kind&&e.unshift(t.createObjectLiteralExpression());let i=e[0];if(e.length>1){for(let t=1;t=2&&384&a.getNodeCheckFlags(o);if(f){0==(1&u)&&(u|=1,e.enableSubstitution(210),e.enableSubstitution(208),e.enableSubstitution(209),e.enableEmitNotification(260),e.enableEmitNotification(171),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(173),e.enableEmitNotification(240));const n=jJ(t,a,o,g);x[qB(n)]=!0,Up(s,[n])}s.push(p),Up(s,i());const m=t.updateBlock(o.body,s);return f&&h&&(256&a.getNodeCheckFlags(o)?iA(m,XA):128&a.getNodeCheckFlags(o)&&iA(m,GA)),g=l,h=d,m}function K(e){var n;r();let o=0;const a=[],s=null!=(n=tj(e.body,C,yu))?n:t.createBlock([]);cE(s)&&(o=t.copyPrologue(s.statements,a,!1,C)),Ae(a,W(void 0,e));const c=i();if(o>0||_e(a)||_e(c)){const e=t.converters.convertToFunctionBlock(s,!0);return Up(a,c),Ae(a,e.statements.slice(o)),t.updateBlock(e,OP(t.createNodeArray(a),e.statements))}return s}function W(n,r){let i=!1;for(const o of r.parameters)if(i){if(Ul(o.name)){if(o.name.elements.length>0){const r=mJ(o,C,e,0,t.getGeneratedNameForNode(o));if(_e(r)){const e=t.createVariableDeclarationList(r),i=t.createVariableStatement(void 0,e);RC(i,2097152),n=Se(n,i)}}else if(o.initializer){const e=t.getGeneratedNameForNode(o),r=tj(o.initializer,C,_u),i=t.createAssignment(e,r),a=t.createExpressionStatement(i);RC(a,2097152),n=Se(n,a)}}else if(o.initializer){const e=t.cloneNode(o.name);OP(e,o.name),RC(e,96);const r=tj(o.initializer,C,_u);BC(r,3168);const i=t.createAssignment(e,r);OP(i,o),RC(i,3072);const a=t.createBlock([t.createExpressionStatement(i)]);OP(a,o),RC(a,3905);const s=t.createTypeCheck(t.cloneNode(o.name),"undefined"),c=t.createIfStatement(s,a);QF(c),OP(c,o),RC(c,2101056),n=Se(n,c)}}else if(65536&o.transformFlags){i=!0;const r=mJ(o,C,e,1,t.getGeneratedNameForNode(o),!1,!0);if(_e(r)){const e=t.createVariableDeclarationList(r),i=t.createVariableStatement(void 0,e);RC(i,2097152),n=Se(n,i)}}return n}function H(e){return 106===e.expression.kind?OP(t.createPropertyAccessExpression(t.createUniqueName("_super",48),e.name),e):e}function $(e){return 106===e.expression.kind?(n=e.argumentExpression,r=e,OP(256&v?t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[n]),"value"):t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[n]),r)):e;var n,r}}var UJ=b({"src/compiler/transformers/es2018.ts"(){XK()}});function qJ(e){const t=e.factory;return Rj(e,(function(t){return t.isDeclarationFile?t:uj(t,n,e)}));function n(r){return 0==(64&r.transformFlags)?r:295===r.kind?function(r){return r.variableDeclaration?uj(r,n,e):t.updateCatchClause(r,t.createVariableDeclaration(t.createTempVariable(void 0)),tj(r.block,n,cE))}(r):uj(r,n,e)}}var VJ=b({"src/compiler/transformers/es2019.ts"(){XK()}});function QJ(e){const{factory:t,hoistVariableDeclaration:n}=e;return Rj(e,(function(t){return t.isDeclarationFile?t:uj(t,r,e)}));function r(i){if(0==(32&i.transformFlags))return i;switch(i.kind){case 210:{const e=o(i,!1);return In.assertNotNode(e,eN),e}case 208:case 209:if(M_(i)){const e=s(i,!1,!1);return In.assertNotNode(e,eN),e}return uj(i,r,e);case 223:return 60===i.operatorToken.kind?function(e){let i=tj(e.left,r,_u),o=i;return Vj(i)||(o=t.createTempVariable(n),i=t.createAssignment(o,i)),OP(t.createConditionalExpression(c(i,o),void 0,o,void 0,tj(e.right,r,_u)),e)}(i):uj(i,r,e);case 217:return function(e){return M_(Hh(e.expression))?PC(a(e.expression,!1,!0),e):t.updateDeleteExpression(e,tj(e.expression,r,_u))}(i);default:return uj(i,r,e)}}function i(e,n,r){const i=a(e.expression,n,r);return eN(i)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(e,i.expression),i.thisArg):t.updateParenthesizedExpression(e,i)}function o(n,o){if(M_(n))return s(n,o,!1);if(MD(n.expression)&&M_(Hh(n.expression))){const e=i(n.expression,!0,!1),o=nj(n.arguments,r,_u);return eN(e)?OP(t.createFunctionCallCall(e.expression,e.thisArg,o),n):t.updateCallExpression(n,e,void 0,o)}return uj(n,r,e)}function a(e,a,c){switch(e.kind){case 214:return i(e,a,c);case 208:case 209:return function(e,i,o){if(M_(e))return s(e,i,o);let a,c=tj(e.expression,r,_u);return In.assertNotNode(c,eN),i&&(Vj(c)?a=c:(a=t.createTempVariable(n),c=t.createAssignment(a,c))),c=208===e.kind?t.updatePropertyAccessExpression(e,c,tj(e.name,r,Tw)):t.updateElementAccessExpression(e,c,tj(e.argumentExpression,r,_u)),a?t.createSyntheticReferenceExpression(c,a):c}(e,a,c);case 210:return o(e,a);default:return tj(e,r,_u)}}function s(e,i,o){const{expression:s,chain:_}=function(e){In.assertNotNode(e,q_);const t=[e];for(;!e.questionDotToken&&!OD(e);)e=kt(U_(e.expression),M_),In.assertNotNode(e,q_),t.unshift(e);return{expression:e.expression,chain:t}}(e),l=a(U_(s),L_(_[0]),!1);let u=eN(l)?l.thisArg:void 0,d=eN(l)?l.expression:l,p=t.restoreOuterExpressions(s,d,8);Vj(d)||(d=t.createTempVariable(n),p=t.createAssignment(d,p));let f,m=d;for(let e=0;e<_.length;e++){const o=_[e];switch(o.kind){case 208:case 209:e===_.length-1&&i&&(Vj(m)?f=m:(f=t.createTempVariable(n),m=t.createAssignment(f,m))),m=208===o.kind?t.createPropertyAccessExpression(m,tj(o.name,r,Tw)):t.createElementAccessExpression(m,tj(o.argumentExpression,r,_u));break;case 210:0===e&&u?(dl(u)||(u=t.cloneNode(u),BC(u,3072)),m=t.createFunctionCallCall(m,106===u.kind?t.createThis():u,nj(o.arguments,r,_u))):m=t.createCallExpression(m,void 0,nj(o.arguments,r,_u))}PC(m,o)}const g=o?t.createConditionalExpression(c(p,d,!0),void 0,t.createTrue(),void 0,t.createDeleteExpression(m)):t.createConditionalExpression(c(p,d,!0),void 0,t.createVoidZero(),void 0,m);return OP(g,e),f?t.createSyntheticReferenceExpression(g,f):g}function c(e,n,r){return t.createBinaryExpression(t.createBinaryExpression(e,t.createToken(r?36:37),t.createNull()),t.createToken(r?56:55),t.createBinaryExpression(n,t.createToken(r?36:37),t.createVoidZero()))}}var KJ=b({"src/compiler/transformers/es2020.ts"(){XK()}});function WJ(e){const{hoistVariableDeclaration:t,factory:n}=e;return Rj(e,(function(t){return t.isDeclarationFile?t:uj(t,r,e)}));function r(i){return 0==(16&i.transformFlags)?i:Fb(i)?function(e){const i=Wj(e.operatorToken.kind);let o=Hh(tj(e.left,r,ru)),a=o;const s=Hh(tj(e.right,r,_u));if(Yx(o)){const e=Vj(o.expression),r=e?o.expression:n.createTempVariable(t),i=e?o.expression:n.createAssignment(r,o.expression);if(ND(o))a=n.createPropertyAccessExpression(r,o.name),o=n.createPropertyAccessExpression(i,o.name);else{const e=Vj(o.argumentExpression),s=e?o.argumentExpression:n.createTempVariable(t);a=n.createElementAccessExpression(r,s),o=n.createElementAccessExpression(i,e?o.argumentExpression:n.createAssignment(s,o.argumentExpression))}}return n.createBinaryExpression(o,i,n.createParenthesizedExpression(n.createAssignment(a,s)))}(i):uj(i,r,e)}}var HJ=b({"src/compiler/transformers/es2021.ts"(){XK()}});function $J(e){return Rj(e,(function(n){return n.isDeclarationFile?n:uj(n,t,e)}));function t(n){return 0==(4&n.transformFlags)?n:(n.kind,uj(n,t,e))}}var GJ,XJ=b({"src/compiler/transformers/esnext.ts"(){XK()}});function YJ(e){const{factory:t,getEmitHelperFactory:n}=e,i=e.getCompilerOptions();let o,a;return Rj(e,(function(n){if(n.isDeclarationFile)return n;o=n,a={},a.importSpecifier=dS(i,n);let r=uj(n,_,e);oA(r,e.readEmitHelpers());let s=r.statements;if(a.filenameDeclaration&&(s=Qp(s.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([a.filenameDeclaration],2)))),a.utilizedImplicitRuntimeImports)for(const[e,r]of Ze(a.utilizedImplicitRuntimeImports.entries()))if(wI(n)){const n=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(Ze(r.values()))),t.createStringLiteral(e),void 0);TT(n,!1),s=Qp(s.slice(),n)}else if(em(n)){const n=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Ze(r.values(),(e=>t.createBindingElement(void 0,e.propertyName,e.name)))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(e)]))],2));TT(n,!1),s=Qp(s.slice(),n)}return s!==r.statements&&(r=t.updateSourceFile(r,s)),a=void 0,r}));function s(){if(a.filenameDeclaration)return a.filenameDeclaration.name;const e=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(o.fileName));return a.filenameDeclaration=e,a.filenameDeclaration.name}function c(e){var n,r;const o="createElement"===e?a.importSpecifier:pS(a.importSpecifier,i),s=null==(r=null==(n=a.utilizedImplicitRuntimeImports)?void 0:n.get(o))?void 0:r.get(e);if(s)return s.name;a.utilizedImplicitRuntimeImports||(a.utilizedImplicitRuntimeImports=new Map);let c=a.utilizedImplicitRuntimeImports.get(o);c||(c=new Map,a.utilizedImplicitRuntimeImports.set(o,c));const _=t.createUniqueName("_"+e,112),l=t.createImportSpecifier(!1,t.createIdentifier(e),_);return yA(_,l),c.set(e,l),_}function _(t){return 2&t.transformFlags?function(t){switch(t.kind){case 281:return d(t,!1);case 282:return p(t,!1);case 285:return f(t,!1);case 291:return E(t);default:return uj(t,_,e)}}(t):t}function l(e){switch(e.kind){case 11:return function(e){const n=function(e){let t,n=0,r=-1;for(let i=0;i!!e.name&&Tw(e.name)&&"key"===e.name.escapedText)),_=c?z(e.attributes.properties,(e=>e!==c)):e.attributes.properties;return h(a,S(_)?x(_,s):t.createObjectLiteralExpression(s?[s]:r),c,n||r,i,o)}function h(e,n,r,a,_,l){var u;const d=Zy(a),p=S(d)>1||!!(null==(u=d[0])?void 0:u.dotDotDotToken),f=[e,n];if(r&&f.push(C(r.initializer)),5===i.jsx){const e=Dc(o);if(e&&TN(e)){void 0===r&&f.push(t.createVoidZero()),f.push(p?t.createTrue():t.createFalse());const n=ys(e,l.pos);f.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",s()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(n.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(n.character+1))])),f.push(t.createThis())}}const m=OP(t.createCallExpression(function(e){const t=function(e){return 5===i.jsx?"jsxDEV":e?"jsxs":"jsx"}(e);return c(t)}(p),void 0,f),l);return _&&QF(m),m}function y(n,r,s,_){const u=D(n),d=n.attributes.properties,p=S(d)?x(d):t.createNull(),f=void 0===a.importSpecifier?kF(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,n):c("createElement"),m=SF(t,f,u,p,Z(r,l),_);return s&&QF(m),m}function v(e,n,r,i){let o;if(n&&n.length){const e=function(e){const n=m(e);return n&&t.createObjectLiteralExpression([n])}(n);e&&(o=e)}return h(c("Fragment"),o||t.createObjectLiteralExpression([]),void 0,n,r,i)}function b(n,r,a,s){const c=TF(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,Z(r,l),n,s);return a&&QF(c),c}function x(e,r){const o=Rk(i);return o&&o>=5?t.createObjectLiteralExpression(function(e,n){const r=W(se(e,pN,((e,n)=>V(e,(e=>{return n?(r=e,t.createSpreadAssignment(In.checkDefined(tj(r.expression,_,_u)))):T(e);var r})))));return n&&r.push(n),r}(e,r)):function(e,r){const i=W(se(e,pN,((e,n)=>n?V(e,k):t.createObjectLiteralExpression(V(e,T)))));return pN(e[0])&&i.unshift(t.createObjectLiteralExpression()),r&&i.push(t.createObjectLiteralExpression([r])),Je(i)||n().createAssignHelper(i)}(e,r)}function k(e){return In.checkDefined(tj(e.expression,_,_u))}function T(e){const n=function(e){const n=e.name,r=Oc(n);return/^[A-Za-z_]\w*$/.test(r)?n:t.createStringLiteral(r)}(e),r=C(e.initializer);return t.createPropertyAssignment(n,r)}function C(e){if(void 0===e)return t.createTrue();if(10===e.kind){const n=void 0!==e.singleQuote?e.singleQuote:!Lg(e,o);return OP(t.createStringLiteral(function(e){const t=w(e);return t===e?void 0:t}(e.text)||e.text,n),e)}return 291===e.kind?void 0===e.expression?t.createTrue():In.checkDefined(tj(e.expression,_,_u)):iN(e)?d(e,!1):oN(e)?p(e,!1):cN(e)?f(e,!1):In.failBadSyntaxKind(e)}function A(e,t){const n=w(t);return void 0===e?n:e+" "+n}function w(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,((e,t,n,r,i,o,a)=>{if(i)return Ks(parseInt(i,10));if(o)return Ks(parseInt(o,16));{const t=GJ.get(a);return t?Ks(t):e}}))}function D(e){if(281===e.kind)return D(e.openingElement);{const n=e.tagName;return Tw(n)&&_v(n.escapedText)?t.createStringLiteral(Oc(n)):wF(t,n)}}function E(e){const n=tj(e.expression,_,_u);return e.dotDotDotToken?t.createSpreadElement(n):n}}var ZJ=b({"src/compiler/transformers/jsx.ts"(){XK(),GJ=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}});function ez(e){const{factory:t,hoistVariableDeclaration:n}=e;return Rj(e,(function(t){return t.isDeclarationFile?t:uj(t,r,e)}));function r(i){return 0==(512&i.transformFlags)?i:223===i.kind?function(i){switch(i.operatorToken.kind){case 67:return function(e){let i,o;const a=tj(e.left,r,_u),s=tj(e.right,r,_u);if(FD(a)){const e=t.createTempVariable(n),r=t.createTempVariable(n);i=OP(t.createElementAccessExpression(OP(t.createAssignment(e,a.expression),a.expression),OP(t.createAssignment(r,a.argumentExpression),a.argumentExpression)),a),o=OP(t.createElementAccessExpression(e,r),a)}else if(ND(a)){const e=t.createTempVariable(n);i=OP(t.createPropertyAccessExpression(OP(t.createAssignment(e,a.expression),a.expression),a.name),a),o=OP(t.createPropertyAccessExpression(e,a.name),a)}else i=a,o=a;return OP(t.createAssignment(i,OP(t.createGlobalMethodCall("Math","pow",[o,s]),e)),e)}(i);case 42:return function(e){const n=tj(e.left,r,_u),i=tj(e.right,r,_u);return OP(t.createGlobalMethodCall("Math","pow",[n,i]),e)}(i);default:return uj(i,r,e)}}(i):uj(i,r,e)}}var tz=b({"src/compiler/transformers/es2016.ts"(){XK()}});function nz(e,t){return{kind:e,expression:t}}function rz(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:a,hoistVariableDeclaration:c}=e,_=e.getCompilerOptions(),l=e.getEmitResolver(),u=e.onSubstituteNode,d=e.onEmitNode;let p,f,m,g,h,y;function v(e){g=Se(g,t.createVariableDeclaration(e))}return e.onEmitNode=function(e,t,n){if(1&y&&Sl(t)){const r=b(32670,16&rf(t)?81:65);return d(e,t,n),void x(r,0,0)}d(e,t,n)},e.onSubstituteNode=function(e,n){return n=u(e,n),1===e?function(e){switch(e.kind){case 79:return function(e){if(2&y&&!FF(e)){const n=l.getReferencedDeclarationWithCollidingName(e);if(n&&(!Fl(n)||!function(e,t){let n=Fc(t);if(!n||n===e||n.end<=e.pos||n.pos>=e.end)return!1;const r=If(e);for(;n;){if(n===r||n===e)return!1;if(Nl(n)&&n.parent===e)return!0;n=n.parent}return!1}(n,e)))return OP(t.getGeneratedNameForNode(qc(n)),e)}return e}(e);case 108:return function(e){return 1&y&&16&m?OP(t.createUniqueName("_this",48),e):e}(e)}return e}(n):Tw(n)?function(e){if(2&y&&!FF(e)){const n=Fc(e,Tw);if(n&&function(e){switch(e.parent.kind){case 205:case 260:case 263:case 257:return e.parent.name===e&&l.isDeclarationWithCollidingName(e.parent)}return!1}(n))return OP(t.getGeneratedNameForNode(n),e)}return e}(n):n},Rj(e,(function(n){if(n.isDeclarationFile)return n;p=n,f=n.text;const r=function(e){const n=b(8064,64),r=[],o=[];i();const s=t.copyPrologue(e.statements,r,!1,T);return Ae(o,nj(e.statements,T,Iu,s)),g&&o.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(g))),t.mergeLexicalEnvironment(r,a()),J(r,e),x(n,0,0),t.updateSourceFile(e,OP(t.createNodeArray(ue(r,o)),e.statements))}(n);return oA(r,e.readEmitHelpers()),p=void 0,f=void 0,g=void 0,m=0,r}));function b(e,t){const n=m;return m=32767&(m&~e|t),n}function x(e,t,n){m=-32768&(m&~t|n)|e}function k(e){return 0!=(8192&m)&&250===e.kind&&!e.expression}function S(e){return 0!=(1024&e.transformFlags)||void 0!==h||8192&m&&function(e){return 4194304&e.transformFlags&&(bE(e)||dE(e)||xE(e)||kE(e)||ME(e)||mN(e)||gN(e)||CE(e)||yN(e)||SE(e)||du(e,!1)||cE(e))}(e)||du(e,!1)&&ve(e)||0!=(1&of(e))}function T(e){return S(e)?D(e,!1):e}function C(e){return S(e)?D(e,!0):e}function A(e){if(S(e)){const t=Dc(e);if(Qw(t)&&lb(t)){const t=b(32670,16449),n=D(e,!1);return x(t,98304,0),n}return D(e,!1)}return e}function w(e){return 106===e.kind?We(!0):T(e)}function D(n,r){switch(n.kind){case 124:return;case 260:return function(e){const n=t.createVariableDeclaration(t.getLocalName(e,!0),void 0,void 0,F(e));PC(n,e);const r=[],i=t.createVariableStatement(void 0,t.createVariableDeclarationList([n]));if(PC(i,e),OP(i,e),QF(i),r.push(i),cb(e,1)){const n=cb(e,1024)?t.createExportDefault(t.getLocalName(e)):t.createExternalModuleExport(t.getLocalName(e));PC(n,i),r.push(n)}const o=rf(e);return 0==(8388608&o)&&(r.push(t.createEndOfDeclarationMarker(e)),RC(i,8388608|o)),Ue(r)}(n);case 228:return function(e){return F(e)}(n);case 166:return function(e){return e.dotDotDotToken?void 0:Ul(e.name)?PC(OP(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e),void 0,void 0,void 0),e),e):e.initializer?PC(OP(t.createParameterDeclaration(void 0,void 0,e.name,void 0,void 0,void 0),e),e):e}(n);case 259:return function(n){const r=h;h=void 0;const i=b(32670,65),o=aj(n.parameters,T,e),a=X(n),s=32768&m?t.getLocalName(n):n.name;return x(i,98304,0),h=r,t.updateFunctionDeclaration(n,nj(n.modifiers,T,vl),n.asteriskToken,s,void 0,o,void 0,a)}(n);case 216:return function(n){16384&n.transformFlags&&!(16384&m)&&(m|=65536);const r=h;h=void 0;const i=b(15232,66),o=t.createFunctionExpression(void 0,void 0,void 0,void 0,aj(n.parameters,T,e),void 0,X(n));return OP(o,n),PC(o,n),RC(o,16),x(i,0,0),h=r,o}(n);case 215:return function(n){const r=524288&rf(n)?b(32662,69):b(32670,65),i=h;h=void 0;const o=aj(n.parameters,T,e),a=X(n),s=32768&m?t.getLocalName(n):n.name;return x(r,98304,0),h=i,t.updateFunctionExpression(n,void 0,n.asteriskToken,s,void 0,o,void 0,a)}(n);case 257:return ee(n);case 79:return N(n);case 258:return function(n){if(3&n.flags||524288&n.transformFlags){3&n.flags&&He();const e=nj(n.declarations,1&n.flags?Z:ee,wE),r=t.createVariableDeclarationList(e);return PC(r,n),OP(r,n),HC(r,n),524288&n.transformFlags&&(Ul(n.declarations[0].name)||Ul(je(n.declarations).name))&&UC(r,function(e){let t=-1,n=-1;for(const r of e)t=-1===t?r.pos:-1===r.pos?t:Math.min(t,r.pos),n=Math.max(n,r.end);return sx(t,n)}(e)),r}return uj(n,T,e)}(n);case 252:return function(t){if(void 0!==h){const n=h.allowedNonLabeledJumps;h.allowedNonLabeledJumps|=2;const r=uj(t,T,e);return h.allowedNonLabeledJumps=n,r}return uj(t,T,e)}(n);case 266:return function(t){const n=b(7104,0),r=uj(t,T,e);return x(n,0,0),r}(n);case 238:return function(t,n){const r=256&m?b(7104,512):b(6976,128),i=uj(t,T,e);return x(r,0,0),i}(n);case 249:case 248:return function(n){if(h){const e=249===n.kind?2:4;if(!(n.label&&h.labels&&h.labels.get(Oc(n.label))||!n.label&&h.allowedNonLabeledJumps&e)){let e;const r=n.label;r?249===n.kind?(e="break-"+r.escapedText,Ee(h,!0,Oc(r),e)):(e="continue-"+r.escapedText,Ee(h,!1,Oc(r),e)):249===n.kind?(h.nonLocalJumps|=2,e="break"):(h.nonLocalJumps|=4,e="continue");let i=t.createStringLiteral(e);if(h.loopOutParameters.length){const e=h.loopOutParameters;let n;for(let r=0;r_E(e)&&!!Me(e.declarationList.declarations).initializer,i=h;h=void 0;const o=nj(n.statements,A,Iu);h=i;const a=z(o,r),c=z(o,(e=>!r(e))),_=kt(Me(a),_E).declarationList.declarations[0],l=UF(_.initializer);let u=xt(l,Rb);!u&&QD(l)&&27===l.operatorToken.kind&&(u=xt(l.left,Rb));const d=kt(u?UF(u.right):l,PD),p=kt(UF(d.expression),RD),f=p.body.statements;let m=0,g=-1;const y=[];if(u){const e=xt(f[m],uE);e&&(y.push(e),m++),y.push(f[m]),m++,y.push(t.createExpressionStatement(t.createAssignment(u.left,kt(_.name,Tw))))}for(;!bE(s(f,g));)g--;Ae(y,f,m,g),g<-1&&Ae(y,f,g+1);const v=xt(s(f,g),bE);for(const e of c)bE(e)&&(null==v?void 0:v.expression)&&!Tw(v.expression)?y.push(v):y.push(e);return Ae(y,a,1),t.restoreOuterExpressions(e.expression,t.restoreOuterExpressions(_.initializer,t.restoreOuterExpressions(u&&u.right,t.updateCallExpression(d,t.restoreOuterExpressions(d.expression,t.updateFunctionExpression(p,void 0,void 0,void 0,void 0,p.parameters,void 0,t.updateBlock(p.body,y))),void 0,d.arguments))))}(e);const n=UF(e.expression);return 106===n.kind||Zm(n)||_e(e.arguments,$D)?Re(e,!0):t.updateCallExpression(e,In.checkDefined(tj(e.expression,w,_u)),void 0,nj(e.arguments,T,_u))}(n);case 211:return function(n){if(_e(n.arguments,$D)){const{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,"bind"),c);return t.createNewExpression(t.createFunctionApplyCall(In.checkDefined(tj(e,T,_u)),r,ze(t.createNodeArray([t.createVoidZero(),...n.arguments]),!0,!1,!1)),void 0,[])}return uj(n,T,e)}(n);case 214:return function(t,n){return uj(t,n?C:T,e)}(n,r);case 223:return Y(n,r);case 357:return function(n,r){if(r)return uj(n,C,e);let i;for(let e=0;e0&&e.push(t.createStringLiteral(r.literal.text)),n=t.createCallExpression(t.createPropertyAccessExpression(n,"concat"),void 0,e)}return OP(n,e)}(n);case 227:return function(e){return tj(e.expression,T,_u)}(n);case 106:return We(!1);case 108:return function(e){return 2&m&&!(16384&m)&&(m|=65536),h?2&m?(h.containsLexicalThis=!0,e):h.thisName||(h.thisName=t.createUniqueName("this")):e}(n);case 233:return function(e){return 103===e.keywordToken&&"target"===e.name.escapedText?(m|=32768,t.createUniqueName("_newTarget",48)):e}(n);case 171:return function(e){In.assert(!Jw(e.name));const n=G(e,_x(e,-1),void 0,void 0);return RC(n,1024|rf(n)),OP(t.createPropertyAssignment(e.name,n),e)}(n);case 174:case 175:return function(n){In.assert(!Jw(n.name));const r=h;h=void 0;const i=b(32670,65);let o;const a=aj(n.parameters,T,e),s=X(n);return o=174===n.kind?t.updateGetAccessorDeclaration(n,n.modifiers,n.name,a,n.type,s):t.updateSetAccessorDeclaration(n,n.modifiers,n.name,a,s),x(i,98304,0),h=r,o}(n);case 240:return function(n){const r=b(0,cb(n,1)?32:0);let i;if(h&&0==(3&n.declarationList.flags)&&!function(e){return 1===e.declarationList.declarations.length&&!!e.declarationList.declarations[0].initializer&&!!(1&of(e.declarationList.declarations[0].initializer))}(n)){let r;for(const i of n.declarationList.declarations)if(ke(h,i),i.initializer){let n;Ul(i.name)?n=dJ(i,T,e,0):(n=t.createBinaryExpression(i.name,63,In.checkDefined(tj(i.initializer,T,_u))),OP(n,i)),r=Se(r,n)}i=r?OP(t.createExpressionStatement(t.inlineExpressions(r)),n):void 0}else i=uj(n,T,e);return x(r,0,0),i}(n);case 250:return function(n){return h?(h.nonLocalJumps|=8,k(n)&&(n=E(n)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),n.expression?In.checkDefined(tj(n.expression,T,_u)):t.createVoidZero())]))):k(n)?E(n):uj(n,T,e)}(n);default:return uj(n,T,e)}}function E(e){return PC(t.createReturnStatement(t.createUniqueName("_this",48)),e)}function N(e){return h&&l.isArgumentsLocalBinding(e)?h.argumentsName||(h.argumentsName=t.createUniqueName("arguments")):128&e.flags?PC(OP(t.createIdentifier(Ic(e.escapedText)),e),e):e}function F(s){s.name&&He();const c=cy(s),_=t.createFunctionExpression(void 0,void 0,void 0,void 0,c?[t.createParameterDeclaration(void 0,void 0,t.createUniqueName("_super",48))]:[],void 0,function(s,c){const _=[],l=t.getInternalName(s),u=by(l)?t.getGeneratedNameForNode(l):l;i(),function(e,r,i){i&&e.push(OP(t.createExpressionStatement(n().createExtendsHelper(t.getInternalName(r))),i))}(_,s,c),function(n,i,s,c){const _=h;h=void 0;const l=b(32662,73),u=Rv(i),d=function(e,t){if(!e||!t)return!1;if(_e(e.parameters))return!1;const n=Oe(e.body.statements);if(!n||!Qy(n)||241!==n.kind)return!1;const r=n.expression;if(!Qy(r)||210!==r.kind)return!1;const i=r.expression;if(!Qy(i)||106!==i.kind)return!1;const o=Je(r.arguments);if(!o||!Qy(o)||227!==o.kind)return!1;const a=o.expression;return Tw(a)&&"arguments"===a.escapedText}(u,void 0!==c),p=t.createFunctionDeclaration(void 0,void 0,s,void 0,function(t,n){return aj(t&&!n?t.parameters:void 0,T,e)||[]}(u,d),void 0,function(e,n,i,s){const c=!!i&&104!==UF(i.expression).kind;if(!e)return function(e,n){const r=[];o(),t.mergeLexicalEnvironment(r,a()),n&&r.push(t.createReturnStatement(O()));const i=t.createNodeArray(r);OP(i,e.members);const s=t.createBlock(i,!0);return OP(s,e),RC(s,3072),s}(n,c);const _=[],l=[];o();const u=Dn(e.body.statements,lm),{superCall:d,superStatementIndex:p}=function(e,t){for(let n=t.length;n0?(Qp(n,RC(t.createVariableStatement(void 0,t.createVariableDeclarationList(mJ(r,T,e,0,t.getGeneratedNameForNode(r)))),2097152)),!0):!!o&&(Qp(n,RC(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(r),In.checkDefined(tj(o,T,_u)))),2097152)),!0)}function B(e,n,r,i){i=In.checkDefined(tj(i,T,_u));const o=t.createIfStatement(t.createTypeCheck(t.cloneNode(r),"undefined"),RC(OP(t.createBlock([t.createExpressionStatement(RC(OP(t.createAssignment(RC(kT(OP(t.cloneNode(r),r),r.parent),96),RC(i,3168|rf(i))),n),3072))]),n),3905));QF(o),OP(o,n),RC(o,2101056),Qp(e,o)}function j(n,r,i){const o=[],a=Be(r.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(a,i))return!1;const s=79===a.name.kind?kT(OP(t.cloneNode(a.name),a.name),a.name.parent):t.createTempVariable(void 0);RC(s,96);const c=79===a.name.kind?t.cloneNode(a.name):s,_=r.parameters.length-1,l=t.createLoopVariable();o.push(RC(OP(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(s,void 0,void 0,t.createArrayLiteralExpression([]))])),a),2097152));const u=t.createForStatement(OP(t.createVariableDeclarationList([t.createVariableDeclaration(l,void 0,void 0,t.createNumericLiteral(_))]),a),OP(t.createLessThan(l,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),a),OP(t.createPostfixIncrement(l),a),t.createBlock([QF(OP(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(c,0===_?l:t.createSubtract(l,t.createNumericLiteral(_))),t.createElementAccessExpression(t.createIdentifier("arguments"),l))),a))]));return RC(u,2097152),QF(u),o.push(u),79!==a.name.kind&&o.push(RC(OP(t.createVariableStatement(void 0,t.createVariableDeclarationList(mJ(a,T,e,0,c))),a),2097152)),qp(n,o),!0}function J(e,n){return!!(65536&m&&216!==n.kind)&&(U(e,n,t.createThis()),!0)}function U(e,n,r){$e();const i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_this",48),void 0,void 0,r)]));RC(i,2100224),UC(i,n),Qp(e,i)}function q(e,n,r){if(32768&m){let i;switch(n.kind){case 216:return e;case 171:case 174:case 175:i=t.createVoidZero();break;case 173:i=t.createPropertyAccessExpression(RC(t.createThis(),8),"constructor");break;case 259:case 215:i=t.createConditionalExpression(t.createLogicalAnd(RC(t.createThis(),8),t.createBinaryExpression(RC(t.createThis(),8),102,t.getLocalName(n))),void 0,t.createPropertyAccessExpression(RC(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return In.failBadSyntaxKind(n)}const o=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,i)]));RC(o,2100224),r&&(e=e.slice()),Qp(e,o)}return e}function Q(e){return OP(t.createEmptyStatement(),e)}function K(n,r,i){const o=WC(r),a=zC(r),s=G(r,r,void 0,i),c=tj(r.name,T,xl);let _;if(In.assert(c),!Cw(c)&&aS(e.getCompilerOptions())){const e=Jw(c)?c.expression:Tw(c)?t.createStringLiteral(Ic(c.escapedText)):c;_=t.createObjectDefinePropertyCall(n,e,t.createPropertyDescriptor({value:s,enumerable:!1,writable:!0,configurable:!0}))}else{const e=vF(t,n,c,r.name);_=t.createAssignment(e,s)}RC(s,3072),UC(s,a);const l=OP(t.createExpressionStatement(_),r);return PC(l,r),HC(l,o),RC(l,96),l}function H(e,n,r){const i=t.createExpressionStatement($(e,n,r,!1));return RC(i,3072),UC(i,zC(n.firstAccessor)),i}function $(e,{firstAccessor:n,getAccessor:r,setAccessor:i},o,a){const s=kT(OP(t.cloneNode(e),e),e.parent);RC(s,3136),UC(s,n.name);const c=tj(n.name,T,xl);if(In.assert(c),Cw(c))return In.failBadSyntaxKind(c,"Encountered unhandled private identifier while transforming ES2015.");const _=DF(t,c);RC(_,3104),UC(_,n.name);const l=[];if(r){const e=G(r,void 0,void 0,o);UC(e,zC(r)),RC(e,1024);const n=t.createPropertyAssignment("get",e);HC(n,WC(r)),l.push(n)}if(i){const e=G(i,void 0,void 0,o);UC(e,zC(i)),RC(e,1024);const n=t.createPropertyAssignment("set",e);HC(n,WC(i)),l.push(n)}l.push(t.createPropertyAssignment("enumerable",r||i?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const u=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[s,_,t.createObjectLiteralExpression(l,!0)]);return a&&QF(u),u}function G(n,r,i,o){const a=h;h=void 0;const s=o&&Fl(o)&&!_b(n)?b(32670,73):b(32670,65),c=aj(n.parameters,T,e),_=X(n);return 32768&m&&!i&&(259===n.kind||215===n.kind)&&(i=t.getGeneratedNameForNode(n)),x(s,98304,0),h=a,PC(OP(t.createFunctionExpression(void 0,n.asteriskToken,i,void 0,c,void 0,_),r),n)}function X(e){let n,r,i=!1,s=!1;const c=[],_=[],l=e.body;let u;if(o(),cE(l)&&(u=t.copyStandardPrologue(l.statements,c,0,!1),u=t.copyCustomPrologue(l.statements,_,u,T,dm),u=t.copyCustomPrologue(l.statements,_,u,T,fm)),i=M(_,e)||i,i=j(_,e,!1)||i,cE(l))u=t.copyCustomPrologue(l.statements,_,u,T),n=l.statements,Ae(_,nj(l.statements,T,Iu,u)),!i&&l.multiLine&&(i=!0);else{In.assert(216===e.kind),n=cx(l,-1);const o=e.equalsGreaterThanToken;Qy(o)||Qy(l)||(yx(o,l,p)?s=!0:i=!0);const a=tj(l,T,_u),c=t.createReturnStatement(a);OP(c,l),tA(c,l),RC(c,2880),_.push(c),r=l}if(t.mergeLexicalEnvironment(c,a()),q(c,e,!1),J(c,e),_e(c)&&(i=!0),_.unshift(...c),cE(l)&&be(_,l.statements))return l;const d=t.createBlock(OP(t.createNodeArray(_),n),i);return OP(d,e.body),!i&&s&&RC(d,1),r&&VC(d,19,r),PC(d,e.body),d}function Y(n,r){return jb(n)?dJ(n,T,e,0,!r):27===n.operatorToken.kind?t.updateBinaryExpression(n,In.checkDefined(tj(n.left,C,_u)),n.operatorToken,In.checkDefined(tj(n.right,r?C:T,_u))):uj(n,T,e)}function Z(n){return Ul(n.name)?ee(n):!n.initializer&&function(e){const t=l.getNodeCheckFlags(e),n=16384&t,r=32768&t;return!(0!=(64&m)||n&&r&&0!=(512&m))&&0==(4096&m)&&(!l.isDeclarationWithCollidingName(e)||r&&!n&&0==(6144&m))}(n)?t.updateVariableDeclaration(n,n.name,void 0,void 0,t.createVoidZero()):uj(n,T,e)}function ee(t){const n=b(32,0);let r;return r=Ul(t.name)?mJ(t,T,e,0,void 0,0!=(32&n)):uj(t,T,e),x(n,0,0),r}function te(e){h.labels.set(Oc(e.label),!0)}function ne(e){h.labels.set(Oc(e.label),!1)}function re(n,r,o,s,c){const _=b(n,r),l=function(n,r,o,s){if(!ve(n)){let i;h&&(i=h.allowedNonLabeledJumps,h.allowedNonLabeledJumps=6);const a=s?s(n,r,void 0,o):t.restoreEnclosingLabel(mE(n)?function(e){return t.updateForStatement(e,tj(e.initializer,C,bu),tj(e.condition,T,_u),tj(e.incrementor,C,_u),In.checkDefined(tj(e.statement,T,Iu,t.liftToBlock)))}(n):uj(n,T,e),r,h&&ne);return h&&(h.allowedNonLabeledJumps=i),a}const c=function(e){let t;switch(e.kind){case 245:case 246:case 247:const n=e.initializer;n&&258===n.kind&&(t=n)}const n=[],r=[];if(t&&3&Ac(t)){const i=ge(e)||he(e)||ye(e);for(const o of t.declarations)Fe(e,o,n,r,i)}const i={loopParameters:n,loopOutParameters:r};return h&&(h.argumentsName&&(i.argumentsName=h.argumentsName),h.thisName&&(i.thisName=h.thisName),h.hoistedLocalVariables&&(i.hoistedLocalVariables=h.hoistedLocalVariables)),i}(n),_=[],l=h;h=c;const u=ge(n)?function(e,n){const r=t.createUniqueName("_loop_init"),i=0!=(1048576&e.initializer.transformFlags);let o=0;n.containsLexicalThis&&(o|=16),i&&4&m&&(o|=524288);const a=[];a.push(t.createVariableStatement(void 0,e.initializer)),De(n.loopOutParameters,2,1,a);return{functionName:r,containsYield:i,functionDeclaration:t.createVariableStatement(void 0,RC(t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,RC(t.createFunctionExpression(void 0,i?t.createToken(41):void 0,void 0,void 0,void 0,void 0,In.checkDefined(tj(t.createBlock(a,!0),T,cE))),o))]),4194304)),part:t.createVariableDeclarationList(V(n.loopOutParameters,Ce))}}(n,c):void 0,d=xe(n)?function(e,n,r){const o=t.createUniqueName("_loop");i();const s=tj(e.statement,T,Iu,t.liftToBlock),c=a(),_=[];(he(e)||ye(e))&&(n.conditionVariable=t.createUniqueName("inc"),e.incrementor?_.push(t.createIfStatement(n.conditionVariable,t.createExpressionStatement(In.checkDefined(tj(e.incrementor,T,_u))),t.createExpressionStatement(t.createAssignment(n.conditionVariable,t.createTrue())))):_.push(t.createIfStatement(t.createLogicalNot(n.conditionVariable),t.createExpressionStatement(t.createAssignment(n.conditionVariable,t.createTrue())))),he(e)&&_.push(t.createIfStatement(t.createPrefixUnaryExpression(53,In.checkDefined(tj(e.condition,T,_u))),In.checkDefined(tj(t.createBreakStatement(),T,Iu))))),In.assert(s),cE(s)?Ae(_,s.statements):_.push(s),De(n.loopOutParameters,1,1,_),Up(_,c);const l=t.createBlock(_,!0);cE(s)&&PC(l,s);const u=0!=(1048576&e.statement.transformFlags);let d=1048576;n.containsLexicalThis&&(d|=16),u&&0!=(4&m)&&(d|=524288);const p=t.createVariableStatement(void 0,RC(t.createVariableDeclarationList([t.createVariableDeclaration(o,void 0,void 0,RC(t.createFunctionExpression(void 0,u?t.createToken(41):void 0,void 0,void 0,n.loopParameters,void 0,l),d))]),4194304)),f=function(e,n,r,i){const o=[],a=!(-5&n.nonLocalJumps||n.labeledNonLocalBreaks||n.labeledNonLocalContinues),s=t.createCallExpression(e,void 0,V(n.loopParameters,(e=>e.name))),c=i?t.createYieldExpression(t.createToken(41),RC(s,16777216)):s;if(a)o.push(t.createExpressionStatement(c)),De(n.loopOutParameters,1,0,o);else{const e=t.createUniqueName("state"),i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,c)]));if(o.push(i),De(n.loopOutParameters,1,0,o),8&n.nonLocalJumps){let n;r?(r.nonLocalJumps|=8,n=t.createReturnStatement(e)):n=t.createReturnStatement(t.createPropertyAccessExpression(e,"value")),o.push(t.createIfStatement(t.createTypeCheck(e,"object"),n))}if(2&n.nonLocalJumps&&o.push(t.createIfStatement(t.createStrictEquality(e,t.createStringLiteral("break")),t.createBreakStatement())),n.labeledNonLocalBreaks||n.labeledNonLocalContinues){const i=[];Ne(n.labeledNonLocalBreaks,!0,e,r,i),Ne(n.labeledNonLocalContinues,!1,e,r,i),o.push(t.createSwitchStatement(e,t.createCaseBlock(i)))}}return o}(o,n,r,u);return{functionName:o,containsYield:u,functionDeclaration:p,part:f}}(n,c,l):void 0;let p;if(h=l,u&&_.push(u.functionDeclaration),d&&_.push(d.functionDeclaration),function(e,n,r){let i;if(n.argumentsName&&(r?r.argumentsName=n.argumentsName:(i||(i=[])).push(t.createVariableDeclaration(n.argumentsName,void 0,void 0,t.createIdentifier("arguments")))),n.thisName&&(r?r.thisName=n.thisName:(i||(i=[])).push(t.createVariableDeclaration(n.thisName,void 0,void 0,t.createIdentifier("this")))),n.hoistedLocalVariables)if(r)r.hoistedLocalVariables=n.hoistedLocalVariables;else{i||(i=[]);for(const e of n.hoistedLocalVariables)i.push(t.createVariableDeclaration(e))}if(n.loopOutParameters.length){i||(i=[]);for(const e of n.loopOutParameters)i.push(t.createVariableDeclaration(e.outParamName))}n.conditionVariable&&(i||(i=[]),i.push(t.createVariableDeclaration(n.conditionVariable,void 0,void 0,t.createFalse()))),i&&e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(i)))}(_,c,l),u&&_.push(function(e,n){const r=t.createCallExpression(e,void 0,[]),i=n?t.createYieldExpression(t.createToken(41),RC(r,16777216)):r;return t.createExpressionStatement(i)}(u.functionName,u.containsYield)),d)if(s)p=s(n,r,d.part,o);else{const e=Te(n,u,t.createBlock(d.part,!0));p=t.restoreEnclosingLabel(e,r,h&&ne)}else{const e=Te(n,u,In.checkDefined(tj(n.statement,T,Iu,t.liftToBlock)));p=t.restoreEnclosingLabel(e,r,h&&ne)}return _.push(p),_}(o,s,_,c);return x(_,0,0),l}function ie(e,t){return re(0,1280,e,t)}function oe(e,t){return re(5056,3328,e,t)}function ae(e,t){return re(3008,5376,e,t)}function ce(e,t){return re(3008,5376,e,t,_.downlevelIteration?fe:pe)}function le(n,r,i){const o=[],a=n.initializer;if(DE(a)){3&n.initializer.flags&&He();const i=Oe(a.declarations);if(i&&Ul(i.name)){const a=mJ(i,T,e,0,r),s=OP(t.createVariableDeclarationList(a),n.initializer);PC(s,n.initializer),UC(s,sx(a[0].pos,je(a).end)),o.push(t.createVariableStatement(void 0,s))}else o.push(OP(t.createVariableStatement(void 0,PC(OP(t.createVariableDeclarationList([t.createVariableDeclaration(i?i.name:t.createTempVariable(void 0),void 0,void 0,r)]),_x(a,-1)),a)),cx(a,-1)))}else{const e=t.createAssignment(a,r);jb(e)?o.push(t.createExpressionStatement(Y(e,!0))):(yT(e,a.end),o.push(OP(t.createExpressionStatement(In.checkDefined(tj(e,T,_u))),cx(a,-1))))}if(i)return de(Ae(o,i));{const e=tj(n.statement,T,Iu,t.liftToBlock);return In.assert(e),cE(e)?t.updateBlock(e,OP(t.createNodeArray(ue(o,e.statements)),e.statements)):(o.push(e),de(o))}}function de(e){return RC(t.createBlock(t.createNodeArray(e),!0),864)}function pe(e,n,r){const i=tj(e.expression,T,_u);In.assert(i);const o=t.createLoopVariable(),a=Tw(i)?t.getGeneratedNameForNode(i):t.createTempVariable(void 0);RC(i,96|rf(i));const s=OP(t.createForStatement(RC(OP(t.createVariableDeclarationList([OP(t.createVariableDeclaration(o,void 0,void 0,t.createNumericLiteral(0)),_x(e.expression,-1)),OP(t.createVariableDeclaration(a,void 0,void 0,i),e.expression)]),e.expression),4194304),OP(t.createLessThan(o,t.createPropertyAccessExpression(a,"length")),e.expression),OP(t.createPostfixIncrement(o),e.expression),le(e,t.createElementAccessExpression(a,o),r)),e);return RC(s,512),OP(s,e),t.restoreEnclosingLabel(s,n,h&&ne)}function fe(e,r,i,o){const a=tj(e.expression,T,_u);In.assert(a);const s=Tw(a)?t.getGeneratedNameForNode(a):t.createTempVariable(void 0),_=Tw(a)?t.getGeneratedNameForNode(s):t.createTempVariable(void 0),l=t.createUniqueName("e"),u=t.getGeneratedNameForNode(l),d=t.createTempVariable(void 0),p=OP(n().createValuesHelper(a),e.expression),f=t.createCallExpression(t.createPropertyAccessExpression(s,"next"),void 0,[]);c(l),c(d);const m=1024&o?t.inlineExpressions([t.createAssignment(l,t.createVoidZero()),p]):p,g=RC(OP(t.createForStatement(RC(OP(t.createVariableDeclarationList([OP(t.createVariableDeclaration(s,void 0,void 0,m),e.expression),t.createVariableDeclaration(_,void 0,void 0,f)]),e.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression(_,"done")),t.createAssignment(_,f),le(e,t.createPropertyAccessExpression(_,"value"),i)),e),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(g,r,h&&ne)]),t.createCatchClause(t.createVariableDeclaration(u),RC(t.createBlock([t.createExpressionStatement(t.createAssignment(l,t.createObjectLiteralExpression([t.createPropertyAssignment("error",u)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([RC(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(_,t.createLogicalNot(t.createPropertyAccessExpression(_,"done"))),t.createAssignment(d,t.createPropertyAccessExpression(s,"return"))),t.createExpressionStatement(t.createFunctionCallCall(d,s,[]))),1)]),void 0,RC(t.createBlock([RC(t.createIfStatement(l,t.createThrowStatement(t.createPropertyAccessExpression(l,"error"))),1)]),1))]))}function me(e){return 0!=(8192&l.getNodeCheckFlags(e))}function ge(e){return mE(e)&&!!e.initializer&&me(e.initializer)}function he(e){return mE(e)&&!!e.condition&&me(e.condition)}function ye(e){return mE(e)&&!!e.incrementor&&me(e.incrementor)}function ve(e){return xe(e)||ge(e)}function xe(e){return 0!=(4096&l.getNodeCheckFlags(e))}function ke(e,t){e.hoistedLocalVariables||(e.hoistedLocalVariables=[]),function t(n){if(79===n.kind)e.hoistedLocalVariables.push(n);else for(const e of n.elements)XD(e)||t(e.name)}(t.name)}function Te(e,n,r){switch(e.kind){case 245:return function(e,n,r){const i=e.condition&&me(e.condition),o=i||e.incrementor&&me(e.incrementor);return t.updateForStatement(e,tj(n?n.part:e.initializer,C,bu),tj(i?void 0:e.condition,T,_u),tj(o?void 0:e.incrementor,C,_u),r)}(e,n,r);case 246:return function(e,n){return t.updateForInStatement(e,In.checkDefined(tj(e.initializer,T,bu)),In.checkDefined(tj(e.expression,T,_u)),n)}(e,r);case 247:return function(e,n){return t.updateForOfStatement(e,void 0,In.checkDefined(tj(e.initializer,T,bu)),In.checkDefined(tj(e.expression,T,_u)),n)}(e,r);case 243:return function(e,n){return t.updateDoStatement(e,n,In.checkDefined(tj(e.expression,T,_u)))}(e,r);case 244:return function(e,n){return t.updateWhileStatement(e,In.checkDefined(tj(e.expression,T,_u)),n)}(e,r);default:return In.failBadSyntaxKind(e,"IterationStatement expected")}}function Ce(e){return t.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function we(e,n){const r=0===n?e.outParamName:e.originalName,i=0===n?e.originalName:e.outParamName;return t.createBinaryExpression(i,63,r)}function De(e,n,r,i){for(const o of e)o.flags&n&&i.push(t.createExpressionStatement(we(o,r)))}function Ee(e,t,n,r){t?(e.labeledNonLocalBreaks||(e.labeledNonLocalBreaks=new Map),e.labeledNonLocalBreaks.set(n,r)):(e.labeledNonLocalContinues||(e.labeledNonLocalContinues=new Map),e.labeledNonLocalContinues.set(n,r))}function Ne(e,n,r,i,o){e&&e.forEach(((e,a)=>{const s=[];if(!i||i.labels&&i.labels.get(a)){const e=t.createIdentifier(a);s.push(n?t.createBreakStatement(e):t.createContinueStatement(e))}else Ee(i,n,a,e),s.push(t.createReturnStatement(r));o.push(t.createCaseClause(t.createStringLiteral(e),s))}))}function Fe(e,n,r,i,o){const a=n.name;if(Ul(a))for(const t of a.elements)XD(t)||Fe(e,t,r,i,o);else{r.push(t.createParameterDeclaration(void 0,void 0,a));const s=l.getNodeCheckFlags(n);if(262144&s||o){const r=t.createUniqueName("out_"+Oc(a));let o=0;262144&s&&(o|=1),mE(e)&&(e.initializer&&l.isBindingCapturedByNode(e.initializer,n)&&(o|=2),(e.condition&&l.isBindingCapturedByNode(e.condition,n)||e.incrementor&&l.isBindingCapturedByNode(e.incrementor,n))&&(o|=1)),i.push({flags:o,originalName:a,outParamName:r})}}}function Pe(e,n,r){const i=t.createAssignment(vF(t,n,In.checkDefined(tj(e.name,T,xl))),In.checkDefined(tj(e.initializer,T,_u)));return OP(i,e),r&&QF(i),i}function Ie(e,n,r){const i=t.createAssignment(vF(t,n,In.checkDefined(tj(e.name,T,xl))),t.cloneNode(e.name));return OP(i,e),r&&QF(i),i}function Le(e,n,r,i){const o=t.createAssignment(vF(t,n,In.checkDefined(tj(e.name,T,xl))),G(e,e,void 0,r));return OP(o,e),i&&QF(o),o}function Re(n,r){if(32768&n.transformFlags||106===n.expression.kind||Zm(UF(n.expression))){const{target:e,thisArg:i}=t.createCallBinding(n.expression,c);let o;if(106===n.expression.kind&&RC(i,8),o=32768&n.transformFlags?t.createFunctionApplyCall(In.checkDefined(tj(e,w,_u)),106===n.expression.kind?i:In.checkDefined(tj(i,T,_u)),ze(n.arguments,!0,!1,!1)):OP(t.createFunctionCallCall(In.checkDefined(tj(e,w,_u)),106===n.expression.kind?i:In.checkDefined(tj(i,T,_u)),nj(n.arguments,T,_u)),n),106===n.expression.kind){const e=t.createLogicalOr(o,I());o=r?t.createAssignment(t.createUniqueName("_this",48),e):e}return PC(o,n)}return uj(n,T,e)}function ze(e,r,i,o){const a=e.length,s=W(se(e,qe,((e,t,n,r)=>t(e,i,o&&r===a))));if(1===s.length){const e=s[0];if(r&&!_.downlevelIteration||AT(e.expression)||rw(e.expression,"___spreadArray"))return e.expression}const c=n(),l=0!==s[0].kind;let u=l?t.createArrayLiteralExpression():s[0].expression;for(let e=l?0:1;e=81&&n<=116)return OP(t.createStringLiteralFromNode(e),e)}}var az=b({"src/compiler/transformers/es5.ts"(){XK()}});function sz(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistFunctionDeclaration:o,hoistVariableDeclaration:a}=e,s=Rk(e.getCompilerOptions()),c=e.getEmitResolver(),_=e.onSubstituteNode;let l,u,d,p,f,m,g,h,y,v;e.onSubstituteNode=function(e,n){return n=_(e,n),1===e?function(e){return Tw(e)?function(e){if(!dl(e)&&l&&l.has(Oc(e))){const n=Dc(e);if(Tw(n)&&n.parent){const r=c.getReferencedValueDeclaration(n);if(r){const n=u[Lj(r)];if(n){const r=kT(OP(t.cloneNode(n),n),n.parent);return UC(r,e),HC(r,e),r}}}}return e}(e):e}(n):n};let b,x,k,S,C,A,w,D,E,N,F,P,I=1,O=0,L=0;return Rj(e,(function(t){if(t.isDeclarationFile||0==(2048&t.transformFlags))return t;const n=uj(t,M,e);return oA(n,e.readEmitHelpers()),n}));function M(t){const n=t.transformFlags;return p?function(t){switch(t.kind){case 243:case 244:return function(t){return p?(oe(),t=uj(t,M,e),se(),t):uj(t,M,e)}(t);case 252:return function(t){return p&&te({kind:2,isScript:!0,breakLabel:-1}),t=uj(t,M,e),p&&ce(),t}(t);case 253:return function(t){return p&&te({kind:4,isScript:!0,labelText:Oc(t.label),breakLabel:-1}),t=uj(t,M,e),p&&_e(),t}(t);default:return R(t)}}(t):d?R(t):Cl(t)&&t.asteriskToken?function(e){switch(e.kind){case 259:return B(e);case 215:return j(e);default:return In.failBadSyntaxKind(e)}}(t):2048&n?uj(t,M,e):t}function R(r){switch(r.kind){case 259:return B(r);case 215:return j(r);case 174:case 175:return function(t){const n=d,r=p;return d=!1,p=!1,t=uj(t,M,e),d=n,p=r,t}(r);case 240:return function(e){if(!(1048576&e.transformFlags)){if(2097152&rf(e))return e;for(const t of e.declarationList.declarations)a(t.name);const n=wx(e.declarationList);if(0===n.length)return;return UC(t.createExpressionStatement(t.inlineExpressions(V(n,H))),e)}W(e.declarationList)}(r);case 245:return function(n){p&&oe();const r=n.initializer;if(r&&DE(r)){for(const e of r.declarations)a(e.name);const i=wx(r);n=t.updateForStatement(n,i.length>0?t.inlineExpressions(V(i,H)):void 0,tj(n.condition,M,_u),tj(n.incrementor,M,_u),_j(n.statement,M,e))}else n=uj(n,M,e);return p&&se(),n}(r);case 246:return function(n){p&&oe();const r=n.initializer;if(DE(r)){for(const e of r.declarations)a(e.name);n=t.updateForInStatement(n,r.declarations[0].name,In.checkDefined(tj(n.expression,M,_u)),In.checkDefined(tj(n.statement,M,Iu,t.liftToBlock)))}else n=uj(n,M,e);return p&&se(),n}(r);case 249:return function(t){if(p){const e=fe(t.label&&Oc(t.label));if(e>0)return ye(e,t)}return uj(t,M,e)}(r);case 248:return function(t){if(p){const e=me(t.label&&Oc(t.label));if(e>0)return ye(e,t)}return uj(t,M,e)}(r);case 250:return function(e){return n=tj(e.expression,M,_u),r=e,OP(t.createReturnStatement(t.createArrayLiteralExpression(n?[he(2),n]:[he(2)])),r);var n,r}(r);default:return 1048576&r.transformFlags?function(r){switch(r.kind){case 223:return function(n){const r=Wy(n);switch(r){case 0:return function(n){return $(n.right)?Eb(n.operatorToken.kind)?function(e){const t=Z(),n=Y();return xe(n,In.checkDefined(tj(e.left,M,_u)),e.left),55===e.operatorToken.kind?Te(t,n,e.left):Se(t,n,e.left),xe(n,In.checkDefined(tj(e.right,M,_u)),e.right),ee(t),n}(n):27===n.operatorToken.kind?z(n):t.updateBinaryExpression(n,X(In.checkDefined(tj(n.left,M,_u))),n.operatorToken,In.checkDefined(tj(n.right,M,_u))):uj(n,M,e)}(n);case 1:return function(n){const{left:r,right:i}=n;if($(i)){let e;switch(r.kind){case 208:e=t.updatePropertyAccessExpression(r,X(In.checkDefined(tj(r.expression,M,ru))),r.name);break;case 209:e=t.updateElementAccessExpression(r,X(In.checkDefined(tj(r.expression,M,ru))),X(In.checkDefined(tj(r.argumentExpression,M,_u))));break;default:e=In.checkDefined(tj(r,M,_u))}const o=n.operatorToken.kind;return Kj(o)?OP(t.createAssignment(e,OP(t.createBinaryExpression(X(e),Wj(o),In.checkDefined(tj(i,M,_u))),n)),n):t.updateBinaryExpression(n,e,n.operatorToken,In.checkDefined(tj(i,M,_u)))}return uj(n,M,e)}(n);default:return In.assertNever(r)}}(r);case 357:return function(e){let n=[];for(const r of e.elements)QD(r)&&27===r.operatorToken.kind?n.push(z(r)):($(r)&&n.length>0&&(Ce(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(In.checkDefined(tj(r,M,_u))));return t.inlineExpressions(n)}(r);case 224:return function(t){if($(t.whenTrue)||$(t.whenFalse)){const e=Z(),n=Z(),r=Y();return Te(e,In.checkDefined(tj(t.condition,M,_u)),t.condition),xe(r,In.checkDefined(tj(t.whenTrue,M,_u)),t.whenTrue),ke(n),ee(e),xe(r,In.checkDefined(tj(t.whenFalse,M,_u)),t.whenFalse),ee(n),r}return uj(t,M,e)}(r);case 226:return function(e){const r=Z(),i=tj(e.expression,M,_u);return e.asteriskToken?function(e,t){Ce(7,[e],t)}(0==(16777216&rf(e.expression))?OP(n().createValuesHelper(i),e):i,e):function(e,t){Ce(6,[e],t)}(i,e),ee(r),o=e,OP(t.createCallExpression(t.createPropertyAccessExpression(S,"sent"),void 0,[]),o);var o}(r);case 206:return function(e){return U(e.elements,void 0,void 0,e.multiLine)}(r);case 207:return function(e){const n=e.properties,r=e.multiLine,i=G(n),o=Y();xe(o,t.createObjectLiteralExpression(nj(n,M,jl,0,i),r));const a=Ke(n,(function(n,i){$(i)&&n.length>0&&(be(t.createExpressionStatement(t.inlineExpressions(n))),n=[]);const a=tj(EF(t,e,i,o),M,_u);return a&&(r&&QF(a),n.push(a)),n}),[],i);return a.push(r?QF(kT(OP(t.cloneNode(o),o),o.parent)):o),t.inlineExpressions(a)}(r);case 209:return function(n){return $(n.argumentExpression)?t.updateElementAccessExpression(n,X(In.checkDefined(tj(n.expression,M,ru))),In.checkDefined(tj(n.argumentExpression,M,_u))):uj(n,M,e)}(r);case 210:return function(n){if(!sm(n)&&T(n.arguments,$)){const{target:e,thisArg:r}=t.createCallBinding(n.expression,a,s,!0);return PC(OP(t.createFunctionApplyCall(X(In.checkDefined(tj(e,M,ru))),r,U(n.arguments)),n),n)}return uj(n,M,e)}(r);case 211:return function(n){if(T(n.arguments,$)){const{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,"bind"),a);return PC(OP(t.createNewExpression(t.createFunctionApplyCall(X(In.checkDefined(tj(e,M,_u))),r,U(n.arguments,t.createVoidZero())),void 0,[]),n),n)}return uj(n,M,e)}(r);default:return uj(r,M,e)}}(r):4196352&r.transformFlags?uj(r,M,e):r}}function B(n){if(n.asteriskToken)n=PC(OP(t.createFunctionDeclaration(n.modifiers,void 0,n.name,void 0,aj(n.parameters,M,e),void 0,J(n.body)),n),n);else{const t=d,r=p;d=!1,p=!1,n=uj(n,M,e),d=t,p=r}return d?void o(n):n}function j(n){if(n.asteriskToken)n=PC(OP(t.createFunctionExpression(void 0,void 0,n.name,void 0,aj(n.parameters,M,e),void 0,J(n.body)),n),n);else{const t=d,r=p;d=!1,p=!1,n=uj(n,M,e),d=t,p=r}return n}function J(e){const o=[],a=d,s=p,c=f,_=m,l=g,u=h,T=y,R=v,B=I,j=b,J=x,z=k,U=S;d=!0,p=!1,f=void 0,m=void 0,g=void 0,h=void 0,y=void 0,v=void 0,I=1,b=void 0,x=void 0,k=void 0,S=t.createTempVariable(void 0),r();const V=t.copyPrologue(e.statements,o,!1,M);q(e.statements,V);const Q=function(){O=0,L=0,C=void 0,A=!1,w=!1,D=void 0,E=void 0,N=void 0,F=void 0,P=void 0;const e=function(){if(b){for(let e=0;e0)),1048576))}();return Up(o,i()),o.push(t.createReturnStatement(Q)),d=a,p=s,f=c,m=_,g=l,h=u,y=T,v=R,I=B,b=j,x=J,k=z,S=U,OP(t.createBlock(o,e.multiLine),e)}function z(e){let n=[];return r(e.left),r(e.right),t.inlineExpressions(n);function r(e){QD(e)&&27===e.operatorToken.kind?(r(e.left),r(e.right)):($(e)&&n.length>0&&(Ce(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(In.checkDefined(tj(e,M,_u))))}}function U(e,n,r,i){const o=G(e);let a;if(o>0){a=Y();const r=nj(e,M,_u,0,o);xe(a,t.createArrayLiteralExpression(n?[n,...r]:r)),n=void 0}const s=Ke(e,(function(e,r){if($(r)&&e.length>0){const r=void 0!==a;a||(a=Y()),xe(a,r?t.createArrayConcatCall(a,[t.createArrayLiteralExpression(e,i)]):t.createArrayLiteralExpression(n?[n,...e]:e,i)),n=void 0,e=[]}return e.push(In.checkDefined(tj(r,M,_u))),e}),[],o);return a?t.createArrayConcatCall(a,[t.createArrayLiteralExpression(s,i)]):OP(t.createArrayLiteralExpression(n?[n,...s]:s,i),r)}function q(e,t=0){const n=e.length;for(let r=t;r0?ke(t,e):be(e)}(n);case 249:return function(e){const t=fe(e.label?Oc(e.label):void 0);t>0?ke(t,e):be(e)}(n);case 250:return function(e){Ce(8,[tj(e.expression,M,_u)],e)}(n);case 251:return function(e){$(e)?(function(e){const t=Z(),n=Z();ee(t),te({kind:1,expression:e,startLabel:t,endLabel:n})}(X(In.checkDefined(tj(e.expression,M,_u)))),Q(e.statement),In.assert(1===ie()),ee(ne().endLabel)):be(tj(e,M,Iu))}(n);case 252:return function(e){if($(e.caseBlock)){const n=e.caseBlock,r=n.clauses.length,i=function(){const e=Z();return te({kind:2,isScript:!1,breakLabel:e}),e}(),o=X(In.checkDefined(tj(e.expression,M,_u))),a=[];let s=-1;for(let e=0;e0)break;_.push(t.createCaseClause(In.checkDefined(tj(r.expression,M,_u)),[ye(a[i],r.expression)]))}else e++}_.length&&(be(t.createSwitchStatement(o,t.createCaseBlock(_))),c+=_.length,_=[]),e>0&&(c+=e,e=0)}ke(s>=0?a[s]:i);for(let e=0;e0)break;o.push(H(t))}o.length&&(be(t.createExpressionStatement(t.inlineExpressions(o))),i+=o.length,o=[])}}function H(e){return UC(t.createAssignment(UC(t.cloneNode(e.name),e.name),In.checkDefined(tj(e.initializer,M,_u))),e)}function $(e){return!!e&&0!=(1048576&e.transformFlags)}function G(e){const t=e.length;for(let n=0;n=0;n--){const t=h[n];if(!ue(t))break;if(t.labelText===e)return!0}return!1}function fe(e){if(h)if(e)for(let t=h.length-1;t>=0;t--){const n=h[t];if(ue(n)&&n.labelText===e)return n.breakLabel;if(le(n)&&pe(e,t-1))return n.breakLabel}else for(let e=h.length-1;e>=0;e--){const t=h[e];if(le(t))return t.breakLabel}return 0}function me(e){if(h)if(e)for(let t=h.length-1;t>=0;t--){const n=h[t];if(de(n)&&pe(e,t-1))return n.continueLabel}else for(let e=h.length-1;e>=0;e--){const t=h[e];if(de(t))return t.continueLabel}return 0}function ge(e){if(void 0!==e&&e>0){void 0===v&&(v=[]);const n=t.createNumericLiteral(-1);return void 0===v[e]?v[e]=[n]:v[e].push(n),n}return t.createOmittedExpression()}function he(e){const n=t.createNumericLiteral(e);return eA(n,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(e)),n}function ye(e,n){return In.assertLessThan(0,e,"Invalid label"),OP(t.createReturnStatement(t.createArrayLiteralExpression([he(3),ge(e)])),n)}function ve(){Ce(0)}function be(e){e?Ce(1,[e]):ve()}function xe(e,t,n){Ce(2,[e,t],n)}function ke(e,t){Ce(3,[e],t)}function Se(e,t,n){Ce(4,[e,t],n)}function Te(e,t,n){Ce(5,[e,t],n)}function Ce(e,t,n){void 0===b&&(b=[],x=[],k=[]),void 0===y&&ee(Z());const r=b.length;b[r]=e,x[r]=t,k[r]=n}function Ae(e){(function(e){if(!w)return!0;if(!y||!v)return!1;for(let t=0;t=0;e--){const n=P[e];E=[t.createWithStatement(n.expression,t.createBlock(E))]}if(F){const{startLabel:e,catchLabel:n,finallyLabel:r,endLabel:i}=F;E.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(S,"trys"),"push"),void 0,[t.createArrayLiteralExpression([ge(e),ge(n),ge(r),ge(i)])]))),F=void 0}e&&E.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(S,"label"),t.createNumericLiteral(L+1))))}D.push(t.createCaseClause(t.createNumericLiteral(L),E||[])),E=void 0}function De(e){if(y)for(let t=0;tt.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.createIdentifier(Oc(n))),e)),t.createVoidZero())))}Se(r,tj(h.externalHelpersImportDeclaration,E,Iu)),Ae(r,nj(n.statements,E,Iu,c)),D(r,!1),Up(r,o());const _=t.updateSourceFile(n,OP(t.createNodeArray(r),n.statements));return oA(_,e.readEmitHelpers()),_}function k(n){const i=t.createIdentifier("define"),o=YF(t,n,_,s),a=tm(n)&&n,{aliasedModuleNames:c,unaliasedModuleNames:l,importAliasNames:u}=C(n,!0),d=t.updateSourceFile(n,OP(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(i,void 0,[...o?[o]:[],t.createArrayLiteralExpression(a?r:[t.createStringLiteral("require"),t.createStringLiteral("exports"),...c,...l]),a?a.statements.length?a.statements[0].expression:t.createObjectLiteralExpression():t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"require"),t.createParameterDeclaration(void 0,void 0,"exports"),...u],void 0,w(n))]))]),n.statements));return oA(d,e.readEmitHelpers()),d}function T(n){const{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:o}=C(n,!1),a=YF(t,n,_,s),c=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"factory")],void 0,OP(t.createBlock([t.createIfStatement(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("module"),"object"),t.createTypeCheck(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),"object")),t.createBlock([t.createVariableStatement(void 0,[t.createVariableDeclaration("v",void 0,void 0,t.createCallExpression(t.createIdentifier("factory"),void 0,[t.createIdentifier("require"),t.createIdentifier("exports")]))]),RC(t.createIfStatement(t.createStrictInequality(t.createIdentifier("v"),t.createIdentifier("undefined")),t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),t.createIdentifier("v")))),1)]),t.createIfStatement(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("define"),"function"),t.createPropertyAccessExpression(t.createIdentifier("define"),"amd")),t.createBlock([t.createExpressionStatement(t.createCallExpression(t.createIdentifier("define"),void 0,[...a?[a]:[],t.createArrayLiteralExpression([t.createStringLiteral("require"),t.createStringLiteral("exports"),...r,...i]),t.createIdentifier("factory")]))])))],!0),void 0)),l=t.updateSourceFile(n,OP(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(c,void 0,[t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"require"),t.createParameterDeclaration(void 0,void 0,"exports"),...o],void 0,w(n))]))]),n.statements));return oA(l,e.readEmitHelpers()),l}function C(e,n){const r=[],i=[],o=[];for(const n of e.amdDependencies)n.name?(r.push(t.createStringLiteral(n.path)),o.push(t.createParameterDeclaration(void 0,void 0,n.name))):i.push(t.createStringLiteral(n.path));for(const e of h.externalImports){const a=XF(t,e,g,_,c,s),l=GF(t,e,g);a&&(n&&l?(RC(l,8),r.push(a),o.push(t.createParameterDeclaration(void 0,void 0,l))):i.push(a))}return{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:o}}function A(e){if(BE(e)||$E(e)||!XF(t,e,g,_,c,s))return;const n=GF(t,e,g),r=M(e,n);return r!==n?t.createExpressionStatement(t.createAssignment(n,r)):void 0}function w(e){i();const n=[],r=t.copyPrologue(e.statements,n,!s.noImplicitUseStrict,E);b()&&Se(n,H()),S(h.exportedNames)&&Se(n,t.createExpressionStatement(Ke(h.exportedNames,((e,n)=>t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.createIdentifier(Oc(n))),e)),t.createVoidZero()))),Se(n,tj(h.externalHelpersImportDeclaration,E,Iu)),2===u&&Ae(n,Z(h.externalImports,A)),Ae(n,nj(e.statements,E,Iu,r)),D(n,!0),Up(n,o());const a=t.createBlock(n,!0);return v&&iA(a,cz),a}function D(e,n){if(h.exportEquals){const r=tj(h.exportEquals.expression,F,_u);if(r)if(n){const n=t.createReturnStatement(r);OP(n,h.exportEquals),RC(n,3840),e.push(n)}else{const n=t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),r));OP(n,h.exportEquals),RC(n,3072),e.push(n)}}}function E(r){switch(r.kind){case 269:return function(e){let n;const r=fh(e);if(2!==u){if(!e.importClause)return PC(OP(t.createExpressionStatement(R(e)),e),e);{const i=[];r&&!mh(e)?i.push(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,M(e,R(e)))):(i.push(t.createVariableDeclaration(t.getGeneratedNameForNode(e),void 0,void 0,M(e,R(e)))),r&&mh(e)&&i.push(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,t.getGeneratedNameForNode(e)))),n=Se(n,PC(OP(t.createVariableStatement(void 0,t.createVariableDeclarationList(i,l>=2?2:0)),e),e))}}else r&&mh(e)&&(n=Se(n,t.createVariableStatement(void 0,t.createVariableDeclarationList([PC(OP(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,t.getGeneratedNameForNode(e)),e),e)],l>=2?2:0))));if(J(e)){const t=Lj(e);m[t]=z(m[t],e)}else n=z(n,e);return Ue(n)}(r);case 268:return function(e){let n;if(In.assert(hg(e),"import= for internal module references should be handled in an earlier transformer."),2!==u?n=cb(e,1)?Se(n,PC(OP(t.createExpressionStatement($(e.name,R(e))),e),e)):Se(n,PC(OP(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(e.name),void 0,void 0,R(e))],l>=2?2:0)),e),e)):cb(e,1)&&(n=Se(n,PC(OP(t.createExpressionStatement($(t.getExportName(e),t.getLocalName(e))),e),e))),J(e)){const t=Lj(e);m[t]=U(m[t],e)}else n=U(n,e);return Ue(n)}(r);case 275:return function(e){if(!e.moduleSpecifier)return;const r=t.getGeneratedNameForNode(e);if(e.exportClause&&GE(e.exportClause)){const i=[];2!==u&&i.push(PC(OP(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,R(e))])),e),e));for(const o of e.exportClause.elements)if(0===l)i.push(PC(OP(t.createExpressionStatement(n().createCreateBindingHelper(r,t.createStringLiteralFromNode(o.propertyName||o.name),o.propertyName?t.createStringLiteralFromNode(o.name):void 0)),o),o));else{const a=!(!Hk(s)||2&of(e)||"default"!==Oc(o.propertyName||o.name)),c=t.createPropertyAccessExpression(a?n().createImportDefaultHelper(r):r,o.propertyName||o.name);i.push(PC(OP(t.createExpressionStatement($(t.getExportName(o),c,void 0,!0)),o),o))}return Ue(i)}if(e.exportClause){const i=[];return i.push(PC(OP(t.createExpressionStatement($(t.cloneNode(e.exportClause.name),function(e,t){return!Hk(s)||2&of(e)?t:Bj(e)?n().createImportStarHelper(t):t}(e,2!==u?R(e):Yp(e)?r:t.createIdentifier(Oc(e.exportClause.name))))),e),e)),Ue(i)}return PC(OP(t.createExpressionStatement(n().createExportStarHelper(2!==u?R(e):r)),e),e)}(r);case 274:return function(e){if(e.isExportEquals)return;let n;const r=e.original;if(r&&J(r)){const n=Lj(e);m[n]=W(m[n],t.createIdentifier("default"),tj(e.expression,F,_u),e,!0)}else n=W(n,t.createIdentifier("default"),tj(e.expression,F,_u),e,!0);return Ue(n)}(r);case 240:return function(n){let r,i,o;if(cb(n,1)){let e,a=!1;for(const r of n.declarationList.declarations)if(Tw(r.name)&&PF(r.name))e||(e=nj(n.modifiers,G,vl)),i=r.initializer?Se(i,t.updateVariableDeclaration(r,r.name,void 0,void 0,$(r.name,tj(r.initializer,F,_u)))):Se(i,r);else if(r.initializer)if(!Ul(r.name)&&(BD(r.initializer)||RD(r.initializer)||GD(r.initializer))){const e=t.createAssignment(OP(t.createPropertyAccessExpression(t.createIdentifier("exports"),r.name),r.name),t.createIdentifier(Ny(r.name)));i=Se(i,t.createVariableDeclaration(r.name,r.exclamationToken,r.type,tj(r.initializer,F,_u))),o=Se(o,e),a=!0}else o=Se(o,j(r));if(i&&(r=Se(r,t.updateVariableStatement(n,e,t.updateVariableDeclarationList(n.declarationList,i)))),o){const e=PC(OP(t.createExpressionStatement(t.inlineExpressions(o)),n),n);a&&MC(e),r=Se(r,e)}}else r=Se(r,uj(n,F,e));if(J(n)){const e=Lj(n);m[e]=q(m[e],n)}else r=q(r,n);return Ue(r)}(r);case 259:return function(n){let r;if(r=cb(n,1)?Se(r,PC(OP(t.createFunctionDeclaration(nj(n.modifiers,G,vl),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,nj(n.parameters,F,Uw),void 0,uj(n.body,F,e)),n),n)):Se(r,uj(n,F,e)),J(n)){const e=Lj(n);m[e]=Q(m[e],n)}else r=Q(r,n);return Ue(r)}(r);case 260:return function(n){let r;if(r=cb(n,1)?Se(r,PC(OP(t.createClassDeclaration(nj(n.modifiers,G,Ml),t.getDeclarationName(n,!0,!0),void 0,nj(n.heritageClauses,F,hN),nj(n.members,F,Nl)),n),n)):Se(r,uj(n,F,e)),J(n)){const e=Lj(n);m[e]=Q(m[e],n)}else r=Q(r,n);return Ue(r)}(r);case 358:return function(e){if(J(e)&&240===e.original.kind){const t=Lj(e);m[t]=q(m[t],e.original)}return e}(r);case 359:return function(e){const t=Lj(e),n=m[t];return n?(delete m[t],Se(n,e)):e}(r);default:return F(r)}}function N(n,r){if(!(276828160&n.transformFlags))return n;switch(n.kind){case 245:return function(n){return t.updateForStatement(n,tj(n.initializer,P,bu),tj(n.condition,F,_u),tj(n.incrementor,P,_u),_j(n.statement,F,e))}(n);case 241:return function(e){return t.updateExpressionStatement(e,tj(e.expression,P,_u))}(n);case 214:return function(e,n){return t.updateParenthesizedExpression(e,tj(e.expression,n?P:F,_u))}(n,r);case 356:return function(e,n){return t.updatePartiallyEmittedExpression(e,tj(e.expression,n?P:F,_u))}(n,r);case 210:if(sm(n)&&void 0===g.impliedNodeFormat)return function(n){if(0===u&&l>=7)return uj(n,F,e);const r=XF(t,n,g,_,c,s),i=tj(Oe(n.arguments),F,_u),o=!r||i&&sw(i)&&i.text===r.text?i:r,d=!!(16384&n.transformFlags);switch(s.module){case 2:return O(o,d);case 3:return function(e,n){if(v=!0,Vj(e)){const r=dl(e)?e:sw(e)?t.createStringLiteralFromNode(e):RC(OP(t.cloneNode(e),e),3072);return t.createConditionalExpression(t.createIdentifier("__syncRequire"),void 0,L(e),void 0,O(r,n))}{const r=t.createTempVariable(a);return t.createComma(t.createAssignment(r,e),t.createConditionalExpression(t.createIdentifier("__syncRequire"),void 0,L(r,!0),void 0,O(r,n)))}}(null!=o?o:t.createVoidZero(),d);default:return L(o)}}(n);break;case 223:if(jb(n))return function(t,n){return I(t.left)?dJ(t,F,e,0,!n,B):uj(t,F,e)}(n,r);break;case 221:case 222:return function(n,r){if((45===n.operator||46===n.operator)&&Tw(n.operand)&&!dl(n.operand)&&!PF(n.operand)&&!Ax(n.operand)){const e=Y(n.operand);if(e){let i,o=tj(n.operand,F,_u);qD(n)?o=t.updatePrefixUnaryExpression(n,o):(o=t.updatePostfixUnaryExpression(n,o),r||(i=t.createTempVariable(a),o=t.createAssignment(i,o),OP(o,n)),o=t.createComma(o,t.cloneNode(n.operand)),OP(o,n));for(const t of e)y[qB(o)]=!0,o=$(t,o),OP(o,n);return i&&(y[qB(o)]=!0,o=t.createComma(o,i),OP(o,n)),o}}return uj(n,F,e)}(n,r)}return uj(n,F,e)}function F(e){return N(e,!1)}function P(e){return N(e,!0)}function I(e){if(ED(e))for(const t of e.properties)switch(t.kind){case 299:if(I(t.initializer))return!0;break;case 300:if(I(t.name))return!0;break;case 301:if(I(t.expression))return!0;break;case 171:case 174:case 175:return!1;default:In.assertNever(t,"Unhandled object member kind")}else if(DD(e)){for(const t of e.elements)if($D(t)){if(I(t.expression))return!0}else if(I(t))return!0}else if(Tw(e))return S(Y(e))>(IF(e)?1:0);return!1}function O(e,r){const i=t.createUniqueName("resolve"),o=t.createUniqueName("reject"),a=[t.createParameterDeclaration(void 0,void 0,i),t.createParameterDeclaration(void 0,void 0,o)],c=t.createBlock([t.createExpressionStatement(t.createCallExpression(t.createIdentifier("require"),void 0,[t.createArrayLiteralExpression([e||t.createOmittedExpression()]),i,o]))]);let _;l>=2?_=t.createArrowFunction(void 0,void 0,a,void 0,void 0,c):(_=t.createFunctionExpression(void 0,void 0,void 0,void 0,a,void 0,c),r&&RC(_,16));const u=t.createNewExpression(t.createIdentifier("Promise"),void 0,[_]);return Hk(s)?t.createCallExpression(t.createPropertyAccessExpression(u,t.createIdentifier("then")),void 0,[n().createImportStarCallbackHelper()]):u}function L(e,r){const i=e&&!Qj(e)&&!r,o=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Promise"),"resolve"),void 0,i?l>=2?[t.createTemplateExpression(t.createTemplateHead(""),[t.createTemplateSpan(e,t.createTemplateTail(""))])]:[t.createCallExpression(t.createPropertyAccessExpression(t.createStringLiteral(""),"concat"),void 0,[e])]:[]);let a=t.createCallExpression(t.createIdentifier("require"),void 0,i?[t.createIdentifier("s")]:e?[e]:[]);Hk(s)&&(a=n().createImportStarHelper(a));const c=i?[t.createParameterDeclaration(void 0,void 0,"s")]:[];let _;return _=l>=2?t.createArrowFunction(void 0,void 0,c,void 0,void 0,a):t.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,t.createBlock([t.createReturnStatement(a)])),t.createCallExpression(t.createPropertyAccessExpression(o,"then"),void 0,[_])}function M(e,t){return!Hk(s)||2&of(e)?t:jj(e)?n().createImportStarHelper(t):Jj(e)?n().createImportDefaultHelper(t):t}function R(e){const n=XF(t,e,g,_,c,s),r=[];return n&&r.push(n),t.createCallExpression(t.createIdentifier("require"),void 0,r)}function B(e,n,r){const i=Y(e);if(i){let o=IF(e)?n:t.createAssignment(e,n);for(const e of i)RC(o,8),o=$(e,o,r);return o}return t.createAssignment(e,n)}function j(n){return Ul(n.name)?dJ(tj(n,F,Dx),F,e,0,!1,B):t.createAssignment(OP(t.createPropertyAccessExpression(t.createIdentifier("exports"),n.name),n.name),n.initializer?tj(n.initializer,F,_u):t.createVoidZero())}function J(e){return 0!=(8388608&rf(e))}function z(e,t){if(h.exportEquals)return e;const n=t.importClause;if(!n)return e;n.name&&(e=K(e,n));const r=n.namedBindings;if(r)switch(r.kind){case 271:e=K(e,r);break;case 272:for(const t of r.elements)e=K(e,t,!0)}return e}function U(e,t){return h.exportEquals?e:K(e,t)}function q(e,t){if(h.exportEquals)return e;for(const n of t.declarationList.declarations)e=V(e,n);return e}function V(e,t){if(h.exportEquals)return e;if(Ul(t.name))for(const n of t.name.elements)XD(n)||(e=V(e,n));else dl(t.name)||(e=K(e,t));return e}function Q(e,n){return h.exportEquals||(cb(n,1)&&(e=W(e,cb(n,1024)?t.createIdentifier("default"):t.getDeclarationName(n),t.getLocalName(n),n)),n.name&&(e=K(e,n))),e}function K(e,n,r){const i=t.getDeclarationName(n),o=h.exportSpecifiers.get(Oc(i));if(o)for(const t of o)e=W(e,t.name,i,t.name,void 0,r);return e}function W(e,n,r,i,o,a){return e=Se(e,function(e,n,r,i,o){const a=OP(t.createExpressionStatement($(e,n,void 0,o)),r);return QF(a),i||RC(a,3072),a}(n,r,i,o,a)),e}function H(){let e;return e=0===l?t.createExpressionStatement($(t.createIdentifier("__esModule"),t.createTrue())):t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[t.createIdentifier("exports"),t.createStringLiteral("__esModule"),t.createObjectLiteralExpression([t.createPropertyAssignment("value",t.createTrue())])])),RC(e,2097152),e}function $(e,n,r,i){return OP(i&&0!==l?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[t.createIdentifier("exports"),t.createStringLiteralFromNode(e),t.createObjectLiteralExpression([t.createPropertyAssignment("enumerable",t.createTrue()),t.createPropertyAssignment("get",t.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,t.createBlock([t.createReturnStatement(n)])))])]):t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)),n),r)}function G(e){switch(e.kind){case 93:case 88:return}return e}function X(e){var n,r;if(8192&rf(e)){const n=KF(g);return n?t.createPropertyAccessExpression(n,e):e}if((!dl(e)||64&e.emitNode.autoGenerate.flags)&&!PF(e)){const i=c.getReferencedExportContainer(e,IF(e));if(i&&308===i.kind)return OP(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)),e);const o=c.getReferencedImportDeclaration(e);if(o){if(JE(o))return OP(t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default")),e);if(WE(o)){const i=o.propertyName||o.name;return OP(t.createPropertyAccessExpression(t.getGeneratedNameForNode((null==(r=null==(n=o.parent)?void 0:n.parent)?void 0:r.parent)||o),t.cloneNode(i)),e)}}}return e}function Y(e){if(!dl(e)){const t=c.getReferencedImportDeclaration(e)||c.getReferencedValueDeclaration(e);if(t)return h&&h.exportedBindings[Lj(t)]}}}var uz=b({"src/compiler/transformers/module/module.ts"(){XK(),cz={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'}}});function dz(e){const{factory:t,startLexicalEnvironment:n,endLexicalEnvironment:r,hoistVariableDeclaration:i}=e,o=e.getCompilerOptions(),a=e.getEmitResolver(),s=e.getEmitHost(),c=e.onSubstituteNode,_=e.onEmitNode;e.onSubstituteNode=function(e,n){return function(e){return x&&e.id&&x[e.id]}(n=c(e,n))?n:1===e?function(e){switch(e.kind){case 79:return function(e){var n,r;if(8192&rf(e)){const n=KF(m);return n?t.createPropertyAccessExpression(n,e):e}if(!dl(e)&&!PF(e)){const i=a.getReferencedImportDeclaration(e);if(i){if(JE(i))return OP(t.createPropertyAccessExpression(t.getGeneratedNameForNode(i.parent),t.createIdentifier("default")),e);if(WE(i))return OP(t.createPropertyAccessExpression(t.getGeneratedNameForNode((null==(r=null==(n=i.parent)?void 0:n.parent)?void 0:r.parent)||i),t.cloneNode(i.propertyName||i.name)),e)}}return e}(e);case 223:return function(e){if(Ob(e.operatorToken.kind)&&Tw(e.left)&&!dl(e.left)&&!PF(e.left)&&!Ax(e.left)){const t=X(e.left);if(t){let n=e;for(const e of t)n=z(e,Y(n));return n}}return e}(e);case 233:return function(e){return cm(e)?t.createPropertyAccessExpression(y,t.createIdentifier("meta")):e}(e)}return e}(n):4===e?function(e){return 300===e.kind?function(e){var n,r;const i=e.name;if(!dl(i)&&!PF(i)){const o=a.getReferencedImportDeclaration(i);if(o){if(JE(o))return OP(t.createPropertyAssignment(t.cloneNode(i),t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default"))),e);if(WE(o))return OP(t.createPropertyAssignment(t.cloneNode(i),t.createPropertyAccessExpression(t.getGeneratedNameForNode((null==(r=null==(n=o.parent)?void 0:n.parent)?void 0:r.parent)||o),t.cloneNode(o.propertyName||o.name))),e)}}return e}(e):e}(n):n},e.onEmitNode=function(e,t,n){if(308===t.kind){const r=Lj(t);m=t,g=l[r],h=d[r],x=p[r],y=f[r],x&&delete p[r],_(e,t,n),m=void 0,g=void 0,h=void 0,y=void 0,x=void 0}else _(e,t,n)},e.enableSubstitution(79),e.enableSubstitution(300),e.enableSubstitution(223),e.enableSubstitution(233),e.enableEmitNotification(308);const l=[],u=[],d=[],p=[],f=[];let m,g,h,y,v,b,x;return Rj(e,(function(i){if(i.isDeclarationFile||!(kf(i,o)||8388608&i.transformFlags))return i;const c=Lj(i);m=i,b=i,g=l[c]=zj(e,i,a,o),h=t.createUniqueName("exports"),d[c]=h,y=f[c]=t.createUniqueName("context");const _=function(e){const n=new Map,r=[];for(const i of e){const e=XF(t,i,m,s,a,o);if(e){const t=e.text,o=n.get(t);void 0!==o?r[o].externalImports.push(i):(n.set(t,r.length),r.push({name:e,externalImports:[i]}))}}return r}(g.externalImports),u=function(e,i){const a=[];n();const s=iS(o,"alwaysStrict")||!o.noImplicitUseStrict&&wI(m),c=t.copyPrologue(e.statements,a,s,C);a.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(y,t.createPropertyAccessExpression(y,"id")))]))),tj(g.externalHelpersImportDeclaration,C,Iu);const _=nj(e.statements,C,Iu,c);Ae(a,v),Up(a,r());const l=function(e){if(!g.hasExportStarsToExportValues)return;if(!g.exportedNames&&0===g.exportSpecifiers.size){let t=!1;for(const e of g.externalImports)if(275===e.kind&&e.exportClause){t=!0;break}if(!t){const t=k(void 0);return e.push(t),t.name}}const n=[];if(g.exportedNames)for(const e of g.exportedNames)"default"!==e.escapedText&&n.push(t.createPropertyAssignment(t.createStringLiteralFromNode(e),t.createTrue()));const r=t.createUniqueName("exportedNames");e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,t.createObjectLiteralExpression(n,!0))])));const i=k(r);return e.push(i),i.name}(a),u=2097152&e.transformFlags?t.createModifiersFromModifierFlags(512):void 0,d=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",S(l,i)),t.createPropertyAssignment("execute",t.createFunctionExpression(u,void 0,void 0,void 0,[],void 0,t.createBlock(_,!0)))],!0);return a.push(t.createReturnStatement(d)),t.createBlock(a,!0)}(i,_),T=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,h),t.createParameterDeclaration(void 0,void 0,y)],void 0,u),A=YF(t,i,s,o),w=t.createArrayLiteralExpression(V(_,(e=>e.name))),D=RC(t.updateSourceFile(i,OP(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,A?[A,w,T]:[w,T]))]),i.statements)),2048);return Av(o)||cA(D,u,(e=>!e.scoped)),x&&(p[c]=x,x=void 0),m=void 0,g=void 0,h=void 0,y=void 0,v=void 0,b=void 0,D}));function k(e){const n=t.createUniqueName("exportStar"),r=t.createIdentifier("m"),i=t.createIdentifier("n"),o=t.createIdentifier("exports");let a=t.createStrictInequality(i,t.createStringLiteral("default"));return e&&(a=t.createLogicalAnd(a,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(e,"hasOwnProperty"),void 0,[i])))),t.createFunctionDeclaration(void 0,void 0,n,void 0,[t.createParameterDeclaration(void 0,void 0,r)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(o,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(i)]),r,t.createBlock([RC(t.createIfStatement(a,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(o,i),t.createElementAccessExpression(r,i)))),1)])),t.createExpressionStatement(t.createCallExpression(h,void 0,[o]))],!0))}function S(e,n){const r=[];for(const i of n){const n=T(i.externalImports,(e=>GF(t,e,m))),o=n?t.getGeneratedNameForNode(n):t.createUniqueName(""),a=[];for(const n of i.externalImports){const r=GF(t,n,m);switch(n.kind){case 269:if(!n.importClause)break;case 268:In.assert(void 0!==r),a.push(t.createExpressionStatement(t.createAssignment(r,o))),cb(n,1)&&a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createStringLiteral(Oc(r)),o])));break;case 275:if(In.assert(void 0!==r),n.exportClause)if(GE(n.exportClause)){const e=[];for(const r of n.exportClause.elements)e.push(t.createPropertyAssignment(t.createStringLiteral(Oc(r.name)),t.createElementAccessExpression(o,t.createStringLiteral(Oc(r.propertyName||r.name)))));a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createObjectLiteralExpression(e,!0)])))}else a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createStringLiteral(Oc(n.exportClause.name)),o])));else a.push(t.createExpressionStatement(t.createCallExpression(e,void 0,[o])))}}r.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,o)],void 0,t.createBlock(a,!0)))}return t.createArrayLiteralExpression(r,!0)}function C(e){switch(e.kind){case 269:return function(e){let n;if(e.importClause&&i(GF(t,e,m)),P(e)){const t=Lj(e);u[t]=I(u[t],e)}else n=I(n,e);return Ue(n)}(e);case 268:return function(e){let n;if(In.assert(hg(e),"import= for internal module references should be handled in an earlier transformer."),i(GF(t,e,m)),P(e)){const t=Lj(e);u[t]=O(u[t],e)}else n=O(n,e);return Ue(n)}(e);case 275:return function(e){In.assertIsDefined(e)}(e);case 274:return function(e){if(e.isExportEquals)return;const n=tj(e.expression,W,_u),r=e.original;if(!r||!P(r))return J(t.createIdentifier("default"),n,!0);{const r=Lj(e);u[r]=j(u[r],t.createIdentifier("default"),n,!0)}}(e);default:return U(e)}}function A(e){if(Ul(e.name))for(const t of e.name.elements)XD(t)||A(t);else i(t.cloneNode(e.name))}function w(e){return 0==(4194304&rf(e))&&(308===b.kind||0==(3&Dc(e).flags))}function D(t,n){const r=n?E:N;return Ul(t.name)?dJ(t,W,e,0,!1,r):t.initializer?r(t.name,tj(t.initializer,W,_u)):t.name}function E(e,t,n){return F(e,t,n,!0)}function N(e,t,n){return F(e,t,n,!1)}function F(e,n,r,o){return i(t.cloneNode(e)),o?z(e,Y(OP(t.createAssignment(e,n),r))):Y(OP(t.createAssignment(e,n),r))}function P(e){return 0!=(8388608&rf(e))}function I(e,t){if(g.exportEquals)return e;const n=t.importClause;if(!n)return e;n.name&&(e=B(e,n));const r=n.namedBindings;if(r)switch(r.kind){case 271:e=B(e,r);break;case 272:for(const t of r.elements)e=B(e,t)}return e}function O(e,t){return g.exportEquals?e:B(e,t)}function L(e,t,n){if(g.exportEquals)return e;for(const r of t.declarationList.declarations)(r.initializer||n)&&(e=M(e,r,n));return e}function M(e,n,r){if(g.exportEquals)return e;if(Ul(n.name))for(const t of n.name.elements)XD(t)||(e=M(e,t,r));else if(!dl(n.name)){let i;r&&(e=j(e,n.name,t.getLocalName(n)),i=Oc(n.name)),e=B(e,n,i)}return e}function R(e,n){if(g.exportEquals)return e;let r;if(cb(n,1)){const i=cb(n,1024)?t.createStringLiteral("default"):n.name;e=j(e,i,t.getLocalName(n)),r=Ny(i)}return n.name&&(e=B(e,n,r)),e}function B(e,n,r){if(g.exportEquals)return e;const i=t.getDeclarationName(n),o=g.exportSpecifiers.get(Oc(i));if(o)for(const t of o)t.name.escapedText!==r&&(e=j(e,t.name,i));return e}function j(e,t,n,r){return Se(e,J(t,n,r))}function J(e,n,r){const i=t.createExpressionStatement(z(e,n));return QF(i),r||RC(i,3072),i}function z(e,n){const r=Tw(e)?t.createStringLiteralFromNode(e):e;return RC(n,3072|rf(n)),HC(t.createCallExpression(h,void 0,[r,n]),n)}function U(n){switch(n.kind){case 240:return function(e){if(!w(e.declarationList))return tj(e,W,Iu);let n;const r=cb(e,1),i=P(e);for(const t of e.declarationList.declarations)t.initializer?n=Se(n,D(t,r&&!i)):A(t);let o;if(n&&(o=Se(o,OP(t.createExpressionStatement(t.inlineExpressions(n)),e))),i){const t=Lj(e);u[t]=L(u[t],e,r)}else o=L(o,e,!1);return Ue(o)}(n);case 259:return function(n){if(v=cb(n,1)?Se(v,t.updateFunctionDeclaration(n,nj(n.modifiers,G,Ml),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,nj(n.parameters,W,Uw),void 0,tj(n.body,W,cE))):Se(v,uj(n,W,e)),P(n)){const e=Lj(n);u[e]=R(u[e],n)}else v=R(v,n)}(n);case 260:return function(e){let n;const r=t.getLocalName(e);if(i(r),n=Se(n,OP(t.createExpressionStatement(t.createAssignment(r,OP(t.createClassExpression(nj(e.modifiers,G,Ml),e.name,void 0,nj(e.heritageClauses,W,hN),nj(e.members,W,Nl)),e))),e)),P(e)){const t=Lj(e);u[t]=R(u[t],e)}else n=R(n,e);return Ue(n)}(n);case 245:return q(n,!0);case 246:return function(n){const r=b;return b=n,n=t.updateForInStatement(n,Q(n.initializer),tj(n.expression,W,_u),_j(n.statement,U,e)),b=r,n}(n);case 247:return function(n){const r=b;return b=n,n=t.updateForOfStatement(n,n.awaitModifier,Q(n.initializer),tj(n.expression,W,_u),_j(n.statement,U,e)),b=r,n}(n);case 243:return function(n){return t.updateDoStatement(n,_j(n.statement,U,e),tj(n.expression,W,_u))}(n);case 244:return function(n){return t.updateWhileStatement(n,tj(n.expression,W,_u),_j(n.statement,U,e))}(n);case 253:return function(e){return t.updateLabeledStatement(e,e.label,In.checkDefined(tj(e.statement,U,Iu,t.liftToBlock)))}(n);case 251:return function(e){return t.updateWithStatement(e,tj(e.expression,W,_u),In.checkDefined(tj(e.statement,U,Iu,t.liftToBlock)))}(n);case 252:return function(e){return t.updateSwitchStatement(e,tj(e.expression,W,_u),In.checkDefined(tj(e.caseBlock,U,ME)))}(n);case 266:return function(e){const n=b;return b=e,e=t.updateCaseBlock(e,nj(e.clauses,U,zu)),b=n,e}(n);case 292:return function(e){return t.updateCaseClause(e,tj(e.expression,W,_u),nj(e.statements,U,Iu))}(n);case 293:case 255:return function(t){return uj(t,U,e)}(n);case 295:return function(e){const n=b;return b=e,e=t.updateCatchClause(e,e.variableDeclaration,In.checkDefined(tj(e.block,U,cE))),b=n,e}(n);case 238:return function(t){const n=b;return b=t,t=uj(t,U,e),b=n,t}(n);case 358:return function(e){if(P(e)&&240===e.original.kind){const t=Lj(e),n=cb(e.original,1);u[t]=L(u[t],e.original,n)}return e}(n);case 359:return function(e){const t=Lj(e),n=u[t];if(n)return delete u[t],Se(n,e);{const t=Dc(e);if(Cu(t))return Se(B(n,t),e)}return e}(n);default:return W(n)}}function q(n,r){const i=b;return b=n,n=t.updateForStatement(n,tj(n.initializer,r?Q:H,bu),tj(n.condition,W,_u),tj(n.incrementor,H,_u),_j(n.statement,r?U:W,e)),b=i,n}function Q(e){if(function(e){return DE(e)&&w(e)}(e)){let n;for(const t of e.declarations)n=Se(n,D(t,!1)),t.initializer||A(t);return n?t.inlineExpressions(n):t.createOmittedExpression()}return tj(e,H,bu)}function K(n,r){if(!(276828160&n.transformFlags))return n;switch(n.kind){case 245:return q(n,!1);case 241:return function(e){return t.updateExpressionStatement(e,tj(e.expression,H,_u))}(n);case 214:return function(e,n){return t.updateParenthesizedExpression(e,tj(e.expression,n?H:W,_u))}(n,r);case 356:return function(e,n){return t.updatePartiallyEmittedExpression(e,tj(e.expression,n?H:W,_u))}(n,r);case 223:if(jb(n))return function(t,n){return $(t.left)?dJ(t,W,e,0,!n):uj(t,W,e)}(n,r);break;case 210:if(sm(n))return function(e){const n=XF(t,e,m,s,a,o),r=tj(Oe(e.arguments),W,_u),i=!n||r&&sw(r)&&r.text===n.text?r:n;return t.createCallExpression(t.createPropertyAccessExpression(y,t.createIdentifier("import")),void 0,i?[i]:[])}(n);break;case 221:case 222:return function(n,r){if((45===n.operator||46===n.operator)&&Tw(n.operand)&&!dl(n.operand)&&!PF(n.operand)&&!Ax(n.operand)){const e=X(n.operand);if(e){let o,a=tj(n.operand,W,_u);qD(n)?a=t.updatePrefixUnaryExpression(n,a):(a=t.updatePostfixUnaryExpression(n,a),r||(o=t.createTempVariable(i),a=t.createAssignment(o,a),OP(a,n)),a=t.createComma(a,t.cloneNode(n.operand)),OP(a,n));for(const t of e)a=z(t,Y(a));return o&&(a=t.createComma(a,o),OP(a,n)),a}}return uj(n,W,e)}(n,r)}return uj(n,W,e)}function W(e){return K(e,!1)}function H(e){return K(e,!0)}function $(e){if(Rb(e,!0))return $(e.left);if($D(e))return $(e.expression);if(ED(e))return _e(e.properties,$);if(DD(e))return _e(e.elements,$);if(bN(e))return $(e.name);if(vN(e))return $(e.initializer);if(Tw(e)){const t=a.getReferencedExportContainer(e);return void 0!==t&&308===t.kind}return!1}function G(e){switch(e.kind){case 93:case 88:return}return e}function X(e){let n;if(!dl(e)){const r=a.getReferencedImportDeclaration(e)||a.getReferencedValueDeclaration(e);if(r){const i=a.getReferencedExportContainer(e,!1);i&&308===i.kind&&(n=Se(n,t.getDeclarationName(r))),n=Ae(n,g&&g.exportedBindings[Lj(r)])}}return n}function Y(e){return void 0===x&&(x=[]),x[qB(e)]=!0,e}}var pz=b({"src/compiler/transformers/module/system.ts"(){XK()}});function fz(e){const{factory:t,getEmitHelperFactory:n}=e,r=e.getEmitHost(),i=e.getEmitResolver(),o=e.getCompilerOptions(),a=Rk(o),s=e.onEmitNode,c=e.onSubstituteNode;let _,l,u;return e.onEmitNode=function(e,t,n){TN(t)?((wI(t)||qk(o))&&o.importHelpers&&(_=new Map),s(e,t,n),_=void 0):s(e,t,n)},e.onSubstituteNode=function(e,n){return n=c(e,n),_&&Tw(n)&&8192&rf(n)?function(e){const n=Oc(e);let r=_.get(n);return r||_.set(n,r=t.createUniqueName(n,48)),r}(n):n},e.enableEmitNotification(308),e.enableSubstitution(79),Rj(e,(function(r){if(r.isDeclarationFile)return r;if(wI(r)||qk(o)){l=r,u=void 0;let i=function(r){const i=HF(t,n(),r,o);if(i){const e=[],n=t.copyPrologue(r.statements,e);return Se(e,i),Ae(e,nj(r.statements,d,Iu,n)),t.updateSourceFile(r,OP(t.createNodeArray(e),r.statements))}return uj(r,d,e)}(r);return l=void 0,u&&(i=t.updateSourceFile(i,OP(t.createNodeArray(qp(i.statements.slice(),u)),i.statements))),!wI(r)||_e(i.statements,gu)?i:t.updateSourceFile(i,OP(t.createNodeArray([...i.statements,yF(t)]),i.statements))}return r}));function d(e){switch(e.kind){case 268:return Bk(o)>=100?function(e){let n;return In.assert(hg(e),"import= for internal module references should be handled in an earlier transformer."),n=Se(n,PC(OP(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(e.name),void 0,void 0,p(e))],a>=2?2:0)),e),e)),n=function(e,n){return cb(n,1)&&(e=Se(e,t.createExportDeclaration(void 0,n.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,Oc(n.name))])))),e}(n,e),Ue(n)}(e):void 0;case 274:return function(e){return e.isExportEquals?void 0:e}(e);case 275:return function(e){if(void 0!==o.module&&o.module>5)return e;if(!e.exportClause||!QE(e.exportClause)||!e.moduleSpecifier)return e;const n=e.exportClause.name,r=t.getGeneratedNameForNode(n),i=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(r)),e.moduleSpecifier,e.assertClause);PC(i,e.exportClause);const a=Yp(e)?t.createExportDefault(r):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,r,n)]));return PC(a,e),[i,a]}(e)}return e}function p(e){const n=XF(t,e,In.checkDefined(l),r,i,o),s=[];if(n&&s.push(n),!u){const e=t.createUniqueName("_createRequire",48),n=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),e)])),t.createStringLiteral("module")),r=t.createUniqueName("__require",48),i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,t.createCallExpression(t.cloneNode(e),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(100,t.createIdentifier("meta")),t.createIdentifier("url"))]))],a>=2?2:0));u=[n,i]}const c=u[1].declarationList.declarations[0].name;return In.assertNode(c,Tw),t.createCallExpression(t.cloneNode(c),void 0,s)}}var mz=b({"src/compiler/transformers/module/esnextAnd2015.ts"(){XK()}});function gz(e){const t=e.onSubstituteNode,n=e.onEmitNode,r=fz(e),i=e.onSubstituteNode,o=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=n;const a=lz(e),s=e.onSubstituteNode,c=e.onEmitNode;let _;return e.onSubstituteNode=function(e,n){return TN(n)?(_=n,t(e,n)):_?99===_.impliedNodeFormat?i(e,n):s(e,n):t(e,n)},e.onEmitNode=function(e,t,r){return TN(t)&&(_=t),_?99===_.impliedNodeFormat?o(e,t,r):c(e,t,r):n(e,t,r)},e.enableSubstitution(308),e.enableEmitNotification(308),function(t){return 308===t.kind?l(t):function(t){return e.factory.createBundle(V(t.sourceFiles,l),t.prepends)}(t)};function l(e){if(e.isDeclarationFile)return e;_=e;const t=(99===e.impliedNodeFormat?r:a)(e);return _=void 0,In.assert(TN(t)),t}}var hz=b({"src/compiler/transformers/module/node.ts"(){XK()}});function yz(e){return wE(e)||Qw(e)||Vw(e)||wD(e)||Qu(e)||Ku(e)||Zw(e)||Yw(e)||Ww(e)||Kw(e)||EE(e)||Uw(e)||zw(e)||YD(e)||BE(e)||PE(e)||$w(e)||eD(e)||ND(e)||vh(e)}function vz(e){return Qu(e)||Ku(e)?function(t){const n=function(t){return _b(e)?t.errorModuleName?2===t.accessibility?ja.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ja.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ja.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:260===e.parent.kind?t.errorModuleName?2===t.accessibility?ja.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ja.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ja.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?ja.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:ja.Property_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:Kw(e)||Ww(e)?function(t){const n=function(t){return _b(e)?t.errorModuleName?2===t.accessibility?ja.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ja.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ja.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:260===e.parent.kind?t.errorModuleName?2===t.accessibility?ja.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ja.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ja.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?ja.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:ja.Method_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:bz(e)}function bz(e){return wE(e)||Qw(e)||Vw(e)||ND(e)||wD(e)||$w(e)?t:Qu(e)||Ku(e)?function(t){let n;return n=175===e.kind?_b(e)?t.errorModuleName?ja.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ja.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?ja.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ja.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:_b(e)?t.errorModuleName?2===t.accessibility?ja.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ja.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ja.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?2===t.accessibility?ja.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ja.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ja.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:n,errorNode:e.name,typeName:e.name}}:Zw(e)||Yw(e)||Ww(e)||Kw(e)||EE(e)||eD(e)?function(t){let n;switch(e.kind){case 177:n=t.errorModuleName?ja.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ja.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 176:n=t.errorModuleName?ja.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ja.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 178:n=t.errorModuleName?ja.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ja.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 171:case 170:n=_b(e)?t.errorModuleName?2===t.accessibility?ja.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:ja.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:ja.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:260===e.parent.kind?t.errorModuleName?2===t.accessibility?ja.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:ja.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:ja.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?ja.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ja.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 259:n=t.errorModuleName?2===t.accessibility?ja.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:ja.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:ja.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return In.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:n,errorNode:e.name||e}}:Uw(e)?vc(e,e.parent)&&cb(e.parent,8)?t:function(t){const n=function(t){switch(e.parent.kind){case 173:return t.errorModuleName?2===t.accessibility?ja.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ja.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:ja.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 177:case 182:return t.errorModuleName?ja.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ja.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 176:return t.errorModuleName?ja.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ja.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 178:return t.errorModuleName?ja.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ja.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 171:case 170:return _b(e.parent)?t.errorModuleName?2===t.accessibility?ja.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ja.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:ja.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:260===e.parent.parent.kind?t.errorModuleName?2===t.accessibility?ja.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ja.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:ja.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?ja.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ja.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 259:case 181:return t.errorModuleName?2===t.accessibility?ja.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ja.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:ja.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 175:case 174:return t.errorModuleName?2===t.accessibility?ja.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ja.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:ja.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return In.fail("Unknown parent for parameter: "+In.formatSyntaxKind(e.parent.kind))}}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:zw(e)?function(){let t;switch(e.parent.kind){case 260:t=ja.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 261:t=ja.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 197:t=ja.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 182:case 177:t=ja.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 176:t=ja.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 171:case 170:t=_b(e.parent)?ja.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:260===e.parent.parent.kind?ja.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:ja.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 181:case 259:t=ja.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 192:t=ja.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 262:t=ja.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return In.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:t,errorNode:e,typeName:e.name}}:YD(e)?function(){let t;return t=NE(e.parent.parent)?hN(e.parent)&&117===e.parent.token?ja.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?ja.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:ja.extends_clause_of_exported_class_has_or_is_using_private_name_0:ja.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:t,errorNode:e,typeName:qc(e.parent.parent)}}:BE(e)?function(){return{diagnosticMessage:ja.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}:PE(e)||vh(e)?function(t){return{diagnosticMessage:t.errorModuleName?ja.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:ja.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:vh(e)?In.checkDefined(e.typeExpression):e.type,typeName:vh(e)?qc(e):e.name}}:In.assertNever(e,"Attempted to set a declaration diagnostic context for unhandled node kind: "+In.formatSyntaxKind(e.kind));function t(t){const n=function(t){return 257===e.kind||205===e.kind?t.errorModuleName?2===t.accessibility?ja.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ja.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:ja.Exported_variable_0_has_or_is_using_private_name_1:169===e.kind||208===e.kind||168===e.kind||166===e.kind&&cb(e.parent,8)?_b(e)?t.errorModuleName?2===t.accessibility?ja.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ja.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ja.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:260===e.parent.kind||166===e.kind?t.errorModuleName?2===t.accessibility?ja.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ja.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ja.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?ja.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:ja.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}}var xz,kz=b({"src/compiler/transformers/declarations/diagnostics.ts"(){XK()}});function Sz(e,t,n){const r=e.getCompilerOptions();return Jz(t,e,dC,r,n?[n]:z(e.getSourceFiles(),Cg),[Az],!1).diagnostics}function Tz(e,t){return rn(t.text.substring(e.pos,e.end),"@internal")}function Cz(e,t){const n=Fc(e);if(n&&166===n.kind){const r=n.parent.parameters.indexOf(n),i=r>0?n.parent.parameters[r-1]:void 0,o=t.text,a=i?ue(Bs(o,As(o,i.end+1,!1,!0)),Rs(o,e.pos)):Bs(o,As(o,e.pos,!1,!0));return a&&a.length&&Tz(je(a),t)}return!!T(n&&mm(n,t),(e=>Tz(e,t)))}function Az(e){const t=()=>In.fail("Diagnostic emitted without context");let n,i,o,a,s,c,_=t,l=!0,u=!1,d=!1,p=!1,f=!1;const{factory:m}=e,g=e.getEmitHost(),h={trackSymbol:function(e,t,n){if(262144&e.flags)return!1;const r=F(A.isSymbolAccessible(e,t,n,!0));return N(A.getTypeReferenceDirectivesForSymbol(e,n)),r},reportInaccessibleThisError:function(){(y||v)&&e.addDiagnostic(zf(y||v,ja.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,P(),"this"))},reportInaccessibleUniqueSymbolError:function(){(y||v)&&e.addDiagnostic(zf(y||v,ja.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,P(),"unique symbol"))},reportCyclicStructureError:function(){(y||v)&&e.addDiagnostic(zf(y||v,ja.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,P()))},reportPrivateInBaseOfClassExpression:function(t){(y||v)&&e.addDiagnostic(zf(y||v,ja.Property_0_of_exported_class_expression_may_not_be_private_or_protected,t))},reportLikelyUnsafeImportRequiredError:function(t){(y||v)&&e.addDiagnostic(zf(y||v,ja.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,P(),t))},reportTruncationError:function(){(y||v)&&e.addDiagnostic(zf(y||v,ja.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:g,trackReferencedAmbientModule:function(e,t){const n=A.getTypeReferenceDirectivesForSymbol(t,67108863);if(S(n))return N(n);const r=wp(e);x.set(Lj(r),r)},trackExternalModuleSymbolOfImportTypeNode:function(e){u||(c||(c=[])).push(e)},reportNonlocalAugmentation:function(t,n,r){var i;const o=null==(i=n.declarations)?void 0:i.find((e=>wp(e)===t)),a=z(r.declarations,(e=>wp(e)!==t));if(o&&a)for(const t of a)e.addDiagnostic(rT(zf(t,ja.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),zf(o,ja.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))},reportNonSerializableProperty:function(t){(y||v)&&e.addDiagnostic(zf(y||v,ja.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,t))},reportImportTypeNodeResolutionModeOverride:function(){dv()||!y&&!v||e.addDiagnostic(zf(y||v,ja.The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next))}};let y,v,b,x,k,C;const A=e.getEmitResolver(),w=e.getCompilerOptions(),{noResolve:D,stripInternal:E}=w;return function(r){if(308===r.kind&&r.isDeclarationFile)return r;if(309===r.kind){u=!0,x=new Map,k=new Map;let i=!1;const c=m.createBundle(V(r.sourceFiles,(r=>{if(r.isDeclarationFile)return;if(i=i||r.hasNoDefaultLib,b=r,n=r,o=void 0,s=!1,a=new Map,_=t,p=!1,f=!1,O(r,x),L(r,k),em(r)||tm(r)){d=!1,l=!1;const t=xg(r)?m.createNodeArray(I(r,!0)):nj(r.statements,oe,Iu);return m.updateSourceFile(r,[m.createModuleDeclaration([m.createModifier(136)],m.createStringLiteral(hv(e.getEmitHost(),r)),m.createModuleBlock(OP(m.createNodeArray(re(t)),r.statements)))],!0,[],[],!1,[])}l=!0;const c=xg(r)?m.createNodeArray(I(r)):nj(r.statements,oe,Iu);return m.updateSourceFile(r,re(c),!0,[],[],!1,[])})),Z(r.prepends,(e=>{if(311===e.kind){const t=wC(e,"dts",E);return i=i||!!t.hasNoDefaultLib,O(t,x),N(V(t.typeReferenceDirectives,(e=>[e.fileName,e.resolutionMode]))),L(t,k),t}return e})));c.syntheticFileReferences=[],c.syntheticTypeReferences=A(),c.syntheticLibReferences=T(),c.hasNoDefaultLib=i;const h=sa(pa(Yz(r,g,!0).declarationFilePath)),y=F(c.syntheticFileReferences,h);return x.forEach(y),c}l=!0,p=!1,f=!1,n=r,b=r,_=t,u=!1,d=!1,s=!1,o=void 0,a=new Map,i=void 0,x=O(b,new Map),k=L(b,new Map);const h=[],y=F(h,sa(pa(Yz(r,g,!0).declarationFilePath)));let v;if(xg(b))v=m.createNodeArray(I(r)),x.forEach(y),C=z(v,Df);else{const e=nj(r.statements,oe,Iu);v=OP(m.createNodeArray(re(e)),r.statements),x.forEach(y),C=z(v,Df),wI(r)&&(!d||p&&!f)&&(v=OP(m.createNodeArray([...v,yF(m)]),v))}const S=m.updateSourceFile(r,v,!0,h,A(),r.hasNoDefaultLib,T());return S.exportedModulesFromDeclarationEmit=c,S;function T(){return Ze(k.keys(),(e=>({fileName:e,pos:-1,end:-1})))}function A(){return i?Z(Ze(i.keys()),D):[]}function D([e,t]){if(C)for(const t of C)if(BE(t)&&rN(t.moduleReference)){const n=t.moduleReference.expression;if(ed(n)&&n.text===e)return}else if(jE(t)&&sw(t.moduleSpecifier)&&t.moduleSpecifier.text===e)return;return{fileName:e,pos:-1,end:-1,...t?{resolutionMode:t}:void 0}}function F(e,t){return n=>{let i;if(n.isDeclarationFile)i=n.fileName;else{if(u&&R(r.sourceFiles,n))return;const e=Yz(n,g,!0);i=e.declarationFilePath||e.jsFilePath||n.fileName}if(i){const n=ZR(w,b,xa(t,g.getCurrentDirectory(),g.getCanonicalFileName),xa(i,g.getCurrentDirectory(),g.getCanonicalFileName),g);if(!Yo(n))return void N([[n,void 0]]);let r=Ma(t,i,g.getCurrentDirectory(),g.getCanonicalFileName,!1);if(fn(r,"./")&&ea(r)&&(r=r.substring(2)),fn(r,"node_modules/")||HM(r))return;e.push({pos:-1,end:-1,fileName:r})}}}};function N(e){if(e){i=i||new Set;for(const t of e)i.add(t)}}function F(t){if(0===t.accessibility){if(t&&t.aliasesToMakeVisible)if(o)for(const e of t.aliasesToMakeVisible)we(o,e);else o=t.aliasesToMakeVisible}else{const n=_(t);if(n)return n.typeName?e.addDiagnostic(zf(t.errorNode||n.errorNode,n.diagnosticMessage,ef(n.typeName),t.errorSymbolName,t.errorModuleName)):e.addDiagnostic(zf(t.errorNode||n.errorNode,n.diagnosticMessage,t.errorSymbolName,t.errorModuleName)),!0}return!1}function P(){return y?Lf(y):v&&qc(v)?Lf(qc(v)):v&&HE(v)?v.isExportEquals?"export=":"default":"(Missing)"}function I(e,t){const n=_;_=t=>t.errorNode&&yz(t.errorNode)?bz(t.errorNode)(t):{diagnosticMessage:t.errorModuleName?ja.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:ja.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:t.errorNode||e};const r=A.getDeclarationStatementsForSourceFile(e,xz,h,t);return _=n,r}function O(e,t){return D||!AN(e)&&xg(e)||T(e.referencedFiles,(n=>{const r=g.getSourceFileFromReference(e,n);r&&t.set(Lj(r),r)})),t}function L(e,t){return T(e.libReferenceDirectives,(e=>{g.getLibFileFromReference(e)&&t.set(Et(e.fileName),!0)})),t}function M(e){return 79===e.kind?e:204===e.kind?m.updateArrayBindingPattern(e,nj(e.elements,t,Vl)):m.updateObjectBindingPattern(e,nj(e.elements,t,wD));function t(e){return 229===e.kind?e:e.propertyName&&Tw(e.propertyName)&&Tw(e.name)&&!e.symbol.isReferenced&&!by(e.propertyName)?m.updateBindingElement(e,e.dotDotDotToken,void 0,e.propertyName,j(e)?e.initializer:void 0):m.updateBindingElement(e,e.dotDotDotToken,e.propertyName,M(e.name),j(e)?e.initializer:void 0)}}function B(e,t,n){let r;s||(r=_,_=bz(e));const i=m.updateParameterDeclaration(e,function(e,t,n){return dC.createModifiersFromModifierFlags(wz(e,t,void 0))}(e,t),e.dotDotDotToken,M(e.name),A.isOptionalParameter(e)?e.questionToken||m.createToken(57):void 0,U(e,n||e.type,!0),J(e));return s||(_=r),i}function j(e){return function(e){switch(e.kind){case 169:case 168:return!sb(e,8);case 166:case 257:return!0}return!1}(e)&&A.isLiteralConstDeclaration(Fc(e))}function J(e){if(j(e))return A.createLiteralConstValue(Fc(e),h)}function U(e,t,r){if(!r&&sb(e,8))return;if(j(e))return;const i=166===e.kind&&(A.isRequiredInitializedParameter(e)||A.isOptionalUninitializedParameterProperty(e));if(t&&!i)return tj(t,ie,Jl);if(!Fc(e))return t?tj(t,ie,Jl):m.createKeywordTypeNode(131);if(175===e.kind)return m.createKeywordTypeNode(131);let o;return y=e.name,s||(o=_,_=bz(e)),257===e.kind||205===e.kind?a(A.createTypeOfDeclaration(e,n,xz,h)):166===e.kind||169===e.kind||168===e.kind?Vw(e)||!e.initializer?a(A.createTypeOfDeclaration(e,n,xz,h,i)):a(A.createTypeOfDeclaration(e,n,xz,h,i)||A.createTypeOfExpression(e.initializer,n,xz,h)):a(A.createReturnTypeOfSignatureDeclaration(e,n,xz,h));function a(e){return y=void 0,s||(_=o),e||m.createKeywordTypeNode(131)}}function q(e){switch((e=Fc(e)).kind){case 259:case 264:case 261:case 260:case 262:case 263:return!A.isDeclarationVisible(e);case 257:return!Q(e);case 268:case 269:case 275:case 274:return!1;case 172:return!0}return!1}function Q(e){return!XD(e)&&(Ul(e.name)?_e(e.name.elements,Q):A.isDeclarationVisible(e))}function K(e,t,n){if(sb(e,8))return m.createNodeArray();const r=V(t,(e=>B(e,n)));return r?m.createNodeArray(r,t.hasTrailingComma):m.createNodeArray()}function $(e,t){let n;if(!t){const t=Jv(e);t&&(n=[B(t)])}if(Xw(e)){let r;if(!t){const t=Bv(e);t&&(r=B(t,void 0,fe(e,A.getAllAccessorDeclarations(e))))}r||(r=m.createParameterDeclaration(void 0,void 0,"value")),n=Se(n,r)}return m.createNodeArray(n||r)}function G(e,t){return sb(e,8)?void 0:nj(t,ie,zw)}function X(e){return TN(e)||PE(e)||OE(e)||NE(e)||FE(e)||Sl(e)||eD(e)||bD(e)}function Y(e,t){F(A.isEntityNameVisible(e,t)),N(A.getTypeReferenceDirectivesForEntityName(e))}function ee(e,t){return Wu(e)&&Wu(t)&&(e.jsDoc=t.jsDoc),HC(e,WC(t))}function te(t,n){if(n){if(d=d||264!==t.kind&&202!==t.kind,ed(n))if(u){const n=vv(e.getEmitHost(),A,t);if(n)return m.createStringLiteral(n)}else{const e=A.getSymbolOfExternalModuleSpecifier(n);e&&(c||(c=[])).push(e)}return n}}function ne(t){if(void 0!==hq(t))return dv()||e.addDiagnostic(zf(t,ja.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next)),t}function re(e){for(;S(o);){const e=o.shift();if(!Nf(e))return In.fail("Late replaced statement was found which is not handled by the declaration transformer!: "+In.formatSyntaxKind(e.kind));const t=l;l=e.parent&&TN(e.parent)&&!(wI(e.parent)&&u);const n=se(e);l=t,a.set(Lj(e),n)}return nj(e,(function(e){if(Nf(e)){const t=Lj(e);if(a.has(t)){const n=a.get(t);return a.delete(t),n&&((ht(n)?_e(n,mu):mu(n))&&(p=!0),TN(e.parent)&&(ht(n)?_e(n,gu):gu(n))&&(d=!0)),n}}return e}),Iu)}function ie(t){if(le(t))return;if(Nu(t)){if(q(t))return;if(Ay(t)&&!A.isLateBound(Fc(t)))return}if(Sl(t)&&A.isImplementationOfOverload(t))return;if(sE(t))return;let r;X(t)&&(r=n,n=t);const i=_,o=yz(t),a=s;let c=(184===t.kind||197===t.kind)&&262!==t.parent.kind;if((Ww(t)||Kw(t))&&sb(t,8)){if(t.symbol&&t.symbol.declarations&&t.symbol.declarations[0]!==t)return;return u(m.createPropertyDeclaration(pe(t),t.name,void 0,void 0,void 0))}if(o&&!s&&(_=bz(t)),oD(t)&&Y(t.exprName,n),c&&(s=!0),function(e){switch(e.kind){case 177:case 173:case 171:case 174:case 175:case 169:case 168:case 170:case 176:case 178:case 257:case 165:case 230:case 180:case 191:case 181:case 182:case 202:return!0}return!1}(t))switch(t.kind){case 230:{(bl(t.expression)||zb(t.expression))&&Y(t.expression,n);const r=uj(t,ie,e);return u(m.updateExpressionWithTypeArguments(r,r.expression,r.typeArguments))}case 180:{Y(t.typeName,n);const r=uj(t,ie,e);return u(m.updateTypeReferenceNode(r,r.typeName,r.typeArguments))}case 177:return u(m.updateConstructSignature(t,G(t,t.typeParameters),K(t,t.parameters),U(t,t.type)));case 173:return u(m.createConstructorDeclaration(pe(t),K(t,t.parameters,0),void 0));case 171:return Cw(t.name)?u(void 0):u(m.createMethodDeclaration(pe(t),void 0,t.name,t.questionToken,G(t,t.typeParameters),K(t,t.parameters),U(t,t.type),void 0));case 174:{if(Cw(t.name))return u(void 0);const e=fe(t,A.getAllAccessorDeclarations(t));return u(m.updateGetAccessorDeclaration(t,pe(t),t.name,$(t,sb(t,8)),U(t,e),void 0))}case 175:return Cw(t.name)?u(void 0):u(m.updateSetAccessorDeclaration(t,pe(t),t.name,$(t,sb(t,8)),void 0));case 169:return Cw(t.name)?u(void 0):u(m.updatePropertyDeclaration(t,pe(t),t.name,t.questionToken,U(t,t.type),J(t)));case 168:return Cw(t.name)?u(void 0):u(m.updatePropertySignature(t,pe(t),t.name,t.questionToken,U(t,t.type)));case 170:return Cw(t.name)?u(void 0):u(m.updateMethodSignature(t,pe(t),t.name,t.questionToken,G(t,t.typeParameters),K(t,t.parameters),U(t,t.type)));case 176:return u(m.updateCallSignature(t,G(t,t.typeParameters),K(t,t.parameters),U(t,t.type)));case 178:return u(m.updateIndexSignature(t,pe(t),K(t,t.parameters),tj(t.type,ie,Jl)||m.createKeywordTypeNode(131)));case 257:return Ul(t.name)?ce(t.name):(c=!0,s=!0,u(m.updateVariableDeclaration(t,t.name,void 0,U(t,t.type),J(t))));case 165:return 171===(l=t).parent.kind&&sb(l.parent,8)&&(t.default||t.constraint)?u(m.updateTypeParameterDeclaration(t,t.modifiers,t.name,void 0,void 0)):u(uj(t,ie,e));case 191:{const e=tj(t.checkType,ie,Jl),r=tj(t.extendsType,ie,Jl),i=n;n=t.trueType;const o=tj(t.trueType,ie,Jl);n=i;const a=tj(t.falseType,ie,Jl);return In.assert(e),In.assert(r),In.assert(o),In.assert(a),u(m.updateConditionalTypeNode(t,e,r,o,a))}case 181:return u(m.updateFunctionTypeNode(t,nj(t.typeParameters,ie,zw),K(t,t.parameters),In.checkDefined(tj(t.type,ie,Jl))));case 182:return u(m.updateConstructorTypeNode(t,pe(t),nj(t.typeParameters,ie,zw),K(t,t.parameters),In.checkDefined(tj(t.type,ie,Jl))));case 202:return _m(t)?u(m.updateImportTypeNode(t,m.updateLiteralTypeNode(t.argument,te(t,t.argument.literal)),t.assertions,t.qualifier,nj(t.typeArguments,ie,Jl),t.isTypeOf)):u(t);default:In.assertNever(t,"Attempted to process unhandled node kind: "+In.formatSyntaxKind(t.kind))}var l;return cD(t)&&ys(b,t.pos).line===ys(b,t.end).line&&RC(t,1),u(uj(t,ie,e));function u(e){return e&&o&&Ay(t)&&function(e){let t;s||(t=_,_=vz(e)),y=e.name,In.assert(A.isLateBound(Fc(e))),Y(e.name.expression,n),s||(_=t),y=void 0}(t),X(t)&&(n=r),o&&!s&&(_=i),c&&(s=a),e===t?e:e&&PC(ee(e,t),t)}}function oe(e){if(!function(e){switch(e.kind){case 259:case 264:case 268:case 261:case 260:case 262:case 263:case 240:case 269:case 275:case 274:return!0}return!1}(e))return;if(le(e))return;switch(e.kind){case 275:return TN(e.parent)&&(d=!0),f=!0,m.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,te(e,e.moduleSpecifier),hq(e.assertClause)?e.assertClause:void 0);case 274:if(TN(e.parent)&&(d=!0),f=!0,79===e.expression.kind)return e;{const t=m.createUniqueName("_default",16);_=()=>({diagnosticMessage:ja.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:e}),v=e;const n=m.createVariableDeclaration(t,void 0,A.createTypeOfExpression(e.expression,e,xz,h),void 0);v=void 0;const r=m.createVariableStatement(l?[m.createModifier(136)]:[],m.createVariableDeclarationList([n],2));return ee(r,e),MC(e),[r,m.updateExportAssignment(e,e.modifiers,t)]}}const t=se(e);return a.set(Lj(e),t),e}function ae(e){if(BE(e)||sb(e,1024)||!LP(e))return e;const t=m.createModifiersFromModifierFlags(258046&bb(e));return m.updateModifiers(e,t)}function se(e){if(o)for(;an(o,e););if(le(e))return;switch(e.kind){case 268:return function(e){if(A.isDeclarationVisible(e)){if(280===e.moduleReference.kind){const t=yg(e);return m.updateImportEqualsDeclaration(e,e.modifiers,e.isTypeOnly,e.name,m.updateExternalModuleReference(e.moduleReference,te(e,t)))}{const t=_;return _=bz(e),Y(e.moduleReference,n),_=t,e}}}(e);case 269:return function(e){if(!e.importClause)return m.updateImportDeclaration(e,e.modifiers,e.importClause,te(e,e.moduleSpecifier),ne(e.assertClause));const t=e.importClause&&e.importClause.name&&A.isDeclarationVisible(e.importClause)?e.importClause.name:void 0;if(!e.importClause.namedBindings)return t&&m.updateImportDeclaration(e,e.modifiers,m.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,void 0),te(e,e.moduleSpecifier),ne(e.assertClause));if(271===e.importClause.namedBindings.kind){const n=A.isDeclarationVisible(e.importClause.namedBindings)?e.importClause.namedBindings:void 0;return t||n?m.updateImportDeclaration(e,e.modifiers,m.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,n),te(e,e.moduleSpecifier),ne(e.assertClause)):void 0}const n=Z(e.importClause.namedBindings.elements,(e=>A.isDeclarationVisible(e)?e:void 0));return n&&n.length||t?m.updateImportDeclaration(e,e.modifiers,m.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,n&&n.length?m.updateNamedImports(e.importClause.namedBindings,n):void 0),te(e,e.moduleSpecifier),ne(e.assertClause)):A.isImportRequiredByAugmentation(e)?m.updateImportDeclaration(e,e.modifiers,void 0,te(e,e.moduleSpecifier),ne(e.assertClause)):void 0}(e)}if(Nu(e)&&q(e))return;if(Sl(e)&&A.isImplementationOfOverload(e))return;let t;X(e)&&(t=n,n=e);const r=yz(e),i=_;r&&(_=bz(e));const s=l;switch(e.kind){case 262:{l=!1;const t=c(m.updateTypeAliasDeclaration(e,pe(e),e.name,nj(e.typeParameters,ie,zw),In.checkDefined(tj(e.type,ie,Jl))));return l=s,t}case 261:return c(m.updateInterfaceDeclaration(e,pe(e),e.name,G(e,e.typeParameters),me(e.heritageClauses),nj(e.members,ie,Rl)));case 259:{const t=c(m.updateFunctionDeclaration(e,pe(e),void 0,e.name,G(e,e.typeParameters),K(e,e.parameters),U(e,e.type),void 0));if(t&&A.isExpandoFunctionDeclaration(e)&&function(e){var t;if(e.body)return!0;const n=null==(t=e.symbol.declarations)?void 0:t.filter((e=>EE(e)&&!e.body));return!n||n.indexOf(e)===n.length-1}(e)){const r=A.getPropertiesOfContainerFunction(e),o=qP.createModuleDeclaration(void 0,t.name||m.createIdentifier("_default"),m.createModuleBlock([]),16);kT(o,n),o.locals=ip(r),o.symbol=r[0].parent;const a=[];let s=Z(r,(e=>{if(!e.valueDeclaration||!ND(e.valueDeclaration))return;_=bz(e.valueDeclaration);const t=A.createTypeOfDeclaration(e.valueDeclaration,o,xz,h);_=i;const n=Ic(e.escapedName),r=yy(n),s=r?m.getGeneratedNameForNode(e.valueDeclaration):m.createIdentifier(n);r&&a.push([s,n]);const c=m.createVariableDeclaration(s,void 0,t,void 0);return m.createVariableStatement(r?void 0:[m.createToken(93)],m.createVariableDeclarationList([c]))}));a.length?s.push(m.createExportDeclaration(void 0,!1,m.createNamedExports(V(a,(([e,t])=>m.createExportSpecifier(!1,e,t)))))):s=Z(s,(e=>m.updateModifiers(e,0)));const c=m.createModuleDeclaration(pe(e),e.name,m.createModuleBlock(s),16);if(!sb(t,1024))return[t,c];const l=m.createModifiersFromModifierFlags(-1026&bb(t)|2),u=m.updateFunctionDeclaration(t,l,void 0,t.name,t.typeParameters,t.parameters,t.type,void 0),p=m.updateModuleDeclaration(c,l,c.name,c.body),g=m.createExportAssignment(void 0,!1,c.name);return TN(e.parent)&&(d=!0),f=!0,[u,p,g]}return t}case 264:{l=!1;const t=e.body;if(t&&265===t.kind){const n=p,r=f;f=!1,p=!1;let i=re(nj(t.statements,oe,Iu));16777216&e.flags&&(p=!1),yf(e)||_e(i,de)||f||(i=p?m.createNodeArray([...i,yF(m)]):nj(i,ae,Iu));const o=m.updateModuleBlock(t,i);l=s,p=n,f=r;const a=pe(e);return c(m.updateModuleDeclaration(e,a,vf(e)?te(e,e.name):e.name,o))}{l=s;const n=pe(e);l=!1,tj(t,oe);const r=Lj(t),i=a.get(r);return a.delete(r),c(m.updateModuleDeclaration(e,n,e.name,i))}}case 260:{y=e.name,v=e;const t=m.createNodeArray(pe(e)),n=G(e,e.typeParameters),r=Rv(e);let i;if(r){const e=_;i=xe(H(r.parameters,(e=>{if(cb(e,16476)&&!le(e))return _=bz(e),79===e.name.kind?ee(m.createPropertyDeclaration(pe(e),e.name,e.questionToken,U(e,e.type),J(e)),e):function t(n){let r;for(const i of n.elements)XD(i)||(Ul(i.name)&&(r=ue(r,t(i.name))),r=r||[],r.push(m.createPropertyDeclaration(pe(e),i.name,void 0,U(i,void 0),void 0)));return r}(e.name)}))),_=e}const o=ue(ue(_e(e.members,(e=>!!e.name&&Cw(e.name)))?[m.createPropertyDeclaration(void 0,m.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,i),nj(e.members,ie,Nl)),a=m.createNodeArray(o),s=sy(e);if(s&&!zb(s.expression)&&104!==s.expression.kind){const r=e.name?Ic(e.name.escapedText):"default",i=m.createUniqueName(r+"_base",16);_=()=>({diagnosticMessage:ja.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:s,typeName:e.name});const o=m.createVariableDeclaration(i,void 0,A.createTypeOfExpression(s.expression,e,xz,h),void 0),u=m.createVariableStatement(l?[m.createModifier(136)]:[],m.createVariableDeclarationList([o],2)),d=m.createNodeArray(V(e.heritageClauses,(e=>{if(94===e.token){const t=_;_=bz(e.types[0]);const n=m.updateHeritageClause(e,V(e.types,(e=>m.updateExpressionWithTypeArguments(e,i,nj(e.typeArguments,ie,Jl)))));return _=t,n}return m.updateHeritageClause(e,nj(m.createNodeArray(z(e.types,(e=>zb(e.expression)||104===e.expression.kind))),ie,YD))})));return[u,c(m.updateClassDeclaration(e,t,e.name,n,d,a))]}{const r=me(e.heritageClauses);return c(m.updateClassDeclaration(e,t,e.name,n,r,a))}}case 240:return c(function(e){if(!T(e.declarationList.declarations,Q))return;const t=nj(e.declarationList.declarations,ie,wE);return S(t)?m.updateVariableStatement(e,m.createNodeArray(pe(e)),m.updateVariableDeclarationList(e.declarationList,t)):void 0}(e));case 263:return c(m.updateEnumDeclaration(e,m.createNodeArray(pe(e)),e.name,m.createNodeArray(Z(e.members,(e=>{if(le(e))return;const t=A.getConstantValue(e);return ee(m.updateEnumMember(e,e.name,void 0!==t?"string"==typeof t?m.createStringLiteral(t):m.createNumericLiteral(t):void 0),e)})))))}return In.assertNever(e,"Unhandled top-level node in declaration emit: "+In.formatSyntaxKind(e.kind));function c(o){return X(e)&&(n=t),r&&(_=i),264===e.kind&&(l=s),o===e?o:(v=void 0,y=void 0,o&&PC(ee(o,e),e))}}function ce(e){return W(Z(e.elements,(e=>function(e){if(229!==e.kind&&e.name){if(!Q(e))return;return Ul(e.name)?ce(e.name):m.createVariableDeclaration(e.name,void 0,U(e,void 0),void 0)}}(e))))}function le(e){return!!E&&!!e&&Cz(e,b)}function de(e){return HE(e)||$E(e)}function pe(e){const t=bb(e),n=function(e){let t=241147,n=l&&!function(e){return 261===e.kind}(e)?2:0;const r=308===e.parent.kind;return(!r||u&&r&&wI(e.parent))&&(t^=2,n=0),wz(e,t,n)}(e);return t===n?rj(e.modifiers,(e=>xt(e,vl)),vl):m.createModifiersFromModifierFlags(n)}function fe(e,t){let n=Dz(e);return n||e===t.firstAccessor||(n=Dz(t.firstAccessor),_=bz(t.firstAccessor)),!n&&t.secondAccessor&&e!==t.secondAccessor&&(n=Dz(t.secondAccessor),_=bz(t.secondAccessor)),n}function me(e){return m.createNodeArray(z(V(e,(e=>m.updateHeritageClause(e,nj(m.createNodeArray(z(e.types,(t=>zb(t.expression)||94===e.token&&104===t.expression.kind))),ie,YD)))),(e=>e.types&&!!e.types.length)))}}function wz(e,t=258043,n=0){let r=bb(e)&t|n;return 1024&r&&!(1&r)&&(r^=1),1024&r&&2&r&&(r^=2),r}function Dz(e){if(e)return 174===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}var Ez,Nz,Fz=b({"src/compiler/transformers/declarations.ts"(){XK(),zB(),xz=531469}});function Pz(e,t,n){return{scriptTransformers:Iz(e,t,n),declarationTransformers:Oz(t)}}function Iz(e,t,n){if(n)return r;const i=Rk(e),o=Bk(e),a=aS(e),s=[];return Ae(s,t&&V(t.before,Mz)),s.push(DJ),e.experimentalDecorators?s.push(OJ):(i<99||!a)&&s.push(MJ),s.push(NJ),uS(e)&&s.push(YJ),i<99&&s.push($J),i<8&&s.push(WJ),i<7&&s.push(QJ),i<6&&s.push(qJ),i<5&&s.push(zJ),i<4&&s.push(BJ),i<3&&s.push(ez),i<2&&(s.push(rz),s.push(sz)),s.push(function(e){switch(e){case 99:case 7:case 6:case 5:return fz;case 4:return dz;case 100:case 199:return gz;default:return lz}}(o)),i<1&&s.push(oz),Ae(s,t&&V(t.after,Mz)),s}function Oz(e){const t=[];return t.push(Az),Ae(t,e&&V(e.afterDeclarations,Rz)),t}function Lz(e,t){return n=>{const r=e(n);return"function"==typeof r?t(n,r):function(e){return t=>CN(t)?e.transformBundle(t):e.transformSourceFile(t)}(r)}}function Mz(e){return Lz(e,Rj)}function Rz(e){return Lz(e,((e,t)=>t))}function Bz(e,t){return t}function jz(e,t,n){n(e,t)}function Jz(e,t,n,r,i,o,a){var s,c;const _=Array(361);let l,u,d,p,f,m=0,g=[],h=[],y=[],v=[],b=0,x=!1,k=[],S=0,T=Bz,C=jz,A=0;const w=[],D={factory:n,getCompilerOptions:()=>r,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Ft((()=>ZA(D))),startLexicalEnvironment:function(){In.assert(A>0,"Cannot modify the lexical environment during initialization."),In.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),In.assert(!x,"Lexical environment is suspended."),g[b]=l,h[b]=u,y[b]=d,v[b]=m,b++,l=void 0,u=void 0,d=void 0,m=0},suspendLexicalEnvironment:function(){In.assert(A>0,"Cannot modify the lexical environment during initialization."),In.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),In.assert(!x,"Lexical environment is already suspended."),x=!0},resumeLexicalEnvironment:function(){In.assert(A>0,"Cannot modify the lexical environment during initialization."),In.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),In.assert(x,"Lexical environment is not suspended."),x=!1},endLexicalEnvironment:function(){let e;if(In.assert(A>0,"Cannot modify the lexical environment during initialization."),In.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),In.assert(!x,"Lexical environment is suspended."),l||u||d){if(u&&(e=[...u]),l){const t=n.createVariableStatement(void 0,n.createVariableDeclarationList(l));RC(t,2097152),e?e.push(t):e=[t]}d&&(e=e?[...e,...d]:[...d])}return b--,l=g[b],u=h[b],d=y[b],m=v[b],0===b&&(g=[],h=[],y=[],v=[]),e},setLexicalEnvironmentFlags:function(e,t){m=t?m|e:m&~e},getLexicalEnvironmentFlags:function(){return m},hoistVariableDeclaration:function(e){In.assert(A>0,"Cannot modify the lexical environment during initialization."),In.assert(A<2,"Cannot modify the lexical environment after transformation has completed.");const t=RC(n.createVariableDeclaration(e),128);l?l.push(t):l=[t],1&m&&(m|=2)},hoistFunctionDeclaration:function(e){In.assert(A>0,"Cannot modify the lexical environment during initialization."),In.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),RC(e,2097152),u?u.push(e):u=[e]},addInitializationStatement:function(e){In.assert(A>0,"Cannot modify the lexical environment during initialization."),In.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),RC(e,2097152),d?d.push(e):d=[e]},startBlockScope:function(){In.assert(A>0,"Cannot start a block scope during initialization."),In.assert(A<2,"Cannot start a block scope after transformation has completed."),k[S]=p,S++,p=void 0},endBlockScope:function(){In.assert(A>0,"Cannot end a block scope during initialization."),In.assert(A<2,"Cannot end a block scope after transformation has completed.");const e=_e(p)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(p.map((e=>n.createVariableDeclaration(e))),1))]:void 0;return S--,p=k[S],0===S&&(k=[]),e},addBlockScopedVariable:function(e){In.assert(S>0,"Cannot add a block scoped variable outside of an iteration body."),(p||(p=[])).push(e)},requestEmitHelper:function e(t){if(In.assert(A>0,"Cannot modify the transformation context during initialization."),In.assert(A<2,"Cannot modify the transformation context after transformation has completed."),In.assert(!t.scoped,"Cannot request a scoped emit helper."),t.dependencies)for(const n of t.dependencies)e(n);f=Se(f,t)},readEmitHelpers:function(){In.assert(A>0,"Cannot modify the transformation context during initialization."),In.assert(A<2,"Cannot modify the transformation context after transformation has completed.");const e=f;return f=void 0,e},enableSubstitution:function(e){In.assert(A<2,"Cannot modify the transformation context after transformation has completed."),_[e]|=1},enableEmitNotification:function(e){In.assert(A<2,"Cannot modify the transformation context after transformation has completed."),_[e]|=2},isSubstitutionEnabled:I,isEmitNotificationEnabled:O,get onSubstituteNode(){return T},set onSubstituteNode(e){In.assert(A<1,"Cannot modify transformation hooks after initialization has completed."),In.assert(void 0!==e,"Value must not be 'undefined'"),T=e},get onEmitNode(){return C},set onEmitNode(e){In.assert(A<1,"Cannot modify transformation hooks after initialization has completed."),In.assert(void 0!==e,"Value must not be 'undefined'"),C=e},addDiagnostic(e){w.push(e)}};for(const e of i)LC(wp(Fc(e)));Er("beforeTransform");const E=o.map((e=>e(D))),N=e=>{for(const t of E)e=t(e);return e};A=1;const F=[];for(const e of i)null==(s=Ur)||s.push(Ur.Phase.Emit,"transformNodes",308===e.kind?{path:e.path}:{kind:e.kind,pos:e.pos,end:e.end}),F.push((a?N:P)(e)),null==(c=Ur)||c.pop();return A=2,Er("afterTransform"),Nr("transformTime","beforeTransform","afterTransform"),{transformed:F,substituteNode:function(e,t){return In.assert(A<3,"Cannot substitute a node after the result is disposed."),t&&I(t)&&T(e,t)||t},emitNodeWithNotification:function(e,t,n){In.assert(A<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),t&&(O(t)?C(e,t,n):n(e,t))},isEmitNotificationEnabled:O,dispose:function(){if(A<3){for(const e of i)LC(wp(Fc(e)));l=void 0,g=void 0,u=void 0,h=void 0,T=void 0,C=void 0,f=void 0,A=3}},diagnostics:w};function P(e){return!e||TN(e)&&e.isDeclarationFile?e:N(e)}function I(e){return 0!=(1&_[e.kind])&&0==(8&rf(e))}function O(e){return 0!=(2&_[e.kind])||0!=(4&rf(e))}}var zz,Uz,qz,Vz,Qz,Kz,Wz=b({"src/compiler/transformer.ts"(){XK(),lo(),Ez={scriptTransformers:r,declarationTransformers:r},Nz={factory:dC,getCompilerOptions:()=>({}),getEmitResolver:Nt,getEmitHost:Nt,getEmitHelperFactory:Nt,startLexicalEnvironment:St,resumeLexicalEnvironment:St,suspendLexicalEnvironment:St,endLexicalEnvironment:At,setLexicalEnvironmentFlags:St,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:St,hoistFunctionDeclaration:St,addInitializationStatement:St,startBlockScope:St,endBlockScope:At,addBlockScopedVariable:St,requestEmitHelper:St,readEmitHelpers:Nt,enableSubstitution:St,enableEmitNotification:St,isSubstitutionEnabled:Nt,isEmitNotificationEnabled:Nt,onSubstituteNode:Bz,onEmitNode:jz,addDiagnostic:St}}});function Hz(e){return ta(e,".tsbuildinfo")}function $z(e,t,n,r=!1,i,o){const a=ht(n)?n:Dv(e,n,r),s=e.getCompilerOptions();if(Av(s)){const n=e.getPrependNodes();if(a.length||n.length){const i=dC.createBundle(a,n),o=t(Yz(i,e,r),i);if(o)return o}}else{if(!i)for(const n of a){const i=t(Yz(n,e,r),n);if(i)return i}if(o){const e=Gz(s);if(e)return t({buildInfoPath:e},void 0)}}}function Gz(e){const t=e.configFilePath;if(!rS(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const n=Av(e);let r;if(n)r=US(n);else{if(!t)return;const n=US(t);r=e.outDir?e.rootDir?ga(e.outDir,Ia(e.rootDir,n,!0)):ma(e.outDir,ca(n)):n}return r+".tsbuildinfo"}function Xz(e,t){const n=Av(e),r=e.emitDeclarationOnly?void 0:n,i=r&&Zz(r,e),o=t||tS(e)?US(n)+".d.ts":void 0;return{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:o&&Wk(e)?o+".map":void 0,buildInfoPath:Gz(e)}}function Yz(e,t,n){const r=t.getCompilerOptions();if(309===e.kind)return Xz(r,n);{const i=xv(e.fileName,t,eU(e.fileName,r)),o=tm(e),a=o&&0===Ea(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()),s=r.emitDeclarationOnly||a?void 0:i,c=!s||tm(e)?void 0:Zz(s,r),_=n||tS(r)&&!o?kv(e.fileName,t):void 0;return{jsFilePath:s,sourceMapFilePath:c,declarationFilePath:_,declarationMapPath:_&&Wk(r)?_+".map":void 0,buildInfoPath:void 0}}}function Zz(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function eU(e,t){return ta(e,".json")?".json":1===t.jsx&&na(e,[".jsx",".tsx"])?".jsx":na(e,[".mts",".mjs"])?".mjs":na(e,[".cts",".cjs"])?".cjs":".js"}function tU(e,t,n,r,i){return r?ga(r,Ia(i?i():cU(t,n),e,n)):e}function nU(e,t,n,r){return QS(tU(e,t,n,t.options.declarationDir||t.options.outDir,r),Tv(e))}function rU(e,t,n,r){if(t.options.emitDeclarationOnly)return;const i=ta(e,".json"),o=QS(tU(e,t,n,t.options.outDir,r),eU(e,t.options));return i&&0===Ea(e,o,In.checkDefined(t.options.configFilePath),n)?void 0:o}function iU(){let e;return{addOutput:function(t){t&&(e||(e=[])).push(t)},getOutputs:function(){return e||r}}}function oU(e,t){const{jsFilePath:n,sourceMapFilePath:r,declarationFilePath:i,declarationMapPath:o,buildInfoPath:a}=Xz(e.options,!1);t(n),t(r),t(i),t(o),t(a)}function aU(e,t,n,r,i){if(FI(t))return;const o=rU(t,e,n,i);if(r(o),!ta(t,".json")&&(o&&e.options.sourceMap&&r(o+".map"),tS(e.options))){const o=nU(t,e,n,i);r(o),e.options.declarationMap&&r(o+".map")}}function sU(e,t,n,r,i){let o;return e.rootDir?(o=ya(e.rootDir,n),null==i||i(e.rootDir)):e.composite&&e.configFilePath?(o=sa(pa(e.configFilePath)),null==i||i(o)):o=YU(t(),n,r),o&&o[o.length-1]!==zo&&(o+=zo),o}function cU({options:e,fileNames:t},n){return sU(e,(()=>z(t,(t=>!(e.noEmitForJsFiles&&na(t,Wd)||FI(t))))),sa(pa(In.checkDefined(e.configFilePath))),ln(!n))}function _U(e,t){const{addOutput:n,getOutputs:r}=iU();if(Av(e.options))oU(e,n);else{const r=Ft((()=>cU(e,t)));for(const i of e.fileNames)aU(e,i,t,n,r);n(Gz(e.options))}return r()}function lU(e,t,n){t=va(t),In.assert(R(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:r,getOutputs:i}=iU();return Av(e.options)?oU(e,r):aU(e,t,n,r),i()}function uU(e,t){if(Av(e.options)){const{jsFilePath:t,declarationFilePath:n}=Xz(e.options,!1);return In.checkDefined(t||n,`project ${e.options.configFilePath} expected to have at least one output`)}const n=Ft((()=>cU(e,t)));for(const r of e.fileNames){if(FI(r))continue;const i=rU(r,e,t,n);if(i)return i;if(!ta(r,".json")&&tS(e.options))return nU(r,e,t,n)}return Gz(e.options)||In.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function dU(e,t,n,{scriptTransformers:r,declarationTransformers:i},o,a,s){var c,_=t.getCompilerOptions(),l=_.sourceMap||_.inlineSourceMap||Wk(_)?[]:void 0,u=_.listEmittedFiles?[]:void 0,d=ev(),p=ax(_),f=pv(p),{enter:m,exit:g}=Dr("printTime","beforePrint","afterPrint"),h=!1;return m(),$z(t,(function({jsFilePath:a,sourceMapFilePath:l,declarationFilePath:p,declarationMapPath:f,buildInfoPath:m},g){var b,x,k,T,C,A;let w;function D(e){return Ta(Ia(w,e,t.getCanonicalFileName))}m&&g&&CN(g)&&(w=sa(ya(m,t.getCurrentDirectory())),c={commonSourceDirectory:D(t.getCommonSourceDirectory()),sourceFiles:g.sourceFiles.map((e=>D(ya(e.fileName,t.getCurrentDirectory()))))}),null==(b=Ur)||b.push(Ur.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:a}),function(n,i,a,s){if(!n||o||!i)return;if(t.isEmitBlocked(i)||_.noEmit)return void(h=!0);const l=Jz(e,t,dC,_,[n],r,!1),u=hU({removeComments:_.removeComments,newLine:_.newLine,noEmitHelpers:_.noEmitHelpers,module:_.module,target:_.target,sourceMap:_.sourceMap,inlineSourceMap:_.inlineSourceMap,inlineSources:_.inlineSources,extendedDiagnostics:_.extendedDiagnostics,writeBundleFileInfo:!!c,relativeToBuildInfo:s},{hasGlobalName:e.hasGlobalName,onEmitNode:l.emitNodeWithNotification,isEmitNotificationEnabled:l.isEmitNotificationEnabled,substituteNode:l.substituteNode});In.assert(1===l.transformed.length,"Should only see one output from the transform"),v(i,a,l,u,_),l.dispose(),c&&(c.js=u.bundleFileInfo)}(g,a,l,D),null==(x=Ur)||x.pop(),null==(k=Ur)||k.push(Ur.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:p}),function(n,r,a,l){if(!n||0===o)return;if(!r)return void((o||_.emitDeclarationOnly)&&(h=!0));const u=TN(n)?[n]:n.sourceFiles,p=s?u:z(u,Cg),f=Av(_)?[dC.createBundle(p,TN(n)?void 0:n.prepends)]:p;o&&!tS(_)&&p.forEach(y);const m=Jz(e,t,dC,_,f,i,!1);if(S(m.diagnostics))for(const e of m.diagnostics)d.add(e);const g={removeComments:_.removeComments,newLine:_.newLine,noEmitHelpers:!0,module:_.module,target:_.target,sourceMap:!s&&_.declarationMap,inlineSourceMap:_.inlineSourceMap,extendedDiagnostics:_.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!c,recordInternalSection:!!c,relativeToBuildInfo:l},b=hU(g,{hasGlobalName:e.hasGlobalName,onEmitNode:m.emitNodeWithNotification,isEmitNotificationEnabled:m.isEmitNotificationEnabled,substituteNode:m.substituteNode}),x=!!m.diagnostics&&!!m.diagnostics.length||!!t.isEmitBlocked(r)||!!_.noEmit;h=h||x,(!x||s)&&(In.assert(1===m.transformed.length,"Should only see one output from the decl transform"),v(r,a,m,b,{sourceMap:g.sourceMap,sourceRoot:_.sourceRoot,mapRoot:_.mapRoot,extendedDiagnostics:_.extendedDiagnostics})),m.dispose(),c&&(c.dts=b.bundleFileInfo)}(g,p,f,D),null==(T=Ur)||T.pop(),null==(C=Ur)||C.push(Ur.Phase.Emit,"emitBuildInfo",{buildInfoPath:m}),function(e,r){if(!r||n||h)return;if(t.isEmitBlocked(r))return void(h=!0);const i=t.getBuildInfo(e)||pU(void 0,e);Pv(t,d,r,fU(i),!1,void 0,{buildInfo:i})}(c,m),null==(A=Ur)||A.pop(),!h&&u&&(o||(a&&u.push(a),l&&u.push(l),m&&u.push(m)),0!==o&&(p&&u.push(p),f&&u.push(f)))}),Dv(t,n,s),s,a,!n),g(),{emitSkipped:h,diagnostics:d.getDiagnostics(),emittedFiles:u,sourceMaps:l};function y(t){HE(t)?79===t.expression.kind&&e.collectLinkedAliases(t.expression,!0):XE(t)?e.collectLinkedAliases(t.propertyName||t.name,!0):bI(t,y)}function v(e,n,r,i,o){const a=r.transformed[0],s=309===a.kind?a:void 0,c=308===a.kind?a:void 0,u=s?s.sourceFiles:[c];let m,g;if(function(e,t){return(e.sourceMap||e.inlineSourceMap)&&(308!==t.kind||!ta(t.fileName,".json"))}(o,a)&&(m=yj(t,ca(pa(e)),function(e){const t=pa(e.sourceRoot||"");return t?Sa(t):t}(o),function(e,n,r){if(e.sourceRoot)return t.getCommonSourceDirectory();if(e.mapRoot){let n=pa(e.mapRoot);return r&&(n=sa(Nv(r.fileName,t,n))),0===aa(n)&&(n=ma(t.getCommonSourceDirectory(),n)),n}return sa(va(n))}(o,e,c),o)),s?i.writeBundle(s,f,m):i.writeFile(c,f,m),m){l&&l.push({inputSourceFileNames:m.getSources(),sourceMap:m.toJSON()});const r=function(e,n,r,i,o){if(e.inlineSourceMap){const e=n.toString();return"data:application/json;base64,"+tx(So,e)}const a=ca(pa(In.checkDefined(i)));if(e.mapRoot){let n=pa(e.mapRoot);return o&&(n=sa(Nv(o.fileName,t,n))),0===aa(n)?(n=ma(t.getCommonSourceDirectory(),n),encodeURI(Ma(sa(va(r)),ma(n,a),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(ma(n,a))}return encodeURI(a)}(o,m,e,n,c);if(r&&(f.isAtStartOfLine()||f.rawWrite(p),g=f.getTextPos(),f.writeComment("//# sourceMappingURL="+r)),n){const e=m.toString();Pv(t,d,n,e,!1,u),i.bundleFileInfo&&(i.bundleFileInfo.mapHash=gV(e,t))}}else f.writeLine();const h=f.getText();Pv(t,d,e,h,!!_.emitBOM,u,{sourceMapUrlPos:g,diagnostics:r.diagnostics}),i.bundleFileInfo&&(i.bundleFileInfo.hash=gV(h,t)),f.clear()}}function pU(e,n){return{bundle:n,program:e,version:t}}function fU(e){return JSON.stringify(e)}function mU(e,t){return rx(e,t)}function gU(e,t,n,r){var i,o;null==(i=Ur)||i.push(Ur.Phase.Emit,"emitUsingBuildInfo",{},!0),zr.mark("beforeEmit");const a=function(e,t,n,r){const{buildInfoPath:i,jsFilePath:o,sourceMapFilePath:a,declarationFilePath:s,declarationMapPath:c}=Xz(e.options,!1),_=t.getBuildInfo(i,e.options.configFilePath);if(!_)return i;if(!_.bundle||!_.bundle.js||s&&!_.bundle.dts)return i;const l=t.readFile(In.checkDefined(o));if(!l)return o;if(gV(l,t)!==_.bundle.js.hash)return o;const u=a&&t.readFile(a);if(a&&!u||e.options.inlineSourceMap)return a||"inline sourcemap decoding";if(a&&gV(u,t)!==_.bundle.js.mapHash)return a;const d=s&&t.readFile(s);if(s&&!d)return s;if(s&&gV(d,t)!==_.bundle.dts.hash)return s;const p=c&&t.readFile(c);if(c&&!p||e.options.inlineSourceMap)return c||"inline sourcemap decoding";if(c&&gV(p,t)!==_.bundle.dts.mapHash)return c;const f=sa(ya(i,t.getCurrentDirectory())),m=NC(o,l,a,u,s,d,c,p,i,_,!0),g=[],h=Mq(e.projectReferences,n,(e=>t.readFile(e)),t),y=function(e,t,n){var r;const i=In.checkDefined(e.js),o=(null==(r=i.sources)?void 0:r.prologues)&&nt(i.sources.prologues,(e=>e.file));return e.sourceFiles.map(((e,r)=>{var i,a;const s=null==o?void 0:o.get(r),c=null==s?void 0:s.directives.map((e=>{const t=OP(dC.createStringLiteral(e.expression.text),e.expression),n=OP(dC.createExpressionStatement(t),e);return kT(t,n),n})),_=dC.createToken(1),l=dC.createSourceFile(null!=c?c:[],_,0);return l.fileName=Ia(n.getCurrentDirectory(),ya(e,t),!n.useCaseSensitiveFileNames()),l.text=null!=(i=null==s?void 0:s.text)?i:"",bT(l,0,null!=(a=null==s?void 0:s.text.length)?a:0),ST(l.statements,l),bT(_,l.end,0),kT(_,l),l}))}(_.bundle,f,t);let v,b;const x={getPrependNodes:Ft((()=>[...h,m])),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>ya(_.bundle.commonSourceDirectory,f),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:At,getSourceFileByPath:At,getSourceFiles:()=>y,getLibFileFromReference:Nt,isSourceFileFromExternalLibrary:Tt,getResolvedProjectReferenceToRedirect:At,getProjectReferenceRedirect:At,isSourceOfProjectReferenceRedirect:Tt,writeFile:(e,t,n,r,_,f)=>{switch(e){case o:if(l===t)return;break;case a:if(u===t)return;break;case i:break;case s:if(d===t)return;v=t,b=f;break;case c:if(p===t)return;break;default:In.fail("Unexpected path: "+e)}g.push({name:e,text:t,writeByteOrderMark:n,data:f})},isEmitBlocked:Tt,readFile:e=>t.readFile(e),fileExists:e=>t.fileExists(e),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:n=>{const r=_.program;r&&void 0!==v&&e.options.composite&&(r.outSignature=gV(v,t,b));const{js:i,dts:o,sourceFiles:a}=_.bundle;return n.js.sources=i.sources,o&&(n.dts.sources=o.sources),n.sourceFiles=a,pU(r,n)},getSourceFileFromReference:At,redirectTargetsMap:ut(),getFileIncludeReasons:Nt,createHash:lt(t,t.createHash)};return dU(Uz,x,void 0,Pz(e.options,r)),g}(e,t,n,r);return zr.mark("afterEmit"),zr.measure("Emit","beforeEmit","afterEmit"),null==(o=Ur)||o.pop(),a}function hU(e={},t={}){var n,r,i,o,a,s,c,_,l,u,d,p,f,m,g,h,y,v,b,x,k,S,C,A,w,D,{hasGlobalName:E,onEmitNode:N=jz,isEmitNotificationEnabled:P,substituteNode:I=Bz,onBeforeEmitNode:L,onAfterEmitNode:M,onBeforeEmitNodeArray:R,onAfterEmitNodeArray:B,onBeforeEmitToken:j,onAfterEmitToken:J}=t,z=!!e.extendedDiagnostics,U=ax(e),q=Bk(e),V=new Map,Q=e.preserveSourceNewlines,K=function(e){y.write(e)},W=e.writeBundleFileInfo?{sections:[]}:void 0,H=W?In.checkDefined(e.relativeToBuildInfo):void 0,$=e.recordInternalSection,G=0,X="text",Y=!0,Z=-1,ee=-1,te=-1,ne=-1,re=-1,ie=!1,oe=!!e.removeComments,{enter:ae,exit:se}=wr(z,"commentTime","beforeComment","afterComment"),ce=dC.parenthesizer,le={select:e=>0===e?ce.parenthesizeLeadingTypeArgument:void 0},ue=function(){return yP((function(e,t){if(t){t.stackIndex++,t.preserveSourceNewlinesStack[t.stackIndex]=Q,t.containerPosStack[t.stackIndex]=te,t.containerEndStack[t.stackIndex]=ne,t.declarationListContainerEndStack[t.stackIndex]=re;const n=t.shouldEmitCommentsStack[t.stackIndex]=Ue(e),r=t.shouldEmitSourceMapsStack[t.stackIndex]=qe(e);null==L||L(e),n&&nr(e),r&&Tr(e),Me(e)}else t={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return t}),(function(t,n,r){return e(t,r,"left")}),(function(e,t,n){const r=27!==e.kind,i=Nn(n,n.left,e),o=Nn(n,e,n.right);xn(i,r),fr(e.pos),hn(e,101===e.kind?an:sn),gr(e.end,!0),xn(o,!0)}),(function(t,n,r){return e(t,r,"right")}),(function(e,t){if(kn(Nn(e,e.left,e.operatorToken),Nn(e,e.operatorToken,e.right)),t.stackIndex>0){const n=t.preserveSourceNewlinesStack[t.stackIndex],r=t.containerPosStack[t.stackIndex],i=t.containerEndStack[t.stackIndex],o=t.declarationListContainerEndStack[t.stackIndex],a=t.shouldEmitCommentsStack[t.stackIndex],s=t.shouldEmitSourceMapsStack[t.stackIndex];Re(n),s&&Cr(e),a&&rr(e,r,i,o),null==M||M(e),t.stackIndex--}}),void 0);function e(e,t,n){const r="left"===n?ce.getParenthesizeLeftSideOfBinaryForOperator(t.operatorToken.kind):ce.getParenthesizeRightSideOfBinaryForOperator(t.operatorToken.kind);let i=Ve(0,1,e);if(i===$e&&(In.assertIsDefined(w),i=Qe(1,1,e=r(kt(w,_u))),w=void 0),(i===tr||i===Sr||i===We)&&QD(e))return e;D=r,i(1,e)}}();return De(),{printNode:function(e,t,n){switch(e){case 0:In.assert(TN(t),"Expected a SourceFile node.");break;case 2:In.assert(Tw(t),"Expected an Identifier node.");break;case 1:In.assert(_u(t),"Expected an Expression node.")}switch(t.kind){case 308:return pe(t);case 309:return de(t);case 310:return function(e,t){const n=y;we(t,void 0),Ce(4,e,void 0),De(),y=n}(t,Se()),Te()}return fe(e,t,n,Se()),Te()},printList:function(e,t,n){return me(e,t,n,Se()),Te()},printFile:pe,printBundle:de,writeNode:fe,writeList:me,writeFile:ke,writeBundle:xe,bundleFileInfo:W};function de(e){return xe(e,Se(),void 0),Te()}function pe(e){return ke(e,Se(),void 0),Te()}function fe(e,t,n,r){const i=y;we(r,void 0),Ce(e,t,n),De(),y=i}function me(e,t,n,r){const i=y;we(r,void 0),n&&Ae(n),Gt(void 0,t,e),De(),y=i}function ge(){return y.getTextPosWithWriteLine?y.getTextPosWithWriteLine():y.getTextPos()}function he(e,t,n){const r=Be(W.sections);r&&r.kind===n?r.end=t:W.sections.push({pos:e,end:t,kind:n})}function ye(e){if($&&W&&n&&(Nu(e)||_E(e))&&Cz(e,n)&&"internal"!==X){const e=X;return be(y.getTextPos()),G=ge(),X="internal",e}}function ve(e){e&&(be(y.getTextPos()),G=ge(),X=e)}function be(e){return GIn.assert(ek(e)))),W.sections.push({pos:t,end:y.getTextPos(),kind:"prepend",data:H(e.fileName),texts:r}))}}G=ge();for(const e of t.sourceFiles)Ce(0,e,e);if(W&&t.sourceFiles.length&&be(y.getTextPos())){const n=function(e){const t=new Set;let n;for(let r=0;r"),ln(),Ne(e.type),Rn(e)}(t);case 182:return function(e){Mn(e),jt(e,e.modifiers),an("new"),ln(),Kt(e,e.typeParameters),Wt(e,e.parameters),ln(),nn("=>"),ln(),Ne(e.type),Rn(e)}(t);case 183:return function(e){an("typeof"),ln(),Ne(e.exprName),Qt(e,e.typeArguments)}(t);case 184:return function(e){jn(0,void 0),nn("{");const t=1&rf(e)?768:32897;Gt(e,e.members,524288|t),nn("}"),Jn()}(t);case 185:return function(e){Ne(e.elementType,ce.parenthesizeNonArrayTypeOfPostfixType),nn("["),nn("]")}(t);case 186:return function(e){_t(22,e.pos,nn,e);const t=1&rf(e)?528:657;Gt(e,e.elements,524288|t,ce.parenthesizeElementTypeOfTupleType),_t(23,e.elements.end,nn,e)}(t);case 187:return function(e){Ne(e.type,ce.parenthesizeTypeOfOptionalType),nn("?")}(t);case 189:return function(e){Gt(e,e.types,516,ce.parenthesizeConstituentTypeOfUnionType)}(t);case 190:return function(e){Gt(e,e.types,520,ce.parenthesizeConstituentTypeOfIntersectionType)}(t);case 191:return function(e){Ne(e.checkType,ce.parenthesizeCheckTypeOfConditionalType),ln(),an("extends"),ln(),Ne(e.extendsType,ce.parenthesizeExtendsTypeOfConditionalType),ln(),nn("?"),ln(),Ne(e.trueType),ln(),nn(":"),ln(),Ne(e.falseType)}(t);case 192:return function(e){an("infer"),ln(),Ne(e.typeParameter)}(t);case 193:return function(e){nn("("),Ne(e.type),nn(")")}(t);case 230:return rt(t);case 194:return void an("this");case 195:return function(e){yn(e.operator,an),ln();const t=146===e.operator?ce.parenthesizeOperandOfReadonlyTypeOperator:ce.parenthesizeOperandOfTypeOperator;Ne(e.type,t)}(t);case 196:return function(e){Ne(e.objectType,ce.parenthesizeNonArrayTypeOfPostfixType),nn("["),Ne(e.indexType),nn("]")}(t);case 197:return function(e){const t=rf(e);nn("{"),1&t?ln():(pn(),fn()),e.readonlyToken&&(Ne(e.readonlyToken),146!==e.readonlyToken.kind&&an("readonly"),ln()),nn("["),ze(3,e.typeParameter),e.nameType&&(ln(),an("as"),ln(),Ne(e.nameType)),nn("]"),e.questionToken&&(Ne(e.questionToken),57!==e.questionToken.kind&&nn("?")),nn(":"),ln(),Ne(e.type),on(),1&t?ln():(pn(),mn()),Gt(e,e.members,2),nn("}")}(t);case 198:return function(e){Ie(e.literal)}(t);case 199:return function(e){Ne(e.dotDotDotToken),Ne(e.name),Ne(e.questionToken),_t(58,e.name.end,nn,e),ln(),Ne(e.type)}(t);case 200:return function(e){Ne(e.head),Gt(e,e.templateSpans,262144)}(t);case 201:return function(e){Ne(e.type),Ne(e.literal)}(t);case 202:return function(e){if(e.isTypeOf&&(an("typeof"),ln()),an("import"),nn("("),Ne(e.argument),e.assertions){nn(","),ln(),nn("{"),ln(),an("assert"),nn(":"),ln();const t=e.assertions.assertClause.elements;Gt(e.assertions.assertClause,t,526226),ln(),nn("}")}nn(")"),e.qualifier&&(nn("."),Ne(e.qualifier)),Qt(e,e.typeArguments)}(t);case 203:return function(e){nn("{"),Gt(e,e.elements,525136),nn("}")}(t);case 204:return function(e){nn("["),Gt(e,e.elements,524880),nn("]")}(t);case 205:return function(e){Ne(e.dotDotDotToken),e.propertyName&&(Ne(e.propertyName),nn(":"),ln()),Ne(e.name),zt(e.initializer,e.name.end,e,ce.parenthesizeExpressionForDisallowedComma)}(t);case 236:return function(e){Ie(e.expression),Ne(e.literal)}(t);case 237:return void on();case 238:return function(e){it(e,!e.multiLine&&Fn(e))}(t);case 240:return function(e){Bt(e,e.modifiers,!1),Ne(e.declarationList),on()}(t);case 239:return ot(!1);case 241:return function(e){Ie(e.expression,ce.parenthesizeExpressionOfExpressionStatement),n&&tm(n)&&!Qy(e.expression)||on()}(t);case 242:return function(e){const t=_t(99,e.pos,an,e);ln(),_t(20,t,nn,e),Ie(e.expression),_t(21,e.expression.end,nn,e),Vt(e,e.thenStatement),e.elseStatement&&(vn(e,e.thenStatement,e.elseStatement),_t(91,e.thenStatement.end,an,e),242===e.elseStatement.kind?(ln(),Ne(e.elseStatement)):Vt(e,e.elseStatement))}(t);case 243:return function(e){_t(90,e.pos,an,e),Vt(e,e.statement),cE(e.statement)&&!Q?ln():vn(e,e.statement,e.expression),at(e,e.statement.end),on()}(t);case 244:return function(e){at(e,e.pos),Vt(e,e.statement)}(t);case 245:return function(e){const t=_t(97,e.pos,an,e);ln();let n=_t(20,t,nn,e);ct(e.initializer),n=_t(26,e.initializer?e.initializer.end:n,nn,e),qt(e.condition),n=_t(26,e.condition?e.condition.end:n,nn,e),qt(e.incrementor),_t(21,e.incrementor?e.incrementor.end:n,nn,e),Vt(e,e.statement)}(t);case 246:return function(e){const t=_t(97,e.pos,an,e);ln(),_t(20,t,nn,e),ct(e.initializer),ln(),_t(101,e.initializer.end,an,e),ln(),Ie(e.expression),_t(21,e.expression.end,nn,e),Vt(e,e.statement)}(t);case 247:return function(e){const t=_t(97,e.pos,an,e);ln(),function(e){e&&(Ne(e),ln())}(e.awaitModifier),_t(20,t,nn,e),ct(e.initializer),ln(),_t(162,e.initializer.end,an,e),ln(),Ie(e.expression),_t(21,e.expression.end,nn,e),Vt(e,e.statement)}(t);case 248:return function(e){_t(86,e.pos,an,e),Ut(e.label),on()}(t);case 249:return function(e){_t(81,e.pos,an,e),Ut(e.label),on()}(t);case 250:return function(e){_t(105,e.pos,an,e),qt(e.expression&&dt(e.expression),dt),on()}(t);case 251:return function(e){const t=_t(116,e.pos,an,e);ln(),_t(20,t,nn,e),Ie(e.expression),_t(21,e.expression.end,nn,e),Vt(e,e.statement)}(t);case 252:return function(e){const t=_t(107,e.pos,an,e);ln(),_t(20,t,nn,e),Ie(e.expression),_t(21,e.expression.end,nn,e),ln(),Ne(e.caseBlock)}(t);case 253:return function(e){Ne(e.label),_t(58,e.label.end,nn,e),ln(),Ne(e.statement)}(t);case 254:return function(e){_t(109,e.pos,an,e),qt(dt(e.expression),dt),on()}(t);case 255:return function(e){_t(111,e.pos,an,e),ln(),Ne(e.tryBlock),e.catchClause&&(vn(e,e.tryBlock,e.catchClause),Ne(e.catchClause)),e.finallyBlock&&(vn(e,e.catchClause||e.tryBlock,e.finallyBlock),_t(96,(e.catchClause||e.tryBlock).end,an,e),ln(),Ne(e.finallyBlock))}(t);case 256:return function(e){gn(87,e.pos,an),on()}(t);case 257:return function(e){var t,n,r,i,o;Ne(e.name),Ne(e.exclamationToken),Jt(e.type),zt(e.initializer,null!=(o=null!=(i=null==(t=e.type)?void 0:t.end)?i:null==(r=null==(n=e.name.emitNode)?void 0:n.typeNode)?void 0:r.end)?o:e.name.end,e,ce.parenthesizeExpressionForDisallowedComma)}(t);case 258:return function(e){an(om(e)?"let":im(e)?"const":"var"),ln(),Gt(e,e.declarations,528)}(t);case 259:return function(e){ft(e)}(t);case 260:return function(e){bt(e)}(t);case 261:return function(e){jn(0,void 0),Bt(e,e.modifiers,!1),an("interface"),ln(),Ne(e.name),Kt(e,e.typeParameters),Gt(e,e.heritageClauses,512),ln(),nn("{"),Gt(e,e.members,129),nn("}"),Jn()}(t);case 262:return function(e){Bt(e,e.modifiers,!1),an("type"),ln(),Ne(e.name),Kt(e,e.typeParameters),ln(),nn("="),ln(),Ne(e.type),on()}(t);case 263:return function(e){Bt(e,e.modifiers,!1),an("enum"),ln(),Ne(e.name),ln(),nn("{"),Gt(e,e.members,145),nn("}")}(t);case 264:return function(e){Bt(e,e.modifiers,!1),1024&~e.flags&&(an(16&e.flags?"namespace":"module"),ln()),Ne(e.name);let t=e.body;if(!t)return on();for(;t&&OE(t);)nn("."),Ne(t.name),t=t.body;ln(),Ne(t)}(t);case 265:return function(e){Mn(e),T(e.statements,Un),it(e,Fn(e)),Rn(e)}(t);case 266:return function(e){_t(18,e.pos,nn,e),Gt(e,e.clauses,129),_t(19,e.clauses.end,nn,e,!0)}(t);case 267:return function(e){let t=_t(93,e.pos,an,e);ln(),t=_t(128,t,an,e),ln(),t=_t(143,t,an,e),ln(),Ne(e.name),on()}(t);case 268:return function(e){Bt(e,e.modifiers,!1),_t(100,e.modifiers?e.modifiers.end:e.pos,an,e),ln(),e.isTypeOnly&&(_t(154,e.pos,an,e),ln()),Ne(e.name),ln(),_t(63,e.name.end,nn,e),ln(),function(e){79===e.kind?Ie(e):Ne(e)}(e.moduleReference),on()}(t);case 269:return function(e){Bt(e,e.modifiers,!1),_t(100,e.modifiers?e.modifiers.end:e.pos,an,e),ln(),e.importClause&&(Ne(e.importClause),ln(),_t(158,e.importClause.end,an,e),ln()),Ie(e.moduleSpecifier),e.assertClause&&Ut(e.assertClause),on()}(t);case 270:return function(e){e.isTypeOnly&&(_t(154,e.pos,an,e),ln()),Ne(e.name),e.name&&e.namedBindings&&(_t(27,e.name.end,nn,e),ln()),Ne(e.namedBindings)}(t);case 271:return function(e){const t=_t(41,e.pos,nn,e);ln(),_t(128,t,an,e),ln(),Ne(e.name)}(t);case 277:return function(e){const t=_t(41,e.pos,nn,e);ln(),_t(128,t,an,e),ln(),Ne(e.name)}(t);case 272:case 276:return function(e){!function(e){nn("{"),Gt(e,e.elements,525136),nn("}")}(e)}(t);case 273:case 278:return function(e){!function(e){e.isTypeOnly&&(an("type"),ln()),e.propertyName&&(Ne(e.propertyName),ln(),_t(128,e.propertyName.end,an,e),ln()),Ne(e.name)}(e)}(t);case 274:return function(e){const t=_t(93,e.pos,an,e);ln(),e.isExportEquals?_t(63,t,sn,e):_t(88,t,an,e),ln(),Ie(e.expression,e.isExportEquals?ce.getParenthesizeRightSideOfBinaryForOperator(63):ce.parenthesizeExpressionOfExportDefault),on()}(t);case 275:return function(e){Bt(e,e.modifiers,!1);let t=_t(93,e.pos,an,e);ln(),e.isTypeOnly&&(t=_t(154,t,an,e),ln()),e.exportClause?Ne(e.exportClause):t=_t(41,t,nn,e),e.moduleSpecifier&&(ln(),_t(158,e.exportClause?e.exportClause.end:t,an,e),ln(),Ie(e.moduleSpecifier)),e.assertClause&&Ut(e.assertClause),on()}(t);case 296:return function(e){_t(130,e.pos,an,e),ln();Gt(e,e.elements,526226)}(t);case 297:return function(e){Ne(e.name),nn(":"),ln();const t=e.value;0==(1024&rf(t))&&gr(WC(t).pos),Ne(t)}(t);case 279:case 322:case 333:case 334:case 336:case 337:case 338:case 339:case 355:case 359:case 358:return;case 280:return function(e){an("require"),nn("("),Ie(e.expression),nn(")")}(t);case 11:return function(e){y.writeLiteral(e.text)}(t);case 283:case 286:return function(e){if(nn("<"),aN(e)){const t=wn(e.tagName,e);St(e.tagName),Qt(e,e.typeArguments),e.attributes.properties&&e.attributes.properties.length>0&&ln(),Ne(e.attributes),Dn(e.attributes,e),kn(t)}nn(">")}(t);case 284:case 287:return function(e){nn("")}(t);case 288:return function(e){Ne(e.name),function(e,t,n,r){n&&(t("="),r(n))}(0,nn,e.initializer,Le)}(t);case 289:return function(e){Gt(e,e.properties,262656)}(t);case 290:return function(e){nn("{..."),Ie(e.expression),nn("}")}(t);case 291:return function(e){var t,r;if(e.expression||!oe&&!Qy(e)&&(function(e){let t=!1;return Is((null==n?void 0:n.text)||"",e+1,(()=>t=!0)),t}(r=e.pos)||function(e){let t=!1;return Ps((null==n?void 0:n.text)||"",e+1,(()=>t=!0)),t}(r))){const r=n&&!Qy(e)&&ys(n,e.pos).line!==ys(n,e.end).line;r&&y.increaseIndent();const i=_t(18,e.pos,nn,e);Ne(e.dotDotDotToken),Ie(e.expression),_t(19,(null==(t=e.expression)?void 0:t.end)||i,nn,e),r&&y.decreaseIndent()}}(t);case 292:return function(e){_t(82,e.pos,an,e),ln(),Ie(e.expression,ce.parenthesizeExpressionForDisallowedComma),Tt(e,e.statements,e.expression.end)}(t);case 293:return function(e){const t=_t(88,e.pos,an,e);Tt(e,e.statements,t)}(t);case 294:return function(e){ln(),yn(e.token,an),ln(),Gt(e,e.types,528)}(t);case 295:return function(e){const t=_t(83,e.pos,an,e);ln(),e.variableDeclaration&&(_t(20,t,nn,e),Ne(e.variableDeclaration),_t(21,e.variableDeclaration.end,nn,e),ln()),Ne(e.block)}(t);case 299:return function(e){Ne(e.name),nn(":"),ln();const t=e.initializer;0==(1024&rf(t))&&gr(WC(t).pos),Ie(t,ce.parenthesizeExpressionForDisallowedComma)}(t);case 300:return function(e){Ne(e.name),e.objectAssignmentInitializer&&(ln(),nn("="),ln(),Ie(e.objectAssignmentInitializer,ce.parenthesizeExpressionForDisallowedComma))}(t);case 301:return function(e){e.expression&&(_t(25,e.pos,nn,e),Ie(e.expression,ce.parenthesizeExpressionForDisallowedComma))}(t);case 302:return function(e){Ne(e.name),zt(e.initializer,e.name.end,e,ce.parenthesizeExpressionForDisallowedComma)}(t);case 303:return Ze(t);case 310:case 304:return function(e){for(const t of e.texts)pn(),Ne(t)}(t);case 305:case 306:return function(e){const t=ge();Ze(e),W&&he(t,y.getTextPos(),305===e.kind?"text":"internal")}(t);case 307:return function(e){const t=ge();if(Ze(e),W){const n=st(e.section);n.pos=t,n.end=y.getTextPos(),W.sections.push(n)}}(t);case 308:return Nt(t);case 309:return In.fail("Bundles should be printed using printBundle");case 311:return In.fail("InputFiles should not be printed");case 312:return Et(t);case 313:return function(e){ln(),nn("{"),Ne(e.name),nn("}")}(t);case 315:return nn("*");case 316:return nn("?");case 317:return function(e){nn("?"),Ne(e.type)}(t);case 318:return function(e){nn("!"),Ne(e.type)}(t);case 319:return function(e){Ne(e.type),nn("=")}(t);case 320:return function(e){an("function"),Wt(e,e.parameters),nn(":"),Ne(e.type)}(t);case 188:case 321:return function(e){nn("..."),Ne(e.type)}(t);case 323:return function(e){if(K("/**"),e.comment){const t=D_(e.comment);if(t){const e=t.split(/\r\n?|\n/g);for(const t of e)pn(),ln(),nn("*"),ln(),K(t)}}e.tags&&(1!==e.tags.length||347!==e.tags[0].kind||e.comment?Gt(e,e.tags,33):(ln(),Ne(e.tags[0]))),ln(),K("*/")}(t);case 325:return Ct(t);case 326:return At(t);case 330:case 335:case 340:return wt((o=t).tagName),void Dt(o.comment);case 331:case 332:return function(e){wt(e.tagName),ln(),nn("{"),Ne(e.class),nn("}"),Dt(e.comment)}(t);case 341:return function(e){wt(e.tagName),e.name&&(ln(),Ne(e.name)),Dt(e.comment),At(e.typeExpression)}(t);case 342:return function(e){Dt(e.comment),At(e.typeExpression)}(t);case 344:case 351:return wt((i=t).tagName),Et(i.typeExpression),ln(),i.isBracketed&&nn("["),Ne(i.name),i.isBracketed&&nn("]"),void Dt(i.comment);case 343:case 345:case 346:case 347:case 352:case 353:return function(e){wt(e.tagName),Et(e.typeExpression),Dt(e.comment)}(t);case 348:return function(e){wt(e.tagName),Et(e.constraint),ln(),Gt(e,e.typeParameters,528),Dt(e.comment)}(t);case 349:return function(e){wt(e.tagName),e.typeExpression&&(312===e.typeExpression.kind?Et(e.typeExpression):(ln(),nn("{"),K("Object"),e.typeExpression.isArrayType&&(nn("["),nn("]")),nn("}"))),e.fullName&&(ln(),Ne(e.fullName)),Dt(e.comment),e.typeExpression&&325===e.typeExpression.kind&&Ct(e.typeExpression)}(t);case 350:return function(e){wt(e.tagName),Ne(e.name),Dt(e.comment)}(t)}if(_u(t)&&(e=1,I!==Bz)){const n=I(e,t)||t;n!==t&&(t=n,D&&(t=D(t)))}}var i,o,a;if(1===e)switch(t.kind){case 8:case 9:return function(e){Ye(e,!1)}(t);case 10:case 13:case 14:return Ye(t,!1);case 79:return et(t);case 80:return tt(t);case 206:return function(e){Xt(e,e.elements,8914|(e.multiLine?65536:0),ce.parenthesizeExpressionForDisallowedComma)}(t);case 207:return function(e){jn(0,void 0),T(e.properties,qn);const t=131072&rf(e);t&&fn();const r=e.multiLine?65536:0,i=n&&n.languageVersion>=1&&!tm(n)?64:0;Gt(e,e.properties,526226|i|r),t&&mn(),Jn()}(t);case 208:return function(e){Ie(e.expression,ce.parenthesizeLeftSideOfAccess);const t=e.questionDotToken||vT(dC.createToken(24),e.expression.end,e.name.pos),n=Nn(e,e.expression,t),r=Nn(e,t,e.name);xn(n,!1),28===t.kind||!function(e){if(ow(e=U_(e))){const t=Ln(e,!0,!1);return!e.numericLiteralFlags&&!rn(t,_s(24))}if(Yx(e)){const t=nA(e);return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}}(e.expression)||y.hasTrailingComment()||y.hasTrailingWhitespace()||nn("."),e.questionDotToken?Ne(t):_t(t.kind,e.expression.end,nn,e),xn(r,!1),Ne(e.name),kn(n,r)}(t);case 209:return function(e){Ie(e.expression,ce.parenthesizeLeftSideOfAccess),Ne(e.questionDotToken),_t(22,e.expression.end,nn,e),Ie(e.argumentExpression),_t(23,e.argumentExpression.end,nn,e)}(t);case 210:return function(e){const t=16&of(e);t&&(nn("("),en("0"),nn(","),ln()),Ie(e.expression,ce.parenthesizeLeftSideOfAccess),t&&nn(")"),Ne(e.questionDotToken),Qt(e,e.typeArguments),Xt(e,e.arguments,2576,ce.parenthesizeExpressionForDisallowedComma)}(t);case 211:return function(e){_t(103,e.pos,an,e),ln(),Ie(e.expression,ce.parenthesizeExpressionOfNew),Qt(e,e.typeArguments),Xt(e,e.arguments,18960,ce.parenthesizeExpressionForDisallowedComma)}(t);case 212:return function(e){const t=16&of(e);t&&(nn("("),en("0"),nn(","),ln()),Ie(e.tag,ce.parenthesizeLeftSideOfAccess),t&&nn(")"),Qt(e,e.typeArguments),ln(),Ie(e.template)}(t);case 213:return function(e){nn("<"),Ne(e.type),nn(">"),Ie(e.expression,ce.parenthesizeOperandOfPrefixUnary)}(t);case 214:return function(e){const t=_t(20,e.pos,nn,e),n=wn(e.expression,e);Ie(e.expression,void 0),Dn(e.expression,e),kn(n),_t(21,e.expression?e.expression.end:t,nn,e)}(t);case 215:return function(e){Vn(e.name),ft(e)}(t);case 216:return function(e){jt(e,e.modifiers),mt(e,nt)}(t);case 217:return function(e){_t(89,e.pos,an,e),ln(),Ie(e.expression,ce.parenthesizeOperandOfPrefixUnary)}(t);case 218:return function(e){_t(112,e.pos,an,e),ln(),Ie(e.expression,ce.parenthesizeOperandOfPrefixUnary)}(t);case 219:return function(e){_t(114,e.pos,an,e),ln(),Ie(e.expression,ce.parenthesizeOperandOfPrefixUnary)}(t);case 220:return function(e){_t(133,e.pos,an,e),ln(),Ie(e.expression,ce.parenthesizeOperandOfPrefixUnary)}(t);case 221:return function(e){yn(e.operator,sn),function(e){const t=e.operand;return 221===t.kind&&(39===e.operator&&(39===t.operator||45===t.operator)||40===e.operator&&(40===t.operator||46===t.operator))}(e)&&ln(),Ie(e.operand,ce.parenthesizeOperandOfPrefixUnary)}(t);case 222:return function(e){Ie(e.operand,ce.parenthesizeOperandOfPostfixUnary),yn(e.operator,sn)}(t);case 223:return ue(t);case 224:return function(e){const t=Nn(e,e.condition,e.questionToken),n=Nn(e,e.questionToken,e.whenTrue),r=Nn(e,e.whenTrue,e.colonToken),i=Nn(e,e.colonToken,e.whenFalse);Ie(e.condition,ce.parenthesizeConditionOfConditionalExpression),xn(t,!0),Ne(e.questionToken),xn(n,!0),Ie(e.whenTrue,ce.parenthesizeBranchOfConditionalExpression),kn(t,n),xn(r,!0),Ne(e.colonToken),xn(i,!0),Ie(e.whenFalse,ce.parenthesizeBranchOfConditionalExpression),kn(r,i)}(t);case 225:return function(e){Ne(e.head),Gt(e,e.templateSpans,262144)}(t);case 226:return function(e){_t(125,e.pos,an,e),Ne(e.asteriskToken),qt(e.expression&&dt(e.expression),pt)}(t);case 227:return function(e){_t(25,e.pos,nn,e),Ie(e.expression,ce.parenthesizeExpressionForDisallowedComma)}(t);case 228:return function(e){Vn(e.name),bt(e)}(t);case 229:case 279:case 355:case 358:case 359:return;case 231:return function(e){Ie(e.expression,void 0),e.type&&(ln(),an("as"),ln(),Ne(e.type))}(t);case 232:return function(e){Ie(e.expression,ce.parenthesizeLeftSideOfAccess),sn("!")}(t);case 230:return rt(t);case 235:return function(e){Ie(e.expression,void 0),e.type&&(ln(),an("satisfies"),ln(),Ne(e.type))}(t);case 233:return function(e){gn(e.keywordToken,e.pos,nn),nn("."),Ne(e.name)}(t);case 234:return In.fail("SyntheticExpression should never be printed.");case 281:return function(e){Ne(e.openingElement),Gt(e,e.children,262144),Ne(e.closingElement)}(t);case 282:return function(e){nn("<"),St(e.tagName),Qt(e,e.typeArguments),ln(),Ne(e.attributes),nn("/>")}(t);case 285:return function(e){Ne(e.openingFragment),Gt(e,e.children,262144),Ne(e.closingFragment)}(t);case 354:return In.fail("SyntaxList should not be printed");case 356:return function(e){const t=rf(e);1024&t||e.pos===e.expression.pos||gr(e.expression.pos),Ie(e.expression),2048&t||e.end===e.expression.end||fr(e.expression.end)}(t);case 357:return function(e){Xt(e,e.elements,528,void 0)}(t);case 360:return In.fail("SyntheticReferenceExpression should not be printed")}return fy(t.kind)?hn(t,an):X_(t.kind)?hn(t,nn):void In.fail(`Unhandled SyntaxKind: ${In.formatSyntaxKind(t.kind)}.`)}function $e(e,t){const n=Qe(1,e,t);In.assertIsDefined(w),t=w,w=void 0,n(e,t)}function Ge(t){let r=!1;const i=309===t.kind?t:void 0;if(i&&0===q)return;const o=i?i.prepends.length:0,a=i?i.sourceFiles.length+o:1;for(let s=0;s0)return!1;t=n}return!0}(e)?yt:vt;cr(e,e.statements,t),mn(),gn(19,e.statements.end,nn,e),null==M||M(e)}function yt(e){vt(e,!0)}function vt(e,t){const n=It(e.statements),r=y.getTextPos();Ge(e),0===n&&r===y.getTextPos()&&t?(mn(),Gt(e,e.statements,768),fn()):Gt(e,e.statements,1,void 0,n)}function bt(e){jn(0,void 0),T(e.members,qn),Bt(e,e.modifiers,!0),_t(84,ux(e).pos,an,e),e.name&&(ln(),Fe(e.name));const t=131072&rf(e);t&&fn(),Kt(e,e.typeParameters),Gt(e,e.heritageClauses,0),ln(),nn("{"),Gt(e,e.members,129),nn("}"),t&&mn(),Jn()}function St(e){79===e.kind?Ie(e):Ne(e)}function Tt(e,t,r){let i=163969;1===t.length&&(!n||Qy(e)||Qy(t[0])||mx(e,t[0],n))?(gn(58,r,nn,e),ln(),i&=-130):_t(58,r,nn,e),Gt(e,t,i)}function Ct(e){Gt(e,dC.createNodeArray(e.jsDocPropertyTags),33)}function At(e){e.typeParameters&&Gt(e,dC.createNodeArray(e.typeParameters),33),e.parameters&&Gt(e,dC.createNodeArray(e.parameters),33),e.type&&(pn(),ln(),nn("*"),ln(),Ne(e.type))}function wt(e){nn("@"),Ne(e)}function Dt(e){const t=D_(e);t&&(ln(),K(t))}function Et(e){e&&(ln(),nn("{"),Ne(e.type),nn("}"))}function Nt(e){pn();const t=e.statements;0===t.length||!lm(t[0])||Qy(t[0])?cr(e,t,Pt):Pt(e)}function Ft(e,t,r,i){if(e){const e=y.getTextPos();_n('/// '),W&&W.sections.push({pos:e,end:y.getTextPos(),kind:"no-default-lib"}),pn()}if(n&&n.moduleName&&(_n(`/// `),pn()),n&&n.amdDependencies)for(const e of n.amdDependencies)e.name?_n(`/// `):_n(`/// `),pn();for(const e of t){const t=y.getTextPos();_n(`/// `),W&&W.sections.push({pos:t,end:y.getTextPos(),kind:"reference",data:e.fileName}),pn()}for(const e of r){const t=y.getTextPos(),r=e.resolutionMode&&e.resolutionMode!==(null==n?void 0:n.impliedNodeFormat)?`resolution-mode="${99===e.resolutionMode?"import":"require"}"`:"";_n(`/// `),W&&W.sections.push({pos:t,end:y.getTextPos(),kind:e.resolutionMode?99===e.resolutionMode?"type-import":"type-require":"type",data:e.fileName}),pn()}for(const e of i){const t=y.getTextPos();_n(`/// `),W&&W.sections.push({pos:t,end:y.getTextPos(),kind:"lib",data:e.fileName}),pn()}}function Pt(e){const t=e.statements;Mn(e),T(e.statements,Un),Ge(e);const n=O(t,(e=>!lm(e)));!function(e){e.isDeclarationFile&&Ft(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(e),Gt(e,t,1,void 0,-1===n?t.length:n),Rn(e)}function It(e,t,n,r){let i=!!t;for(let o=0;o=r.length||0===s;if(c&&32768&i)return null==R||R(r),void(null==B||B(r));15360&i&&(nn(function(e){return zz[15360&e][0]}(i)),c&&r&&gr(r.pos,!0)),null==R||R(r),c?!(1&i)||Q&&(!t||n&&fx(t,n))?256&i&&!(524288&i)&&ln():pn():Zt(e,t,r,i,o,a,s,r.hasTrailingComma,r),null==B||B(r),15360&i&&(c&&r&&fr(r.end),nn(function(e){return zz[15360&e][1]}(i)))}function Zt(e,t,n,r,i,o,a,s,c){const _=0==(262144&r);let l=_;const u=Sn(t,n[o],r);u?(pn(u),l=!1):256&r&&ln(),128&r&&fn();const d=function(e,t){return 1===e.length?yU:"object"==typeof t?vU:bU}(e,i);let p,f,m=!1;for(let s=0;s0?(0==(131&r)&&(fn(),m=!0),pn(e),l=!1):p&&512&r&&ln()}f=ye(a),l?gr(WC(a).pos):l=_,h=a.pos,d(a,e,i,s),m&&(mn(),m=!1),p=a}const g=p?rf(p):0,y=oe||!!(2048&g),v=s&&64&r&&16&r;v&&(p&&!y?_t(27,p.end,nn,p):nn(",")),p&&(t?t.end:-1)!==p.end&&60&r&&!y&&fr(v&&(null==c?void 0:c.end)?c.end:p.end),128&r&&mn(),ve(f);const b=Cn(t,n[o+a-1],r,c);b?pn(b):2097408&r&&ln()}function en(e){y.writeLiteral(e)}function tn(e,t){y.writeSymbol(e,t)}function nn(e){y.writePunctuation(e)}function on(){y.writeTrailingSemicolon(";")}function an(e){y.writeKeyword(e)}function sn(e){y.writeOperator(e)}function cn(e){y.writeParameter(e)}function _n(e){y.writeComment(e)}function ln(){y.writeSpace(" ")}function un(e){y.writeProperty(e)}function dn(e){y.nonEscapingWrite?y.nonEscapingWrite(e):y.write(e)}function pn(e=1){for(let t=0;t0)}function fn(){y.increaseIndent()}function mn(){y.decreaseIndent()}function gn(e,t,n,r){return Y?yn(e,n,t):function(e,t,n,r,i){if(Y||e&&Tg(e))return i(t,n,r);const o=e&&e.emitNode,a=o&&o.flags||0,s=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[t],c=s&&s.source||k;return r=Ar(c,s?s.pos:r),0==(256&a)&&r>=0&&Er(c,r),r=i(t,n,r),s&&(r=s.end),0==(512&a)&&r>=0&&Er(c,r),r}(r,e,n,t,yn)}function hn(e,t){j&&j(e),t(_s(e.kind)),J&&J(e)}function yn(e,t,n){const r=_s(e);return t(r),n<0?n:n+r.length}function vn(e,t,n){if(1&rf(e))ln();else if(Q){const r=Nn(e,t,n);r?pn(r):ln()}else pn()}function bn(e){const t=e.split(/\r\n?|\n/g),n=Zu(t);for(const e of t){const t=n?e.slice(n):e;t.length&&(pn(),K(t))}}function xn(e,t){e?(fn(),pn(e)):t&&ln()}function kn(e,t){e&&mn(),t&&mn()}function Sn(e,t,r){if(2&r||Q){if(65536&r)return 1;if(void 0===t)return!e||n&&fx(e,n)?0:1;if(t.pos===h)return 0;if(11===t.kind)return 0;if(n&&e&&!HS(e.pos)&&!Qy(t)&&(!t.parent||Dc(t.parent)===Dc(e)))return Q?An((r=>Tx(t.pos,e.pos,n,r))):mx(e,t,n)?0:1;if(En(t,r))return 1}return 1&r?1:0}function Tn(e,t,r){if(2&r||Q){if(void 0===e||void 0===t)return 0;if(11===t.kind)return 0;if(n&&!Qy(e)&&!Qy(t))return Q&&function(e,t){if(t.pos-1&&r.indexOf(t)===i+1}(e,t)?An((r=>vx(e,t,n,r))):!Q&&(o=t,(i=Dc(i=e)).parent&&i.parent===Dc(o).parent)?yx(e,t,n)?0:1:65536&r?1:0;if(En(e,r)||En(t,r))return 1}else if(QC(t))return 1;var i,o;return 1&r?1:0}function Cn(e,t,r,i){if(2&r||Q){if(65536&r)return 1;if(void 0===t)return!e||n&&fx(e,n)?0:1;if(n&&e&&!HS(e.pos)&&!Qy(t)&&(!t.parent||t.parent===e)){if(Q){const r=i&&!HS(i.end)?i.end:t.end;return An((t=>Cx(r,e.end,n,t)))}return gx(e,t,n)?0:1}if(En(t,r))return 1}return 1&r&&!(131072&r)?1:0}function An(e){In.assert(!!Q);const t=e(!0);return 0===t?e(!1):t}function wn(e,t){const n=Q&&Sn(t,e,0);return n&&xn(n,!1),!!n}function Dn(e,t){const n=Q&&Cn(t,e,0,void 0);n&&pn(n)}function En(e,t){if(Qy(e)){const n=QC(e);return void 0===n?0!=(65536&t):n}return 0!=(65536&t)}function Nn(e,t,r){return 262144&rf(e)?0:(e=Pn(e),t=Pn(t),QC(r=Pn(r))?1:!n||Qy(e)||Qy(t)||Qy(r)?0:Q?An((e=>vx(t,r,n,e))):yx(t,r,n)?0:1)}function Fn(e){return 0===e.statements.length&&(!n||yx(e,e,n))}function Pn(e){for(;214===e.kind&&Qy(e);)e=e.expression;return e}function On(e,t){if(dl(e)||pl(e))return Qn(e);if(sw(e)&&e.textSourceNode)return On(e.textSourceNode,t);const r=n,i=!!r&&!!e.parent&&!Qy(e);if(F_(e)){if(!i||wp(e)!==Dc(r))return Oc(e)}else if(In.assertNode(e,tl),!i)return e.text;return Xp(r,e,t)}function Ln(t,r,i){if(10===t.kind&&t.textSourceNode){const e=t.textSourceNode;if(Tw(e)||Cw(e)||ow(e)){const n=ow(e)?e.text:On(e);return i?`"${sv(n)}"`:r||33554432&rf(t)?`"${iv(n)}"`:`"${ov(n)}"`}return Ln(e,r,i)}const o=(r?1:0)|(i?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&99===e.target?8:0);return sf(t,n,o)}function Mn(e){e&&1048576&rf(e)||(u.push(d),d=0,s.push(c),c=void 0,p.push(f))}function Rn(e){e&&1048576&rf(e)||(d=u.pop(),c=s.pop(),f=p.pop())}function Bn(e){f&&f!==Be(p)||(f=new Set),f.add(e)}function jn(e,t){_.push(l),l=e,m.push(f),g=t}function Jn(){l=_.pop(),g=m.pop()}function zn(e){g&&g!==Be(m)||(g=new Set),g.add(e)}function Un(e){if(e)switch(e.kind){case 238:case 292:case 293:T(e.statements,Un);break;case 253:case 251:case 243:case 244:Un(e.statement);break;case 242:Un(e.thenStatement),Un(e.elseStatement);break;case 245:case 247:case 246:Un(e.initializer),Un(e.statement);break;case 252:Un(e.caseBlock);break;case 266:T(e.clauses,Un);break;case 255:Un(e.tryBlock),Un(e.catchClause),Un(e.finallyBlock);break;case 295:Un(e.variableDeclaration),Un(e.block);break;case 240:Un(e.declarationList);break;case 258:T(e.declarations,Un);break;case 257:case 166:case 205:case 260:case 271:case 277:Vn(e.name);break;case 259:Vn(e.name),1048576&rf(e)&&(T(e.parameters,Un),Un(e.body));break;case 203:case 204:case 272:T(e.elements,Un);break;case 269:Un(e.importClause);break;case 270:Vn(e.name),Un(e.namedBindings);break;case 273:Vn(e.propertyName||e.name)}}function qn(e){if(e)switch(e.kind){case 299:case 300:case 169:case 171:case 174:case 175:Vn(e.name)}}function Vn(e){e&&(dl(e)||pl(e)?Qn(e):Ul(e)&&Un(e))}function Qn(e){const t=e.emitNode.autoGenerate;if(4==(7&t.flags))return Kn(SP(e),Cw(e),t.flags,t.prefix,t.suffix);{const n=t.id;return o[n]||(o[n]=function(e){const t=e.emitNode.autoGenerate,n=TP(t.prefix,Qn),r=TP(t.suffix);switch(7&t.flags){case 1:return Gn(0,!!(8&t.flags),Cw(e),n,r);case 2:return In.assertNode(e,Tw),Gn(268435456,!!(8&t.flags),!1,n,r);case 3:return Xn(Oc(e),32&t.flags?Hn:Wn,!!(16&t.flags),!!(8&t.flags),Cw(e),n,r)}return In.fail(`Unsupported GeneratedIdentifierKind: ${In.formatEnum(7&t.flags,Xr,!0)}.`)}(e))}}function Kn(e,t,n,o,a){const s=qB(e),c=t?i:r;return c[s]||(c[s]=er(e,t,null!=n?n:0,TP(o,Qn),TP(a)))}function Wn(e,t){return Hn(e)&&!function(e,t){return t?!!(null==g?void 0:g.has(e)):!!(null==f?void 0:f.has(e))}(e,t)&&!a.has(e)}function Hn(e,t){return!n||Op(n,e,E)}function $n(e,t){switch(e){case"":d=t;break;case"#":l=t;break;default:null!=c||(c=new Map),c.set(e,t)}}function Gn(e,t,n,r,i){r.length>0&&35===r.charCodeAt(0)&&(r=r.slice(1));const o=CP(n,r,"",i);let a=function(e){var t;switch(e){case"":return d;case"#":return l;default:return null!=(t=null==c?void 0:c.get(e))?t:0}}(o);if(e&&!(a&e)){const s=CP(n,r,268435456===e?"_i":"_n",i);if(Wn(s,n))return a|=e,n?zn(s):t&&Bn(s),$n(o,a),s}for(;;){const e=268435455&a;if(a++,8!==e&&13!==e){const s=CP(n,r,e<26?"_"+String.fromCharCode(97+e):"_"+(e-26),i);if(Wn(s,n))return n?zn(s):t&&Bn(s),$n(o,a),s}}}function Xn(e,t=Wn,n,r,i,o,s){if(e.length>0&&35===e.charCodeAt(0)&&(e=e.slice(1)),o.length>0&&35===o.charCodeAt(0)&&(o=o.slice(1)),n){const n=CP(i,o,e,s);if(t(n,i))return i?zn(n):r?Bn(n):a.add(n),n}95!==e.charCodeAt(e.length-1)&&(e+="_");let c=1;for(;;){const n=CP(i,o,e+c,s);if(t(n,i))return i?zn(n):r?Bn(n):a.add(n),n;c++}}function Yn(e){return Xn(e,Hn,!0,!1,!1,"","")}function Zn(){return Xn("default",Wn,!1,!1,!1,"","")}function er(e,t,n,r,i){switch(e.kind){case 79:case 80:return Xn(On(e),Wn,!!(16&n),!!(8&n),t,r,i);case 264:case 263:return In.assert(!r&&!i&&!t),function(e){const t=On(e.name);return function(e,t){for(let n=t;n&&Gh(n,t);n=n.nextContainer)if(wu(n)&&n.locals){const t=n.locals.get(Pc(e));if(t&&3257279&t.flags)return!1}return!0}(t,xt(e,wu))?t:Xn(t,Wn,!1,!1,!1,"","")}(e);case 269:case 275:return In.assert(!r&&!i&&!t),function(e){const t=ph(e);return Xn(sw(t)?_f(t.text):"module",Wn,!1,!1,!1,"","")}(e);case 259:case 260:{In.assert(!r&&!i&&!t);const o=e.name;return o&&!dl(o)?er(o,!1,n,r,i):Zn()}case 274:return In.assert(!r&&!i&&!t),Zn();case 228:return In.assert(!r&&!i&&!t),Xn("class",Wn,!1,!1,!1,"","");case 171:case 174:case 175:return function(e,t,n,r){return Tw(e.name)?Kn(e.name,t):Gn(0,!1,t,n,r)}(e,t,r,i);case 164:return Gn(0,!0,t,r,i);default:return Gn(0,!1,t,r,i)}}function tr(e,t){const n=Qe(2,e,t),r=te,i=ne,o=re;nr(t),n(e,t),rr(t,r,i,o)}function nr(e){const t=rf(e),n=WC(e);!function(e,t,n,r){ae(),ie=!1;const i=n<0||0!=(1024&t)||11===e.kind,o=r<0||0!=(2048&t)||11===e.kind;(n>0||r>0)&&n!==r&&(i||_r(n,355!==e.kind),(!i||n>=0&&0!=(1024&t))&&(te=n),(!o||r>=0&&0!=(2048&t))&&(ne=r,258===e.kind&&(re=r))),T($C(e),or),se()}(e,t,n.pos,n.end),4096&t&&(oe=!0)}function rr(e,t,n,r){const i=rf(e),o=WC(e);4096&i&&(oe=!1),ir(e,i,o.pos,o.end,t,n,r);const a=pA(e);a&&ir(e,i,a.pos,a.end,t,n,r)}function ir(e,t,n,r,i,o,a){ae();const s=r<0||0!=(2048&t)||11===e.kind;T(YC(e),ar),(n>0||r>0)&&n!==r&&(te=i,ne=o,re=a,s||355===e.kind||function(e){br(e,mr)}(r)),se()}function or(e){(e.hasLeadingNewline||2===e.kind)&&y.writeLine(),sr(e),e.hasTrailingNewLine||2===e.kind?y.writeLine():y.writeSpace(" ")}function ar(e){y.isAtStartOfLine()||y.writeSpace(" "),sr(e),e.hasTrailingNewLine&&y.writeLine()}function sr(e){const t=function(e){return 3===e.kind?`/*${e.text}*/`:"//"+e.text}(e);nb(t,3===e.kind?us(t):void 0,y,0,t.length,U)}function cr(e,t,r){ae();const{pos:i,end:o}=t,a=rf(e),s=oe||o<0||0!=(2048&a);i<0||0!=(1024&a)||function(e){const t=n&&tb(n.text,Ee(),y,xr,e,U,oe);t&&(A?A.push(t):A=[t])}(t),se(),4096&a&&!oe?(oe=!0,r(e),oe=!1):r(e),ae(),s||(_r(t.end,!0),ie&&!y.isAtStartOfLine()&&y.writeLine()),se()}function _r(e,t){ie=!1,t?0===e&&(null==n?void 0:n.isDeclarationFile)?vr(e,ur):vr(e,pr):0===e&&vr(e,lr)}function lr(e,t,n,r,i){kr(e,t)&&pr(e,t,n,r,i)}function ur(e,t,n,r,i){kr(e,t)||pr(e,t,n,r,i)}function dr(t,n){return!e.onlyPrintJsDocStyle||ZP(t,n)||Wp(t,n)}function pr(e,t,r,i,o){n&&dr(n.text,e)&&(ie||(Zv(Ee(),y,o,e),ie=!0),Dr(e),nb(n.text,Ee(),y,e,t,U),Dr(t),i?y.writeLine():3===r&&y.writeSpace(" "))}function fr(e){oe||-1===e||_r(e,!0)}function mr(e,t,r,i){n&&dr(n.text,e)&&(y.isAtStartOfLine()||y.writeSpace(" "),Dr(e),nb(n.text,Ee(),y,e,t,U),Dr(t),i&&y.writeLine())}function gr(e,t,n){oe||(ae(),br(e,t?mr:n?hr:yr),se())}function hr(e,t,r){n&&(Dr(e),nb(n.text,Ee(),y,e,t,U),Dr(t),2===r&&y.writeLine())}function yr(e,t,r,i){n&&(Dr(e),nb(n.text,Ee(),y,e,t,U),Dr(t),i?y.writeLine():y.writeSpace(" "))}function vr(e,t){!n||-1!==te&&e===te||(function(e){return void 0!==A&&je(A).nodePos===e}(e)?function(e){if(!n)return;const t=je(A).detachedCommentEndPos;A.length-1?A.pop():A=void 0,Ps(n.text,t,e,t)}(t):Ps(n.text,e,t,e))}function br(e,t){n&&(-1===ne||e!==ne&&e!==re)&&Is(n.text,e,t)}function xr(e,t,r,i,o,a){n&&dr(n.text,i)&&(Dr(i),nb(e,t,r,i,o,a),Dr(o))}function kr(e,t){return!!n&&Kp(n.text,e,t)}function Sr(e,t){const n=Qe(3,e,t);Tr(t),n(e,t),Cr(t)}function Tr(e){const t=rf(e),n=zC(e);if(W_(e)){In.assertIsDefined(e.parent,"UnparsedNodes must have parent pointers");const t=function(e){return void 0===e.parsedSourceMap&&void 0!==e.sourceMapText&&(e.parsedSourceMap=Sj(e.sourceMapText)||!1),e.parsedSourceMap||void 0}(e.parent);t&&x&&x.appendSourceMap(y.getLine(),y.getColumn(),t,e.parent.sourceMapPath,e.parent.getLineAndCharacterOfPosition(e.pos),e.parent.getLineAndCharacterOfPosition(e.end))}else{const r=n.source||k;355!==e.kind&&0==(32&t)&&n.pos>=0&&Er(n.source||k,Ar(r,n.pos)),128&t&&(Y=!0)}}function Cr(e){const t=rf(e),n=zC(e);W_(e)||(128&t&&(Y=!1),355!==e.kind&&0==(64&t)&&n.end>=0&&Er(n.source||k,n.end))}function Ar(e,t){return e.skipTrivia?e.skipTrivia(t):As(e.text,t)}function Dr(e){if(Y||HS(e)||Fr(k))return;const{line:t,character:n}=ys(k,e);x.addMapping(y.getLine(),y.getColumn(),Z,t,n,void 0)}function Er(e,t){if(e!==k){const n=k,r=Z;Nr(e),Dr(t),function(e,t){k=e,Z=t}(n,r)}else Dr(t)}function Nr(t){Y||(k=t,t!==S?Fr(t)||(Z=x.addSource(t.fileName),e.inlineSources&&x.setSourceContent(Z,t.text),S=t,ee=Z):Z=ee)}function Fr(e){return ta(e.fileName,".json")}}function yU(e,t,n,r){t(e)}function vU(e,t,n,r){t(e,n.select(r))}function bU(e,t,n,r){t(e,n)}var xU,kU,SU=b({"src/compiler/emitter.ts"(){XK(),XK(),lo(),zz=function(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}(),Uz={hasGlobalName:Nt,getReferencedExportContainer:Nt,getReferencedImportDeclaration:Nt,getReferencedDeclarationWithCollidingName:Nt,isDeclarationWithCollidingName:Nt,isValueAliasDeclaration:Nt,isReferencedAliasDeclaration:Nt,isTopLevelValueImportEqualsWithEntityName:Nt,getNodeCheckFlags:Nt,isDeclarationVisible:Nt,isLateBound:e=>!1,collectLinkedAliases:Nt,isImplementationOfOverload:Nt,isRequiredInitializedParameter:Nt,isOptionalUninitializedParameterProperty:Nt,isExpandoFunctionDeclaration:Nt,getPropertiesOfContainerFunction:Nt,createTypeOfDeclaration:Nt,createReturnTypeOfSignatureDeclaration:Nt,createTypeOfExpression:Nt,createLiteralConstValue:Nt,isSymbolAccessible:Nt,isEntityNameVisible:Nt,getConstantValue:Nt,getReferencedValueDeclaration:Nt,getTypeReferenceSerializationKind:Nt,isOptionalParameter:Nt,moduleExportsSomeValue:Nt,isArgumentsLocalBinding:Nt,getExternalModuleFileFromDeclaration:Nt,getTypeReferenceDirectivesForEntityName:Nt,getTypeReferenceDirectivesForSymbol:Nt,isLiteralConstDeclaration:Nt,getJsxFactoryEntity:Nt,getJsxFragmentFactoryEntity:Nt,getAllAccessorDeclarations:Nt,getSymbolOfExternalModuleSpecifier:Nt,isBindingCapturedByNode:Nt,getDeclarationStatementsForSourceFile:Nt,isImportRequiredByAugmentation:Nt},qz=Ft((()=>hU({}))),Vz=Ft((()=>hU({removeComments:!0}))),Qz=Ft((()=>hU({removeComments:!0,neverAsciiEscape:!0}))),Kz=Ft((()=>hU({removeComments:!0,omitTrailingSemicolon:!0})))}});function TU(e,t,n){if(!e.getDirectories||!e.readDirectory)return;const i=new Map,o=ln(n);return{useCaseSensitiveFileNames:n,fileExists:function(t){const n=c(a(t));return n&&u(n.sortedAndCanonicalizedFiles,o(_(t)))||e.fileExists(t)},readFile:(t,n)=>e.readFile(t,n),directoryExists:e.directoryExists&&function(t){const n=a(t);return i.has(Sa(n))||e.directoryExists(t)},getDirectories:function(t){const n=l(t,a(t));return n?n.directories.slice():e.getDirectories(t)},readDirectory:function(i,o,s,c,u){const p=a(i),f=l(i,p);let m;return void 0!==f?DS(i,o,s,c,n,t,u,(function(e){const t=a(e);if(t===p)return f||g(e,t);const n=l(e,t);return void 0!==n?n||g(e,t):ep}),d):e.readDirectory(i,o,s,c,u);function g(t,n){if(m&&n===p)return m;const i={files:V(e.readDirectory(t,void 0,void 0,["*.*"]),_)||r,directories:e.getDirectories(t)||r};return n===p&&(m=i),i}},createDirectory:e.createDirectory&&function(t){const n=c(a(t));if(n){const e=_(t),r=o(e);ge(n.sortedAndCanonicalizedDirectories,r,Qt)&&n.directories.push(e)}e.createDirectory(t)},writeFile:e.writeFile&&function(t,n,r){const i=c(a(t));return i&&p(i,_(t),!0),e.writeFile(t,n,r)},addOrDeleteFileOrDirectory:function(t,n){if(void 0!==s(n))return void f();const r=c(n);if(!r)return;if(!e.directoryExists)return void f();const i=_(t),a={fileExists:e.fileExists(n),directoryExists:e.directoryExists(n)};return a.directoryExists||u(r.sortedAndCanonicalizedDirectories,o(i))?f():p(r,i,a.fileExists),a},addOrDeleteFile:function(e,t,n){if(1===n)return;const r=c(t);r&&p(r,_(e),0===n)},clearCache:f,realpath:e.realpath&&d};function a(e){return xa(e,t,o)}function s(e){return i.get(Sa(e))}function c(e){const t=s(sa(e));return t?(t.sortedAndCanonicalizedFiles||(t.sortedAndCanonicalizedFiles=t.files.map(o).sort(),t.sortedAndCanonicalizedDirectories=t.directories.map(o).sort()),t):t}function _(e){return ca(va(e))}function l(t,n){const r=s(n=Sa(n));if(r)return r;try{return function(t,n){var r;if(!e.realpath||Sa(a(e.realpath(t)))===n){const r={files:V(e.readDirectory(t,void 0,void 0,["*.*"]),_)||[],directories:e.getDirectories(t)||[]};return i.set(Sa(n),r),r}if(null==(r=e.directoryExists)?void 0:r.call(e,t))return i.set(n,!1),!1}(t,n)}catch(e){return void In.assert(!i.has(Sa(n)))}}function u(e,t){return Ve(e,t,wt,Qt)>=0}function d(t){return e.realpath?e.realpath(t):t}function p(e,t,n){const r=e.sortedAndCanonicalizedFiles,i=o(t);if(n)ge(r,i,Qt)&&e.files.push(t);else{const t=Ve(r,i,wt,Qt);if(t>=0){r.splice(t,1);const n=e.files.findIndex((e=>o(e)===i));e.files.splice(n,1)}}}function f(){i.clear()}}function CU(e,t,n,i,o){var a;const s=nt((null==(a=null==t?void 0:t.configFile)?void 0:a.extendedSourceFiles)||r,o);n.forEach(((t,n)=>{s.has(n)||(t.projects.delete(e),t.close())})),s.forEach(((t,r)=>{const o=n.get(r);o?o.projects.add(e):n.set(r,{projects:new Set([e]),watcher:i(t,r),close:()=>{const e=n.get(r);e&&0===e.projects.size&&(e.watcher.close(),n.delete(r))}})}))}function AU(e,t){t.forEach((t=>{t.projects.delete(e)&&t.close()}))}function wU(e,t,n){e.delete(t)&&e.forEach((({extendedResult:r},i)=>{var o;(null==(o=r.extendedSourceFiles)?void 0:o.some((e=>n(e)===t)))&&wU(e,i,n)}))}function DU(e,t,n){zx(t,new Map(e),{createNewValue:n,onDeleteValue:Nx})}function EU(e,t,n){zx(t,nt(e.getMissingFilePaths(),wt,Ct),{createNewValue:n,onDeleteValue:Nx})}function NU(e,t,n){function r(e,t){return{watcher:n(e,t),flags:t}}zx(e,t,{createNewValue:r,onDeleteValue:LU,onExistingValue:function(t,n,i){t.flags!==n&&(t.watcher.close(),e.set(i,r(i,n)))}})}function FU({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:n,configFileName:r,options:i,program:o,extraFileExtensions:a,currentDirectory:s,useCaseSensitiveFileNames:c,writeLog:_,toPath:l}){const u=NV(n);if(!u)return _(`Project: ${r} Detected ignored path: ${t}`),!0;if((n=u)===e)return!1;if(ea(n)&&!jS(t,i,a))return _(`Project: ${r} Detected file add/remove of non supported extension: ${t}`),!0;if(JL(t,i.configFile.configFileSpecs,ya(sa(r),s),c,s))return _(`Project: ${r} Detected excluded file: ${t}`),!0;if(!o)return!1;if(Av(i)||i.outDir)return!1;if(FI(n)){if(i.declarationDir)return!1}else if(!na(n,Wd))return!1;const d=US(n),p=ht(o)?void 0:function(e){return!!e.getState}(o)?o.getProgramOrUndefined():o,f=p||ht(o)?void 0:o;return!(!m(d+".ts")&&!m(d+".tsx")||(_(`Project: ${r} Detected output file: ${t}`),0));function m(e){return p?!!p.getSourceFileByPath(e):f?f.getState().fileInfos.has(e):!!P(o,(t=>l(t)===e))}}function PU(e,t){return!!e&&e.isEmittedFile(t)}function IU(e,t,n,r){Oo(2===t?n:St);const i={watchFile:(t,n,r,i)=>e.watchFile(t,n,r,i),watchDirectory:(t,n,r,i)=>e.watchDirectory(t,n,0!=(1&r),i)},o=0!==t?{watchFile:_("watchFile"),watchDirectory:_("watchDirectory")}:void 0,a=2===t?{watchFile:function(e,t,i,a,s,c){n("FileWatcher:: Added:: "+l(e,i,a,s,c,r));const _=o.watchFile(e,t,i,a,s,c);return{close:()=>{n("FileWatcher:: Close:: "+l(e,i,a,s,c,r)),_.close()}}},watchDirectory:function(e,t,i,a,s,c){const _="DirectoryWatcher:: Added:: "+l(e,i,a,s,c,r);n(_);const u=_r(),d=o.watchDirectory(e,t,i,a,s,c),p=_r()-u;return n(`Elapsed:: ${p}ms ${_}`),{close:()=>{const t="DirectoryWatcher:: Close:: "+l(e,i,a,s,c,r);n(t);const o=_r();d.close();const _=_r()-o;n(`Elapsed:: ${_}ms ${t}`)}}}}:o||i,s=2===t?function(e,t,i,o,a){return n("ExcludeWatcher:: Added:: "+l(e,t,i,o,a,r)),{close:()=>n("ExcludeWatcher:: Close:: "+l(e,t,i,o,a,r))}}:RV;return{watchFile:c("watchFile"),watchDirectory:c("watchDirectory")};function c(t){return(n,r,i,o,c,_)=>{var l;return UL(n,"watchFile"===t?null==o?void 0:o.excludeFiles:null==o?void 0:o.excludeDirectories,"boolean"==typeof e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),(null==(l=e.getCurrentDirectory)?void 0:l.call(e))||"")?s(n,i,o,c,_):a[t].call(void 0,n,r,i,o,c,_)}}function _(e){return(t,o,a,s,c,_)=>i[e].call(void 0,t,((...i)=>{const u=`${"watchFile"===e?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${i[0]} ${void 0!==i[1]?i[1]:""}:: ${l(t,a,s,c,_,r)}`;n(u);const d=_r();o.call(void 0,...i);const p=_r()-d;n(`Elapsed:: ${p}ms ${u}`)}),a,s,c,_)}function l(e,t,n,r,i,o){return`WatchInfo: ${e} ${t} ${JSON.stringify(n)} ${o?o(r,i):void 0===i?r:`${r} ${i}`}`}}function OU(e){const t=null==e?void 0:e.fallbackPolling;return{watchFile:void 0!==t?t:1}}function LU(e){e.watcher.close()}var MU,RU,BU,jU,JU,zU,UU,qU,VU,QU,KU,WU,HU,$U=b({"src/compiler/watchUtilities.ts"(){XK(),XK(),xU=(e=>(e[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full",e))(xU||{}),kU=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(kU||{})}});function GU(e,t,n="tsconfig.json"){return Ra(e,(e=>{const r=ma(e,n);return t(r)?r:void 0}))}function XU(e,t){const n=sa(t);return va($o(e)?e:ma(n,e))}function YU(e,t,n){let r;return T(e,(e=>{const i=ha(e,t);if(i.pop(),!r)return void(r=i);const o=Math.min(r.length,i.length);for(let e=0;e{let a;try{Er("beforeIORead"),a=e(r,t().charset),Er("afterIORead"),Nr("I/O Read","beforeIORead","afterIORead")}catch(e){o&&o(e.message),a=""}return void 0!==a?TI(r,a,i,n):void 0}}function tq(e,t,n){return(r,i,o,a)=>{try{Er("beforeIOWrite"),Ov(r,i,o,e,t,n),Er("afterIOWrite"),Nr("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}}}function nq(e,t,n=So){const r=new Map,i=ln(n.useCaseSensitiveFileNames);function o(){return sa(va(n.getExecutingFilePath()))}const a=ax(e),s=n.realpath&&(e=>n.realpath(e)),c={getSourceFile:eq((e=>c.readFile(e)),(()=>e),t),getDefaultLibLocation:o,getDefaultLibFileName:e=>ma(o(),Zs(e)),writeFile:tq(((e,t,r)=>n.writeFile(e,t,r)),(e=>(c.createDirectory||n.createDirectory)(e)),(e=>{return t=e,!!r.has(t)||!!(c.directoryExists||n.directoryExists)(t)&&(r.set(t,!0),!0);var t})),getCurrentDirectory:Ft((()=>n.getCurrentDirectory())),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames,getCanonicalFileName:i,getNewLine:()=>a,fileExists:e=>n.fileExists(e),readFile:e=>n.readFile(e),trace:e=>n.write(e+a),directoryExists:e=>n.directoryExists(e),getEnvironmentVariable:e=>n.getEnvironmentVariable?n.getEnvironmentVariable(e):"",getDirectories:e=>n.getDirectories(e),realpath:s,readDirectory:(e,t,r,i,o)=>n.readDirectory(e,t,r,i,o),createDirectory:e=>n.createDirectory(e),createHash:lt(n,n.createHash)};return c}function rq(e,t,n){const r=e.readFile,i=e.fileExists,o=e.directoryExists,a=e.createDirectory,s=e.writeFile,c=new Map,_=new Map,l=new Map,u=new Map,d=(t,n)=>{const i=r.call(e,n);return c.set(t,void 0!==i&&i),i};e.readFile=n=>{const i=t(n),o=c.get(i);return void 0!==o?!1!==o?o:void 0:ta(n,".json")||Hz(n)?d(i,n):r.call(e,n)};const p=n?(e,r,i,o)=>{const a=t(e),s="object"==typeof r?r.impliedNodeFormat:void 0,c=u.get(s),_=null==c?void 0:c.get(a);if(_)return _;const l=n(e,r,i,o);return l&&(FI(e)||ta(e,".json"))&&u.set(s,(c||new Map).set(a,l)),l}:void 0;return e.fileExists=n=>{const r=t(n),o=_.get(r);if(void 0!==o)return o;const a=i.call(e,n);return _.set(r,!!a),a},s&&(e.writeFile=(n,r,...i)=>{const o=t(n);_.delete(o);const a=c.get(o);void 0!==a&&a!==r?(c.delete(o),u.forEach((e=>e.delete(o)))):p&&u.forEach((e=>{const t=e.get(o);t&&t.text!==r&&e.delete(o)})),s.call(e,n,r,...i)}),o&&(e.directoryExists=n=>{const r=t(n),i=l.get(r);if(void 0!==i)return i;const a=o.call(e,n);return l.set(r,!!a),a},a&&(e.createDirectory=n=>{const r=t(n);l.delete(r),a.call(e,n)})),{originalReadFile:r,originalFileExists:i,originalDirectoryExists:o,originalCreateDirectory:a,originalWriteFile:s,getSourceFileWithCache:p,readFileWithCache:e=>{const n=t(e),r=c.get(n);return void 0!==r?!1!==r?r:void 0:d(n,e)}}}function iq(e,t,n){let i;return i=Ae(i,e.getConfigFileParsingDiagnostics()),i=Ae(i,e.getOptionsDiagnostics(n)),i=Ae(i,e.getSyntacticDiagnostics(t,n)),i=Ae(i,e.getGlobalDiagnostics(n)),i=Ae(i,e.getSemanticDiagnostics(t,n)),tS(e.getCompilerOptions())&&(i=Ae(i,e.getDeclarationDiagnostics(t,n))),Ys(i||r)}function oq(e,t){let n="";for(const r of e)n+=aq(r,t);return n}function aq(e,t){const n=`${po(e)} TS${e.code}: ${dq(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:r,character:i}=ys(e.file,e.start);return`${Oa(e.file.fileName,t.getCurrentDirectory(),(e=>t.getCanonicalFileName(e)))}(${r+1},${i+1}): `+n}return n}function sq(e){switch(e){case 1:return"";case 0:return"";case 2:return In.fail("Should never get an Info diagnostic on the command line.");case 3:return""}}function cq(e,t){return t+e+jU}function _q(e,t,n,r,i,o){const{line:a,character:s}=ys(e,t),{line:c,character:_}=ys(e,t+n),l=ys(e,e.text.length).line,u=c-a>=4;let d=(c+1+"").length;u&&(d=Math.max(JU.length,d));let p="";for(let t=a;t<=c;t++){p+=o.getNewLine(),u&&a+1n.getCanonicalFileName(e))):e.fileName,""),a+=":",a+=r(""+(i+1),""),a+=":",a+=r(""+(o+1),""),a}function uq(e,t){let n="";for(const r of e){if(r.file){const{file:e,start:i}=r;n+=lq(e,i,t),n+=" - "}if(n+=cq(po(r),sq(r.category)),n+=cq(` TS${r.code}: `,""),n+=dq(r.messageText,t.getNewLine()),r.file&&(n+=t.getNewLine(),n+=_q(r.file,r.start,r.length,"",sq(r.category),t)),r.relatedInformation){n+=t.getNewLine();for(const{file:e,start:i,length:o,messageText:a}of r.relatedInformation)e&&(n+=t.getNewLine(),n+=zU+lq(e,i,t),n+=_q(e,i,o,UU,"",t)),n+=t.getNewLine(),n+=UU+dq(a,t.getNewLine())}n+=t.getNewLine()}return n}function dq(e,t,n=0){if(vt(e))return e;if(void 0===e)return"";let r="";if(n){r+=t;for(let e=0;ejM(o,e,n,r,i,t,a)}}function bq(e){return vt(e)?e:Et(e.fileName)}function xq(e,t,n,r,i){return{nameAndMode:QU,resolve:(o,a)=>xM(o,e,n,r,t,i,a)}}function kq(e,t,n,i,o,a,s,c){if(0===e.length)return r;const _=[],l=new Map,u=c(t,n,i,a,s);for(const t of e){const e=u.nameAndMode.getName(t),n=u.nameAndMode.getMode(t,o),r=NM(e,n);let i=l.get(r);i||l.set(r,i=u.resolve(e,n)),_.push(i)}return _}function Sq(e,t){return Tq(void 0,e,((e,n)=>e&&t(e,n)))}function Tq(e,t,n,r){let i;return function e(t,o,a){if(r){const e=r(t,a);if(e)return e}return T(o,((t,r)=>{if(t&&(null==i?void 0:i.has(t.sourceFile.path)))return;const o=n(t,a,r);return o||!t?o:((i||(i=new Set)).add(t.sourceFile.path),e(t.commandLine.projectReferences,t.references,t))}))}(e,t,void 0)}function Cq(e){switch(null==e?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function Aq(e){return void 0!==e.pos}function wq(e,t){var n,r,i,o,a,s;const c=In.checkDefined(e(t.file)),{kind:_,index:l}=t;let u,d,p,f;switch(_){case 3:const e=Jq(c,l);if(p=null==(i=null==(r=null==(n=c.resolvedModules)?void 0:n.get(e.text,fq(c,l)))?void 0:r.resolvedModule)?void 0:i.packageId,-1===e.pos)return{file:c,packageId:p,text:e.text};u=As(c.text,e.pos),d=e.end;break;case 4:({pos:u,end:d}=c.referencedFiles[l]);break;case 5:({pos:u,end:d,resolutionMode:f}=c.typeReferenceDirectives[l]),p=null==(s=null==(a=null==(o=c.resolvedTypeReferenceDirectiveNames)?void 0:o.get(Et(c.typeReferenceDirectives[l].fileName),f||c.impliedNodeFormat))?void 0:a.resolvedTypeReferenceDirective)?void 0:s.packageId;break;case 7:({pos:u,end:d}=c.libReferenceDirectives[l]);break;default:return In.assertNever(_)}return{file:c,pos:u,end:d,packageId:p}}function Dq(e,t,n,r,i,o,a,s,c){if(!e||(null==a?void 0:a()))return!1;if(!be(e.getRootFileNames(),t))return!1;let _;if(!be(e.getProjectReferences(),c,(function(t,n,r){return bp(t,n)&&u(e.getResolvedProjectReferences()[r],t)})))return!1;if(e.getSourceFiles().some((function(e){return!function(e){return e.version===r(e.resolvedPath,e.fileName)}(e)||o(e.path)})))return!1;if(e.getMissingFilePaths().some(i))return!1;const l=e.getCompilerOptions();return!(!Bx(l,n)||l.configFile&&n.configFile&&l.configFile.text!==n.configFile.text);function u(e,t){if(e){if(R(_,e))return!0;const n=Rq(t),r=s(n);return!!r&&e.commandLine.options.configFile===r.options.configFile&&!!be(e.commandLine.fileNames,r.fileNames)&&((_||(_=[])).push(e),!T(e.references,((t,n)=>!u(t,e.commandLine.projectReferences[n]))))}const n=Rq(t);return!s(n)}}function Eq(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function Nq(e,t,n,r){const i=Fq(e,t,n,r);return"object"==typeof i?i.impliedNodeFormat:i}function Fq(e,t,n,r){switch(Jk(r)){case 3:case 99:return na(e,[".d.mts",".mts",".mjs"])?99:na(e,[".d.cts",".cts",".cjs"])?1:na(e,[".d.ts",".ts",".tsx",".js",".jsx"])?function(){const i=sR(t,n,r),o=[];i.failedLookupLocations=o,i.affectingLocations=o;const a=cR(e,i);return{impliedNodeFormat:"module"===(null==a?void 0:a.contents.packageJsonContent.type)?99:1,packageJsonLocations:o,packageJsonScope:a}}():void 0;default:return}}function Pq(t,n,i,o,a){var s,c,_,l,u,d,p,f,m,g,h,y,v,b,x,k;const S=ht(t)?function(e,t,n,r,i,o){return{rootNames:e,options:t,host:n,oldProgram:r,configFileParsingDiagnostics:i,typeScriptVersion:void 0}}(t,n,i,o,a):t,{rootNames:C,options:D,configFileParsingDiagnostics:E,projectReferences:N,typeScriptVersion:F}=S;let{oldProgram:I}=S;const L=Ft((()=>En("ignoreDeprecations",ja.Invalid_value_for_ignoreDeprecations)));let M,B,j,J,U,q,V;const Q=new Map;let K=ut();const $={},G={};let X,Y,ee,ne=FM();const re="number"==typeof D.maxNodeModuleJsDepth?D.maxNodeModuleJsDepth:0;let ie=0;const oe=new Map,ae=new Map;null==(s=Ur)||s.push(Ur.Phase.Program,"createProgram",{configFilePath:D.configFilePath,rootDir:D.rootDir},!0),Er("beforeProgram");const se=S.host||ZU(D),ce=Lq(se);let le=D.noLib;const de=Ft((()=>se.getDefaultLibFileName(D))),pe=se.getDefaultLibLocation?se.getDefaultLibLocation():sa(de()),fe=ev(),me=se.getCurrentDirectory(),ge=IS(D),he=OS(D,ge),ye=new Map;let ve,xe,ke;const Te=se.hasInvalidatedResolutions||Tt;let Ce;if(se.resolveModuleNameLiterals?(ke=se.resolveModuleNameLiterals.bind(se),xe=null==(c=se.getModuleResolutionCache)?void 0:c.call(se)):se.resolveModuleNames?(ke=(e,t,n,r,i,o)=>se.resolveModuleNames(e.map(yq),t,null==o?void 0:o.map(yq),n,r,i).map((e=>e?void 0!==e.extension?{resolvedModule:e}:{resolvedModule:{...e,extension:XS(e.resolvedFileName)}}:qU)),xe=null==(_=se.getModuleResolutionCache)?void 0:_.call(se)):(xe=MM(me,gn,D),ke=(e,t,n,r,i)=>kq(e,t,n,r,i,se,xe,vq)),se.resolveTypeReferenceDirectiveReferences)Ce=se.resolveTypeReferenceDirectiveReferences.bind(se);else if(se.resolveTypeReferenceDirectives)Ce=(e,t,n,r,i)=>se.resolveTypeReferenceDirectives(e.map(bq),t,n,r,null==i?void 0:i.impliedNodeFormat).map((e=>({resolvedTypeReferenceDirective:e})));else{const e=RM(me,gn,void 0,null==xe?void 0:xe.getPackageJsonInfoCache());Ce=(t,n,r,i,o)=>kq(t,n,r,i,o,se,e,xq)}const Ae=new Map;let we=new Map,De=ut(),Ee=!1;const Ne=new Map;let Fe;const Ie=se.useCaseSensitiveFileNames()?new Map:void 0;let Oe,Le,Me,Re;const Be=!!(null==(l=se.useSourceOfProjectReferenceRedirect)?void 0:l.call(se))&&!D.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:je,fileExists:Je,directoryExists:ze}=function(e){let t;const n=e.compilerHost.fileExists,r=e.compilerHost.directoryExists,i=e.compilerHost.getDirectories,o=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:St,fileExists:s};let a;return e.compilerHost.fileExists=s,r&&(a=e.compilerHost.directoryExists=n=>r.call(e.compilerHost,n)?(function(t){var n;if(!e.getResolvedProjectReferences()||DT(t))return;if(!o||!rn(t,nM))return;const r=e.getSymlinkCache(),i=Sa(e.toPath(t));if(null==(n=r.getSymlinkedDirectories())?void 0:n.has(i))return;const a=va(o.call(e.compilerHost,t));let s;a!==t&&(s=Sa(e.toPath(a)))!==i?r.setSymlinkedDirectory(t,{real:Sa(a),realPath:s}):r.setSymlinkedDirectory(i,!1)}(n),!0):!!e.getResolvedProjectReferences()&&(t||(t=new Set,e.forEachResolvedProjectReference((n=>{const r=Av(n.commandLine.options);if(r)t.add(sa(e.toPath(r)));else{const r=n.commandLine.options.declarationDir||n.commandLine.options.outDir;r&&t.add(e.toPath(r))}}))),c(n,!1))),i&&(e.compilerHost.getDirectories=t=>!e.getResolvedProjectReferences()||r&&r.call(e.compilerHost,t)?i.call(e.compilerHost,t):[]),o&&(e.compilerHost.realpath=t=>{var n;return(null==(n=e.getSymlinkCache().getSymlinkedFiles())?void 0:n.get(e.toPath(t)))||o.call(e.compilerHost,t)}),{onProgramCreateComplete:function(){e.compilerHost.fileExists=n,e.compilerHost.directoryExists=r,e.compilerHost.getDirectories=i},fileExists:s,directoryExists:a};function s(t){return!!n.call(e.compilerHost,t)||!!e.getResolvedProjectReferences()&&!!FI(t)&&c(t,!0)}function c(r,i){var o;const a=i?t=>function(t){const r=e.getSourceOfProjectReferenceRedirect(e.toPath(t));return void 0!==r?!vt(r)||n.call(e.compilerHost,r):void 0}(t):n=>function(n){const r=e.toPath(n),i=`${r}${zo}`;return dp(t,(e=>r===e||fn(e,i)||fn(r,e+"/")))}(n),s=a(r);if(void 0!==s)return s;const c=e.getSymlinkCache(),_=c.getSymlinkedDirectories();if(!_)return!1;const l=e.toPath(r);return!!rn(l,nM)&&(!(!i||!(null==(o=c.getSymlinkedFiles())?void 0:o.has(l)))||w(_.entries(),(([t,n])=>{if(!n||!fn(l,t))return;const o=a(l.replace(t,n.realPath));if(i&&o){const i=ya(r,e.compilerHost.getCurrentDirectory());c.setSymlinkedFile(l,`${n.real}${i.replace(RegExp(t,"i"),"")}`)}return o}))||!1)}}({compilerHost:se,getSymlinkCache:Bn,useSourceOfProjectReferenceRedirect:Be,toPath:tt,getResolvedProjectReferences:st,getSourceOfProjectReferenceRedirect:an,forEachResolvedProjectReference:on}),Ue=se.readFile.bind(se);null==(u=Ur)||u.push(Ur.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!I});const qe=function(e,t){return!!e&&_p(e.getCompilerOptions(),t,eO)}(I,D);let Ve;if(null==(d=Ur)||d.pop(),null==(p=Ur)||p.push(Ur.Phase.Program,"tryReuseStructureFromOldProgram",{}),Ve=function(){var e;if(!I)return 0;const t=I.getCompilerOptions();if(ap(t,D))return 0;if(!be(I.getRootFileNames(),C))return 0;if(Tq(I.getProjectReferences(),I.getResolvedProjectReferences(),((e,t,n)=>{const r=yn((t?t.commandLine.projectReferences:N)[n]);return e?!r||r.sourceFile!==e.sourceFile||!be(e.commandLine.fileNames,r.commandLine.fileNames):void 0!==r}),((e,t)=>!be(e,t?cn(t.sourceFile.path).commandLine.projectReferences:N,bp))))return 0;N&&(Oe=N.map(yn));const n=[],r=[];if(Ve=2,I.getMissingFilePaths().some((e=>se.fileExists(e))))return 0;const i=I.getSourceFiles();let o;var a;(a=o||(o={}))[a.Exists=0]="Exists",a[a.Modified=1]="Modified";const s=new Map;for(const t of i){const i=Ht(t.fileName,xe,se,D);let o,a=se.getSourceFileByPath?se.getSourceFileByPath(t.fileName,t.resolvedPath,i,void 0,qe||i.impliedNodeFormat!==t.impliedNodeFormat):se.getSourceFile(t.fileName,i,void 0,qe||i.impliedNodeFormat!==t.impliedNodeFormat);if(!a)return 0;if(a.packageJsonLocations=(null==(e=i.packageJsonLocations)?void 0:e.length)?i.packageJsonLocations:void 0,a.packageJsonScope=i.packageJsonScope,In.assert(!a.redirectInfo,"Host should not return a redirect source file from `getSourceFile`"),t.redirectInfo){if(a!==t.redirectInfo.unredirected)return 0;o=!1,a=t}else if(I.redirectTargetsMap.has(t.path)){if(a!==t)return 0;o=!1}else o=a!==t;a.path=t.path,a.originalFileName=t.originalFileName,a.resolvedPath=t.resolvedPath,a.fileName=t.fileName;const c=I.sourceFileToPackageName.get(t.path);if(void 0!==c){const e=s.get(c),t=o?1:0;if(void 0!==e&&1===t||1===e)return 0;s.set(c,t)}o?(t.impliedNodeFormat!==a.impliedNodeFormat?Ve=1:be(t.libReferenceDirectives,a.libReferenceDirectives,Mt)?t.hasNoDefaultLib!==a.hasNoDefaultLib?Ve=1:be(t.referencedFiles,a.referencedFiles,Mt)?(Ut(a),be(t.imports,a.imports,jt)&&be(t.moduleAugmentations,a.moduleAugmentations,jt)?(6291456&t.flags)!=(6291456&a.flags)?Ve=1:be(t.typeReferenceDirectives,a.typeReferenceDirectives,Mt)||(Ve=1):Ve=1):Ve=1:Ve=1,r.push({oldFile:t,newFile:a})):Te(t.path)&&(Ve=1,r.push({oldFile:t,newFile:a})),n.push(a)}if(2!==Ve)return Ve;const c=r.map((e=>e.oldFile));for(const e of i)if(!R(c,e))for(const t of e.ambientModuleNames)Q.set(t,e.fileName);for(const{oldFile:e,newFile:t}of r){const n=jq(t),r=rt(n,t);Cp(n,t,r,e.resolvedModules,xp,VU)?(Ve=1,t.resolvedModules=PM(t,n,r,VU)):t.resolvedModules=e.resolvedModules;const i=t.typeReferenceDirectives,o=it(i,t);Cp(i,t,o,e.resolvedTypeReferenceDirectiveNames,Tp,QU)?(Ve=1,t.resolvedTypeReferenceDirectiveNames=PM(t,i,o,QU)):t.resolvedTypeReferenceDirectiveNames=e.resolvedTypeReferenceDirectiveNames}if(2!==Ve)return Ve;if(cp(t,D))return 1;if(se.hasChangedAutomaticTypeDirectiveNames){if(se.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Y=CM(D,se),!be(I.getAutomaticTypeDirectiveNames(),Y))return 1;Fe=I.getMissingFilePaths(),In.assert(n.length===I.getSourceFiles().length);for(const e of n)Ne.set(e.path,e);return I.getFilesByNameMap().forEach(((e,t)=>{e?e.path!==t?Ne.set(t,Ne.get(e.path)):I.isSourceFileFromExternalLibrary(e)&&ae.set(e.path,!0):Ne.set(t,e)})),j=n,K=I.getFileIncludeReasons(),X=I.getFileProcessingDiagnostics(),ne=I.getResolvedTypeReferenceDirectives(),Y=I.getAutomaticTypeDirectiveNames(),ee=I.getAutomaticTypeDirectiveResolutions(),we=I.sourceFileToPackageName,De=I.redirectTargetsMap,Ee=I.usesUriStyleNodeCoreModules,2}(),null==(f=Ur)||f.pop(),2!==Ve){if(M=[],B=[],N&&(Oe||(Oe=N.map(yn)),C.length&&(null==Oe||Oe.forEach(((e,t)=>{if(!e)return;const n=Av(e.commandLine.options);if(Be){if(n||0===Bk(e.commandLine.options))for(const n of e.commandLine.fileNames)Qt(n,{kind:1,index:t})}else if(n)Qt(QS(n,".d.ts"),{kind:2,index:t});else if(0===Bk(e.commandLine.options)){const n=Ft((()=>cU(e.commandLine,!se.useCaseSensitiveFileNames())));for(const r of e.commandLine.fileNames)FI(r)||ta(r,".json")||Qt(nU(r,e.commandLine,!se.useCaseSensitiveFileNames(),n),{kind:2,index:t})}})))),null==(m=Ur)||m.push(Ur.Phase.Program,"processRootFiles",{count:C.length}),T(C,((e,t)=>Lt(e,!1,!1,{kind:0,index:t}))),null==(g=Ur)||g.pop(),null!=Y||(Y=C.length?CM(D,se):r),ee=FM(),Y.length){null==(h=Ur)||h.push(Ur.Phase.Program,"processTypeReferences",{count:Y.length});const e=ma(D.configFilePath?sa(D.configFilePath):se.getCurrentDirectory(),KU),t=it(Y,e);for(let e=0;e{Lt(dn(e),!0,!1,{kind:6,index:t})}))}Fe=Ze(te(Ne.entries(),(([e,t])=>void 0===t?e:void 0))),j=Pe(M,(function(e,t){return Jt(et(e),et(t))})).concat(B),M=void 0,B=void 0}if(In.assert(!!Fe),I&&se.onReleaseOldSourceFile){const e=I.getSourceFiles();for(const t of e){const e=mt(t.resolvedPath);(qe||!e||e.impliedNodeFormat!==t.impliedNodeFormat||t.resolvedPath===t.path&&e.resolvedPath!==t.path)&&se.onReleaseOldSourceFile(t,I.getCompilerOptions(),!!mt(t.path))}se.getParsedCommandLine||I.forEachResolvedProjectReference((e=>{cn(e.sourceFile.path)||se.onReleaseOldSourceFile(e.sourceFile,I.getCompilerOptions(),!1)}))}I&&se.onReleaseParsedCommandLine&&Tq(I.getProjectReferences(),I.getResolvedProjectReferences(),((e,t,n)=>{const r=Rq((null==t?void 0:t.commandLine.projectReferences[n])||I.getProjectReferences()[n]);(null==Le?void 0:Le.has(tt(r)))||se.onReleaseParsedCommandLine(r,e,I.getCompilerOptions())})),I=void 0;const Qe={getRootFileNames:()=>C,getSourceFile:ft,getSourceFileByPath:mt,getSourceFiles:()=>j,getMissingFilePaths:()=>Fe,getModuleResolutionCache:()=>xe,getFilesByNameMap:()=>Ne,getCompilerOptions:()=>D,getSyntacticDiagnostics:function(e,t){return gt(e,bt,t)},getOptionsDiagnostics:function(){return Ys(ue(fe.getGlobalDiagnostics(),function(){if(!D.configFile)return r;let e=fe.getDiagnostics(D.configFile.fileName);return on((t=>{e=ue(e,fe.getDiagnostics(t.sourceFile.fileName))})),e}()))},getGlobalDiagnostics:function(){return C.length?Ys(dt().getGlobalDiagnostics().slice()):r},getSemanticDiagnostics:function(e,t){return gt(e,kt,t)},getCachedSemanticDiagnostics:function(e){var t;return e?null==(t=$.perFile)?void 0:t.get(e.path):$.allDiagnostics},getSuggestionDiagnostics:function(e,t){return xt((()=>dt().getSuggestionDiagnostics(e,t)))},getDeclarationDiagnostics:function(e,t){const n=Qe.getCompilerOptions();return!e||Av(n)?Nt(e,t):gt(e,Ot,t)},getBindAndCheckDiagnostics:function(e,t){return Ct(e,t)},getProgramDiagnostics:yt,getTypeChecker:dt,getClassifiableNames:function(){var e;if(!V){dt(),V=new Set;for(const t of j)null==(e=t.classifiableNames)||e.forEach((e=>V.add(e)))}return V},getCommonSourceDirectory:nt,emit:function(e,t,n,r,i,o){var a,s;null==(a=Ur)||a.push(Ur.Phase.Emit,"emit",{path:null==e?void 0:e.path},!0);const c=xt((()=>function(e,t,n,r,i,o,a){if(!a){const i=Iq(e,t,n,r);if(i)return i}const s=dt().getEmitResolver(Av(D)?void 0:t,r);Er("beforeEmit");const c=dU(s,ot(n),t,Pz(D,o,i),i,!1,a);return Er("afterEmit"),Nr("Emit","beforeEmit","afterEmit"),c}(Qe,e,t,n,r,i,o)));return null==(s=Ur)||s.pop(),c},getCurrentDirectory:()=>me,getNodeCount:()=>dt().getNodeCount(),getIdentifierCount:()=>dt().getIdentifierCount(),getSymbolCount:()=>dt().getSymbolCount(),getTypeCount:()=>dt().getTypeCount(),getInstantiationCount:()=>dt().getInstantiationCount(),getRelationCacheSizes:()=>dt().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>X,getResolvedTypeReferenceDirectives:()=>ne,getAutomaticTypeDirectiveNames:()=>Y,getAutomaticTypeDirectiveResolutions:()=>ee,isSourceFileFromExternalLibrary:_t,isSourceFileDefaultLibrary:function(e){if(!e.isDeclarationFile)return!1;if(e.hasNoDefaultLib)return!0;if(!D.noLib)return!1;const t=se.useCaseSensitiveFileNames()?Bt:Rt;return D.lib?_e(D.lib,(n=>t(e.fileName,dn(n)))):t(e.fileName,de())},getSourceFileFromReference:function(e,t){return qt(XU(t.fileName,e.fileName),ft)},getLibFileFromReference:function(e){const t=Et(e.fileName),n=qI.get(t);if(n)return ft(dn(n))},sourceFileToPackageName:we,redirectTargetsMap:De,usesUriStyleNodeCoreModules:Ee,isEmittedFile:function(e){if(D.noEmit)return!1;const t=tt(e);if(mt(t))return!1;const n=Av(D);if(n)return Rn(t,n)||Rn(t,US(n)+".d.ts");if(D.declarationDir&&Na(D.declarationDir,t,me,!se.useCaseSensitiveFileNames()))return!0;if(D.outDir)return Na(D.outDir,t,me,!se.useCaseSensitiveFileNames());if(na(t,Wd)||FI(t)){const e=US(t);return!!mt(e+".ts")||!!mt(e+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return E||r},getProjectReferences:function(){return N},getResolvedProjectReferences:st,getProjectReferenceRedirect:Xt,getResolvedProjectReferenceToRedirect:nn,getResolvedProjectReferenceByPath:cn,forEachResolvedProjectReference:on,isSourceOfProjectReferenceRedirect:sn,emitBuildInfo:function(e){var t,n;In.assert(!Av(D)),null==(t=Ur)||t.push(Ur.Phase.Emit,"emitBuildInfo",{},!0),Er("beforeEmit");const r=dU(Uz,ot(e),void 0,Ez,!1,!0);return Er("afterEmit"),Nr("Emit","beforeEmit","afterEmit"),null==(n=Ur)||n.pop(),r},fileExists:Je,readFile:Ue,directoryExists:ze,getSymlinkCache:Bn,realpath:null==(x=se.realpath)?void 0:x.bind(se),useCaseSensitiveFileNames:()=>se.useCaseSensitiveFileNames(),getCanonicalFileName:gn,getFileIncludeReasons:()=>K,structureIsReused:Ve,writeFile:at};return je(),null==X||X.forEach((e=>{switch(e.kind){case 1:return fe.add(bn(e.file&&mt(e.file),e.fileProcessingReason,e.diagnostic,e.args||r));case 0:const{file:t,pos:n,end:i}=wq(mt,e.reason);return fe.add(kk(t,In.checkDefined(n),In.checkDefined(i)-n,e.diagnostic,...e.args||r));case 2:return e.diagnostics.forEach((e=>fe.add(e)));default:In.assertNever(e)}})),function(){D.strictPropertyInitialization&&!iS(D,"strictNullChecks")&&Dn(ja.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),D.exactOptionalPropertyTypes&&!iS(D,"strictNullChecks")&&Dn(ja.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(D.isolatedModules||D.verbatimModuleSyntax)&&(D.out&&Dn(ja.Option_0_cannot_be_specified_with_option_1,"out",D.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),D.outFile&&Dn(ja.Option_0_cannot_be_specified_with_option_1,"outFile",D.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules")),D.inlineSourceMap&&(D.sourceMap&&Dn(ja.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),D.mapRoot&&Dn(ja.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),D.composite&&(!1===D.declaration&&Dn(ja.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===D.incremental&&Dn(ja.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const e=Av(D);if(D.tsBuildInfoFile?rS(D)||Dn(ja.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):!D.incremental||e||D.configFilePath||fe.add(Tk(ja.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),vn("5.0","5.5",(function(e,t,n,r,i,o,a,s){if(n){const c=Ak(void 0,ja.Use_0_instead,n);Fn(!t,e,void 0,Ak(c,r,i,o,a,s))}else Fn(!t,e,void 0,r,i,o,a,s)}),(e=>{0===D.target&&e("target","ES3"),D.noImplicitUseStrict&&e("noImplicitUseStrict"),D.keyofStringsOnly&&e("keyofStringsOnly"),D.suppressExcessPropertyErrors&&e("suppressExcessPropertyErrors"),D.suppressImplicitAnyIndexErrors&&e("suppressImplicitAnyIndexErrors"),D.noStrictGenericChecks&&e("noStrictGenericChecks"),D.charset&&e("charset"),D.out&&e("out",void 0,"outFile"),D.importsNotUsedAsValues&&e("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),D.preserveValueImports&&e("preserveValueImports",void 0,"verbatimModuleSyntax")})),function(){const e=D.suppressOutputPathCheck?void 0:Gz(D);Tq(N,Oe,((t,n,r)=>{const i=(n?n.commandLine.projectReferences:N)[r],o=n&&n.sourceFile;if(function(e,t,n){vn("5.0","5.5",(function(e,r,i,o,a,s,c,_){Nn(t,n,o,a,s,c,_)}),(t=>{e.prepend&&t("prepend")}))}(i,o,r),!t)return void Nn(o,r,ja.File_0_not_found,i.path);const a=t.commandLine.options;if(a.composite&&!a.noEmit||(n?n.commandLine.fileNames:C).length&&(a.composite||Nn(o,r,ja.Referenced_project_0_must_have_setting_composite_Colon_true,i.path),a.noEmit&&Nn(o,r,ja.Referenced_project_0_may_not_disable_emit,i.path)),i.prepend){const e=Av(a);e?se.fileExists(e)||Nn(o,r,ja.Output_file_0_from_project_1_does_not_exist,e,i.path):Nn(o,r,ja.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,i.path)}!n&&e&&e===Gz(a)&&(Nn(o,r,ja.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,e,i.path),ye.set(tt(e),!0))}))}(),D.composite){const e=new Set(C.map(tt));for(const t of j)Ev(t,Qe)&&!e.has(t.path)&&kn(t,ja.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[t.fileName,D.configFilePath||""])}if(D.paths)for(const e in D.paths)if(We(D.paths,e))if(fS(e)||Tn(!0,e,ja.Pattern_0_can_have_at_most_one_Asterisk_character,e),ht(D.paths[e])){const t=D.paths[e].length;0===t&&Tn(!1,e,ja.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,e);for(let n=0;nwI(e)&&!e.isDeclarationFile));if(D.isolatedModules||D.verbatimModuleSyntax)0===D.module&&t<2&&D.isolatedModules&&Dn(ja.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),!1===D.preserveConstEnums&&Dn(ja.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,D.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(n&&t<2&&0===D.module){const e=Zf(n,"boolean"==typeof n.externalModuleIndicator?n:n.externalModuleIndicator);fe.add(kk(n,e.start,e.length,ja.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(e&&!D.emitDeclarationOnly)if(D.module&&2!==D.module&&4!==D.module)Dn(ja.Only_amd_and_system_modules_are_supported_alongside_0,D.out?"out":"outFile","module");else if(void 0===D.module&&n){const e=Zf(n,"boolean"==typeof n.externalModuleIndicator?n:n.externalModuleIndicator);fe.add(kk(n,e.start,e.length,ja.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,D.out?"out":"outFile"))}if(eS(D)&&(1===Jk(D)?Dn(ja.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):Uk(D)||Dn(ja.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),D.outDir||D.rootDir||D.sourceRoot||D.mapRoot){const e=nt();D.outDir&&""===e&&j.some((e=>aa(e.fileName)>1))&&Dn(ja.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}D.useDefineForClassFields&&0===t&&Dn(ja.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),D.checkJs&&!oS(D)&&fe.add(Tk(ja.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),D.emitDeclarationOnly&&(tS(D)||Dn(ja.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),D.noEmit&&Dn(ja.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),D.emitDecoratorMetadata&&!D.experimentalDecorators&&Dn(ja.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),D.jsxFactory?(D.reactNamespace&&Dn(ja.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==D.jsx&&5!==D.jsx||Dn(ja.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",JI.get(""+D.jsx)),CI(D.jsxFactory,t)||En("jsxFactory",ja.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,D.jsxFactory)):D.reactNamespace&&!Us(D.reactNamespace,t)&&En("reactNamespace",ja.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,D.reactNamespace),D.jsxFragmentFactory&&(D.jsxFactory||Dn(ja.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==D.jsx&&5!==D.jsx||Dn(ja.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",JI.get(""+D.jsx)),CI(D.jsxFragmentFactory,t)||En("jsxFragmentFactory",ja.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,D.jsxFragmentFactory)),D.reactNamespace&&(4!==D.jsx&&5!==D.jsx||Dn(ja.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",JI.get(""+D.jsx))),D.jsxImportSource&&2===D.jsx&&Dn(ja.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",JI.get(""+D.jsx)),D.preserveValueImports&&Bk(D)<5&&Dn(ja.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"preserveValueImports");const r=Bk(D);D.verbatimModuleSyntax&&(2!==r&&3!==r&&4!==r||Dn(ja.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),D.preserveValueImports&&Ln("preserveValueImports","verbatimModuleSyntax"),D.importsNotUsedAsValues&&Ln("importsNotUsedAsValues","verbatimModuleSyntax")),!D.allowImportingTsExtensions||D.noEmit||D.emitDeclarationOnly||En("allowImportingTsExtensions",ja.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const i=Jk(D);if(D.resolvePackageJsonExports&&!Gk(i)&&Dn(ja.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),D.resolvePackageJsonImports&&!Gk(i)&&Dn(ja.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),D.customConditions&&!Gk(i)&&Dn(ja.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),100!==i||jk(r)||En("moduleResolution",ja.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"bundler"),!D.noEmit&&!D.suppressOutputPathCheck){const e=ot(),t=new Set;$z(e,(e=>{D.emitDeclarationOnly||o(e.jsFilePath,t),o(e.declarationFilePath,t)}))}function o(e,t){if(e){const n=tt(e);if(Ne.has(n)){let t;D.configFilePath||(t=Ak(void 0,ja.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),t=Ak(t,ja.Cannot_write_file_0_because_it_would_overwrite_input_file,e),Mn(e,Ck(t))}const r=se.useCaseSensitiveFileNames()?n:Et(n);t.has(r)?Mn(e,Tk(ja.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,e)):t.add(r)}}}(),Er("afterProgram"),Nr("Program","beforeProgram","afterProgram"),null==(k=Ur)||k.pop(),Qe;function Ke(e){var t;(null==(t=e.resolutionDiagnostics)?void 0:t.length)&&(null!=X?X:X=[]).push({kind:2,diagnostics:e.resolutionDiagnostics})}function He(e,t,n,r){if(se.resolveModuleNameLiterals||!se.resolveModuleNames)return Ke(n);if(!xe||Xs(t))return;const i=sa(ya(e.originalFileName,me)),o=Xe(e),a=xe.getFromNonRelativeNameCache(t,r,i,o);a&&Ke(a)}function $e(e,t,n){var i,o;if(!e.length)return r;const a=ya(t.originalFileName,me),s=Xe(t);null==(i=Ur)||i.push(Ur.Phase.Program,"resolveModuleNamesWorker",{containingFileName:a}),Er("beforeResolveModule");const c=ke(e,a,s,D,t,n);return Er("afterResolveModule"),Nr("ResolveModule","beforeResolveModule","afterResolveModule"),null==(o=Ur)||o.pop(),c}function Ge(e,t,n){var r,i;if(!e.length)return[];const o=vt(t)?void 0:t,a=vt(t)?t:ya(t.originalFileName,me),s=o&&Xe(o);null==(r=Ur)||r.push(Ur.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:a}),Er("beforeResolveTypeReference");const c=Ce(e,a,s,D,o,n);return Er("afterResolveTypeReference"),Nr("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null==(i=Ur)||i.pop(),c}function Xe(e){const t=nn(e.originalFileName);if(t||!FI(e.originalFileName))return t;const n=Ye(e.path);if(n)return n;if(!se.realpath||!D.preserveSymlinks||!rn(e.originalFileName,nM))return;const r=tt(se.realpath(e.originalFileName));return r===e.path?void 0:Ye(r)}function Ye(e){const t=an(e);return vt(t)?nn(t):t?on((t=>{const n=Av(t.commandLine.options);if(n)return tt(n)===e?t:void 0})):void 0}function et(e){if(Na(pe,e.fileName,!1)){const t=ca(e.fileName);if("lib.d.ts"===t||"lib.es6.d.ts"===t)return 0;const n=tn(mn(t,"lib."),".d.ts"),r=UI.indexOf(n);if(-1!==r)return r+1}return UI.length+2}function tt(e){return xa(e,me,gn)}function nt(){if(void 0===U){const e=z(j,(e=>Ev(e,Qe)));U=sU(D,(()=>Z(e,(e=>e.isDeclarationFile?void 0:e.fileName))),me,gn,(t=>function(e,t){let n=!0;const r=se.getCanonicalFileName(ya(t,me));for(const i of e)i.isDeclarationFile||0!==se.getCanonicalFileName(ya(i.fileName,me)).indexOf(r)&&(kn(i,ja.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[i.fileName,t]),n=!1);return n}(e,t)))}return U}function rt(e,t){var n;if(0===Ve&&!t.ambientModuleNames.length)return $e(e,t,void 0);const i=I&&I.getSourceFile(t.fileName);if(i!==t&&t.resolvedModules){const n=[];for(const r of e){const e=t.resolvedModules.get(r.text,gq(t,r));n.push(e)}return n}let o,a,s;const c=qU;for(let r=0;rme,getSourceFile:Qe.getSourceFile,getSourceFileByPath:Qe.getSourceFileByPath,getSourceFiles:Qe.getSourceFiles,getLibFileFromReference:Qe.getLibFileFromReference,isSourceFileFromExternalLibrary:_t,getResolvedProjectReferenceToRedirect:nn,getProjectReferenceRedirect:Xt,isSourceOfProjectReferenceRedirect:sn,getSymlinkCache:Bn,writeFile:e||at,isEmitBlocked:pt,readFile:e=>se.readFile(e),fileExists:e=>{const t=tt(e);return!!mt(t)||!R(Fe,t)&&se.fileExists(e)},useCaseSensitiveFileNames:()=>se.useCaseSensitiveFileNames(),getBuildInfo:e=>{var t;return null==(t=Qe.getBuildInfo)?void 0:t.call(Qe,e)},getSourceFileFromReference:(e,t)=>Qe.getSourceFileFromReference(e,t),redirectTargetsMap:De,getFileIncludeReasons:Qe.getFileIncludeReasons,createHash:lt(se,se.createHash)}}function at(e,t,n,r,i,o){se.writeFile(e,t,n,r,i,o)}function st(){return Oe}function ct(){return Mq(N,((e,t)=>{var n;return null==(n=Oe[t])?void 0:n.commandLine}),(e=>{const t=tt(e),n=mt(t);return n?n.text:Ne.has(t)?void 0:se.readFile(t)}),se)}function _t(e){return!!ae.get(e.path)}function dt(){return q||(q=KB(Qe))}function pt(e){return ye.has(tt(e))}function ft(e){return mt(tt(e))}function mt(e){return Ne.get(e)||void 0}function gt(e,t,n){return Ys(e?t(e,n):H(Qe.getSourceFiles(),(e=>(n&&n.throwIfCancellationRequested(),t(e,n)))))}function yt(e){var t;if(sT(e,D,Qe))return r;const n=fe.getDiagnostics(e.fileName);return(null==(t=e.commentDirectives)?void 0:t.length)?Dt(e,e.commentDirectives,n).diagnostics:n}function bt(e){return xg(e)?(e.additionalSyntacticDiagnostics||(e.additionalSyntacticDiagnostics=function(e){return xt((()=>{const t=[];return n(e,e),xI(e,n,(function(e,n){if(_P(n)){const e=P(n.modifiers,qw);e&&t.push(i(e,ja.Decorators_are_not_valid_here))}else if(MP(n)&&n.modifiers){const e=O(n.modifiers,qw);if(e>=0)if(Uw(n)&&!D.experimentalDecorators)t.push(i(n.modifiers[e],ja.Decorators_are_not_valid_here));else if(NE(n)){const r=O(n.modifiers,Aw);if(r>=0){const o=O(n.modifiers,ww);if(e>r&&o>=0&&e=0&&e=0&&t.push(rT(i(n.modifiers[o],ja.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),i(n.modifiers[e],ja.Decorator_used_before_export_here)))}}}}switch(n.kind){case 260:case 228:case 171:case 173:case 174:case 175:case 215:case 259:case 216:if(e===n.typeParameters)return t.push(r(e,ja.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 240:if(e===n.modifiers)return function(e,n){for(const r of e)switch(r.kind){case 85:if(n)continue;case 123:case 121:case 122:case 146:case 136:case 126:case 161:case 101:case 145:t.push(i(r,ja.The_0_modifier_can_only_be_used_in_TypeScript_files,_s(r.kind)))}}(n.modifiers,240===n.kind),"skip";break;case 169:if(e===n.modifiers){for(const n of e)vl(n)&&124!==n.kind&&127!==n.kind&&t.push(i(n,ja.The_0_modifier_can_only_be_used_in_TypeScript_files,_s(n.kind)));return"skip"}break;case 166:if(e===n.modifiers&&_e(e,vl))return t.push(r(e,ja.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 210:case 211:case 230:case 282:case 283:case 212:if(e===n.typeArguments)return t.push(r(e,ja.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}})),t;function n(e,n){switch(n.kind){case 166:case 169:case 171:if(n.questionToken===e)return t.push(i(e,ja.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 170:case 173:case 174:case 175:case 215:case 259:case 216:case 257:if(n.type===e)return t.push(i(e,ja.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(e.kind){case 270:if(e.isTypeOnly)return t.push(i(n,ja._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 275:if(e.isTypeOnly)return t.push(i(e,ja._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 273:case 278:if(e.isTypeOnly)return t.push(i(e,ja._0_declarations_can_only_be_used_in_TypeScript_files,WE(e)?"import...type":"export...type")),"skip";break;case 268:return t.push(i(e,ja.import_can_only_be_used_in_TypeScript_files)),"skip";case 274:if(e.isExportEquals)return t.push(i(e,ja.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 294:if(117===e.token)return t.push(i(e,ja.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 261:const r=_s(118);return In.assertIsDefined(r),t.push(i(e,ja._0_declarations_can_only_be_used_in_TypeScript_files,r)),"skip";case 264:const o=16&e.flags?_s(143):_s(142);return In.assertIsDefined(o),t.push(i(e,ja._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 262:return t.push(i(e,ja.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 263:const a=In.checkDefined(_s(92));return t.push(i(e,ja._0_declarations_can_only_be_used_in_TypeScript_files,a)),"skip";case 232:return t.push(i(e,ja.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 231:return t.push(i(e.type,ja.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 235:return t.push(i(e.type,ja.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 213:In.fail()}}function r(t,n,r,i,o){const a=t.pos;return kk(e,a,t.end-a,n,r,i,o)}function i(t,n,r,i,o){return qf(e,t,n,r,i,o)}}))}(e)),ue(e.additionalSyntacticDiagnostics,e.parseDiagnostics)):e.parseDiagnostics}function xt(e){try{return e()}catch(e){throw e instanceof ti&&(q=void 0),e}}function kt(e,t){return ue(Oq(Ct(e,t),D),yt(e))}function Ct(e,t){return It(e,t,$,At)}function At(e,t){return xt((()=>{if(sT(e,D,Qe))return r;const n=dt();In.assert(!!e.bindDiagnostics);const i=(1===e.scriptKind||2===e.scriptKind)&&eT(e,D),o=Ep(e,D.checkJs),a=!(e.checkJsDirective&&!1===e.checkJsDirective.enabled)&&(3===e.scriptKind||4===e.scriptKind||5===e.scriptKind||o||i||7===e.scriptKind);let s=a?e.bindDiagnostics:r,c=a?n.getDiagnostics(e,t):r;return o&&(s=z(s,(e=>WU.has(e.code))),c=z(c,(e=>WU.has(e.code)))),function(e,t,...n){var r;const i=W(n);if(!t||!(null==(r=e.commentDirectives)?void 0:r.length))return i;const{diagnostics:o,directives:a}=Dt(e,e.commentDirectives,i);for(const t of a.getUnusedExpectations())o.push(Gf(e,t.range,ja.Unused_ts_expect_error_directive));return o}(e,a&&!o,s,c,i?e.jsDocDiagnostics:void 0)}))}function Dt(e,t,n){const r=Hp(e,t),i=n.filter((e=>-1===function(e,t){const{file:n,start:r}=e;if(!n)return-1;const i=fs(n);let o=ms(i,r).line-1;for(;o>=0;){if(t.markUsed(o))return o;const e=n.text.slice(i[o],i[o+1]).trim();if(""!==e&&!/^(\s*)\/\/(.*)$/.test(e))return-1;o--}return-1}(e,r)));return{diagnostics:i,directives:r}}function Nt(e,t){return It(e,t,G,Pt)}function Pt(e,t){return xt((()=>{const n=dt().getEmitResolver(e,t);return Sz(ot(St),n,e)||r}))}function It(e,t,n,r){var i;const o=e?null==(i=n.perFile)?void 0:i.get(e.path):n.allDiagnostics;if(o)return o;const a=r(e,t);return e?(n.perFile||(n.perFile=new Map)).set(e.path,a):n.allDiagnostics=a,a}function Ot(e,t){return e.isDeclarationFile?[]:Nt(e,t)}function Lt(e,t,n,r){Vt(va(e),t,n,void 0,r)}function Mt(e,t){return e.fileName===t.fileName}function jt(e,t){return 79===e.kind?79===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function zt(e,t){const n=dC.createStringLiteral(e),r=dC.createImportDeclaration(void 0,void 0,n,void 0);return JC(r,2),kT(n,r),kT(r,t),n.flags&=-9,r.flags&=-9,n}function Ut(e){if(e.imports)return;const t=xg(e),n=wI(e);let i,o,a;if((qk(D)||n)&&!e.isDeclarationFile){D.importHelpers&&(i=[zt(od,e)]);const t=pS(dS(D,e),D);t&&(i||(i=[])).push(zt(t,e))}for(const t of e.statements)c(t,!1);const s=t&&Xk(D);return(2097152&e.flags||s)&&function(e){const t=/import|require/g;for(;null!==t.exec(e.text);){const n=_(e,t.lastIndex);s&&Dg(n,!0)||sm(n)&&n.arguments.length>=1&&ed(n.arguments[0])?(TT(n,!1),i=Se(i,n.arguments[0])):_m(n)&&(TT(n,!1),i=Se(i,n.argument.literal))}}(e),e.imports=i||r,e.moduleAugmentations=o||r,void(e.ambientModuleNames=a||r);function c(t,r){if(Pf(t)){const n=ph(t);!(n&&sw(n)&&n.text)||r&&Xs(n.text)||(TT(t,!1),i=Se(i,n),Ee||0!==ie||e.isDeclarationFile||(Ee=fn(n.text,"node:")))}else if(OE(t)&&df(t)&&(r||cb(t,2)||e.isDeclarationFile)){t.name.parent=t;const i=Ny(t.name);if(n||r&&!Xs(i))(o||(o=[])).push(t.name);else if(!r){e.isDeclarationFile&&(a||(a=[])).push(i);const n=t.body;if(n)for(const e of n.statements)c(e,!0)}}}function _(e,n){let r=e;const i=e=>{if(e.pos<=n&&(nta(i,e))))return void(n&&(LS(i)?n(ja.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,e):n(ja.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,e,"'"+W(ge).join("', '")+"'")));const o=t(e);if(n)if(o)Cq(r)&&i===se.getCanonicalFileName(mt(r.file).fileName)&&n(ja.A_file_cannot_have_a_reference_to_itself);else{const t=Xt(e);t?n(ja.Output_file_0_has_not_been_built_from_source_file_1,t,e):n(ja.File_0_not_found,e)}return o}{const r=D.allowNonTsExtensions&&t(e);if(r)return r;if(n&&D.allowNonTsExtensions)return void n(ja.File_0_not_found,e);const i=T(ge[0],(n=>t(e+n)));return n&&!i&&n(ja.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,e,"'"+W(ge).join("', '")+"'"),i}}function Vt(e,t,n,r,i){qt(e,(e=>Wt(e,t,n,i,r)),((e,...t)=>xn(void 0,i,e,t)),i)}function Qt(e,t){return Vt(e,!1,!1,void 0,t)}function Kt(e,t,n){!Cq(n)&&_e(K.get(t.path),Cq)?xn(t,n,ja.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[t.fileName,e]):xn(t,n,ja.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[e,t.fileName])}function Wt(e,t,n,r,i){var o,a;null==(o=Ur)||o.push(Ur.Phase.Program,"findSourceFile",{fileName:e,isDefaultLib:t||void 0,fileIncludeKind:ni[r.kind]});const s=function(e,t,n,r,i){var o,a;const s=tt(e);if(Be){let o=an(s);if(!o&&se.realpath&&D.preserveSymlinks&&FI(e)&&rn(e,nM)){const t=tt(se.realpath(e));t!==s&&(o=an(t))}if(o){const e=vt(o)?Wt(o,t,n,r,i):void 0;return e&&Gt(e,s,void 0),e}}const c=e;if(Ne.has(s)){const n=Ne.get(s);if($t(n||void 0,r),n&&!1!==D.forceConsistentCasingInFileNames){const t=n.fileName;tt(t)!==tt(e)&&(e=Xt(e)||e),ba(t,me)!==ba(e,me)&&Kt(e,n,r)}return n&&ae.get(n.path)&&0===ie?(ae.set(n.path,!1),D.noResolve||(_n(n,t),ln(n)),D.noLib||pn(n),oe.set(n.path,!1),hn(n)):n&&oe.get(n.path)&&iexn(void 0,r,ja.Cannot_read_file_0_Colon_1,[e,t])),qe||(null==(o=null==I?void 0:I.getSourceFileByPath(tt(e)))?void 0:o.impliedNodeFormat)!==l.impliedNodeFormat);if(i){const t=Sp(i),n=Ae.get(t);if(n){const t=function(e,t,n,r,i,o,a){var s;const c=qP.createRedirectedSourceFile({redirectTarget:e,unredirected:t});return c.fileName=n,c.path=r,c.resolvedPath=i,c.originalFileName=o,c.packageJsonLocations=(null==(s=a.packageJsonLocations)?void 0:s.length)?a.packageJsonLocations:void 0,c.packageJsonScope=a.packageJsonScope,ae.set(r,ie>0),c}(n,u,e,s,tt(e),c,l);return De.add(n.path,e),Gt(t,s,_),$t(t,r),we.set(s,kp(i)),B.push(t),t}u&&(Ae.set(t,u),we.set(s,kp(i)))}if(Gt(u,s,_),u){if(ae.set(s,ie>0),u.fileName=e,u.path=s,u.resolvedPath=tt(e),u.originalFileName=c,u.packageJsonLocations=(null==(a=l.packageJsonLocations)?void 0:a.length)?l.packageJsonLocations:void 0,u.packageJsonScope=l.packageJsonScope,$t(u,r),se.useCaseSensitiveFileNames()){const t=Et(s),n=Ie.get(t);n?Kt(e,n,r):Ie.set(t,u)}le=le||u.hasNoDefaultLib&&!n,D.noResolve||(_n(u,t),ln(u)),D.noLib||pn(u),hn(u),t?M.push(u):B.push(u)}return u}(e,t,n,r,i);return null==(a=Ur)||a.pop(),s}function Ht(e,t,n,r){const i=Fq(ya(e,me),null==t?void 0:t.getPackageJsonInfoCache(),n,r),o=Rk(r),a=Mk(r);return"object"==typeof i?{...i,languageVersion:o,setExternalModuleIndicator:a}:{languageVersion:o,impliedNodeFormat:i,setExternalModuleIndicator:a}}function $t(e,t){e&&K.add(e.path,t)}function Gt(e,t,n){n?(Ne.set(n,e),Ne.set(t,e||!1)):Ne.set(t,e)}function Xt(e){const t=Zt(e);return t&&en(t,e)}function Zt(e){if(Oe&&Oe.length&&!FI(e)&&!ta(e,".json"))return nn(e)}function en(e,t){const n=Av(e.commandLine.options);return n?QS(n,".d.ts"):nU(t,e.commandLine,!se.useCaseSensitiveFileNames())}function nn(e){void 0===Me&&(Me=new Map,on((e=>{tt(D.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((t=>Me.set(tt(t),e.sourceFile.path)))})));const t=Me.get(tt(e));return t&&cn(t)}function on(e){return Sq(Oe,e)}function an(e){if(FI(e))return void 0===Re&&(Re=new Map,on((e=>{const t=Av(e.commandLine.options);if(t){const e=QS(t,".d.ts");Re.set(tt(e),!0)}else{const t=Ft((()=>cU(e.commandLine,!se.useCaseSensitiveFileNames())));T(e.commandLine.fileNames,(n=>{if(!FI(n)&&!ta(n,".json")){const r=nU(n,e.commandLine,!se.useCaseSensitiveFileNames(),t);Re.set(tt(r),n)}}))}}))),Re.get(e)}function sn(e){return Be&&!!nn(e)}function cn(e){if(Le)return Le.get(e)||void 0}function _n(e,t){T(e.referencedFiles,((n,r)=>{Vt(XU(n.fileName,e.fileName),t,!1,void 0,{kind:4,file:e.path,index:r})}))}function ln(e){const t=e.typeReferenceDirectives;if(!t.length)return void(e.resolvedTypeReferenceDirectiveNames=void 0);const n=it(t,e);for(let r=0;r{const r=Et(t.fileName),i=qI.get(r);if(i)Lt(dn(i),!0,!0,{kind:7,file:e.path,index:n});else{const t=Yt(tn(mn(r,"lib."),".d.ts"),UI,wt),i=t?ja.Cannot_find_lib_definition_for_0_Did_you_mean_1:ja.Cannot_find_lib_definition_for_0;(X||(X=[])).push({kind:0,reason:{kind:7,file:e.path,index:n},diagnostic:i,args:[r,t]})}}))}function gn(e){return se.getCanonicalFileName(e)}function hn(e){var t;if(Ut(e),e.imports.length||e.moduleAugmentations.length){const n=jq(e),r=rt(n,e);In.assert(r.length===n.length);const i=(Be?null==(t=Xe(e))?void 0:t.commandLine.options:void 0)||D;for(let t=0;tre,p=u&&!Bq(i,o,e)&&!i.noResolve&&t{_?void 0===i?r(e,i,o,ja.Option_0_has_been_removed_Please_remove_it_from_your_configuration,e):r(e,i,o,ja.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,e,i):void 0===i?r(e,i,o,ja.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,e,n,t):r(e,i,o,ja.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,e,i,n,t)}))}function bn(e,t,n,i){var o;let a,s,c=Cq(t)?t:void 0;e&&(null==(o=K.get(e.path))||o.forEach(p)),t&&p(t),c&&1===(null==a?void 0:a.length)&&(a=void 0);const _=c&&wq(mt,c),l=a&&Ak(a,ja.The_file_is_in_the_program_because_Colon),u=e&&ZV(e),d=Ak(u?l?[l,...u]:u:l,n,...i||r);return _&&Aq(_)?Wf(_.file,_.pos,_.end-_.pos,d,s):Ck(d,s);function p(e){(a||(a=[])).push(nQ(Qe,e)),!c&&Cq(e)?c=e:c!==e&&(s=Se(s,function(e){if(Cq(e)){const t=wq(mt,e);let n;switch(e.kind){case 3:n=ja.File_is_included_via_import_here;break;case 4:n=ja.File_is_included_via_reference_here;break;case 5:n=ja.File_is_included_via_type_library_reference_here;break;case 7:n=ja.File_is_included_via_library_reference_here;break;default:In.assertNever(e)}return Aq(t)?kk(t.file,t.pos,t.end-t.pos,n):void 0}if(!D.configFile)return;let t,n;switch(e.kind){case 0:if(!D.configFile.configFileSpecs)return;const r=ya(C[e.index],me),i=eQ(Qe,r);if(i){t=jm(D.configFile,"files",i),n=ja.File_is_matched_by_files_list_specified_here;break}const o=tQ(Qe,r);if(!o||!vt(o))return;t=jm(D.configFile,"include",o),n=ja.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const a=In.checkDefined(null==Oe?void 0:Oe[e.index]),s=Tq(N,Oe,((e,t,n)=>e===a?{sourceFile:(null==t?void 0:t.sourceFile)||D.configFile,index:n}:void 0));if(!s)return;const{sourceFile:c,index:_}=s,l=A(Jm(c,"references"),(e=>DD(e.initializer)?e.initializer:void 0));return l&&l.elements.length>_?qf(c,l.elements[_],2===e.kind?ja.File_is_output_from_referenced_project_specified_here:ja.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!D.types)return;t=wn("types",e.typeReference),n=ja.File_is_entry_point_of_type_library_specified_here;break;case 6:if(void 0!==e.index){t=wn("lib",D.lib[e.index]),n=ja.File_is_library_specified_here;break}const u=up(KI.type,((e,t)=>e===Rk(D)?t:void 0));t=u?function(e,t){const n=Cn("target");return n&&A(n,(e=>sw(e.initializer)&&e.initializer.text===t?e.initializer:void 0))}(0,u):void 0,n=ja.File_is_default_library_for_target_specified_here;break;default:In.assertNever(e)}return t&&qf(D.configFile,t,n)}(e))),e===t&&(t=void 0)}}function xn(e,t,n,r){(X||(X=[])).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:n,args:r})}function kn(e,t,n){fe.add(bn(e,void 0,t,n))}function Sn(e,t,n,r,i,o){let a=!0;const s=An();for(const c of s)if(ED(c.initializer))for(const s of Mm(c.initializer,e)){const e=s.initializer;DD(e)&&e.elements.length>t&&(fe.add(qf(D.configFile,e.elements[t],n,r,i,o)),a=!1)}a&&fe.add(Tk(n,r,i,o))}function Tn(e,t,n,r){let i=!0;const o=An();for(const a of o)ED(a.initializer)&&On(a.initializer,e,t,void 0,n,r)&&(i=!1);i&&fe.add(Tk(n,r))}function Cn(e){const t=Pn();return t&&Mm(t,e)}function An(){return Cn("paths")||r}function wn(e,t){const n=Pn();return n&&Rm(n,e,t)}function Dn(e,t,n,r){Fn(!0,t,n,e,t,n,r)}function En(e,t,n,r){Fn(!1,e,void 0,t,n,r)}function Nn(e,t,n,r,i,o,a){const s=A(Jm(e||D.configFile,"references"),(e=>DD(e.initializer)?e.initializer:void 0));s&&s.elements.length>t?fe.add(qf(e||D.configFile,s.elements[t],n,r,i,o,a)):fe.add(Tk(n,r,i,o,a))}function Fn(e,t,n,r,i,o,a,s){const c=Pn();(!c||!On(c,e,t,n,r,i,o,a,s))&&("messageText"in r?fe.add(Ck(r)):fe.add(Tk(r,i,o,a,s)))}function Pn(){if(void 0===ve){ve=!1;const e=Bm(D.configFile);if(e)for(const t of Mm(e,"compilerOptions"))if(ED(t.initializer)){ve=t.initializer;break}}return ve||void 0}function On(e,t,n,r,i,o,a,s,c){const _=Mm(e,n,r);for(const e of _)"messageText"in i?fe.add(Vf(D.configFile,t?e.name:e.initializer,i)):fe.add(qf(D.configFile,t?e.name:e.initializer,i,o,a,s,c));return!!_.length}function Ln(e,t){const n=Pn();n?On(n,!0,e,void 0,ja.Option_0_is_redundant_and_cannot_be_specified_with_option_1,e,t):Dn(ja.Option_0_is_redundant_and_cannot_be_specified_with_option_1,e,t)}function Mn(e,t){ye.set(tt(e),!0),fe.add(t)}function Rn(e,t){return 0===Ea(e,t,me,!se.useCaseSensitiveFileNames())}function Bn(){return se.getSymlinkCache?se.getSymlinkCache():(J||(J=mS(me,gn)),j&&ee&&!J.hasProcessedResolutions()&&J.setSymlinksFromResolutions(j,ee),J)}}function Iq(e,t,n,r){const i=e.getCompilerOptions();if(i.noEmit)return e.getSemanticDiagnostics(t,r),t||Av(i)?HU:e.emitBuildInfo(n,r);if(!i.noEmitOnError)return;let o,a=[...e.getOptionsDiagnostics(r),...e.getSyntacticDiagnostics(t,r),...e.getGlobalDiagnostics(r),...e.getSemanticDiagnostics(t,r)];if(0===a.length&&tS(e.getCompilerOptions())&&(a=e.getDeclarationDiagnostics(void 0,r)),a.length){if(!t&&!Av(i)){const t=e.emitBuildInfo(n,r);t.diagnostics&&(a=[...a,...t.diagnostics]),o=t.emittedFiles}return{diagnostics:a,sourceMaps:void 0,emittedFiles:o,emitSkipped:!0}}}function Oq(e,t){return z(e,(e=>!e.skippedOn||!t[e.skippedOn]))}function Lq(e,t=e){return{fileExists:e=>t.fileExists(e),readDirectory:(e,n,r,i,o)=>(In.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(e,n,r,i,o)),readFile:e=>t.readFile(e),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||At,trace:e.trace?t=>e.trace(t):void 0}}function Mq(e,t,n,i){if(!e)return r;let o;for(let r=0;re));for(const e of t)10===e.kind&&n.push(e);return n}function Jq({imports:e,moduleAugmentations:t},n){if(n(e.Grey="",e.Red="",e.Yellow="",e.Blue="",e.Cyan="",e))(MU||{}),RU="",BU=" ",jU="",JU="...",zU=" ",UU=" ",qU={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},VU={getName:yq,getMode:(e,t)=>gq(t,e)},QU={getName:bq,getMode:(e,t)=>pq(e,null==t?void 0:t.impliedNodeFormat)},KU="__inferred type names__.ts",WU=new Set([ja.Cannot_redeclare_block_scoped_variable_0.code,ja.A_module_cannot_have_multiple_default_exports.code,ja.Another_export_default_is_here.code,ja.The_first_export_default_is_here.code,ja.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,ja.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,ja.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,ja.constructor_is_a_reserved_word.code,ja.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,ja.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,ja.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,ja.Invalid_use_of_0_in_strict_mode.code,ja.A_label_is_not_allowed_here.code,ja.Octal_literals_are_not_allowed_in_strict_mode.code,ja.with_statements_are_not_allowed_in_strict_mode.code,ja.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,ja.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,ja.A_class_declaration_without_the_default_modifier_must_have_a_name.code,ja.A_class_member_cannot_have_the_0_keyword.code,ja.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,ja.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,ja.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,ja.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,ja.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,ja.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,ja.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,ja.A_destructuring_declaration_must_have_an_initializer.code,ja.A_get_accessor_cannot_have_parameters.code,ja.A_rest_element_cannot_contain_a_binding_pattern.code,ja.A_rest_element_cannot_have_a_property_name.code,ja.A_rest_element_cannot_have_an_initializer.code,ja.A_rest_element_must_be_last_in_a_destructuring_pattern.code,ja.A_rest_parameter_cannot_have_an_initializer.code,ja.A_rest_parameter_must_be_last_in_a_parameter_list.code,ja.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,ja.A_return_statement_cannot_be_used_inside_a_class_static_block.code,ja.A_set_accessor_cannot_have_rest_parameter.code,ja.A_set_accessor_must_have_exactly_one_parameter.code,ja.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,ja.An_export_declaration_cannot_have_modifiers.code,ja.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,ja.An_import_declaration_cannot_have_modifiers.code,ja.An_object_member_cannot_be_declared_optional.code,ja.Argument_of_dynamic_import_cannot_be_spread_element.code,ja.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,ja.Cannot_redeclare_identifier_0_in_catch_clause.code,ja.Catch_clause_variable_cannot_have_an_initializer.code,ja.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,ja.Classes_can_only_extend_a_single_class.code,ja.Classes_may_not_have_a_field_named_constructor.code,ja.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,ja.Duplicate_label_0.code,ja.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code,ja.For_await_loops_cannot_be_used_inside_a_class_static_block.code,ja.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,ja.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,ja.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,ja.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,ja.Jump_target_cannot_cross_function_boundary.code,ja.Line_terminator_not_permitted_before_arrow.code,ja.Modifiers_cannot_appear_here.code,ja.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,ja.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,ja.Private_identifiers_are_not_allowed_outside_class_bodies.code,ja.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,ja.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,ja.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,ja.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,ja.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,ja.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,ja.Trailing_comma_not_allowed.code,ja.Variable_declaration_list_cannot_be_empty.code,ja._0_and_1_operations_cannot_be_mixed_without_parentheses.code,ja._0_expected.code,ja._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,ja._0_list_cannot_be_empty.code,ja._0_modifier_already_seen.code,ja._0_modifier_cannot_appear_on_a_constructor_declaration.code,ja._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,ja._0_modifier_cannot_appear_on_a_parameter.code,ja._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,ja._0_modifier_cannot_be_used_here.code,ja._0_modifier_must_precede_1_modifier.code,ja.const_declarations_can_only_be_declared_inside_a_block.code,ja.const_declarations_must_be_initialized.code,ja.extends_clause_already_seen.code,ja.let_declarations_can_only_be_declared_inside_a_block.code,ja.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,ja.Class_constructor_may_not_be_a_generator.code,ja.Class_constructor_may_not_be_an_accessor.code,ja.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code]),HU={diagnostics:r,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),qq=b({"src/compiler/builderStatePublic.ts"(){}});function Vq(e,t,n,r,i,o){const a=[],{emitSkipped:s,diagnostics:c}=e.emit(t,(function(e,t,n){a.push({name:e,writeByteOrderMark:n,text:t})}),r,n,i,o);return{outputFiles:a,emitSkipped:s,diagnostics:c}}var Qq,Kq,Wq=b({"src/compiler/builderState.ts"(){XK(),(e=>{function t(){return function(e,t,r){const i={getKeys:e=>t.get(e),getValues:t=>e.get(t),keys:()=>e.keys(),deleteKey:i=>{(r||(r=new Set)).add(i);const o=e.get(i);return!!o&&(o.forEach((e=>n(t,e,i))),e.delete(i),!0)},set:(o,a)=>{null==r||r.delete(o);const s=e.get(o);return e.set(o,a),null==s||s.forEach((e=>{a.has(e)||n(t,e,o)})),a.forEach((e=>{(null==s?void 0:s.has(e))||function(e,t,n){let r=e.get(t);r||(r=new Set,e.set(t,r)),r.add(n)}(t,e,o)})),i}};return i}(new Map,new Map,void 0)}function n(e,t,n){const r=e.get(t);return!!(null==r?void 0:r.delete(n))&&(r.size||e.delete(t),!0)}function i(e){return Z(e.declarations,(e=>{var t;return null==(t=wp(e))?void 0:t.resolvedPath}))}function o(e,t){const n=e.getSymbolAtLocation(t);return n&&i(n)}function a(e,t,n,r){return xa(e.getProjectReferenceRedirect(t)||t,n,r)}function s(e,t,n){let r;if(t.imports&&t.imports.length>0){const n=e.getTypeChecker();for(const e of t.imports){const t=o(n,e);null==t||t.forEach(c)}}const i=sa(t.resolvedPath);if(t.referencedFiles&&t.referencedFiles.length>0)for(const r of t.referencedFiles)c(a(e,r.fileName,i,n));if(t.resolvedTypeReferenceDirectiveNames&&t.resolvedTypeReferenceDirectiveNames.forEach((({resolvedTypeReferenceDirective:t})=>{if(!t)return;const r=t.resolvedFileName;c(a(e,r,i,n))})),t.moduleAugmentations.length){const n=e.getTypeChecker();for(const e of t.moduleAugmentations){if(!sw(e))continue;const t=n.getSymbolAtLocation(e);t&&s(t)}}for(const t of e.getTypeChecker().getAmbientModules())t.declarations&&t.declarations.length>1&&s(t);return r;function s(e){if(e.declarations)for(const n of e.declarations){const e=wp(n);e&&e!==t&&c(e.resolvedPath)}}function c(e){(r||(r=new Set)).add(e)}}function c(e,t){return t&&!t.referencedMap==!e}function _(e,t,n,i,o){const a=t.getSourceFileByPath(n);return a?u(e,t,a,i,o)?(e.referencedMap?v:y)(e,t,a,i,o):[a]:r}function l(e,t,n,r,i){e.emit(t,((n,o,a,s,c,_)=>{In.assert(FI(n),"File extension for signature expected to be dts: Got:: "+n),i(mV(e,t,o,r,_),c)}),n,!0,void 0,!0)}function u(e,t,n,r,i,o=e.useFileVersionAsSignature){var a;if(null==(a=e.hasCalledUpdateShapeSignature)?void 0:a.has(n.resolvedPath))return!1;const s=e.fileInfos.get(n.resolvedPath),c=s.signature;let _;if(n.isDeclarationFile||o||l(t,n,r,i,((t,r)=>{_=t,_!==c&&d(e,n,r[0].exportedModulesFromDeclarationEmit)})),void 0===_&&(_=n.version,e.exportedModulesMap&&_!==c)){(e.oldExportedModulesMap||(e.oldExportedModulesMap=new Map)).set(n.resolvedPath,e.exportedModulesMap.getValues(n.resolvedPath)||!1);const t=e.referencedMap?e.referencedMap.getValues(n.resolvedPath):void 0;t?e.exportedModulesMap.set(n.resolvedPath,t):e.exportedModulesMap.deleteKey(n.resolvedPath)}return(e.oldSignatures||(e.oldSignatures=new Map)).set(n.resolvedPath,c||!1),(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(n.resolvedPath),s.signature=_,_!==c}function d(e,t,n){if(!e.exportedModulesMap)return;(e.oldExportedModulesMap||(e.oldExportedModulesMap=new Map)).set(t.resolvedPath,e.exportedModulesMap.getValues(t.resolvedPath)||!1);const r=p(n);r?e.exportedModulesMap.set(t.resolvedPath,r):e.exportedModulesMap.deleteKey(t.resolvedPath)}function p(e){let t;return null==e||e.forEach((e=>i(e).forEach((e=>(null!=t?t:t=new Set).add(e))))),t}function f(e,t){if(!e.allFileNames){const n=t.getSourceFiles();e.allFileNames=n===r?r:n.map((e=>e.fileName))}return e.allFileNames}function m(e,t){const n=e.referencedMap.getKeys(t);return n?Ze(n.keys()):[]}function g(e){return function(e){return _e(e.moduleAugmentations,(e=>yf(e.parent)))}(e)||!em(e)&&!tm(e)&&!function(e){for(const t of e.statements)if(!pf(t))return!1;return!0}(e)}function h(e,t,n){if(e.allFilesExcludingDefaultLibraryFile)return e.allFilesExcludingDefaultLibraryFile;let i;n&&o(n);for(const e of t.getSourceFiles())e!==n&&o(e);return e.allFilesExcludingDefaultLibraryFile=i||r,e.allFilesExcludingDefaultLibraryFile;function o(e){t.isSourceFileDefaultLibrary(e)||(i||(i=[])).push(e)}}function y(e,t,n){const r=t.getCompilerOptions();return r&&Av(r)?[n]:h(e,t,n)}function v(e,t,n,r,i){if(g(n))return h(e,t,n);const o=t.getCompilerOptions();if(o&&(qk(o)||Av(o)))return[n];const a=new Map;a.set(n.resolvedPath,n);const s=m(e,n.resolvedPath);for(;s.length>0;){const n=s.pop();if(!a.has(n)){const o=t.getSourceFileByPath(n);a.set(n,o),o&&u(e,t,o,r,i)&&s.push(...m(e,o.resolvedPath))}}return Ze(te(a.values(),(e=>e)))}e.createManyToManyPathMap=t,e.canReuseOldState=c,e.create=function(e,n,r){var i,o,a;const _=new Map,l=e.getCompilerOptions(),u=Av(l),d=0===l.module||u?void 0:t(),p=d?t():void 0,f=c(d,n);e.getTypeChecker();for(const t of e.getSourceFiles()){const r=In.checkDefined(t.version,"Program intended to be used with Builder should have source files with versions set"),c=f?null==(i=n.oldSignatures)?void 0:i.get(t.resolvedPath):void 0,l=void 0===c?f?null==(o=n.fileInfos.get(t.resolvedPath))?void 0:o.signature:void 0:c||void 0;if(d){const r=s(e,t,e.getCanonicalFileName);if(r&&d.set(t.resolvedPath,r),f){const e=null==(a=n.oldExportedModulesMap)?void 0:a.get(t.resolvedPath),r=void 0===e?n.exportedModulesMap.getValues(t.resolvedPath):e||void 0;r&&p.set(t.resolvedPath,r)}}_.set(t.resolvedPath,{version:r,signature:l,affectsGlobalScope:u?void 0:g(t)||void 0,impliedFormat:t.impliedNodeFormat})}return{fileInfos:_,referencedMap:d,exportedModulesMap:p,useFileVersionAsSignature:!r&&!f}},e.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},e.getFilesAffectedBy=function(e,t,n,r,i){var o,a;const s=_(e,t,n,r,i);return null==(o=e.oldSignatures)||o.clear(),null==(a=e.oldExportedModulesMap)||a.clear(),s},e.getFilesAffectedByWithOldState=_,e.updateSignatureOfFile=function(e,t,n){e.fileInfos.get(n).signature=t,(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(n)},e.computeDtsSignature=l,e.updateShapeSignature=u,e.updateExportedModules=d,e.getExportedModules=p,e.getAllDependencies=function(e,t,n){if(Av(t.getCompilerOptions()))return f(e,t);if(!e.referencedMap||g(n))return f(e,t);const r=new Set,i=[n.resolvedPath];for(;i.length;){const t=i.pop();if(!r.has(t)){r.add(t);const n=e.referencedMap.getValues(t);if(n)for(const e of n.keys())i.push(e)}}return Ze(te(r.keys(),(e=>{var n,r;return null!=(r=null==(n=t.getSourceFileByPath(e))?void 0:n.fileName)?r:e})))},e.getReferencedByPaths=m,e.getAllFilesExcludingDefaultLibraryFile=h})(zq||(zq={}))}});function Hq(e){let t=1;return e.sourceMap&&(t|=2),e.inlineSourceMap&&(t|=4),tS(e)&&(t|=8),e.declarationMap&&(t|=16),e.emitDeclarationOnly&&(t&=24),t}function $q(e,t){const n=t&&(bt(t)?t:Hq(t)),r=bt(e)?e:Hq(e);if(n===r)return 0;if(!n||!r)return r;const i=n^r;let o=0;return 7&i&&(o=7&r),24&i&&(o|=24&r),o}function Gq(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function Xq(e,t,n){return!!e.declarationMap==!!t.declarationMap?n:vt(n)?[n]:n[0]}function Yq(e,t,n){const{file:r}=e;return{...e,file:r?t.getSourceFileByPath(n(r)):void 0}}function Zq(e,t){In.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function eV(e,t,n){for(var r,i;;){const{affectedFiles:o}=e;if(o){const a=e.seenAffectedFiles;let s=e.affectedFilesIndex;for(;st.isSourceFileDefaultLibrary(r)&&!sT(r,n,t)&&iV(e,r.resolvedPath)))}}function nV(e,t,n,r){if(iV(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles)return tV(e),void zq.updateShapeSignature(e,In.checkDefined(e.program),t,n,r);e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||function(e,t,n,r){var i;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath))return;if(!oV(e,t.resolvedPath))return;if(qk(e.compilerOptions)){const i=new Map;i.set(t.resolvedPath,!0);const o=zq.getReferencedByPaths(e,t.resolvedPath);for(;o.length>0;){const t=o.pop();if(!i.has(t)){if(i.set(t,!0),aV(e,t,n,r))return;if(rV(e,t,n,r),oV(e,t)){const n=In.checkDefined(e.program).getSourceFileByPath(t);o.push(...zq.getReferencedByPaths(e,n.resolvedPath))}}}}const o=new Set;null==(i=e.exportedModulesMap.getKeys(t.resolvedPath))||i.forEach((t=>{if(aV(e,t,n,r))return!0;const i=e.referencedMap.getKeys(t);return i&&dp(i,(t=>sV(e,t,o,n,r)))}))}(e,t,n,r)}function rV(e,t,n,r){if(iV(e,t),!e.changedFilesSet.has(t)){const i=In.checkDefined(e.program),o=i.getSourceFileByPath(t);o&&(zq.updateShapeSignature(e,i,o,n,r,!0),tS(e.compilerOptions)&&yV(e,t,e.compilerOptions.declarationMap?24:8))}}function iV(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function oV(e,t){const n=In.checkDefined(e.oldSignatures).get(t)||void 0;return In.checkDefined(e.fileInfos.get(t)).signature!==n}function aV(e,t,n,r){var i;return!!(null==(i=e.fileInfos.get(t))?void 0:i.affectsGlobalScope)&&(zq.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach((t=>rV(e,t.resolvedPath,n,r))),tV(e),!0)}function sV(e,t,n,r,i){var o,a;if(oe(n,t)){if(aV(e,t,r,i))return!0;rV(e,t,r,i),null==(o=e.exportedModulesMap.getKeys(t))||o.forEach((t=>sV(e,t,n,r,i))),null==(a=e.referencedMap.getKeys(t))||a.forEach((t=>!n.has(t)&&rV(e,t,r,i)))}}function cV(e,t,n){return ue(function(e,t,n){const r=t.resolvedPath;if(e.semanticDiagnosticsPerFile){const t=e.semanticDiagnosticsPerFile.get(r);if(t)return Oq(t,e.compilerOptions)}const i=In.checkDefined(e.program).getBindAndCheckDiagnostics(t,n);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(r,i),Oq(i,e.compilerOptions)}(e,t,n),In.checkDefined(e.program).getProgramDiagnostics(t))}function _V(e){return!!Av(e.options||{})}function lV(e,t,n){if(e)if(In.assert("listOrElement"!==e.type),"list"===e.type){const r=t;if(e.element.isFilePath&&r.length)return r.map(n)}else if(e.isFilePath)return n(t);return t}function uV(e,t){return In.assert(!!e.length),e.map((e=>{const n=dV(e,t);n.reportsUnnecessary=e.reportsUnnecessary,n.reportDeprecated=e.reportsDeprecated,n.source=e.source,n.skippedOn=e.skippedOn;const{relatedInformation:r}=e;return n.relatedInformation=r?r.length?r.map((e=>dV(e,t))):[]:void 0,n}))}function dV(e,t){const{file:n}=e;return{...e,file:n?t(n.resolvedPath):void 0}}function pV(e,t,n,i,o,a){let s,c,_;return void 0===e?(In.assert(void 0===t),s=n,_=i,In.assert(!!_),c=_.getProgram()):ht(e)?(_=i,c=Pq({rootNames:e,options:t,host:n,oldProgram:_&&_.getProgramOrUndefined(),configFileParsingDiagnostics:o,projectReferences:a}),s=n):(c=e,s=t,_=n,o=i),{host:s,newProgram:c,oldProgram:_,configFileParsingDiagnostics:o||r}}function fV(e,t){return void 0!==(null==t?void 0:t.sourceMapUrlPos)?e.substring(0,t.sourceMapUrlPos):e}function mV(e,t,n,r,i){var o,a;let s;return n=fV(n,i),(null==(o=null==i?void 0:i.diagnostics)?void 0:o.length)&&(n+=i.diagnostics.map((n=>`${function(n){return n.file.resolvedPath===t.resolvedPath?`(${n.start},${n.length})`:(void 0===s&&(s=sa(t.resolvedPath)),`${Ta(Ia(s,n.file.resolvedPath,e.getCanonicalFileName))}(${n.start},${n.length})`)}(n)}${Mi[n.category]}${n.code}: ${c(n.messageText)}`)).join("\n")),(null!=(a=r.createHash)?a:Co)(n);function c(e){return vt(e)?e:void 0===e?"":e.next?e.messageText+e.next.map(c).join("\n"):e.messageText}}function gV(e,t,n){var r;return(null!=(r=t.createHash)?r:Co)(fV(e,n))}function hV(e,{newProgram:t,host:n,oldProgram:i,configFileParsingDiagnostics:o}){let a=i&&i.getState();if(a&&t===a.program&&o===t.getConfigFileParsingDiagnostics())return t=void 0,a=void 0,i;const s=function(e,t){var n,i;const o=zq.create(e,t,!1);o.program=e;const a=e.getCompilerOptions();o.compilerOptions=a;const s=Av(a);s?a.composite&&(null==t?void 0:t.outSignature)&&s===Av(null==t?void 0:t.compilerOptions)&&(o.outSignature=t.outSignature&&Xq(a,t.compilerOptions,t.outSignature)):o.semanticDiagnosticsPerFile=new Map,o.changedFilesSet=new Set,o.latestChangedDtsFile=a.composite?null==t?void 0:t.latestChangedDtsFile:void 0;const c=zq.canReuseOldState(o.referencedMap,t),_=c?t.compilerOptions:void 0,l=c&&t.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!sS(a,_),u=a.composite&&(null==t?void 0:t.emitSignatures)&&!s&&!_S(a,t.compilerOptions);c?(null==(n=t.changedFilesSet)||n.forEach((e=>o.changedFilesSet.add(e))),!s&&(null==(i=t.affectedFilesPendingEmit)?void 0:i.size)&&(o.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),o.seenAffectedFiles=new Set),o.programEmitPending=t.programEmitPending):o.buildInfoEmitPending=!0;const d=o.referencedMap,p=c?t.referencedMap:void 0,f=l&&!a.skipLibCheck==!_.skipLibCheck,m=f&&!a.skipDefaultLibCheck==!_.skipDefaultLibCheck;if(o.fileInfos.forEach(((n,i)=>{var s;let _,g;if(!c||!(_=t.fileInfos.get(i))||_.version!==n.version||_.impliedFormat!==n.impliedFormat||(h=g=d&&d.getValues(i))!==(y=p&&p.getValues(i))&&(void 0===h||void 0===y||h.size!==y.size||dp(h,(e=>!y.has(e))))||g&&dp(g,(e=>!o.fileInfos.has(e)&&t.fileInfos.has(e))))Gq(o,i);else if(l){const n=e.getSourceFileByPath(i);if(n.isDeclarationFile&&!f)return;if(n.hasNoDefaultLib&&!m)return;const a=t.semanticDiagnosticsPerFile.get(i);a&&(o.semanticDiagnosticsPerFile.set(i,t.hasReusableDiagnostic?function(e,t){if(!e.length)return r;let n;return e.map((e=>{const n=Yq(e,t,i);n.reportsUnnecessary=e.reportsUnnecessary,n.reportsDeprecated=e.reportDeprecated,n.source=e.source,n.skippedOn=e.skippedOn;const{relatedInformation:r}=e;return n.relatedInformation=r?r.length?r.map((e=>Yq(e,t,i))):[]:void 0,n}));function i(e){return null!=n||(n=sa(ya(Gz(t.getCompilerOptions()),t.getCurrentDirectory()))),xa(e,n,t.getCanonicalFileName)}}(a,e):a),o.semanticDiagnosticsFromOldState||(o.semanticDiagnosticsFromOldState=new Set),o.semanticDiagnosticsFromOldState.add(i))}var h,y;if(u){const e=t.emitSignatures.get(i);e&&(null!=(s=o.emitSignatures)?s:o.emitSignatures=new Map).set(i,Xq(a,t.compilerOptions,e))}})),c&&up(t.fileInfos,((e,t)=>!(o.fileInfos.has(t)||!s&&!e.affectsGlobalScope&&(o.buildInfoEmitPending=!0,1)))))zq.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach((e=>Gq(o,e.resolvedPath)));else if(_){const t=cS(a,_)?Hq(a):$q(a,_);0!==t&&(s?o.programEmitPending=o.programEmitPending?o.programEmitPending|t:t:(e.getSourceFiles().forEach((e=>{o.changedFilesSet.has(e.resolvedPath)||yV(o,e.resolvedPath,t)})),In.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new Set,o.buildInfoEmitPending=!0))}return s&&!o.changedFilesSet.size&&(c&&(o.bundle=t.bundle),_e(e.getProjectReferences(),(e=>!!e.prepend))&&(o.programEmitPending=Hq(a))),o}(t,a);t.getBuildInfo=e=>function(e,t){var n,i,o;const a=In.checkDefined(e.program).getCurrentDirectory(),s=sa(ya(Gz(e.compilerOptions),a)),c=e.latestChangedDtsFile?x(e.latestChangedDtsFile):void 0,_=[],l=new Map,u=[];if(Av(e.compilerOptions)){const r=Ze(e.fileInfos.entries(),(([e,t])=>(C(e,S(e)),t.impliedFormat?{version:t.version,impliedFormat:t.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:t.version))),o={fileNames:_,fileInfos:r,root:u,options:A(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:c,pendingEmit:e.programEmitPending?e.programEmitPending!==Hq(e.compilerOptions)&&e.programEmitPending:void 0},{js:a,dts:s,commonSourceDirectory:l,sourceFiles:d}=t;return e.bundle=t={commonSourceDirectory:l,sourceFiles:d,js:a||(e.compilerOptions.emitDeclarationOnly||null==(n=e.bundle)?void 0:n.js),dts:s||(tS(e.compilerOptions)?null==(i=e.bundle)?void 0:i.dts:void 0)},pU(o,t)}let d,p,f;const m=Ze(e.fileInfos.entries(),(([t,n])=>{var i,o;const a=S(t);C(t,a),In.assert(_[a-1]===k(t));const s=null==(i=e.oldSignatures)?void 0:i.get(t),c=void 0!==s?s||void 0:n.signature;if(e.compilerOptions.composite){const n=e.program.getSourceFileByPath(t);if(!tm(n)&&Ev(n,e.program)){const n=null==(o=e.emitSignatures)?void 0:o.get(t);n!==c&&(f||(f=[])).push(void 0===n?a:[a,vt(n)||n[0]!==c?n:r])}}return n.version===c?n.affectsGlobalScope||n.impliedFormat?{version:n.version,signature:void 0,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}:n.version:void 0!==c?void 0===s?n:{version:n.version,signature:c,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}:{version:n.version,signature:!1,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}}));let g,h,y,v,b;if(e.referencedMap&&(g=Ze(e.referencedMap.keys()).sort(Qt).map((t=>[S(t),T(e.referencedMap.getValues(t))]))),e.exportedModulesMap&&(h=Z(Ze(e.exportedModulesMap.keys()).sort(Qt),(t=>{var n;const r=null==(n=e.oldExportedModulesMap)?void 0:n.get(t);return void 0===r?[S(t),T(e.exportedModulesMap.getValues(t))]:r?[S(t),T(r)]:void 0}))),e.semanticDiagnosticsPerFile)for(const t of Ze(e.semanticDiagnosticsPerFile.keys()).sort(Qt)){const n=e.semanticDiagnosticsPerFile.get(t);(y||(y=[])).push(n.length?[S(t),uV(n,k)]:S(t))}if(null==(o=e.affectedFilesPendingEmit)?void 0:o.size){const t=Hq(e.compilerOptions),n=new Set;for(const r of Ze(e.affectedFilesPendingEmit.keys()).sort(Qt))if(oe(n,r)){const n=e.program.getSourceFileByPath(r);if(!n||!Ev(n,e.program))continue;const i=S(r),o=e.affectedFilesPendingEmit.get(r);(v||(v=[])).push(o===t?i:8===o?[i]:[i,o])}}if(e.changedFilesSet.size)for(const t of Ze(e.changedFilesSet.keys()).sort(Qt))(b||(b=[])).push(S(t));return pU({fileNames:_,fileInfos:m,root:u,options:A(e.compilerOptions),fileIdsList:d,referencedMap:g,exportedModulesMap:h,semanticDiagnosticsPerFile:y,affectedFilesPendingEmit:v,changeFileSet:b,emitSignatures:f,latestChangedDtsFile:c},t);function x(e){return k(ya(e,a))}function k(t){return Ta(Ia(s,t,e.program.getCanonicalFileName))}function S(e){let t=l.get(e);return void 0===t&&(_.push(k(e)),l.set(e,t=_.length)),t}function T(e){const t=Ze(e.keys(),S).sort(Jt),n=t.join();let r=null==p?void 0:p.get(n);return void 0===r&&((d||(d=[])).push(t),(p||(p=new Map)).set(n,r=d.length)),r}function C(t,n){const r=e.program.getSourceFile(t);if(!e.program.getFileIncludeReasons().get(r.path).some((e=>0===e.kind)))return;if(!u.length)return u.push(n);const i=u[u.length-1],o=ht(i);if(o&&i[1]===n-1)return i[1]=n;if(o||1===u.length||i!==n-1)return u.push(n);const a=u[u.length-2];return bt(a)&&a===i-1?(u[u.length-2]=[a,n],u.length=u.length-1):u.push(n)}function A(e){let t;const{optionsNameMap:n}=AO();for(const r of $e(e).sort(Qt)){const i=n.get(r.toLowerCase());(null==i?void 0:i.affectsBuildInfo)&&((t||(t={}))[r]=lV(i,e[r],x))}return t}}(s,e),t=void 0,i=void 0,a=void 0;const c=()=>s,_=TV(c,o);return _.getState=c,_.saveEmitState=()=>function(e){const t=Av(e.compilerOptions);return In.assert(!e.changedFilesSet.size||t),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:t?new Set(e.changedFilesSet):void 0}}(s),_.restoreEmitState=e=>function(e,t){e.affectedFilesPendingEmit=t.affectedFilesPendingEmit,e.seenEmittedFiles=t.seenEmittedFiles,e.programEmitPending=t.programEmitPending,e.emitSignatures=t.emitSignatures,e.outSignature=t.outSignature,e.latestChangedDtsFile=t.latestChangedDtsFile,e.hasChangedEmitSignature=t.hasChangedEmitSignature,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}(s,e),_.hasChangedEmitSignature=()=>!!s.hasChangedEmitSignature,_.getAllDependencies=e=>zq.getAllDependencies(s,In.checkDefined(s.program),e),_.getSemanticDiagnostics=function(e,t){if(Zq(s,e),Av(In.checkDefined(s.program).getCompilerOptions()))return In.assert(!s.semanticDiagnosticsPerFile),In.checkDefined(s.program).getSemanticDiagnostics(e,t);if(e)return cV(s,e,t);for(;d(t););let n;for(const e of In.checkDefined(s.program).getSourceFiles())n=Ae(n,cV(s,e,t));return n||r},_.emit=function(t,n,i,o,a){1===e&&Zq(s,t);const c=Iq(_,t,n,i);if(c)return c;if(!t){if(1===e){let e,t,s=[],c=!1,_=[];for(;t=l(n,i,o,a);)c=c||t.result.emitSkipped,e=Ae(e,t.result.diagnostics),_=Ae(_,t.result.emittedFiles),s=Ae(s,t.result.sourceMaps);return{emitSkipped:c,diagnostics:e||r,emittedFiles:_,sourceMaps:s}}!function(e,t){var n;(null==(n=e.affectedFilesPendingEmit)?void 0:n.size)&&(t?e.affectedFilesPendingEmit.forEach(((t,n)=>{const r=7&t;r?e.affectedFilesPendingEmit.set(n,r):e.affectedFilesPendingEmit.delete(n)})):e.affectedFilesPendingEmit=void 0)}(s,o)}return In.checkDefined(s.program).emit(t,u(n,a),i,o,a)},_.releaseProgram=()=>function(e){zq.releaseCache(e),e.program=void 0}(s),0===e?_.getSemanticDiagnosticsOfNextAffectedFile=d:1===e?(_.getSemanticDiagnosticsOfNextAffectedFile=d,_.emitNextAffectedFile=l,_.emitBuildInfo=function(e,t){if(s.buildInfoEmitPending){const r=In.checkDefined(s.program).emitBuildInfo(e||lt(n,n.writeFile),t);return s.buildInfoEmitPending=!1,r}return HU}):Nt(),_;function l(e,t,r,i){var o,a,c,_,l;let d=eV(s,t,n);const p=Hq(s.compilerOptions);let f,m=r?24&p:p;if(!d)if(Av(s.compilerOptions)){if(!s.programEmitPending)return;if(m=s.programEmitPending,r&&(m&=24),!m)return;d=s.program}else{const i=function(e,t){var n;if(null==(n=e.affectedFilesPendingEmit)?void 0:n.size)return up(e.affectedFilesPendingEmit,((n,r)=>{var i;const o=e.program.getSourceFileByPath(r);if(!o||!Ev(o,e.program))return void e.affectedFilesPendingEmit.delete(r);let a=$q(n,null==(i=e.seenEmittedFiles)?void 0:i.get(o.resolvedPath));return t&&(a&=24),a?{affectedFile:o,emitKind:a}:void 0}))}(s,r);if(!i){if(!s.buildInfoEmitPending)return;const r=s.program,i=r.emitBuildInfo(e||lt(n,n.writeFile),t);return s.buildInfoEmitPending=!1,{result:i,affected:r}}({affectedFile:d,emitKind:m}=i)}7&m&&(f=0),24&m&&(f=void 0===f?1:void 0),d===s.program&&(s.programEmitPending=s.changedFilesSet.size?$q(p,m):s.programEmitPending?$q(s.programEmitPending,m):void 0);const g=s.program.emit(d===s.program?void 0:d,u(e,i),t,f,i);if(d!==s.program){const e=d;s.seenAffectedFiles.add(e.resolvedPath),void 0!==s.affectedFilesIndex&&s.affectedFilesIndex++,s.buildInfoEmitPending=!0;const t=(null==(o=s.seenEmittedFiles)?void 0:o.get(e.resolvedPath))||0;(null!=(a=s.seenEmittedFiles)?a:s.seenEmittedFiles=new Map).set(e.resolvedPath,m|t);const n=$q((null==(c=s.affectedFilesPendingEmit)?void 0:c.get(e.resolvedPath))||p,m|t);n?(null!=(_=s.affectedFilesPendingEmit)?_:s.affectedFilesPendingEmit=new Map).set(e.resolvedPath,n):null==(l=s.affectedFilesPendingEmit)||l.delete(e.resolvedPath)}else s.changedFilesSet.clear();return{result:g,affected:d}}function u(e,t){return tS(s.compilerOptions)?(r,i,o,a,c,_)=>{var l,u,d,p,f,m,g;if(FI(r))if(Av(s.compilerOptions)){if(s.compilerOptions.composite){const e=h(s.outSignature,void 0);if(!e)return;s.outSignature=e}}else{let e;if(In.assert(1===(null==c?void 0:c.length)),!t){const t=c[0],r=s.fileInfos.get(t.resolvedPath);if(r.signature===t.version){const o=mV(s.program,t,i,n,_);(null==(l=null==_?void 0:_.diagnostics)?void 0:l.length)||(e=o),o!==t.version&&(n.storeFilesChangingSignatureDuringEmit&&(null!=(u=s.filesChangingSignature)?u:s.filesChangingSignature=new Set).add(t.resolvedPath),s.exportedModulesMap&&zq.updateExportedModules(s,t,t.exportedModulesFromDeclarationEmit),s.affectedFiles?(void 0===(null==(d=s.oldSignatures)?void 0:d.get(t.resolvedPath))&&(null!=(p=s.oldSignatures)?p:s.oldSignatures=new Map).set(t.resolvedPath,r.signature||!1),r.signature=o):(r.signature=o,null==(f=s.oldExportedModulesMap)||f.clear()))}}if(s.compilerOptions.composite){const t=c[0].resolvedPath;if(e=h(null==(m=s.emitSignatures)?void 0:m.get(t),e),!e)return;(null!=(g=s.emitSignatures)?g:s.emitSignatures=new Map).set(t,e)}}function h(e,t){const o=!e||vt(e)?e:e[0];if(null!=t||(t=gV(i,n,_)),t===o){if(e===o)return;_?_.differsOnlyInMap=!0:_={differsOnlyInMap:!0}}else s.hasChangedEmitSignature=!0,s.latestChangedDtsFile=r;return t}e?e(r,i,o,a,c,_):n.writeFile?n.writeFile(r,i,o,a,c,_):s.program.writeFile(r,i,o,a,c,_)}:e||lt(n,n.writeFile)}function d(e,t){for(;;){const r=eV(s,e,n);let i;if(!r)return;if(r!==s.program){const n=r;if(t&&t(n)||(i=cV(s,n,e)),s.seenAffectedFiles.add(n.resolvedPath),s.affectedFilesIndex++,s.buildInfoEmitPending=!0,!i)continue}else i=s.program.getSemanticDiagnostics(void 0,e),s.changedFilesSet.clear(),s.programEmitPending=Hq(s.compilerOptions);return{result:i,affected:r}}}}function yV(e,t,n){var r,i;const o=(null==(r=e.affectedFilesPendingEmit)?void 0:r.get(t))||0;(null!=(i=e.affectedFilesPendingEmit)?i:e.affectedFilesPendingEmit=new Map).set(t,o|n)}function vV(e){return vt(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:vt(e.signature)?e:{version:e.version,signature:!1===e.signature?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function bV(e,t){return bt(e)?t:e[1]||8}function xV(e,t){return e||Hq(t||{})}function kV(e,t,n){var i,o,a,s;const c=e.program,_=sa(ya(t,n.getCurrentDirectory())),l=ln(n.useCaseSensitiveFileNames());let u;const d=null==(i=c.fileNames)?void 0:i.map((function(e){return xa(e,_,l)}));let p;const f=c.latestChangedDtsFile?m(c.latestChangedDtsFile):void 0;if(_V(c)){const t=new Map;c.fileInfos.forEach(((e,n)=>{const r=g(n+1);t.set(r,vt(e)?{version:e,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:e)})),u={fileInfos:t,compilerOptions:c.options?dL(c.options,m):{},latestChangedDtsFile:f,outSignature:c.outSignature,programEmitPending:void 0===c.pendingEmit?void 0:xV(c.pendingEmit,c.options),bundle:e.bundle}}else{p=null==(o=c.fileIdsList)?void 0:o.map((e=>new Set(e.map(g))));const e=new Map,t=(null==(a=c.options)?void 0:a.composite)&&!Av(c.options)?new Map:void 0;c.fileInfos.forEach(((n,r)=>{const i=g(r+1),o=vV(n);e.set(i,o),t&&o.signature&&t.set(i,o.signature)})),null==(s=c.emitSignatures)||s.forEach((e=>{if(bt(e))t.delete(g(e));else{const n=g(e[0]);t.set(n,vt(e[1])||e[1].length?e[1]:[t.get(n)])}}));const n=c.affectedFilesPendingEmit?Hq(c.options||{}):void 0;u={fileInfos:e,compilerOptions:c.options?dL(c.options,m):{},referencedMap:h(c.referencedMap),exportedModulesMap:h(c.exportedModulesMap),semanticDiagnosticsPerFile:c.semanticDiagnosticsPerFile&&nt(c.semanticDiagnosticsPerFile,(e=>g(bt(e)?e:e[0])),(e=>bt(e)?r:e[1])),hasReusableDiagnostic:!0,affectedFilesPendingEmit:c.affectedFilesPendingEmit&&nt(c.affectedFilesPendingEmit,(e=>g(bt(e)?e:e[0])),(e=>bV(e,n))),changedFilesSet:new Set(V(c.changeFileSet,g)),latestChangedDtsFile:f,emitSignatures:(null==t?void 0:t.size)?t:void 0}}return{getState:()=>u,saveEmitState:St,restoreEmitState:St,getProgram:Nt,getProgramOrUndefined:At,releaseProgram:St,getCompilerOptions:()=>u.compilerOptions,getSourceFile:Nt,getSourceFiles:Nt,getOptionsDiagnostics:Nt,getGlobalDiagnostics:Nt,getConfigFileParsingDiagnostics:Nt,getSyntacticDiagnostics:Nt,getDeclarationDiagnostics:Nt,getSemanticDiagnostics:Nt,emit:Nt,getAllDependencies:Nt,getCurrentDirectory:Nt,emitNextAffectedFile:Nt,getSemanticDiagnosticsOfNextAffectedFile:Nt,emitBuildInfo:Nt,close:St,hasChangedEmitSignature:Tt};function m(e){return ya(e,_)}function g(e){return d[e-1]}function h(e){if(!e)return;const t=zq.createManyToManyPathMap();return e.forEach((([e,n])=>t.set(g(e),p[n-1]))),t}}function SV(e,t,n){const r=sa(ya(t,n.getCurrentDirectory())),i=ln(n.useCaseSensitiveFileNames()),o=new Map;let a=0;const s=[];return e.fileInfos.forEach(((t,n)=>{const c=xa(e.fileNames[n],r,i),_=vt(t)?t:t.version;if(o.set(c,_),ae().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:e=>n().getSourceFile(e),getSourceFiles:()=>n().getSourceFiles(),getOptionsDiagnostics:e=>n().getOptionsDiagnostics(e),getGlobalDiagnostics:e=>n().getGlobalDiagnostics(e),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(e,t)=>n().getSyntacticDiagnostics(e,t),getDeclarationDiagnostics:(e,t)=>n().getDeclarationDiagnostics(e,t),getSemanticDiagnostics:(e,t)=>n().getSemanticDiagnostics(e,t),emit:(e,t,r,i,o)=>n().emit(e,t,r,i,o),emitBuildInfo:(e,t)=>n().emitBuildInfo(e,t),getAllDependencies:Nt,getCurrentDirectory:()=>n().getCurrentDirectory(),close:St};function n(){return In.checkDefined(e().program)}}var CV=b({"src/compiler/builder.ts"(){XK(),XK(),Qq=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.Dts=8]="Dts",e[e.DtsMap=16]="DtsMap",e[e.AllJs=7]="AllJs",e[e.AllDts=24]="AllDts",e[e.All=31]="All",e))(Qq||{}),Kq=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(Kq||{})}});function AV(e,t,n,r,i,o){return hV(0,pV(e,t,n,r,i,o))}function wV(e,t,n,r,i,o){return hV(1,pV(e,t,n,r,i,o))}function DV(e,t,n,r,i,o){const{newProgram:a,configFileParsingDiagnostics:s}=pV(e,t,n,r,i,o);return TV((()=>({program:a,compilerOptions:a.getCompilerOptions()})),s)}var EV=b({"src/compiler/builderPublic.ts"(){XK()}});function NV(e){return en(e,"/node_modules/.staging")?tn(e,"/.staging"):_e(bo,(t=>rn(e,t)))?void 0:e}function FV(e){const t=aa(e);if(e.length===t)return!1;let n=e.indexOf(zo,t);if(-1===n)return!1;let r=e.substring(t,n+1);const i=t>1||47!==e.charCodeAt(0);if(i&&0!==e.search(/[a-zA-Z]:/)&&0===r.search(/[a-zA-Z]\$\//)){if(n=e.indexOf(zo,n+1),-1===n)return!1;r=e.substring(t+r.length,n+1)}if(i&&0!==r.search(/users\//i))return!0;for(let t=n+1,r=2;r>0;r--)if(t=e.indexOf(zo,t)+1,0===t)return!1;return!0}function PV(e,t,n){let i,o,a;const s=ut(),c=new Set,_=new Set,l=new Map,u=new Map;let d,p,f,m,g,h=!1;const y=Ft((()=>e.getCurrentDirectory())),v=e.getCachedDirectoryStructureHost(),b=new Map,x=MM(y(),e.getCanonicalFileName,e.getCompilationSettings()),k=new Map,S=RM(y(),e.getCanonicalFileName,e.getCompilationSettings(),x.getPackageJsonInfoCache()),T=[".ts",".tsx",".js",".jsx",".json"],C=new Map,A=new Map,D=new Map,E=t&&ka(ya(t,y())),N=E&&e.toPath(E),F=void 0!==N?N.split(zo).length:0,P=new Map;return{getModuleResolutionCache:()=>x,startRecordingFilesWithChangedResolutions:function(){i=[]},finishRecordingFilesWithChangedResolutions:function(){const e=i;return i=void 0,e},startCachingPerDirectoryResolution:function(){x.clearAllExceptPackageJsonInfoCache(),S.clearAllExceptPackageJsonInfoCache(),s.forEach(H),s.clear()},finishCachingPerDirectoryResolution:function(e,t){a=void 0,s.forEach(H),s.clear(),e!==t&&(null==e||e.getSourceFiles().forEach((e=>{var t,n,i;const o=em(e)&&null!=(n=null==(t=e.packageJsonLocations)?void 0:t.length)?n:0,a=null!=(i=u.get(e.path))?i:r;for(let t=a.length;to)for(let e=o;e{(null==e?void 0:e.getSourceFileByPath(n))||(t.forEach((e=>D.get(e).files--)),u.delete(n))}))),A.forEach(((e,t)=>{0===e.refCount&&(A.delete(t),e.watcher.close())})),D.forEach(((e,t)=>{0===e.files&&0===e.resolutions&&(D.delete(t),e.watcher.close())})),h=!1},resolveModuleNameLiterals:function(e,t,r,i,o,a){return j({entries:e,containingFile:t,containingSourceFile:o,redirectedReference:r,options:i,reusedNames:a,perFileCache:b,loader:B(t,r,i),getResolutionWithResolvedFileName:I,shouldRetryResolution:e=>!e.resolvedModule||!GS(e.resolvedModule.extension),logChanges:n})},resolveTypeReferenceDirectiveReferences:function(t,n,r,i,o,a){var s;return j({entries:t,containingFile:n,containingSourceFile:o,redirectedReference:r,options:i,reusedNames:a,perFileCache:k,loader:xq(n,r,i,(null==(s=e.getCompilerHost)?void 0:s.call(e))||e,S),getResolutionWithResolvedFileName:O,shouldRetryResolution:e=>void 0===e.resolvedTypeReferenceDirective})},resolveSingleModuleNameWithoutWatching:function(t,n){const r=e.toPath(n),i=b.get(r),o=null==i?void 0:i.get(t,void 0);return o&&!o.isInvalidated?o:R(t,n,e.getCompilationSettings())},removeResolutionsFromProjectReferenceRedirects:function(t){if(!ta(t,".json"))return;const n=e.getCurrentProgram();if(!n)return;const r=n.getResolvedProjectReferenceByPath(t);r&&r.commandLine.fileNames.forEach((t=>ee(e.toPath(t))))},removeResolutionsOfFile:ee,hasChangedAutomaticTypeDirectiveNames:()=>h,invalidateResolutionOfFile:function(t){ee(t);const n=h;te(l.get(t),Ct)&&h&&!n&&e.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:re,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(e){In.assert(a===e||void 0===a),a=e},createHasInvalidatedResolutions:function(e){re();const t=o;return o=void 0,n=>e(n)||!!(null==t?void 0:t.has(n))||M(n)},isFileWithInvalidatedNonRelativeUnresolvedImports:M,updateTypeRootsWatch:function(){const t=e.getCompilationSettings();if(t.types)return void se();const n=vM(t,{directoryExists:le,getCurrentDirectory:y});n?zx(P,nt(n,(t=>e.toPath(t))),{createNewValue:ce,onDeleteValue:Nx}):se()},closeTypeRootsWatch:se,clear:function(){jx(A,LU),jx(D,LU),C.clear(),s.clear(),se(),b.clear(),k.clear(),l.clear(),c.clear(),_.clear(),f=void 0,m=void 0,g=void 0,p=void 0,d=void 0,x.clear(),S.clear(),x.update(e.getCompilationSettings()),S.update(e.getCompilationSettings()),u.clear(),h=!1}};function I(e){return e.resolvedModule}function O(e){return e.resolvedTypeReferenceDirective}function L(e,t){return!(void 0===e||t.length<=e.length)&&fn(t,e)&&t[e.length]===zo}function M(e){if(!a)return!1;const t=a.get(e);return!!t&&!!t.length}function R(t,n,r,i,o){var a;const s=(null==(a=e.getCompilerHost)?void 0:a.call(e))||e,c=jM(t,n,r,s,x,i,o);if(!e.getGlobalCache)return c;const _=e.getGlobalCache();if(!(void 0===_||Xs(t)||c.resolvedModule&&$S(c.resolvedModule.extension))){const{resolvedModule:n,failedLookupLocations:i,affectingLocations:o,resolutionDiagnostics:a}=PR(In.checkDefined(e.globalCacheResolutionModuleName)(t),e.projectName,r,s,_,x);if(n)return c.resolvedModule=n,c.failedLookupLocations=mM(c.failedLookupLocations,i),c.affectingLocations=mM(c.affectingLocations,o),c.resolutionDiagnostics=mM(c.resolutionDiagnostics,a),c}return c}function B(e,t,n){return{nameAndMode:VU,resolve:(r,i)=>R(r,e,n,t,i)}}function j({entries:t,containingFile:n,containingSourceFile:r,redirectedReference:o,options:a,perFileCache:s,reusedNames:c,loader:_,getResolutionWithResolvedFileName:l,shouldRetryResolution:u,logChanges:d}){var p;const f=e.toPath(n),m=s.get(f)||s.set(f,FM()).get(f),g=[],h=d&&M(f),y=e.getCurrentProgram(),v=y&&y.getResolvedProjectReferenceToRedirect(n),x=v?!o||o.sourceFile.path!==v.sourceFile.path:!!o,k=FM();for(const o of t){const t=_.nameAndMode.getName(o),c=_.nameAndMode.getMode(o,r);let y=m.get(t,c);if(!k.has(t,c)&&x||!y||y.isInvalidated||h&&!Xs(t)&&u(y)){const n=y;y=_.resolve(t,c),e.onDiscoveredSymlink&&IV(y)&&e.onDiscoveredSymlink(),m.set(t,c,y),V(t,y,f,l),n&&G(n,f,l),d&&i&&!S(n,y)&&(i.push(f),d=!1)}else{const r=(null==(p=e.getCompilerHost)?void 0:p.call(e))||e;if(aM(a,r)&&!k.has(t,c)){const e=l(y);oM(r,s===b?(null==e?void 0:e.resolvedFileName)?e.packageId?ja.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:ja.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:ja.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:(null==e?void 0:e.resolvedFileName)?e.packageId?ja.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:ja.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:ja.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,t,n,null==e?void 0:e.resolvedFileName,(null==e?void 0:e.packageId)&&Sp(e.packageId))}}In.assert(void 0!==y&&!y.isInvalidated),k.set(t,c,!0),g.push(y)}return null==c||c.forEach((e=>k.set(_.nameAndMode.getName(e),_.nameAndMode.getMode(e,r),!0))),m.size()!==k.size()&&m.forEach(((e,t,n)=>{k.has(t,n)||(G(e,f,l),m.delete(t,n))})),g;function S(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=l(e),r=l(t);return n===r||!(!n||!r)&&n.resolvedFileName===r.resolvedFileName}}function J(e){return en(e,"/node_modules/@types")}function z(e,t){if(L(N,t)){e=$o(e)?va(e):ya(e,y());const n=t.split(zo),r=e.split(zo);return In.assert(r.length===n.length,`FailedLookup: ${e} failedLookupLocationPath: ${t}`),n.length>F+1?{dir:r.slice(0,F+1).join(zo),dirPath:n.slice(0,F+1).join(zo)}:{dir:E,dirPath:N,nonRecursive:!1}}return U(sa(ya(e,y())),sa(t))}function U(e,t){for(;HM(t);)e=sa(e),t=sa(t);if(Ba(t))return FV(sa(t))?{dir:e,dirPath:t}:void 0;let n,r,i=!0;if(void 0!==N)for(;!L(t,N);){const o=sa(t);if(o===t)break;i=!1,n=t,r=e,t=o,e=sa(e)}return FV(t)?{dir:r||e,dirPath:n||t,nonRecursive:i}:void 0}function q(e){return na(e,T)}function V(t,n,r,i){var o,a;if(n.refCount)n.refCount++,In.assertIsDefined(n.files);else{n.refCount=1,In.assert(!(null==(o=n.files)?void 0:o.size)),Xs(t)?Q(n):s.add(t,n);const r=i(n);if(r&&r.resolvedFileName){const t=e.toPath(r.resolvedFileName);let i=l.get(t);i||l.set(t,i=new Set),i.add(n)}}(null!=(a=n.files)?a:n.files=new Set).add(r)}function Q(t){In.assert(!!t.refCount);const{failedLookupLocations:n,affectingLocations:r}=t;if(!(null==n?void 0:n.length)&&!(null==r?void 0:r.length))return;(null==n?void 0:n.length)&&c.add(t);let i=!1;if(n){for(const t of n){const n=e.toPath(t),r=z(t,n);if(r){const{dir:e,dirPath:t,nonRecursive:o}=r;if(!q(n)){const e=C.get(n)||0;C.set(n,e+1)}t===N?(In.assert(!o),i=!0):$(e,t,o)}}i&&$(E,N,!0)}K(t,!(null==n?void 0:n.length))}function K(e,t){In.assert(!!e.refCount);const{affectingLocations:n}=e;if(null==n?void 0:n.length){t&&_.add(e);for(const e of n)W(e,!0)}}function W(t,n){const r=D.get(t);if(r)return void(n?r.resolutions++:r.files++);let i=t;if(e.realpath&&(i=e.realpath(t),t!==i)){const e=D.get(i);if(e)return n?e.resolutions++:e.files++,e.paths.add(t),void D.set(t,e)}const o=new Set;o.add(i);let a=FV(e.toPath(i))?e.watchAffectingFileLocation(i,((t,n)=>{null==v||v.addOrDeleteFile(t,e.toPath(i),n);const r=x.getPackageJsonInfoCache().getInternalMap();o.forEach((t=>{s.resolutions&&(null!=p?p:p=new Set).add(t),s.files&&(null!=d?d:d=new Set).add(t),null==r||r.delete(e.toPath(t))})),e.scheduleInvalidateResolutionsOfFailedLookupLocations()})):MV;const s={watcher:a!==MV?{close:()=>{a.close(),a=MV}}:a,resolutions:n?1:0,files:n?0:1,paths:o};D.set(i,s),t!==i&&(D.set(t,s),o.add(t))}function H(t,n){const r=e.getCurrentProgram();r&&r.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(n)?t.forEach((e=>K(e,!0))):t.forEach(Q)}function $(e,t,n){const r=A.get(t);r?(In.assert(!!n==!!r.nonRecursive),r.refCount++):A.set(t,{watcher:Y(e,t,n),refCount:1,nonRecursive:n})}function G(t,n,r){if(In.checkDefined(t.files).delete(n),t.refCount--,t.refCount)return;const i=r(t);if(i&&i.resolvedFileName){const n=e.toPath(i.resolvedFileName),r=l.get(n);(null==r?void 0:r.delete(t))&&!r.size&&l.delete(n)}const{failedLookupLocations:o,affectingLocations:a}=t;if(c.delete(t)){let t=!1;for(const n of o){const r=e.toPath(n),i=z(n,r);if(i){const{dirPath:e}=i,n=C.get(r);n&&(1===n?C.delete(r):(In.assert(n>1),C.set(r,n-1))),e===N?t=!0:X(e)}}t&&X(N)}else(null==a?void 0:a.length)&&_.delete(t);if(a)for(const e of a)D.get(e).resolutions--}function X(e){A.get(e).refCount--}function Y(t,n,r){return e.watchDirectoryOfFailedLookupLocation(t,(t=>{const r=e.toPath(t);v&&v.addOrDeleteFileOrDirectory(t,r),ne(r,n===r)}),r?0:1)}function Z(e,t,n){const r=e.get(t);r&&(r.forEach((e=>G(e,t,n))),e.delete(t))}function ee(e){Z(b,e,I),Z(k,e,O)}function te(e,t){if(!e)return!1;let n=!1;return e.forEach((e=>{if(!e.isInvalidated&&t(e)){e.isInvalidated=n=!0;for(const t of In.checkDefined(e.files))(null!=o?o:o=new Set).add(t),h=h||en(t,KU)}})),n}function ne(t,n){if(n)(g||(g=new Set)).add(t);else{const n=NV(t);if(!n)return!1;if(t=n,e.fileIsOpen(t))return!1;const r=sa(t);if(J(t)||Ba(t)||J(r)||Ba(r))(f||(f=new Set)).add(t),(m||(m=new Set)).add(t);else{if(!q(t)&&!C.has(t))return!1;if(PU(e.getCurrentProgram(),t))return!1;(f||(f=new Set)).add(t);const n=$M(t);n&&(m||(m=new Set)).add(n)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function re(){var t;let n=!1;if(d&&(null==(t=e.getCurrentProgram())||t.getSourceFiles().forEach((e=>{_e(e.packageJsonLocations,(e=>d.has(e)))&&((null!=o?o:o=new Set).add(e.path),n=!0)})),d=void 0),!(f||m||g||p))return n;n=te(c,ie)||n;const r=x.getPackageJsonInfoCache().getInternalMap();return r&&(f||m||g)&&r.forEach(((e,t)=>oe(t)?r.delete(t):void 0)),f=void 0,m=void 0,g=void 0,n=te(_,ae)||n,p=void 0,n}function ie(t){var n;return!!ae(t)||!!(f||m||g)&&(null==(n=t.failedLookupLocations)?void 0:n.some((t=>oe(e.toPath(t)))))}function oe(e){return(null==f?void 0:f.has(e))||w((null==m?void 0:m.keys())||[],(t=>!!fn(e,t)||void 0))||w((null==g?void 0:g.keys())||[],(t=>!!L(t,e)||void 0))}function ae(e){var t;return!!p&&(null==(t=e.affectingLocations)?void 0:t.some((e=>p.has(e))))}function se(){jx(P,Nx)}function ce(t,n){return e.watchTypeRootsDirectory(n,(r=>{const i=e.toPath(r);v&&v.addOrDeleteFileOrDirectory(r,i),h=!0,e.onChangedAutomaticTypeDirectiveNames();const o=function(e,t){if(L(N,t))return N;const n=U(e,t);return n&&A.has(n.dirPath)?n.dirPath:void 0}(n,t);o&&ne(i,o===i)}),1)}function le(t){const n=sa(sa(t)),r=e.toPath(n);return r===N||FV(r)}}function IV(e){var t,n;return!(!(null==(t=e.resolvedModule)?void 0:t.originalPath)&&!(null==(n=e.resolvedTypeReferenceDirective)?void 0:n.originalPath))}var OV,LV,MV,RV,BV,jV=b({"src/compiler/resolutionCache.ts"(){XK(),XK()}});function JV(e,t){const n=e===So&&OV?OV:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:ln(e.useCaseSensitiveFileNames)};if(!t)return t=>e.write(aq(t,n));const r=[,];return t=>{r[0]=t,e.write(uq(r,n)+n.getNewLine()),r[0]=void 0}}function zV(e,t,n){return!(!e.clearScreen||n.preserveWatchOutput||n.extendedDiagnostics||n.diagnostics||!R(LV,t.code)||(e.clearScreen(),0))}function UV(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):(new Date).toLocaleTimeString()}function qV(e,t){return t?(t,n,r)=>{zV(e,t,r);let i=`[${cq(UV(e),"")}] `;i+=`${dq(t.messageText,e.newLine)}${n+n}`,e.write(i)}:(t,n,r)=>{let i="";zV(e,t,r)||(i+=n),i+=UV(e)+" - ",i+=`${dq(t.messageText,e.newLine)}${function(e,t){return R(LV,e.code)?t+t:t}(t,n)}`,e.write(i)}}function VV(e,t,n,r,i,o){const a=i;a.onUnRecoverableConfigFileDiagnostic=e=>pQ(i,o,e);const s=zO(e,t,a,n,r);return a.onUnRecoverableConfigFileDiagnostic=void 0,s}function QV(e){return J(e,(e=>1===e.category))}function KV(e){return z(e,(e=>1===e.category)).map((e=>{if(void 0!==e.file)return""+e.file.fileName})).map((t=>{if(void 0===t)return;const n=P(e,(e=>void 0!==e.file&&e.file.fileName===t));if(void 0!==n){const{line:e}=ys(n.file,n.start);return{fileName:t,line:e+1}}}))}function WV(e){return 1===e?ja.Found_1_error_Watching_for_file_changes:ja.Found_0_errors_Watching_for_file_changes}function HV(e,t){const n=cq(":"+e.line,"");return Xo(e.fileName)&&Xo(t)?Ia(t,e.fileName,!1)+n:e.fileName+n}function $V(e,t,n,r){if(0===e)return"";const i=t.filter((e=>void 0!==e)),o=i.map((e=>`${e.fileName}:${e.line}`)).filter(((e,t,n)=>n.indexOf(e)===t)),a=i[0]&&HV(i[0],r.getCurrentDirectory()),s=1===e?Tk(void 0!==t[0]?ja.Found_1_error_in_1:ja.Found_1_error,e,a):Tk(0===o.length?ja.Found_0_errors:1===o.length?ja.Found_0_errors_in_the_same_file_starting_at_Colon_1:ja.Found_0_errors_in_1_files,e,1===o.length?a:o.length),c=o.length>1?function(e,t){const n=e.filter(((e,t,n)=>t===n.findIndex((t=>(null==t?void 0:t.fileName)===(null==e?void 0:e.fileName)))));if(0===n.length)return"";const r=e=>Math.log(e)*Math.LOG10E+1,i=n.map((t=>[t,J(e,(e=>e.fileName===t.fileName))])),o=i.reduce(((e,t)=>Math.max(e,t[1]||0)),0),a=ja.Errors_Files.message,s=a.split(" ")[0].length,c=Math.max(s,r(o)),_=Math.max(r(o)-s,0);let l="";return l+=" ".repeat(_)+a+"\n",i.forEach((e=>{const[n,r]=e,i=Math.log(r)*Math.LOG10E+1|0,o=i{t(e.fileName)}))}function YV(e,t){var n,r;const i=e.getFileIncludeReasons(),o=t=>Oa(t,e.getCurrentDirectory(),e.getCanonicalFileName);for(const a of e.getSourceFiles())t(""+rQ(a,o)),null==(n=i.get(a.path))||n.forEach((n=>t(" "+nQ(e,n,o).messageText))),null==(r=ZV(a,o))||r.forEach((e=>t(" "+e.messageText)))}function ZV(e,t){var n;let r;if(e.path!==e.resolvedPath&&(null!=r?r:r=[]).push(Ak(void 0,ja.File_is_output_of_project_reference_source_0,rQ(e.originalFileName,t))),e.redirectInfo&&(null!=r?r:r=[]).push(Ak(void 0,ja.File_redirects_to_file_0,rQ(e.redirectInfo.redirectTarget,t))),em(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(null!=r?r:r=[]).push(Ak(void 0,ja.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,rQ(je(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(null!=r?r:r=[]).push(Ak(void 0,e.packageJsonScope.contents.packageJsonContent.type?ja.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:ja.File_is_CommonJS_module_because_0_does_not_have_field_type,rQ(je(e.packageJsonLocations),t))):(null==(n=e.packageJsonLocations)?void 0:n.length)&&(null!=r?r:r=[]).push(Ak(void 0,ja.File_is_CommonJS_module_because_package_json_was_not_found))}return r}function eQ(e,t){var n;const r=e.getCompilerOptions().configFile;if(!(null==(n=null==r?void 0:r.configFileSpecs)?void 0:n.validatedFilesSpec))return;const i=e.getCanonicalFileName(t),o=sa(ya(r.fileName,e.getCurrentDirectory()));return P(r.configFileSpecs.validatedFilesSpec,(t=>e.getCanonicalFileName(ya(t,o))===i))}function tQ(e,t){var n,r;const i=e.getCompilerOptions().configFile;if(!(null==(n=null==i?void 0:i.configFileSpecs)?void 0:n.validatedIncludeSpecs))return;if(i.configFileSpecs.isDefaultIncludeSpec)return!0;const o=ta(t,".json"),a=sa(ya(i.fileName,e.getCurrentDirectory())),s=e.useCaseSensitiveFileNames();return P(null==(r=null==i?void 0:i.configFileSpecs)?void 0:r.validatedIncludeSpecs,(e=>{if(o&&!en(e,".json"))return!1;const n=SS(e,a,"files");return!!n&&wS(`(${n})$`,s).test(t)}))}function nQ(e,t,n){var r,i;const o=e.getCompilerOptions();if(Cq(t)){const r=wq((t=>e.getSourceFileByPath(t)),t),i=Aq(r)?r.file.text.substring(r.pos,r.end):`"${r.text}"`;let o;switch(In.assert(Aq(r)||3===t.kind,"Only synthetic references are imports"),t.kind){case 3:o=Aq(r)?r.packageId?ja.Imported_via_0_from_file_1_with_packageId_2:ja.Imported_via_0_from_file_1:r.text===od?r.packageId?ja.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:ja.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:r.packageId?ja.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:ja.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:In.assert(!r.packageId),o=ja.Referenced_via_0_from_file_1;break;case 5:o=r.packageId?ja.Type_library_referenced_via_0_from_file_1_with_packageId_2:ja.Type_library_referenced_via_0_from_file_1;break;case 7:In.assert(!r.packageId),o=ja.Library_referenced_via_0_from_file_1;break;default:In.assertNever(t)}return Ak(void 0,o,i,rQ(r.file,n),r.packageId&&Sp(r.packageId))}switch(t.kind){case 0:if(!(null==(r=o.configFile)?void 0:r.configFileSpecs))return Ak(void 0,ja.Root_file_specified_for_compilation);const a=ya(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(eQ(e,a))return Ak(void 0,ja.Part_of_files_list_in_tsconfig_json);const s=tQ(e,a);return vt(s)?Ak(void 0,ja.Matched_by_include_pattern_0_in_1,s,rQ(o.configFile,n)):Ak(void 0,s?ja.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:ja.Root_file_specified_for_compilation);case 1:case 2:const c=2===t.kind,_=In.checkDefined(null==(i=e.getResolvedProjectReferences())?void 0:i[t.index]);return Ak(void 0,Av(o)?c?ja.Output_from_referenced_project_0_included_because_1_specified:ja.Source_from_referenced_project_0_included_because_1_specified:c?ja.Output_from_referenced_project_0_included_because_module_is_specified_as_none:ja.Source_from_referenced_project_0_included_because_module_is_specified_as_none,rQ(_.sourceFile.fileName,n),o.outFile?"--outFile":"--out");case 8:return Ak(void 0,o.types?t.packageId?ja.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:ja.Entry_point_of_type_library_0_specified_in_compilerOptions:t.packageId?ja.Entry_point_for_implicit_type_library_0_with_packageId_1:ja.Entry_point_for_implicit_type_library_0,t.typeReference,t.packageId&&Sp(t.packageId));case 6:if(void 0!==t.index)return Ak(void 0,ja.Library_0_specified_in_compilerOptions,o.lib[t.index]);const l=up(KI.type,((e,t)=>e===Rk(o)?t:void 0));return Ak(void 0,l?ja.Default_library_for_target_0:ja.Default_library,l);default:In.assertNever(t)}}function rQ(e,t){const n=vt(e)?e:e.fileName;return t?t(n):n}function iQ(e,t,n,i,o,a,s,c){const _=!!e.getCompilerOptions().listFilesOnly,l=e.getConfigFileParsingDiagnostics().slice(),u=l.length;Ae(l,e.getSyntacticDiagnostics(void 0,a)),l.length===u&&(Ae(l,e.getOptionsDiagnostics(a)),_||(Ae(l,e.getGlobalDiagnostics(a)),l.length===u&&Ae(l,e.getSemanticDiagnostics(void 0,a))));const d=_?{emitSkipped:!0,diagnostics:r}:e.emit(void 0,o,a,s,c),{emittedFiles:p,diagnostics:f}=d;Ae(l,f);const m=Ys(l);if(m.forEach(t),n){const t=e.getCurrentDirectory();T(p,(e=>{const r=ya(e,t);n("TSFILE: "+r)})),XV(e,n)}return i&&i(QV(m),KV(m)),{emitResult:d,diagnostics:m}}function oQ(e,t,n,r,i,o,a,s){const{emitResult:c,diagnostics:_}=iQ(e,t,n,r,i,o,a,s);return c.emitSkipped&&_.length>0?1:_.length>0?2:0}function aQ(e=So,t){return{onWatchStatusChange:t||qV(e),watchFile:lt(e,e.watchFile)||RV,watchDirectory:lt(e,e.watchDirectory)||RV,setTimeout:lt(e,e.setTimeout)||St,clearTimeout:lt(e,e.clearTimeout)||St}}function sQ(e,t){const n=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,r=0!==n?t=>e.trace(t):St,i=IU(e,n,r);return i.writeLog=r,i}function cQ(e,t,n=e){const r=e.useCaseSensitiveFileNames(),i={getSourceFile:eq(((t,n)=>n?e.readFile(t,n):i.readFile(t)),t,void 0),getDefaultLibLocation:lt(e,e.getDefaultLibLocation),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:tq(((t,n,r)=>e.writeFile(t,n,r)),(t=>e.createDirectory(t)),(t=>e.directoryExists(t))),getCurrentDirectory:Ft((()=>e.getCurrentDirectory())),useCaseSensitiveFileNames:()=>r,getCanonicalFileName:ln(r),getNewLine:()=>ax(t()),fileExists:t=>e.fileExists(t),readFile:t=>e.readFile(t),trace:lt(e,e.trace),directoryExists:lt(n,n.directoryExists),getDirectories:lt(n,n.getDirectories),realpath:lt(e,e.realpath),getEnvironmentVariable:lt(e,e.getEnvironmentVariable)||(()=>""),createHash:lt(e,e.createHash),readDirectory:lt(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit};return i}function _Q(e,t){if(t.match(pj)){let e=t.length,n=e;for(let r=e-1;r>=0;r--){const i=t.charCodeAt(r);switch(i){case 10:r&&13===t.charCodeAt(r-1)&&r--;case 13:break;default:if(i<127||!xs(i)){n=r;continue}}const o=t.substring(n,e);if(o.match(fj)){t=t.substring(0,n);break}if(!o.match(mj))break;e=n}}return(e.createHash||Co)(t)}function lQ(e){const t=e.getSourceFile;e.getSourceFile=(...n)=>{const r=t.call(e,...n);return r&&(r.version=_Q(e,r.text)),r}}function uQ(e,t){const n=Ft((()=>sa(va(e.getExecutingFilePath()))));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Ft((()=>e.getCurrentDirectory())),getDefaultLibLocation:n,getDefaultLibFileName:e=>ma(n(),Zs(e)),fileExists:t=>e.fileExists(t),readFile:(t,n)=>e.readFile(t,n),directoryExists:t=>e.directoryExists(t),getDirectories:t=>e.getDirectories(t),readDirectory:(t,n,r,i,o)=>e.readDirectory(t,n,r,i,o),realpath:lt(e,e.realpath),getEnvironmentVariable:lt(e,e.getEnvironmentVariable),trace:t=>e.write(t+e.newLine),createDirectory:t=>e.createDirectory(t),writeFile:(t,n,r)=>e.writeFile(t,n,r),createHash:lt(e,e.createHash),createProgram:t||wV,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:lt(e,e.now)}}function dQ(e=So,t,n,r){const i=t=>e.write(t+e.newLine),o=uQ(e,t);return _t(o,aQ(e,r)),o.afterProgramCreate=e=>{const t=e.getCompilerOptions(),r=ax(t);iQ(e,n,i,(e=>o.onWatchStatusChange(Tk(WV(e),e),r,t,e)))},o}function pQ(e,t,n){t(n),e.exit(1)}function fQ({configFileName:e,optionsToExtend:t,watchOptionsToExtend:n,extraFileExtensions:r,system:i,createProgram:o,reportDiagnostic:a,reportWatchStatus:s}){const c=a||JV(i),_=dQ(i,o,c,s);return _.onUnRecoverableConfigFileDiagnostic=e=>pQ(i,c,e),_.configFileName=e,_.optionsToExtend=t,_.watchOptionsToExtend=n,_.extraFileExtensions=r,_}function mQ({rootFiles:e,options:t,watchOptions:n,projectReferences:r,system:i,createProgram:o,reportDiagnostic:a,reportWatchStatus:s}){const c=dQ(i,o,a||JV(i),s);return c.rootFiles=e,c.options=t,c.watchOptions=n,c.projectReferences=r,c}function gQ(e){const t=e.system||So,n=e.host||(e.host=vQ(e.options,t)),r=bQ(e),i=oQ(r,e.reportDiagnostic||JV(t),(e=>n.trace&&n.trace(e)),e.reportErrorSummary||e.options.pretty?(e,r)=>t.write($V(e,r,t.newLine,n)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(r),i}var hQ=b({"src/compiler/watch.ts"(){XK(),OV=So?{getCurrentDirectory:()=>So.getCurrentDirectory(),getNewLine:()=>So.newLine,getCanonicalFileName:ln(So.useCaseSensitiveFileNames)}:void 0,LV=[ja.Starting_compilation_in_watch_mode.code,ja.File_change_detected_Starting_incremental_compilation.code],MV={close:St},RV=()=>MV,BV={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation"}}});function yQ(e,n){const r=Gz(e);if(!r)return;let i;if(n.getBuildInfo)i=n.getBuildInfo(r,e.configFilePath);else{const e=n.readFile(r);if(!e)return;i=mU(r,e)}return i&&i.version===t&&i.program?kV(i,r,n):void 0}function vQ(e,t=So){const n=nq(e,void 0,t);return n.createHash=lt(t,t.createHash),n.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,lQ(n),rq(n,(e=>xa(e,n.getCurrentDirectory(),n.getCanonicalFileName))),n}function bQ({rootNames:e,options:t,configFileParsingDiagnostics:n,projectReferences:r,host:i,createProgram:o}){return(o=o||wV)(e,t,i=i||vQ(t),yQ(t,i),n,r)}function xQ(e,t,n,r,i,o,a,s){return ht(e)?mQ({rootFiles:e,options:t,watchOptions:s,projectReferences:a,system:n,createProgram:r,reportDiagnostic:i,reportWatchStatus:o}):fQ({configFileName:e,optionsToExtend:t,watchOptionsToExtend:a,extraFileExtensions:s,system:n,createProgram:r,reportDiagnostic:i,reportWatchStatus:o})}function kQ(e){let t,n,r,i,o,a,s,c,_=e.extendedConfigCache,l=!1;const u=new Map;let d,p=!1;const f=e.useCaseSensitiveFileNames(),m=e.getCurrentDirectory(),{configFileName:g,optionsToExtend:h={},watchOptionsToExtend:y,extraFileExtensions:v,createProgram:b}=e;let x,k,{rootFiles:S,options:T,watchOptions:C,projectReferences:A}=e,w=!1,D=!1;const E=void 0===g?void 0:TU(e,m,f),N=E||e,F=Lq(e,N);let P=K();g&&e.configFileParsingResult&&(oe(e.configFileParsingResult),P=K()),X(ja.Starting_compilation_in_watch_mode),g&&!e.configFileParsingResult&&(P=ax(h),In.assert(!S),ie(),P=K()),In.assert(T),In.assert(S);const{watchFile:I,watchDirectory:O,writeLog:L}=sQ(e,T),M=ln(f);let R;L(`Current directory: ${m} CaseSensitiveFileNames: ${f}`),g&&(R=I(g,(function(){In.assert(!!g),n=2,te()}),2e3,C,BV.ConfigFile));const B=cQ(e,(()=>T),N);lQ(B);const j=B.getSourceFile;B.getSourceFile=(e,...t)=>$(e,W(e),...t),B.getSourceFileByPath=$,B.getNewLine=()=>P,B.fileExists=function(e){const t=W(e);return!H(u.get(t))&&N.fileExists(e)},B.onReleaseOldSourceFile=function(e,t,n){const r=u.get(e.resolvedPath);void 0!==r&&(H(r)?(d||(d=[])).push(e.path):r.sourceFile===e&&(r.fileWatcher&&r.fileWatcher.close(),u.delete(e.resolvedPath),n||J.removeResolutionsOfFile(e.path)))},B.onReleaseParsedCommandLine=function(e){var t;const n=W(e),r=null==s?void 0:s.get(n);r&&(s.delete(n),r.watchedDirectories&&jx(r.watchedDirectories,LU),null==(t=r.watcher)||t.close(),AU(n,c))},B.toPath=W,B.getCompilationSettings=()=>T,B.useSourceOfProjectReferenceRedirect=lt(e,e.useSourceOfProjectReferenceRedirect),B.watchDirectoryOfFailedLookupLocation=(e,t,n)=>O(e,t,n,C,BV.FailedLookupLocations),B.watchAffectingFileLocation=(e,t)=>I(e,t,2e3,C,BV.AffectingFileLocation),B.watchTypeRootsDirectory=(e,t,n)=>O(e,t,n,C,BV.TypeRoots),B.getCachedDirectoryStructureHost=()=>E,B.scheduleInvalidateResolutionsOfFailedLookupLocations=function(){if(!e.setTimeout||!e.clearTimeout)return J.invalidateResolutionsOfFailedLookupLocations();const t=Z();L("Scheduling invalidateFailedLookup"+(t?", Cancelled earlier one":"")),a=e.setTimeout(ee,250)},B.onInvalidatedResolution=te,B.onChangedAutomaticTypeDirectiveNames=te,B.fileIsOpen=Tt,B.getCurrentProgram=V,B.writeLog=L,B.getParsedCommandLine=ae;const J=PV(B,g?sa(ya(g,m)):m,!1);B.resolveModuleNameLiterals=lt(e,e.resolveModuleNameLiterals),B.resolveModuleNames=lt(e,e.resolveModuleNames),B.resolveModuleNameLiterals||B.resolveModuleNames||(B.resolveModuleNameLiterals=J.resolveModuleNameLiterals.bind(J)),B.resolveTypeReferenceDirectiveReferences=lt(e,e.resolveTypeReferenceDirectiveReferences),B.resolveTypeReferenceDirectives=lt(e,e.resolveTypeReferenceDirectives),B.resolveTypeReferenceDirectiveReferences||B.resolveTypeReferenceDirectives||(B.resolveTypeReferenceDirectiveReferences=J.resolveTypeReferenceDirectiveReferences.bind(J)),B.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?lt(e,e.getModuleResolutionCache):()=>J.getModuleResolutionCache();const z=e.resolveModuleNameLiterals||e.resolveTypeReferenceDirectiveReferences||e.resolveModuleNames||e.resolveTypeReferenceDirectives?lt(e,e.hasInvalidatedResolutions)||Ct:Tt;return t=yQ(T,B),Q(),de(),g&&fe(W(g),T,C,BV.ExtendedConfigFile),g?{getCurrentProgram:q,getProgram:re,close:U}:{getCurrentProgram:q,getProgram:re,updateRootFileNames:function(e){In.assert(!g,"Cannot update root file names with config file watch mode"),S=e,te()},close:U};function U(){Z(),J.clear(),jx(u,(e=>{e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)})),R&&(R.close(),R=void 0),null==_||_.clear(),_=void 0,c&&(jx(c,LU),c=void 0),i&&(jx(i,LU),i=void 0),r&&(jx(r,Nx),r=void 0),s&&(jx(s,(e=>{var t;null==(t=e.watcher)||t.close(),e.watcher=void 0,e.watchedDirectories&&jx(e.watchedDirectories,LU),e.watchedDirectories=void 0})),s=void 0)}function q(){return t}function V(){return t&&t.getProgramOrUndefined()}function Q(){L("Synchronizing program"),In.assert(T),In.assert(S),Z();const n=q();p&&(P=K(),n&&ap(n.getCompilerOptions(),T)&&J.clear());const i=J.createHasInvalidatedResolutions(z),{originalReadFile:o,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:_,readFileWithCache:f}=rq(B,W);return Dq(V(),S,T,(e=>function(e,t){const n=u.get(e);if(!n)return;if(n.version)return n.version;const r=t(e);return void 0!==r?_Q(B,r):void 0}(e,f)),(e=>B.fileExists(e)),i,Y,ae,A)?D&&(l&&X(ja.File_change_detected_Starting_incremental_compilation),t=b(void 0,void 0,B,t,k,A),D=!1):(l&&X(ja.File_change_detected_Starting_incremental_compilation),function(e){L("CreatingProgramWith::"),L(" roots: "+JSON.stringify(S)),L(" options: "+JSON.stringify(T)),A&&L(" projectReferences: "+JSON.stringify(A));const n=p||!V();p=!1,D=!1,J.startCachingPerDirectoryResolution(),B.hasInvalidatedResolutions=e,B.hasChangedAutomaticTypeDirectiveNames=Y;const i=V();if(t=b(S,T,B,t,k,A),J.finishCachingPerDirectoryResolution(t.getProgram(),i),EU(t.getProgram(),r||(r=new Map),le),n&&J.updateTypeRootsWatch(),d){for(const e of d)r.has(e)||u.delete(e);d=void 0}}(i)),l=!1,e.afterProgramCreate&&n!==t&&e.afterProgramCreate(t),B.readFile=o,B.fileExists=a,B.directoryExists=s,B.createDirectory=c,B.writeFile=_,t}function K(){return ax(T||h)}function W(e){return xa(e,m,M)}function H(e){return"boolean"==typeof e}function $(e,t,n,r,i){const o=u.get(t);if(!H(o)){if(void 0===o||i||function(e){return"boolean"==typeof e.version}(o)){const i=j(e,n,r);if(o)i?(o.sourceFile=i,o.version=i.version,o.fileWatcher||(o.fileWatcher=se(t,e,ce,250,C,BV.SourceFile))):(o.fileWatcher&&o.fileWatcher.close(),u.set(t,!1));else if(i){const n=se(t,e,ce,250,C,BV.SourceFile);u.set(t,{sourceFile:i,version:i.version,fileWatcher:n})}else u.set(t,!1);return i}return o.sourceFile}}function G(e){const t=u.get(e);void 0!==t&&(H(t)?u.set(e,{version:!1}):t.version=!1)}function X(t){e.onWatchStatusChange&&e.onWatchStatusChange(Tk(t),P,T||h)}function Y(){return J.hasChangedAutomaticTypeDirectiveNames()}function Z(){return!!a&&(e.clearTimeout(a),a=void 0,!0)}function ee(){a=void 0,J.invalidateResolutionsOfFailedLookupLocations()&&te()}function te(){e.setTimeout&&e.clearTimeout&&(o&&e.clearTimeout(o),L("Scheduling update"),o=e.setTimeout(ne,250))}function ne(){o=void 0,l=!0,re()}function re(){switch(n){case 1:gr.logStartUpdateProgram("PartialConfigReload"),L("Reloading new file names and options"),In.assert(T),In.assert(g),n=0,S=jL(T.configFile.configFileSpecs,ya(sa(g),m),T,F,v),SL(S,ya(g,m),T.configFile.configFileSpecs,k,w)&&(D=!0),Q();break;case 2:gr.logStartUpdateProgram("FullConfigReload"),In.assert(g),L("Reloading config file: "+g),n=0,E&&E.clearCache(),ie(),p=!0,Q(),de(),fe(W(g),T,C,BV.ExtendedConfigFile);break;default:gr.logStartUpdateProgram("SynchronizeProgram"),Q()}return gr.logStopUpdateProgram("Done"),q()}function ie(){In.assert(g),oe(zO(g,h,F,_||(_=new Map),y,v))}function oe(e){S=e.fileNames,T=e.options,C=e.watchOptions,A=e.projectReferences,x=e.wildcardDirectories,k=Eq(e).slice(),w=kL(e.raw),D=!0}function ae(t){const n=W(t);let r=null==s?void 0:s.get(n);if(r){if(!r.reloadLevel)return r.parsedCommandLine;if(r.parsedCommandLine&&1===r.reloadLevel&&!e.getParsedCommandLine){L("Reloading new file names and options"),In.assert(T);const e=jL(r.parsedCommandLine.options.configFile.configFileSpecs,ya(sa(t),m),T,F);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:e},r.reloadLevel=void 0,r.parsedCommandLine}}L("Loading config file: "+t);const i=e.getParsedCommandLine?e.getParsedCommandLine(t):function(e){const t=F.onUnRecoverableConfigFileDiagnostic;F.onUnRecoverableConfigFileDiagnostic=St;const n=zO(e,void 0,F,_||(_=new Map),y);return F.onUnRecoverableConfigFileDiagnostic=t,n}(t);return r?(r.parsedCommandLine=i,r.reloadLevel=void 0):(s||(s=new Map)).set(n,r={parsedCommandLine:i}),function(e,t,n){var r,i,o,a,c;n.watcher||(n.watcher=I(e,((n,r)=>{_e(e,t,r);const i=null==s?void 0:s.get(t);i&&(i.reloadLevel=2),J.removeResolutionsFromProjectReferenceRedirects(t),te()}),2e3,(null==(r=n.parsedCommandLine)?void 0:r.watchOptions)||C,BV.ConfigFileOfReferencedProject)),(null==(i=n.parsedCommandLine)?void 0:i.wildcardDirectories)?NU(n.watchedDirectories||(n.watchedDirectories=new Map),new Map(Object.entries(null==(o=n.parsedCommandLine)?void 0:o.wildcardDirectories)),((r,i)=>{var o;return O(r,(n=>{const i=W(n);E&&E.addOrDeleteFileOrDirectory(n,i),G(i);const o=null==s?void 0:s.get(t);(null==o?void 0:o.parsedCommandLine)&&(FU({watchedDirPath:W(r),fileOrDirectory:n,fileOrDirectoryPath:i,configFileName:e,options:o.parsedCommandLine.options,program:o.parsedCommandLine.fileNames,currentDirectory:m,useCaseSensitiveFileNames:f,writeLog:L,toPath:W})||2!==o.reloadLevel&&(o.reloadLevel=1,te()))}),i,(null==(o=n.parsedCommandLine)?void 0:o.watchOptions)||C,BV.WildcardDirectoryOfReferencedProject)})):n.watchedDirectories&&(jx(n.watchedDirectories,LU),n.watchedDirectories=void 0),fe(t,null==(a=n.parsedCommandLine)?void 0:a.options,(null==(c=n.parsedCommandLine)?void 0:c.watchOptions)||C,BV.ExtendedConfigOfReferencedProject)}(t,n,r),i}function se(e,t,n,r,i,o){return I(t,((t,r)=>n(t,r,e)),r,i,o)}function ce(e,t,n){_e(e,n,t),2===t&&u.has(n)&&J.invalidateResolutionOfFile(n),G(n),te()}function _e(e,t,n){E&&E.addOrDeleteFile(e,t,n)}function le(e){return(null==s?void 0:s.has(e))?MV:se(e,e,ue,500,C,BV.MissingFile)}function ue(e,t,n){_e(e,n,t),0===t&&r.has(n)&&(r.get(n).close(),r.delete(n),G(n),te())}function de(){x?NU(i||(i=new Map),new Map(Object.entries(x)),pe):i&&jx(i,LU)}function pe(e,t){return O(e,(t=>{In.assert(g),In.assert(T);const r=W(t);E&&E.addOrDeleteFileOrDirectory(t,r),G(r),FU({watchedDirPath:W(e),fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:g,extraFileExtensions:v,options:T,program:q()||S,currentDirectory:m,useCaseSensitiveFileNames:f,writeLog:L,toPath:W})||2!==n&&(n=1,te())}),t,C,BV.WildcardDirectory)}function fe(e,t,r,i){CU(e,t,c||(c=new Map),((e,t)=>I(e,((r,i)=>{var o;_e(e,t,i),_&&wU(_,t,W);const a=null==(o=c.get(t))?void 0:o.projects;(null==a?void 0:a.size)&&a.forEach((e=>{if(g&&W(g)===e)n=2;else{const t=null==s?void 0:s.get(e);t&&(t.reloadLevel=2),J.removeResolutionsFromProjectReferenceRedirects(e)}te()}))}),2e3,r,i)),W)}}var SQ,TQ=b({"src/compiler/watchPublic.ts"(){XK(),XK()}});function CQ(e){return ta(e,".json")?e:ma(e,"tsconfig.json")}var AQ,wQ,DQ,EQ=b({"src/compiler/tsbuild.ts"(){XK(),SQ=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.ErrorReadingFile=5]="ErrorReadingFile",e[e.OutOfDateWithSelf=6]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(SQ||{})}});function NQ(e,t){return function(e,t,n){const r=e.get(t);let i;return r||(i=new Map,e.set(t,i)),r||i}(e,t)}function FQ(e){return e.now?e.now():new Date}function PQ(e){return!!e&&!!e.buildOrder}function IQ(e){return PQ(e)?e.buildOrder:e}function OQ(e,t){return n=>{let r=t?`[${cq(UV(e),"")}] `:UV(e)+" - ";r+=`${dq(n.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(r)}}function LQ(e,t,n,r){const i=uQ(e,t);return i.getModifiedTime=e.getModifiedTime?t=>e.getModifiedTime(t):At,i.setModifiedTime=e.setModifiedTime?(t,n)=>e.setModifiedTime(t,n):St,i.deleteFile=e.deleteFile?t=>e.deleteFile(t):St,i.reportDiagnostic=n||JV(e),i.reportSolutionBuilderStatus=r||OQ(e),i.now=lt(e,e.now),i}function MQ(e=So,t,n,r,i){const o=LQ(e,t,n,r);return o.reportErrorSummary=i,o}function RQ(e=So,t,n,r,i){const o=LQ(e,t,n,r);return _t(o,aQ(e,i)),o}function BQ(e,t,n){return OK(!1,e,t,n)}function jQ(e,t,n,r){return OK(!0,e,t,n,r)}function JQ(e,t){return xa(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function zQ(e,t){const{resolvedConfigFilePaths:n}=e,r=n.get(t);if(void 0!==r)return r;const i=JQ(e,t);return n.set(t,i),i}function UQ(e){return!!e.options}function qQ(e,t){const n=e.configFileCache.get(t);return n&&UQ(n)?n:void 0}function VQ(e,t,n){const{configFileCache:r}=e,i=r.get(n);if(i)return UQ(i)?i:void 0;let o;Er("SolutionBuilder::beforeConfigFileParsing");const{parseConfigFileHost:a,baseCompilerOptions:s,baseWatchOptions:c,extendedConfigCache:_,host:l}=e;let u;return l.getParsedCommandLine?(u=l.getParsedCommandLine(t),u||(o=Tk(ja.File_0_not_found,t))):(a.onUnRecoverableConfigFileDiagnostic=e=>o=e,u=zO(t,s,a,_,c),a.onUnRecoverableConfigFileDiagnostic=St),r.set(n,u||o),Er("SolutionBuilder::afterConfigFileParsing"),Nr("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),u}function QQ(e,t){return CQ(ga(e.compilerHost.getCurrentDirectory(),t))}function KQ(e,t){const n=new Map,i=new Map,o=[];let a,s;for(const e of t)c(e);return s?{buildOrder:a||r,circularDiagnostics:s}:a||r;function c(t,r){const _=zQ(e,t);if(i.has(_))return;if(n.has(_))return void(r||(s||(s=[])).push(Tk(ja.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,o.join("\r\n"))));n.set(_,!0),o.push(t);const l=VQ(e,t,_);if(l&&l.projectReferences)for(const t of l.projectReferences)c(QQ(e,t.path),r||t.circular);o.pop(),i.set(_,!0),(a||(a=[])).push(t)}}function WQ(e){return e.buildOrder||function(e){const t=KQ(e,e.rootNames.map((t=>QQ(e,t))));e.resolvedConfigFilePaths.clear();const n=new Map(IQ(t).map((t=>[zQ(e,t),!0]))),r={onDeleteValue:St};return Jx(e.configFileCache,n,r),Jx(e.projectStatus,n,r),Jx(e.builderPrograms,n,r),Jx(e.diagnostics,n,r),Jx(e.projectPendingBuild,n,r),Jx(e.projectErrorsReported,n,r),Jx(e.buildInfoCache,n,r),Jx(e.outputTimeStamps,n,r),e.watch&&(Jx(e.allWatchedConfigFiles,n,{onDeleteValue:Nx}),e.allWatchedExtendedConfigFiles.forEach((e=>{e.projects.forEach((t=>{n.has(t)||e.projects.delete(t)})),e.close()})),Jx(e.allWatchedWildcardDirectories,n,{onDeleteValue:e=>e.forEach(LU)}),Jx(e.allWatchedInputFiles,n,{onDeleteValue:e=>e.forEach(Nx)}),Jx(e.allWatchedPackageJsonFiles,n,{onDeleteValue:e=>e.forEach(Nx)})),e.buildOrder=t}(e)}function HQ(e,t,n){const r=t&&QQ(e,t),i=WQ(e);if(PQ(i))return i;if(r){const t=zQ(e,r);if(-1===O(i,(n=>zQ(e,n)===t)))return}const o=r?KQ(e,[r]):i;return In.assert(!PQ(o)),In.assert(!n||void 0!==r),In.assert(!n||o[o.length-1]===r),n?o.slice(0,o.length-1):o}function $Q(e){e.cache&&GQ(e);const{compilerHost:t,host:n}=e,r=e.readFileWithCache,i=t.getSourceFile,{originalReadFile:o,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:_,getSourceFileWithCache:l,readFileWithCache:u}=rq(n,(t=>JQ(e,t)),((...e)=>i.call(t,...e)));e.readFileWithCache=u,t.getSourceFile=l,e.cache={originalReadFile:o,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:_,originalReadFileWithCache:r,originalGetSourceFile:i}}function GQ(e){if(!e.cache)return;const{cache:t,host:n,compilerHost:r,extendedConfigCache:i,moduleResolutionCache:o,typeReferenceDirectiveResolutionCache:a}=e;n.readFile=t.originalReadFile,n.fileExists=t.originalFileExists,n.directoryExists=t.originalDirectoryExists,n.createDirectory=t.originalCreateDirectory,n.writeFile=t.originalWriteFile,r.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,i.clear(),null==o||o.clear(),null==a||a.clear(),e.cache=void 0}function XQ(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function YQ({projectPendingBuild:e},t,n){const r=e.get(t);(void 0===r||re.projectPendingBuild.set(zQ(e,t),0))),t&&t.throwIfCancellationRequested())}function eK(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function tK(e,t,n,i,o,a,s){let c,_,l,u=0===e?0:4;return 0===e?{kind:e,project:n,projectPath:i,buildOrder:s,getCompilerOptions:()=>a.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>p(wt),getProgram:()=>p((e=>e.getProgramOrUndefined())),getSourceFile:e=>p((t=>t.getSourceFile(e))),getSourceFiles:()=>f((e=>e.getSourceFiles())),getOptionsDiagnostics:e=>f((t=>t.getOptionsDiagnostics(e))),getGlobalDiagnostics:e=>f((t=>t.getGlobalDiagnostics(e))),getConfigFileParsingDiagnostics:()=>f((e=>e.getConfigFileParsingDiagnostics())),getSyntacticDiagnostics:(e,t)=>f((n=>n.getSyntacticDiagnostics(e,t))),getAllDependencies:e=>f((t=>t.getAllDependencies(e))),getSemanticDiagnostics:(e,t)=>f((n=>n.getSemanticDiagnostics(e,t))),getSemanticDiagnosticsOfNextAffectedFile:(e,t)=>p((n=>n.getSemanticDiagnosticsOfNextAffectedFile&&n.getSemanticDiagnosticsOfNextAffectedFile(e,t))),emit:(e,r,i,o,a)=>e||o?p((s=>{var c,_;return s.emit(e,r,i,o,a||(null==(_=(c=t.host).getCustomTransformers)?void 0:_.call(c,n)))})):(S(2,i),5===u?b(r,i):3===u?v(r,i,a):void 0),done:d}:{kind:e,project:n,projectPath:i,buildOrder:s,getCompilerOptions:()=>a.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(e,t)=>4!==u?l:k(e,t),done:d};function d(n,r,o){return S(8,n,r,o),Er(0===e?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),eK(t,i)}function p(e){return S(0),c&&e(c)}function f(e){return p(e)||r}function m(){var e,r;if(In.assert(void 0===c),t.options.dry)return MK(t,ja.A_non_dry_build_would_build_project_0,n),_=1,void(u=7);if(t.options.verbose&&MK(t,ja.Building_project_0,n),0===a.fileNames.length)return jK(t,i,Eq(a)),_=0,void(u=7);const{host:o,compilerHost:s}=t;t.projectCompilerOptions=a.options,null==(e=t.moduleResolutionCache)||e.update(a.options),null==(r=t.typeReferenceDirectiveResolutionCache)||r.update(a.options),c=o.createProgram(a.fileNames,a.options,s,function({options:e,builderPrograms:t,compilerHost:n},r,i){if(e.force)return;return t.get(r)||yQ(i.options,n)}(t,i,a),Eq(a),a.projectReferences),t.watch&&(t.lastCachedPackageJsonLookups.set(i,t.moduleResolutionCache&&V(t.moduleResolutionCache.getPackageJsonInfoCache().entries(),(([e,n])=>[t.host.realpath&&n?JQ(t,t.host.realpath(e)):e,n]))),t.builderPrograms.set(i,c)),u++}function g(e,n,r){e.length?({buildResult:_,step:u}=cK(t,i,c,a,e,n,r)):u++}function h(e){In.assertIsDefined(c),g([...c.getConfigFileParsingDiagnostics(),...c.getOptionsDiagnostics(e),...c.getGlobalDiagnostics(e),...c.getSyntacticDiagnostics(void 0,e)],8,"Syntactic")}function y(e){g(In.checkDefined(c).getSemanticDiagnostics(void 0,e),16,"Semantic")}function v(e,r,o){var s,l,d;In.assertIsDefined(c),In.assert(3===u);const p=c.saveEmitState();let f;const m=[],{emitResult:g}=iQ(c,(e=>(f||(f=[])).push(e)),void 0,void 0,((e,t,n,r,i,o)=>m.push({name:e,text:t,writeByteOrderMark:n,data:o})),r,!1,o||(null==(l=(s=t.host).getCustomTransformers)?void 0:l.call(s,n)));if(f)return c.restoreEmitState(p),({buildResult:_,step:u}=cK(t,i,c,a,f,32,"Declaration file")),{emitSkipped:!0,diagnostics:g.diagnostics};const{host:h,compilerHost:y}=t,v=(null==(d=c.hasChangedEmitSignature)?void 0:d.call(c))?0:2,b=ev(),k=new Map,S=c.getCompilerOptions(),T=rS(S);let C,A;return m.forEach((({name:n,text:r,writeByteOrderMark:o,data:a})=>{const s=JQ(t,n);k.set(JQ(t,n),n),(null==a?void 0:a.buildInfo)&&pK(t,a.buildInfo,i,S,v);const c=(null==a?void 0:a.differsOnlyInMap)?wo(t.host,n):void 0;Pv(e?{writeFile:e}:y,b,n,r,o),(null==a?void 0:a.differsOnlyInMap)?t.host.setModifiedTime(n,c):!T&&t.watch&&(C||(C=dK(t,i))).set(s,A||(A=FQ(t.host)))})),x(b,k,m.length?m[0].name:uU(a,!h.useCaseSensitiveFileNames()),v),g}function b(e,n){In.assertIsDefined(c),In.assert(5===u);const r=c.emitBuildInfo(((n,r,o,a,s,_)=>{(null==_?void 0:_.buildInfo)&&pK(t,_.buildInfo,i,c.getCompilerOptions(),2),e?e(n,r,o,a,s,_):t.compilerHost.writeFile(n,r,o,a,s,_)}),n);return r.diagnostics.length&&(BK(t,r.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...r.diagnostics]),_&=64),r.emittedFiles&&t.write&&r.emittedFiles.forEach((e=>aK(t,a,e))),sK(t,c,a),u=7,r}function x(e,n,r,o){const s=e.getDiagnostics();return s.length?(({buildResult:_,step:u}=cK(t,i,c,a,s,64,"Emit")),s):(t.write&&n.forEach((e=>aK(t,a,e))),vK(t,a,i,ja.Updating_unchanged_output_timestamps_of_project_0,n),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:r}),sK(t,c,a),u=7,_=o,s)}function k(r,c){var d,p,f,m;if(In.assert(1===e),t.options.dry)return MK(t,ja.A_non_dry_build_would_update_output_of_project_0,n),_=1,void(u=7);t.options.verbose&&MK(t,ja.Updating_output_of_project_0,n);const{compilerHost:g}=t;t.projectCompilerOptions=a.options,null==(p=(d=t.host).beforeEmitBundle)||p.call(d,a);const h=gU(a,g,(e=>{const n=QQ(t,e.path);return VQ(t,n,zQ(t,n))}),c||(null==(m=(f=t.host).getCustomTransformers)?void 0:m.call(f,n)));if(vt(h))return MK(t,ja.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,n,LK(t,h)),u=6,l=tK(0,t,n,i,o,a,s);In.assert(!!h.length);const y=ev(),v=new Map;let b=2;const k=t.buildInfoCache.get(i).buildInfo||void 0;return h.forEach((({name:e,text:n,writeByteOrderMark:o,data:s})=>{var c,_;v.set(JQ(t,e),e),(null==s?void 0:s.buildInfo)&&((null==(c=s.buildInfo.program)?void 0:c.outSignature)!==(null==(_=null==k?void 0:k.program)?void 0:_.outSignature)&&(b&=-3),pK(t,s.buildInfo,i,a.options,b)),Pv(r?{writeFile:r}:g,y,e,n,o)})),{emitSkipped:!1,diagnostics:x(y,v,h[0].name,b)}}function S(e,r,c,d){for(;u<=e&&u<8;){const e=u;switch(u){case 0:m();break;case 1:h(r);break;case 2:y(r);break;case 3:v(c,r,d);break;case 5:b(c,r);break;case 4:k(c,d);break;case 6:In.checkDefined(l).done(r,c,d),u=8;break;case 7:kK(t,n,i,o,a,s,In.checkDefined(_)),u++}In.assert(u>e)}}}function nK({options:e},t,n){return!(3===t.type&&!e.force&&0!==n.fileNames.length&&!Eq(n).length&&rS(n.options))}function rK(e,t,n){if(!e.projectPendingBuild.size)return;if(PQ(t))return;const{options:r,projectPendingBuild:i}=e;for(let o=0;or.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{xK(e,r,n),o=!1},done:()=>(o&&xK(e,r,n),Er("SolutionBuilder::Timestamps only updates"),eK(e,n))}}(e,t.project,t.projectPath,t.config,n)}function oK(e,t,n){const r=rK(e,t,n);return r?iK(e,r,t):r}function aK({write:e},t,n){e&&t.options.listEmittedFiles&&e("TSFILE: "+n)}function sK(e,t,n){t?(e.write&&XV(t,e.write),e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()):e.host.afterEmitBundle&&e.host.afterEmitBundle(n),e.projectCompilerOptions=e.baseCompilerOptions}function cK(e,t,n,r,i,o,a){const s=n&&!Av(n.getCompilerOptions());return jK(e,t,i),e.projectStatus.set(t,{type:0,reason:a+" errors"}),s?{buildResult:o,step:5}:(sK(e,n,r),{buildResult:o,step:7})}function _K(e){return!!e.watcher}function lK(e,t){const n=JQ(e,t),r=e.filesWatched.get(n);if(e.watch&&r){if(!_K(r))return r;if(r.modifiedTime)return r.modifiedTime}const i=wo(e.host,t);return e.watch&&(r?r.modifiedTime=i:e.filesWatched.set(n,i)),i}function uK(e,t,n,r,i,o,a){const s=JQ(e,t),c=e.filesWatched.get(s);if(c&&_K(c))c.callbacks.push(n);else{const _=e.watchFile(t,((t,n,r)=>{const i=In.checkDefined(e.filesWatched.get(s));In.assert(_K(i)),i.modifiedTime=r,i.callbacks.forEach((e=>e(t,n,r)))}),r,i,o,a);e.filesWatched.set(s,{callbacks:[n],watcher:_,modifiedTime:c})}return{close:()=>{const t=In.checkDefined(e.filesWatched.get(s));In.assert(_K(t)),1===t.callbacks.length?(e.filesWatched.delete(s),LU(t)):_n(t.callbacks,n)}}}function dK(e,t){if(!e.watch)return;let n=e.outputTimeStamps.get(t);return n||e.outputTimeStamps.set(t,n=new Map),n}function pK(e,t,n,r,i){const o=Gz(r),a=fK(e,o,n),s=FQ(e.host);a?(a.buildInfo=t,a.modifiedTime=s,2&i||(a.latestChangedDtsTime=s)):e.buildInfoCache.set(n,{path:JQ(e,o),buildInfo:t,modifiedTime:s,latestChangedDtsTime:2&i?void 0:s})}function fK(e,t,n){const r=JQ(e,t),i=e.buildInfoCache.get(n);return(null==i?void 0:i.path)===r?i:void 0}function mK(e,t,n,r){const i=JQ(e,t),o=e.buildInfoCache.get(n);if(void 0!==o&&o.path===i)return o.buildInfo||void 0;const a=e.readFileWithCache(t),s=a?mU(t,a):void 0;return e.buildInfoCache.set(n,{path:i,buildInfo:s||!1,modifiedTime:r||go}),s}function gK(e,t,n,r){if(nh&&(m=t,h=n),p&&v.add(JQ(e,t))}if(p){f||(f=SV(p,l,_));for(const e of f.roots)if(!v.has(e))return{type:10,buildInfoFile:l,inputFile:e}}if(!l){const t=_U(n,!_.useCaseSensitiveFileNames()),r=dK(e,i);for(const n of t){const t=JQ(e,n);let i=null==r?void 0:r.get(t);if(i||(i=wo(e.host,n),null==r||r.set(t,i)),i===go)return{type:4,missingOutputFileName:n};if(igK(e,t,g,u)))||T(e.lastCachedPackageJsonLookups.get(i)||r,(([t])=>gK(e,t,g,u)))||(S&&k?{type:3,outOfDateOutputFileName:u,newerProjectName:x}:{type:k?2:y?15:1,newestInputFileTime:h,newestInputFileName:m,oldestOutputFileName:u})}(e,n,i);return Er("SolutionBuilder::afterUpToDateCheck"),Nr("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(i,a),a}function vK(e,t,n,r,i){if(t.options.noEmit)return;let o;const a=Gz(t.options);if(a)return(null==i?void 0:i.has(JQ(e,a)))||(e.options.verbose&&MK(e,r,t.options.configFilePath),e.host.setModifiedTime(a,o=FQ(e.host)),fK(e,a,n).modifiedTime=o),void e.outputTimeStamps.delete(n);const{host:s}=e,c=_U(t,!s.useCaseSensitiveFileNames()),_=dK(e,n),l=_?new Set:void 0;if(!i||c.length!==i.size){let n=!!e.options.verbose;for(const a of c){const c=JQ(e,a);(null==i?void 0:i.has(c))||(n&&(n=!1,MK(e,r,t.options.configFilePath)),s.setModifiedTime(a,o||(o=FQ(e.host))),_&&(_.set(c,o),l.add(c)))}}null==_||_.forEach(((e,t)=>{(null==i?void 0:i.has(t))||l.has(t)||_.delete(t)}))}function bK(e,t,n){if(!t.composite)return;const r=In.checkDefined(e.buildInfoCache.get(n));if(void 0!==r.latestChangedDtsTime)return r.latestChangedDtsTime||void 0;const i=r.buildInfo&&r.buildInfo.program&&r.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(ya(r.buildInfo.program.latestChangedDtsFile,sa(r.path))):void 0;return r.latestChangedDtsTime=i||!1,i}function xK(e,t,n){if(e.options.dry)return MK(e,ja.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);vK(e,t,n,ja.Updating_output_timestamps_of_project_0),e.projectStatus.set(n,{type:1,oldestOutputFileName:uU(t,!e.host.useCaseSensitiveFileNames())})}function kK(e,t,n,r,i,o,a){if(!(124&a)&&i.options.composite)for(let i=r+1;ie.diagnostics.has(zQ(e,t))))?c?2:1:0}(e,t,n,r,i,o);return Er("SolutionBuilder::afterBuild"),Nr("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),a}function TK(e,t,n){Er("SolutionBuilder::beforeClean");const r=function(e,t,n){const r=HQ(e,t,n);if(!r)return 3;if(PQ(r))return BK(e,r.circularDiagnostics),4;const{options:i,host:o}=e,a=i.dry?[]:void 0;for(const t of r){const n=zQ(e,t),r=VQ(e,t,n);if(void 0===r){JK(e,n);continue}const i=_U(r,!o.useCaseSensitiveFileNames());if(!i.length)continue;const s=new Set(r.fileNames.map((t=>JQ(e,t))));for(const t of i)s.has(JQ(e,t))||o.fileExists(t)&&(a?a.push(t):(o.deleteFile(t),CK(e,n,0)))}return a&&MK(e,ja.A_non_dry_build_would_delete_the_following_files_Colon_0,a.map((e=>"\r\n * "+e)).join("")),0}(e,t,n);return Er("SolutionBuilder::afterClean"),Nr("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),r}function CK(e,t,n){e.host.getParsedCommandLine&&1===n&&(n=2),2===n&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,XQ(e,t),YQ(e,t,n),$Q(e)}function AK(e,t,n){e.reportFileChangeDetected=!0,CK(e,t,n),wK(e,250,!0)}function wK(e,t,n){const{hostWithWatch:r}=e;r.setTimeout&&r.clearTimeout&&(e.timerToBuildInvalidatedProject&&r.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=r.setTimeout(DK,t,e,n))}function DK(e,t){Er("SolutionBuilder::beforeBuild");const n=function(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),RK(e,ja.File_change_detected_Starting_incremental_compilation));let n=0;const r=WQ(e),i=oK(e,r,!1);if(i)for(i.done(),n++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const i=rK(e,r,!1);if(!i)break;if(2!==i.kind&&(t||5===n))return void wK(e,100,!1);iK(e,i,r).done(),2!==i.kind&&n++}return GQ(e),r}(e,t);Er("SolutionBuilder::afterBuild"),Nr("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),n&&zK(e,n)}function EK(e,t,n,r){e.watch&&!e.allWatchedConfigFiles.has(n)&&e.allWatchedConfigFiles.set(n,uK(e,t,(()=>AK(e,n,2)),2e3,null==r?void 0:r.watchOptions,BV.ConfigFile,t))}function NK(e,t,n){CU(t,null==n?void 0:n.options,e.allWatchedExtendedConfigFiles,((t,r)=>uK(e,t,(()=>{var t;return null==(t=e.allWatchedExtendedConfigFiles.get(r))?void 0:t.projects.forEach((t=>AK(e,t,2)))}),2e3,null==n?void 0:n.watchOptions,BV.ExtendedConfigFile)),(t=>JQ(e,t)))}function FK(e,t,n,r){e.watch&&NU(NQ(e.allWatchedWildcardDirectories,n),new Map(Object.entries(r.wildcardDirectories)),((i,o)=>e.watchDirectory(i,(o=>{var a;FU({watchedDirPath:JQ(e,i),fileOrDirectory:o,fileOrDirectoryPath:JQ(e,o),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:r.options,program:e.builderPrograms.get(n)||(null==(a=qQ(e,n))?void 0:a.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:t=>e.writeLog(t),toPath:t=>JQ(e,t)})||AK(e,n,1)}),o,null==r?void 0:r.watchOptions,BV.WildcardDirectory,t)))}function PK(e,t,n,r){e.watch&&zx(NQ(e.allWatchedInputFiles,n),nt(r.fileNames,(t=>JQ(e,t))),{createNewValue:(i,o)=>uK(e,o,(()=>AK(e,n,0)),250,null==r?void 0:r.watchOptions,BV.SourceFile,t),onDeleteValue:Nx})}function IK(e,t,n,r){e.watch&&e.lastCachedPackageJsonLookups&&zx(NQ(e.allWatchedPackageJsonFiles,n),new Map(e.lastCachedPackageJsonLookups.get(n)),{createNewValue:(i,o)=>uK(e,i,(()=>AK(e,n,0)),2e3,null==r?void 0:r.watchOptions,BV.PackageJson,t),onDeleteValue:Nx})}function OK(e,t,n,r,i){const o=function(e,t,n,r,i){const o=t,a=t,s=function(e){const t={};return QI.forEach((n=>{We(e,n.name)&&(t[n.name]=e[n.name])})),t}(r),c=cQ(o,(()=>f.projectCompilerOptions));let _,l;lQ(c),c.getParsedCommandLine=e=>VQ(f,e,zQ(f,e)),c.resolveModuleNameLiterals=lt(o,o.resolveModuleNameLiterals),c.resolveTypeReferenceDirectiveReferences=lt(o,o.resolveTypeReferenceDirectiveReferences),c.resolveModuleNames=lt(o,o.resolveModuleNames),c.resolveTypeReferenceDirectives=lt(o,o.resolveTypeReferenceDirectives),c.getModuleResolutionCache=lt(o,o.getModuleResolutionCache),c.resolveModuleNameLiterals||c.resolveModuleNames||(_=MM(c.getCurrentDirectory(),c.getCanonicalFileName),c.resolveModuleNameLiterals=(e,t,n,r,i)=>kq(e,t,n,r,i,o,_,vq),c.getModuleResolutionCache=()=>_),c.resolveTypeReferenceDirectiveReferences||c.resolveTypeReferenceDirectives||(l=RM(c.getCurrentDirectory(),c.getCanonicalFileName,void 0,null==_?void 0:_.getPackageJsonInfoCache()),c.resolveTypeReferenceDirectiveReferences=(e,t,n,r,i)=>kq(e,t,n,r,i,o,l,xq)),c.getBuildInfo=(e,t)=>mK(f,e,zQ(f,t),void 0);const{watchFile:u,watchDirectory:d,writeLog:p}=sQ(a,r),f={host:o,hostWithWatch:a,parseConfigFileHost:Lq(o),write:lt(o,o.trace),options:r,baseCompilerOptions:s,rootNames:n,baseWatchOptions:i,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:c,moduleResolutionCache:_,typeReferenceDirectiveResolutionCache:l,buildOrder:void 0,readFileWithCache:e=>o.readFile(e),projectCompilerOptions:s,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:u,watchDirectory:d,writeLog:p};return f}(e,t,n,r,i);return{build:(e,t,n,r)=>SK(o,e,t,n,r),clean:e=>TK(o,e),buildReferences:(e,t,n,r)=>SK(o,e,t,n,r,!0),cleanReferences:e=>TK(o,e,!0),getNextInvalidatedProject:e=>(ZQ(o,e),oK(o,WQ(o),!1)),getBuildOrder:()=>WQ(o),getUpToDateStatusOfProject:e=>{const t=QQ(o,e),n=zQ(o,t);return yK(o,VQ(o,t,n),n)},invalidateProject:(e,t)=>CK(o,e,t||0),close:()=>function(e){jx(e.allWatchedConfigFiles,Nx),jx(e.allWatchedExtendedConfigFiles,LU),jx(e.allWatchedWildcardDirectories,(e=>jx(e,LU))),jx(e.allWatchedInputFiles,(e=>jx(e,Nx))),jx(e.allWatchedPackageJsonFiles,(e=>jx(e,Nx)))}(o)}}function LK(e,t){return Oa(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function MK(e,t,...n){e.host.reportSolutionBuilderStatus(Tk(t,...n))}function RK(e,t,...n){var r,i;null==(i=(r=e.hostWithWatch).onWatchStatusChange)||i.call(r,Tk(t,...n),e.host.getNewLine(),e.baseCompilerOptions)}function BK({host:e},t){t.forEach((t=>e.reportDiagnostic(t)))}function jK(e,t,n){BK(e,n),e.projectErrorsReported.set(t,!0),n.length&&e.diagnostics.set(t,n)}function JK(e,t){jK(e,t,[e.configFileCache.get(t)])}function zK(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const n=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e;let o=0,a=[];PQ(t)?(UK(e,t.buildOrder),BK(e,t.circularDiagnostics),n&&(o+=QV(t.circularDiagnostics)),n&&(a=[...a,...KV(t.circularDiagnostics)])):(t.forEach((t=>{const n=zQ(e,t);e.projectErrorsReported.has(n)||BK(e,i.get(n)||r)})),n&&i.forEach((e=>o+=QV(e))),n&&i.forEach((e=>[...a,...KV(e)]))),e.watch?RK(e,WV(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,a)}function UK(e,t){e.options.verbose&&MK(e,ja.Projects_in_this_build_Colon_0,t.map((t=>"\r\n * "+LK(e,t))).join(""))}function qK(e,n,r){e.options.verbose&&function(e,n,r){switch(r.type){case 6:return MK(e,ja.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,LK(e,n),LK(e,r.outOfDateOutputFileName),LK(e,r.newerInputFileName));case 7:return MK(e,ja.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,LK(e,n),LK(e,r.outOfDateOutputFileName),LK(e,r.newerProjectName));case 4:return MK(e,ja.Project_0_is_out_of_date_because_output_file_1_does_not_exist,LK(e,n),LK(e,r.missingOutputFileName));case 5:return MK(e,ja.Project_0_is_out_of_date_because_there_was_error_reading_file_1,LK(e,n),LK(e,r.fileName));case 8:return MK(e,ja.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,LK(e,n),LK(e,r.buildInfoFile));case 9:return MK(e,ja.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,LK(e,n),LK(e,r.buildInfoFile));case 10:return MK(e,ja.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,LK(e,n),LK(e,r.buildInfoFile),LK(e,r.inputFile));case 1:if(void 0!==r.newestInputFileTime)return MK(e,ja.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,LK(e,n),LK(e,r.newestInputFileName||""),LK(e,r.oldestOutputFileName||""));break;case 3:return MK(e,ja.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,LK(e,n),LK(e,r.newerProjectName));case 2:return MK(e,ja.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,LK(e,n));case 15:return MK(e,ja.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,LK(e,n));case 11:return MK(e,ja.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,LK(e,n),LK(e,r.upstreamProjectName));case 12:return MK(e,r.upstreamProjectBlocked?ja.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:ja.Project_0_can_t_be_built_because_its_dependency_1_has_errors,LK(e,n),LK(e,r.upstreamProjectName));case 0:return MK(e,ja.Failed_to_parse_file_0_Colon_1,LK(e,n),r.reason);case 14:return MK(e,ja.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,LK(e,n),r.version,t);case 17:MK(e,ja.Project_0_is_being_forcibly_rebuilt,LK(e,n))}}(e,n,r)}var VK,QK,KK,WK,HK,$K,GK=b({"src/compiler/tsbuildPublic.ts"(){XK(),XK(),lo(),AQ=new Date(-864e13),wQ=new Date(864e13),DQ=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(DQ||{})}}),XK=b({"src/compiler/_namespaces/ts.ts"(){k(),Hn(),$n(),lr(),Cr(),Ar(),uo(),To(),Ko(),Ja(),is(),Gs(),tp(),YT(),tC(),iC(),fC(),IC(),YA(),iw(),hF(),IP(),GP(),TO(),iM(),RR(),HR(),GR(),ej(),hj(),Oj(),uJ(),kJ(),wJ(),EJ(),FJ(),IJ(),LJ(),RJ(),JJ(),UJ(),VJ(),KJ(),HJ(),XJ(),ZJ(),tz(),iz(),az(),_z(),uz(),pz(),mz(),hz(),kz(),Fz(),Wz(),SU(),$U(),Uq(),qq(),Wq(),CV(),EV(),jV(),hQ(),TQ(),EQ(),GK(),zB(),lo()}});function YK(t,n){return new zn(He(n,"ts"+e)||He(n,"latest")).compareTo(t.version)<=0}function ZK(e){return WK.has(e)?"node":e}function eW(e,t){const n=UO(t,(t=>e.readFile(t)));return new Map(Object.entries(n.config))}function tW(e,t){var n;const r=UO(t,(t=>e.readFile(t)));if(null==(n=r.config)?void 0:n.simpleMap)return new Map(Object.entries(r.config.simpleMap))}function nW(e,t,n,r,i,o,a,s,c,_){if(!a||!a.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const l=new Map;n=Z(n,(e=>{const t=va(e);if(LS(t))return t}));const u=[];a.include&&h(a.include,"Explicitly included types");const d=a.exclude||[];if(!_.types){const e=new Set(n.map(sa));e.add(r),e.forEach((e=>{y(e,"bower.json","bower_components",u),y(e,"package.json","node_modules",u)}))}a.disableFilenameBasedTypeAcquisition||function(e){const n=Z(e,(e=>{if(!LS(e))return;const t=on(US(Et(ca(e))));return i.get(t)}));n.length&&h(n,"Inferred typings from file names"),_e(e,(e=>ta(e,".jsx")))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),g("react"))}(n),s&&h(fe(s.map(ZK),Bt,Qt),"Inferred typings from unresolved imports"),o.forEach(((e,t)=>{const n=c.get(t);l.has(t)&&void 0===l.get(t)&&void 0!==n&&YK(e,n)&&l.set(t,e.typingLocation)}));for(const e of d)l.delete(e)&&t&&t(`Typing for ${e} is in exclude list, will be ignored.`);const p=[],f=[];l.forEach(((e,t)=>{void 0!==e?f.push(e):p.push(t)}));const m={cachedTypingPaths:f,newTypingNames:p,filesToWatch:u};return t&&t("Result: "+JSON.stringify(m)),m;function g(e){l.has(e)||l.set(e,void 0)}function h(e,n){t&&t(`${n}: ${JSON.stringify(e)}`),T(e,g)}function y(n,r,i,o){const a=ma(n,r);let s,c;e.fileExists(a)&&(o.push(a),s=UO(a,(t=>e.readFile(t))).config,c=H([s.dependencies,s.devDependencies,s.optionalDependencies,s.peerDependencies],$e),h(c,`Typing names in '${a}' dependencies`));const _=ma(n,i);if(o.push(_),!e.directoryExists(_))return;const u=[],d=c?c.map((e=>ma(_,e,r))):e.readDirectory(_,[".json"],void 0,void 0,3).filter((e=>{if(ca(e)!==r)return!1;const t=ua(va(e)),n="@"===t[t.length-3][0];return n&&Et(t[t.length-4])===i||!n&&Et(t[t.length-3])===i}));t&&t(`Searching for typing names in ${_}; all files: ${JSON.stringify(d)}`);for(const n of d){const r=va(n),i=UO(r,(t=>e.readFile(t))).config;if(!i.name)continue;const o=i.types||i.typings;if(o){const n=ya(o,sa(r));e.fileExists(n)?(t&&t(` Package '${i.name}' provides its own types.`),l.set(i.name,n)):t&&t(` Package '${i.name}' provides its own types but they are missing.`)}else u.push(i.name)}h(u," Found package names")}}function rW(e){return iW(e,!0)}function iW(e,t){if(!e)return 1;if(e.length>$K)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){const t=/^@([^/]+)\/([^/]+)$/.exec(e);if(t){const e=iW(t[1],!1);if(0!==e)return{name:t[1],isScopeName:!0,result:e};const n=iW(t[2],!1);return 0!==n?{name:t[2],isScopeName:!1,result:n}:0}}return encodeURIComponent(e)!==e?5:0}function oW(e,t){return"object"==typeof e?aW(t,e.result,e.name,e.isScopeName):aW(t,e,t,!1)}function aW(e,t,n,r){const i=r?"Scope":"Package";switch(t){case 1:return`'${e}':: ${i} name '${n}' cannot be empty`;case 2:return`'${e}':: ${i} name '${n}' should be less than ${$K} characters`;case 3:return`'${e}':: ${i} name '${n}' cannot start with '.'`;case 4:return`'${e}':: ${i} name '${n}' cannot start with '_'`;case 5:return`'${e}':: ${i} name '${n}' contains non URI safe characters`;case 0:return In.fail();default:throw In.assertNever(t)}}var sW=b({"src/jsTyping/jsTyping.ts"(){HW(),QK=(VK=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"]).map((e=>"node:"+e)),KK=[...VK,...QK],WK=new Set(KK),HK=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(HK||{}),$K=214}}),cW={};x(cW,{NameValidationResult:()=>HK,discoverTypings:()=>nW,isTypingUpToDate:()=>YK,loadSafeList:()=>eW,loadTypesMap:()=>tW,nodeCoreModuleList:()=>KK,nodeCoreModules:()=>WK,nonRelativeModuleNameForTypingCache:()=>ZK,prefixedNodeCoreModuleList:()=>QK,renderPackageNameValidationFailure:()=>oW,validatePackageName:()=>rW});var _W,lW,uW,dW,pW,fW,mW,gW,hW=b({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){sW()}});function yW(e){return So.args.indexOf(e)>=0}function vW(e){const t=So.args.indexOf(e);return t>=0&&tlW,ActionPackageInstalled:()=>uW,ActionSet:()=>_W,Arguments:()=>gW,EventBeginInstallTypes:()=>pW,EventEndInstallTypes:()=>fW,EventInitializationFailed:()=>mW,EventTypesRegistry:()=>dW,findArgument:()=>vW,hasArgument:()=>yW,nowString:()=>bW});var TW,CW,AW,wW,DW,EW,NW,FW,PW,IW,OW,LW,MW,RW,BW,jW,JW,zW,UW,qW,VW,QW,KW,WW=b({"src/jsTyping/_namespaces/ts.server.ts"(){xW(),kW()}}),HW=b({"src/jsTyping/_namespaces/ts.ts"(){XK(),hW(),WW()}});function $W(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0}}var GW,XW,YW,ZW,eH,tH,nH,rH,iH,oH=b({"src/services/types.ts"(){(e=>{class t{constructor(e){this.text=e}getText(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)}getLength(){return this.text.length}getChangeRange(){}}e.fromString=function(e){return new t(e)}})(TW||(TW={})),CW=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(CW||{}),AW=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(AW||{}),wW=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(wW||{}),DW={},EW=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(EW||{}),NW=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(NW||{}),FW=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(FW||{}),PW=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(PW||{}),IW=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(IW||{}),OW=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(OW||{}),LW=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(LW||{}),MW=$W("\n"),RW=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(RW||{}),BW=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(BW||{}),jW=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(jW||{}),JW=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(JW||{}),zW=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(zW||{}),UW=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(UW||{}),qW=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(qW||{}),VW=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(VW||{}),QW=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(QW||{}),KW=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(KW||{})}});function aH(e){switch(e.kind){case 257:return Sg(e)&&f_(e)?7:1;case 166:case 205:case 169:case 168:case 299:case 300:case 171:case 170:case 173:case 174:case 175:case 259:case 215:case 216:case 295:case 288:return 1;case 165:case 261:case 262:case 184:return 2;case 349:return void 0===e.name?3:2;case 302:case 260:return 3;case 264:return df(e)||1===BR(e)?5:4;case 263:case 272:case 273:case 268:case 269:case 274:case 275:return 7;case 308:return 5}return 7}function sH(e){const t=(e=s$(e)).parent;return 308===e.kind?1:HE(t)||XE(t)||rN(t)||WE(t)||JE(t)||BE(t)&&e===t.name?7:cH(e)?function(e){const t=163===e.kind?e:jw(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&268===t.parent.kind?7:4}(e):Xh(e)?aH(t):bl(e)&&Ec(e,vn(DN,td,EN))?7:function(e){switch(Wb(e)&&(e=e.parent),e.kind){case 108:return!pg(e);case 194:return!0}switch(e.parent.kind){case 180:return!0;case 202:return!e.parent.isTypeOf;case 230:return hm(e.parent)}return!1}(e)?2:function(e){return function(e){let t=e,n=!0;if(163===t.parent.kind){for(;t.parent&&163===t.parent.kind;)t=t.parent;n=t.right===e}return 180===t.parent.kind&&!n}(e)||function(e){let t=e,n=!0;if(208===t.parent.kind){for(;t.parent&&208===t.parent.kind;)t=t.parent;n=t.name===e}if(!n&&230===t.parent.kind&&294===t.parent.parent.kind){const e=t.parent.parent.parent;return 260===e.kind&&117===t.parent.parent.token||261===e.kind&&94===t.parent.parent.token}return!1}(e)}(e)?4:zw(t)?(In.assert(sF(t.parent)),2):xD(t)?3:1}function cH(e){for(;163===e.parent.kind;)e=e.parent;return bg(e.parent)&&e.parent.moduleReference===e}function _H(e,t=!1,n=!1){return yH(e,PD,mH,t,n)}function lH(e,t=!1,n=!1){return yH(e,ID,mH,t,n)}function uH(e,t=!1,n=!1){return yH(e,tu,mH,t,n)}function dH(e,t=!1,n=!1){return yH(e,OD,gH,t,n)}function pH(e,t=!1,n=!1){return yH(e,qw,mH,t,n)}function fH(e,t=!1,n=!1){return yH(e,Ju,hH,t,n)}function mH(e){return e.expression}function gH(e){return e.tag}function hH(e){return e.tagName}function yH(e,t,n,r,i){let o=r?bH(e):vH(e);return i&&(o=UF(o)),!!o&&!!o.parent&&t(o.parent)&&n(o.parent)===o}function vH(e){return DH(e)?e.parent:e}function bH(e){return DH(e)||EH(e)?e.parent:e}function xH(e,t){for(;e;){if(253===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}}function kH(e,t){return!!ND(e.expression)&&e.expression.name.text===t}function SH(e){var t;return Tw(e)&&(null==(t=xt(e.parent,V_))?void 0:t.label)===e}function TH(e){var t;return Tw(e)&&(null==(t=xt(e.parent,SE))?void 0:t.label)===e}function CH(e){return TH(e)||SH(e)}function AH(e){var t;return(null==(t=xt(e.parent,Vu))?void 0:t.tagName)===e}function wH(e){var t;return(null==(t=xt(e.parent,jw))?void 0:t.right)===e}function DH(e){var t;return(null==(t=xt(e.parent,ND))?void 0:t.name)===e}function EH(e){var t;return(null==(t=xt(e.parent,FD))?void 0:t.argumentExpression)===e}function NH(e){var t;return(null==(t=xt(e.parent,OE))?void 0:t.name)===e}function FH(e){var t;return Tw(e)&&(null==(t=xt(e.parent,Sl))?void 0:t.name)===e}function PH(e){switch(e.parent.kind){case 169:case 168:case 299:case 302:case 171:case 170:case 174:case 175:case 264:return qc(e.parent)===e;case 209:return e.parent.argumentExpression===e;case 164:return!0;case 198:return 196===e.parent.parent.kind;default:return!1}}function IH(e){return hg(e.parent.parent)&&yg(e.parent.parent)===e}function OH(e){for(vh(e)&&(e=e.parent.parent);;){if(!(e=e.parent))return;switch(e.kind){case 308:case 171:case 170:case 259:case 215:case 174:case 175:case 260:case 261:case 263:case 264:return e}}}function LH(e){switch(e.kind){case 308:return wI(e)?"module":"script";case 264:return"module";case 260:case 228:return"class";case 261:return"interface";case 262:case 341:case 349:return"type";case 263:return"enum";case 257:return t(e);case 205:return t(qy(e));case 216:case 259:case 215:return"function";case 174:return"getter";case 175:return"setter";case 171:case 170:return"method";case 299:const{initializer:n}=e;return Sl(n)?"method":"property";case 169:case 168:case 300:case 301:return"property";case 178:return"index";case 177:return"construct";case 176:return"call";case 173:case 172:return"constructor";case 165:return"type parameter";case 302:return"enum member";case 166:return cb(e,16476)?"property":"parameter";case 268:case 273:case 278:case 271:case 277:return"alias";case 223:const r=Hg(e),{right:i}=e;switch(r){case 7:case 8:case 9:case 0:default:return"";case 1:case 2:const e=LH(i);return""===e?"const":e;case 3:case 5:return RD(i)?"method":"property";case 4:return"property";case 6:return"local class"}case 79:return JE(e.parent)?"alias":"";case 274:const o=LH(e.expression);return""===o?"const":o;default:return""}function t(e){return im(e)?"const":om(e)?"let":"var"}}function MH(e){switch(e.kind){case 108:return!0;case 79:return Vv(e)&&166===e.parent.kind;default:return!1}}function RH(e,t){return fs(t)[t.getLineAndCharacterOfPosition(e).line]}function BH(e,t){return UH(e.pos,e.end,t)}function jH(e,t){return zH(e,t.pos)&&zH(e,t.end)}function JH(e,t){return e.pos<=t&&t<=e.end}function zH(e,t){return e.pos=n.end}function qH(e,t,n){return e.pos<=t&&e.end>=n}function VH(e,t,n){return KH(e.pos,e.end,t,n)}function QH(e,t,n,r){return KH(e.getStart(t),e.end,n,r)}function KH(e,t,n,r){return Math.max(e,n)e.kind===t))}function ZH(e){const t=P(e.parent.getChildren(),(t=>fF(t)&&BH(t,e)));return In.assert(!t||R(t.getChildren(),e)),t}function e$(e){return 88===e.kind}function t$(e){return 84===e.kind}function n$(e){return 98===e.kind}function r$(e,t){if(8388608&e.flags)return;const n=LX(e,t);if(n)return n;const r=function(e){let t;return Ec(e,(e=>(Jl(e)&&(t=e),!jw(e.parent)&&!Jl(e.parent)&&!Rl(e.parent)))),t}(e);return r&&t.getTypeAtLocation(r)}function i$(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(KE(e.importClause.namedBindings)){const t=Je(e.importClause.namedBindings.elements);if(!t)return;return t.name}if(VE(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function o$(e,t){if(e.exportClause){if(GE(e.exportClause)){if(!Je(e.exportClause.elements))return;return e.exportClause.elements[0].name}if(QE(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function a$(e,t){const{parent:n}=e;if(vl(e)&&(t||88!==e.kind)?LP(n)&&R(n.modifiers,e):84===e.kind?NE(n)||GD(e):98===e.kind?EE(n)||RD(e):118===e.kind?FE(n):92===e.kind?IE(n):154===e.kind?PE(n):143===e.kind||142===e.kind?OE(n):100===e.kind?BE(n):137===e.kind?Gw(n):151===e.kind&&Xw(n)){const e=function(e,t){if(!t)switch(e.kind){case 260:case 228:return function(e){if(zc(e))return e.name;if(NE(e)){const t=e.modifiers&&P(e.modifiers,e$);if(t)return t}if(GD(e)){const t=P(e.getChildren(),t$);if(t)return t}}(e);case 259:case 215:return function(e){if(zc(e))return e.name;if(EE(e)){const t=P(e.modifiers,e$);if(t)return t}if(RD(e)){const t=P(e.getChildren(),n$);if(t)return t}}(e);case 173:return e}if(zc(e))return e.name}(n,t);if(e)return e}if((113===e.kind||85===e.kind||119===e.kind)&&DE(n)&&1===n.declarations.length){const e=n.declarations[0];if(Tw(e.name))return e.name}if(154===e.kind){if(JE(n)&&n.isTypeOnly){const e=i$(n.parent,t);if(e)return e}if($E(n)&&n.isTypeOnly){const e=o$(n,t);if(e)return e}}if(128===e.kind){if(WE(n)&&n.propertyName||XE(n)&&n.propertyName||VE(n)||QE(n))return n.name;if($E(n)&&n.exportClause&&QE(n.exportClause))return n.exportClause.name}if(100===e.kind&&jE(n)){const e=i$(n,t);if(e)return e}if(93===e.kind){if($E(n)){const e=o$(n,t);if(e)return e}if(HE(n))return UF(n.expression)}if(147===e.kind&&rN(n))return n.expression;if(158===e.kind&&(jE(n)||$E(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((94===e.kind||117===e.kind)&&hN(n)&&n.token===e.kind){const e=function(e){if(1===e.types.length)return e.types[0].expression}(n);if(e)return e}if(94===e.kind){if(zw(n)&&n.constraint&&nD(n.constraint))return n.constraint.typeName;if(fD(n)&&nD(n.extendsType))return n.extendsType.typeName}if(138===e.kind&&mD(n))return n.typeParameter.name;if(101===e.kind&&zw(n)&&bD(n.parent))return n.name;if(141===e.kind&&yD(n)&&141===n.operator&&nD(n.type))return n.type.typeName;if(146===e.kind&&yD(n)&&146===n.operator&&sD(n.type)&&nD(n.type.elementType))return n.type.elementType.typeName;if(!t){if((103===e.kind&&ID(n)||114===e.kind&&zD(n)||112===e.kind&&JD(n)||133===e.kind&&UD(n)||125===e.kind&&HD(n)||89===e.kind&&jD(n))&&n.expression)return UF(n.expression);if((101===e.kind||102===e.kind)&&QD(n)&&n.operatorToken===e)return UF(n.right);if(128===e.kind&&ZD(n)&&nD(n.type))return n.type.typeName;if(101===e.kind&&gE(n)||162===e.kind&&hE(n))return UF(n.expression)}return e}function s$(e){return a$(e,!1)}function c$(e){return a$(e,!0)}function _$(e,t){return l$(e,t,(e=>Ey(e)||fy(e.kind)||Cw(e)))}function l$(e,t,n){return d$(e,t,!1,n,!1)}function u$(e,t){return d$(e,t,!0,void 0,!1)}function d$(e,t,n,r,i){let o,a=e;for(;;){const i=a.getChildren(e),c=Qe(i,t,((e,t)=>t),((o,a)=>{const c=i[o].getEnd();if(ct?1:s(i[o],_,c)?i[o-1]&&s(i[o-1])?1:0:r&&_===t&&i[o-1]&&i[o-1].getEnd()===t&&s(i[o-1])?1:-1}));if(o)return o;if(!(c>=0&&i[c]))return a;a=i[c]}function s(a,s,c){if(null!=c||(c=a.getEnd()),ct)return!1;if(tn.getStart(e)&&t(r.pos<=e.pos&&r.end>e.end||r.pos===e.end)&&I$(r,n)?t(r):void 0))}(t)}function g$(e,t,n,r){const i=function i(o){if(h$(o)&&1!==o.kind)return o;const a=o.getChildren(t),s=Qe(a,e,((e,t)=>t),((t,n)=>e=a[t-1].end?0:1:-1));if(s>=0&&a[s]){const n=a[s];if(e=e||!I$(n,t)||k$(n)){const e=v$(a,s,t,o.kind);return e&&y$(e,t)}return i(n)}}In.assert(void 0!==n||308===o.kind||1===o.kind||qu(o));const c=v$(a,a.length,t,o.kind);return c&&y$(c,t)}(n||t);return In.assert(!(i&&k$(i))),i}function h$(e){return Y_(e)&&!k$(e)}function y$(e,t){if(h$(e))return e;const n=e.getChildren(t);if(0===n.length)return e;const r=v$(n,n.length,t,e.kind);return r&&y$(r,t)}function v$(e,t,n,r){for(let i=t-1;i>=0;i--)if(k$(e[i]))0!==i||11!==r&&282!==r||In.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(I$(e[i],n))return e[i]}function b$(e,t,n=g$(t,e)){if(n&&ul(n)){const r=n.getStart(e),i=n.getEnd();if(rn.getStart(e)}function T$(e,t){const n=u$(e,t);return!!cw(n)||!(18!==n.kind||!fN(n.parent)||!iN(n.parent.parent))||!(29!==n.kind||!Ju(n.parent)||!iN(n.parent.parent))}function C$(e,t){return function(n){for(;n;)if(n.kind>=282&&n.kind<=291||11===n.kind||29===n.kind||31===n.kind||79===n.kind||19===n.kind||18===n.kind||43===n.kind)n=n.parent;else{if(281!==n.kind)return!1;if(t>n.getStart(e))return!0;n=n.parent}return!1}(u$(e,t))}function A$(e,t,n){const r=_s(e.kind),i=_s(t),o=e.getFullStart(),a=n.text.lastIndexOf(i,o);if(-1===a)return;if(n.text.lastIndexOf(r,o-1)!!e.typeParameters&&e.typeParameters.length>=t))}function N$(e,t){if(-1===t.text.lastIndexOf("<",e?e.pos:t.text.length))return;let n=e,r=0,i=0;for(;n;){switch(n.kind){case 29:if(n=g$(n.getFullStart(),t),n&&28===n.kind&&(n=g$(n.getFullStart(),t)),!n||!Tw(n))return;if(!r)return Xh(n)?void 0:{called:n,nTypeArguments:i};r--;break;case 49:r=3;break;case 48:r=2;break;case 31:r++;break;case 19:if(n=A$(n,18,t),!n)return;break;case 21:if(n=A$(n,20,t),!n)return;break;case 23:if(n=A$(n,22,t),!n)return;break;case 27:i++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 141:case 24:case 51:case 57:case 58:break;default:if(Jl(n))break;return}n=g$(n.getFullStart(),t)}}function F$(e,t,n){return afe.getRangeOfEnclosingComment(e,t,void 0,n)}function P$(e,t){return!!Ec(u$(e,t),zN)}function I$(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function O$(e,t=0){const n=[],r=Nu(e)?Cc(e)&~t:0;return 8&r&&n.push("private"),16&r&&n.push("protected"),4&r&&n.push("public"),(32&r||Hw(e))&&n.push("static"),256&r&&n.push("abstract"),1&r&&n.push("export"),8192&r&&n.push("deprecated"),16777216&e.flags&&n.push("declare"),274===e.kind&&n.push("export"),n.length>0?n.join(","):""}function L$(e){return 180===e.kind||210===e.kind?e.typeArguments:Sl(e)||260===e.kind||261===e.kind?e.typeParameters:void 0}function M$(e){return 2===e||3===e}function R$(e){return!(10!==e&&13!==e&&!rl(e))}function B$(e){if(!e.isIntersection())return!1;const{types:t,checker:n}=e;return 2===t.length&&4&t[0].flags&&n.isEmptyAnonymousObjectType(t[1])}function j$(e){return 18<=e&&e<=78}function J$(e,t,n){return rl(e.kind)&&e.getStart(n){const n=qB(t);return!e[n]&&(e[n]=!0)}}function aG(e){return e.getText(0,e.getLength())}function sG(e,t){let n="";for(let r=0;r!(t.isDeclarationFile||e.isSourceFileFromExternalLibrary(t)||!t.externalModuleIndicator&&!t.commonJsModuleIndicator)))}function uG(e){return e.getSourceFiles().some((t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator))}function dG(e){return!!e.module||Rk(e)>=2||!!e.noEmit}function pG(e,t){return{fileExists:t=>e.fileExists(t),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:lt(t,t.readFile),useCaseSensitiveFileNames:lt(t,t.useCaseSensitiveFileNames),getSymlinkCache:lt(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:lt(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var t;return null==(t=e.getModuleResolutionCache())?void 0:t.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:lt(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),getNearestAncestorDirectoryWithPackageJson:lt(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons()}}function fG(e,t){return{...pG(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function mG(e){return 2===e||e>=3&&e<=99||100===e}function gG(e,t,n,r){return e||t&&t.length?hG(e,t,n,r):void 0}function hG(e,t,n,r,i){return dC.createImportDeclaration(void 0,e||t?dC.createImportClause(!!i,e,t&&t.length?dC.createNamedImports(t):void 0):void 0,"string"==typeof n?yG(n,r):n,void 0)}function yG(e,t){return dC.createStringLiteral(e,0===t)}function vG(e,t){return Lg(e,t)?1:0}function bG(e,t){if(t.quotePreference&&"auto"!==t.quotePreference)return"single"===t.quotePreference?0:1;{const t=e.imports&&P(e.imports,(e=>sw(e)&&!Qy(e.parent)));return t?vG(t,e):1}}function xG(e){switch(e){case 0:return"'";case 1:return'"';default:return In.assertNever(e)}}function kG(e){const t=SG(e);return void 0===t?void 0:Ic(t)}function SG(e){return"default"!==e.escapedName?e.escapedName:A(e.declarations,(e=>{const t=qc(e);return t&&79===t.kind?t.escapedText:void 0}))}function TG(e){return ed(e)&&(rN(e.parent)||jE(e.parent)||Dg(e.parent,!1)&&e.parent.arguments[0]===e||sm(e.parent)&&e.parent.arguments[0]===e)}function CG(e){return wD(e)&&CD(e.parent)&&Tw(e.name)&&!e.propertyName}function AG(e,t){const n=e.getTypeAtLocation(t.parent);return n&&e.getPropertyOfType(n,t.name.text)}function wG(e,t,n){if(e)for(;e.parent;){if(TN(e.parent)||!DG(n,e.parent,t))return e;e=e.parent}}function DG(e,t,n){return nc(e,t.getStart(n))&&t.getEnd()<=ec(e)}function EG(e,t){return LP(e)?P(e.modifiers,(e=>e.kind===t)):void 0}function NG(e,t,n,r,i){const o=240===(ht(n)?n[0]:n).kind?Ig:Df,a=z(t.statements,o);let s=ht(n)?Rae.detectImportDeclarationSorting(n,i):3;const c=Rae.getOrganizeImportsComparer(i,2===s),_=ht(n)?Pe(n,((e,t)=>Rae.compareImportsOrRequireStatements(e,t,c))):[n];if(a.length)if(a&&(s=Rae.detectImportDeclarationSorting(a,i))){const n=Rae.getOrganizeImportsComparer(i,2===s);for(const r of _){const i=Rae.getImportDeclarationInsertionIndex(a,r,n);if(0===i){const n=a[0]===t.statements[0]?{leadingTriviaOption:rde.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,a[0],r,!1,n)}else{const n=a[i-1];e.insertNodeAfter(t,n,r)}}}else{const n=Be(a);n?e.insertNodesAfter(t,n,_):e.insertNodesAtTopOfFile(t,_,r)}else e.insertNodesAtTopOfFile(t,_,r)}function FG(e,t){return In.assert(e.isTypeOnly),kt(e.getChildAt(0,t),nG)}function PG(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function IG(e,t){return e.fileName===t.fileName&&PG(e.textSpan,t.textSpan)}function OG(e,t){if(e)for(let n=0;n!!Uw(e)||!(wD(e)||CD(e)||AD(e))&&"quit"))}function JG(e,t){return zG(e,function(e){const t=e.flags;return 3&t?jG(e)?13:9:4&t||32768&t||65536&t?14:8&t?19:16&t?20:32&t?1:64&t?4:384&t?2:1536&t?11:8192&t?10:262144&t?18:524288&t||2097152&t?0:17}(t))}function zG(e,t){return{text:e,kind:RW[t]}}function UG(){return zG(" ",16)}function qG(e){return zG(_s(e),5)}function VG(e){return zG(_s(e),15)}function QG(e){return zG(_s(e),12)}function KG(e){return zG(e,13)}function WG(e){return zG(e,14)}function HG(e){const t=ls(e);return void 0===t?$G(e):qG(t)}function $G(e){return zG(e,17)}function GG(e){return zG(e,0)}function XG(e){return zG(e,18)}function YG(e){return zG(e,24)}function ZG(e,t){return{text:e,kind:RW[23],target:{fileName:wp(t).fileName,textSpan:H$(t)}}}function eX(e){return zG(e,22)}function tX(e,t){var n;const r=[eX(`{@${NN(e)?"link":FN(e)?"linkcode":"linkplain"} `)];if(e.name){const i=null==t?void 0:t.getSymbolAtLocation(e.name),o=function(e){let t=e.indexOf("://");if(0===t){for(;t"===e[n]&&t--,n++,!t)return n}return 0}(e.text),a=ef(e.name)+e.text.slice(0,o),s=function(e){let t=0;if(124===e.charCodeAt(t++)){for(;t{e.writeType(t,n,17408|r,i)}))}function aX(e,t,n,r,i=0){return iX((o=>{e.writeSymbol(t,n,r,8|i,o)}))}function sX(e,t,n,r=0){return r|=25632,iX((i=>{e.writeSignature(t,n,r,void 0,i)}))}function cX(e,t){const n=t.getSourceFile();return iX((t=>{Kz().writeNode(4,e,n,t)}))}function _X(e){return!!e.parent&&al(e.parent)&&e.parent.propertyName===e}function lX(e,t){return FS(e,t.getScriptKind&&t.getScriptKind(e))}function uX(e,t){let n=e;for(;dX(n)||op(n)&&n.links.target;)n=op(n)&&n.links.target?n.links.target:Ix(n,t);return n}function dX(e){return 0!=(2097152&e.flags)}function pX(e,t){return VB(Ix(e,t))}function fX(e,t){for(;vs(e.charCodeAt(t));)t+=1;return t}function mX(e,t){for(;t>-1&&bs(e.charCodeAt(t));)t-=1;return t+1}function gX(e,t=!0){const n=e&&yX(e);return n&&!t&&xX(n),n}function hX(e,t,n){let r=n(e);return r?PC(r,e):r=yX(e,n),r&&!t&&xX(r),r}function yX(e,t){const n=t?e=>hX(e,!0,t):gX,r=uj(e,n,Nz,t?e=>e&&bX(e,!0,t):e=>e&&vX(e),n);return r===e?OP(sw(e)?PC(dC.createStringLiteralFromNode(e),e):ow(e)?PC(dC.createNumericLiteral(e.text,e.numericLiteralFlags),e):dC.cloneNode(e),e):(r.parent=void 0,r)}function vX(e,t=!0){return e&&dC.createNodeArray(e.map((e=>gX(e,t))),e.hasTrailingComma)}function bX(e,t,n){return dC.createNodeArray(e.map((e=>hX(e,t,n))),e.hasTrailingComma)}function xX(e){kX(e),SX(e)}function kX(e){CX(e,1024,AX)}function SX(e){CX(e,2048,Hx)}function TX(e,t){const n=e.getSourceFile();!function(e,t){const n=e.getFullStart(),r=e.getStart();for(let e=n;ee))}function wX(e,t){let n=e;for(let r=1;!Op(t,n);r++)n=`${e}_${r}`;return n}function DX(e,t,n,r){let i=0,o=-1;for(const{fileName:a,textChanges:s}of e){In.assert(a===t);for(const e of s){const{span:t,newText:a}=e,s=IX(a,iv(n));if(-1!==s&&(o=t.start+i+s,!r))return o;i+=a.length-t.length}}return In.assert(r),In.assert(o>=0),o}function EX(e,t,n,r,i){Ps(n.text,e.pos,PX(t,n,r,i,XC))}function NX(e,t,n,r,i){Is(n.text,e.end,PX(t,n,r,i,eA))}function FX(e,t,n,r,i){Is(n.text,e.pos,PX(t,n,r,i,XC))}function PX(e,t,n,r,i){return(o,a,s,c)=>{3===s?(o+=2,a-=2):o+=2,i(e,n||s,t.text.slice(o,a),void 0!==r?r:c)}}function IX(e,t){if(fn(e,t))return 0;let n=e.indexOf(" "+t);return-1===n&&(n=e.indexOf("."+t)),-1===n&&(n=e.indexOf('"'+t)),-1===n?-1:n+1}function OX(e){return QD(e)&&27===e.operatorToken.kind||ED(e)||ZD(e)&&ED(e.expression)}function LX(e,t,n){const r=Qh(e.parent);switch(r.kind){case 211:return t.getContextualType(r,n);case 223:{const{left:i,operatorToken:o,right:a}=r;return RX(o.kind)?t.getTypeAtLocation(e===a?i:a):t.getContextualType(e,n)}case 292:return JX(r,t);default:return t.getContextualType(e,n)}}function MX(e,t,n){const r=bG(e,t),i=JSON.stringify(n);return 0===r?`'${cv(i).replace(/'/g,"\\'").replace(/\\"/g,'"')}'`:i}function RX(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function BX(e){switch(e.kind){case 10:case 14:case 225:case 212:return!0;default:return!1}}function jX(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function JX(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function zX(e,t,n,r){const i=n.getTypeChecker();let o=!0;const a=()=>o=!1,s=i.typeToTypeNode(e,t,1,{trackSymbol:(e,t,n)=>(o=o&&0===i.isSymbolAccessible(e,t,n,!1).accessibility,!o),reportInaccessibleThisError:a,reportPrivateInBaseOfClassExpression:a,reportInaccessibleUniqueSymbolError:a,moduleResolverHost:fG(n,r)});return o?s:void 0}function UX(e){return 176===e||177===e||178===e||168===e||170===e}function qX(e){return 259===e||173===e||171===e||174===e||175===e}function VX(e){return 264===e}function QX(e){return 240===e||241===e||243===e||248===e||249===e||250===e||254===e||256===e||169===e||262===e||269===e||268===e||275===e||267===e||274===e}function KX(e,t,n){const r=Ec(t,(t=>t.end!==e?"quit":iH(t.kind)));return!!r&&function(e,t){const n=e.getLastToken(t);if(n&&26===n.kind)return!1;if(UX(e.kind)){if(n&&27===n.kind)return!1}else if(VX(e.kind)){const n=je(e.getChildren(t));if(n&&LE(n))return!1}else if(qX(e.kind)){const n=je(e.getChildren(t));if(n&&Fm(n))return!1}else if(!QX(e.kind))return!1;if(243===e.kind)return!0;const r=m$(e,Ec(e,(e=>!e.parent)),t);return!r||19===r.kind||t.getLineAndCharacterOfPosition(e.getEnd()).line!==t.getLineAndCharacterOfPosition(r.getStart(t)).line}(r,n)}function WX(e){let t=0,n=0;return bI(e,(function r(i){if(QX(i.kind)){const r=i.getLastToken(e);26===(null==r?void 0:r.kind)?t++:n++}else if(UX(i.kind)){const r=i.getLastToken(e);26===(null==r?void 0:r.kind)?t++:r&&27!==r.kind&&ys(e,r.getStart(e)).line!==ys(e,Xf(e,r.end).start).line&&n++}return t+n>=5||bI(i,r)})),0===t&&n<=1||t/n>.2}function HX(e,t){return ZX(e,e.getDirectories,t)||[]}function $X(e,t,n,i,o){return ZX(e,e.readDirectory,t,n,i,o)||r}function GX(e,t){return ZX(e,e.fileExists,t)}function XX(e,t){return YX((()=>ox(t,e)))||!1}function YX(e){try{return e()}catch(e){return}}function ZX(e,t,...n){return YX((()=>t&&t.apply(e,n)))}function eY(e,t,n){const r=[];return Ra(e,(e=>{if(e===n)return!0;const i=ma(e,"package.json");GX(t,i)&&r.push(i)})),r}function tY(e,t){let n;return Ra(e,(e=>"node_modules"===e||(n=GU(e,(e=>GX(t,e)),"package.json"),!!n||void 0))),n}function nY(e,t){if(!t.fileExists)return[];const n=[];return Ra(sa(e),(e=>{const r=ma(e,"package.json");if(t.fileExists(r)){const e=rY(r,t);e&&n.push(e)}})),n}function rY(e,t){if(!t.readFile)return;const n=["dependencies","devDependencies","optionalDependencies","peerDependencies"],r=function(e){try{return JSON.parse(e)}catch(e){return}}(t.readFile(e)||""),i={};if(r)for(const e of n){const t=r[e];if(!t)continue;const n=new Map;for(const e in t)n.set(e,t[e]);i[e]=n}const o=[[1,i.dependencies],[2,i.devDependencies],[8,i.optionalDependencies],[4,i.peerDependencies]];return{...i,parseable:!!r,fileName:e,get:a,has:(e,t)=>!!a(e,t)};function a(e,t=15){for(const[n,r]of o)if(r&&t&n){const t=r.get(e);if(void 0!==t)return t}}}function iY(e,t,n){const r=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(e.fileName)||nY(e.fileName,n)).filter((e=>e.parseable));let i,o,a;return{allowsImportingAmbientModule:function(e,t){if(!r.length||!e.valueDeclaration)return!0;if(o){const t=o.get(e);if(void 0!==t)return t}else o=new Map;const n=cv(e.getName());if(c(n))return o.set(e,!0),!0;const i=_(e.valueDeclaration.getSourceFile().fileName,t);if(void 0===i)return o.set(e,!0),!0;const a=s(i)||s(n);return o.set(e,a),a},allowsImportingSourceFile:function(e,t){if(!r.length)return!0;if(a){const t=a.get(e);if(void 0!==t)return t}else a=new Map;const n=_(e.fileName,t);if(!n)return a.set(e,!0),!0;const i=s(n);return a.set(e,i),i},allowsImportingSpecifier:function(e){return!(r.length&&!c(e))||!(!Yo(e)&&!$o(e))||s(e)}};function s(e){const t=l(e);for(const e of r)if(e.has(t)||e.has(CR(t)))return!0;return!1}function c(t){return!!(xg(e)&&cW.nodeCoreModules.has(t)&&(void 0===i&&(i=oY(e)),i))}function _(r,i){if(!rn(r,"node_modules"))return;const o=CB.getNodeModulesPackageName(n.getCompilationSettings(),e,r,i,t);return o?Yo(o)||$o(o)?void 0:l(o):void 0}function l(e){const t=ua(wR(e)).slice(1);return fn(t[0],"@")?`${t[0]}/${t[1]}`:t[0]}}function oY(e){return _e(e.imports,(({text:e})=>cW.nodeCoreModules.has(e)))}function aY(e){return R(ua(e),"node_modules")}function sY(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function cY(e,t){const n=Qe(t,H$(e),wt,zt);if(n>=0){const r=t[n];return In.assertEqual(r.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),kt(r,sY)}}function _Y(e,t){var n;let r=Qe(t,e.start,(e=>e.start),Jt);for(r<0&&(r=~r);(null==(n=t[r-1])?void 0:n.start)===e.start;)r--;const i=[],o=ec(e);for(;;){const n=xt(t[r],sY);if(!n||n.start>o)break;ic(e,n)&&i.push(n),r++}return i}function lY({startPosition:e,endPosition:t}){return pc(e,void 0===t?e:t)}function uY(e,t){return Ec(u$(e,t.start),(n=>n.getStart(e)ec(t)?"quit":_u(n)&&PG(t,H$(n,e))))}function dY(e,t,n=wt){return e?ht(e)?n(V(e,t)):t(e,0):void 0}function pY(e){return ht(e)?Me(e):e}function fY(e,t){if(gY(e)){const n=hY(e);if(n)return n;const r=Ine.moduleSymbolToValidIdentifier(yY(e),t,!1),i=Ine.moduleSymbolToValidIdentifier(yY(e),t,!0);return r===i?r:[r,i]}return e.name}function mY(e,t,n){return gY(e)?hY(e)||Ine.moduleSymbolToValidIdentifier(yY(e),t,!!n):e.name}function gY(e){return!(33554432&e.flags||"export="!==e.escapedName&&"default"!==e.escapedName)}function hY(e){return A(e.declarations,(e=>{var t,n;return HE(e)?null==(t=xt(UF(e.expression),Tw))?void 0:t.text:null==(n=xt(qc(e),Tw))?void 0:n.text}))}function yY(e){var t;return In.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${In.formatSymbolFlags(e.flags)}. Declarations: ${null==(t=e.declarations)?void 0:t.map((e=>{const t=In.formatSyntaxKind(e.kind),n=Sg(e),{expression:r}=e;return(n?"[JS]":"")+t+(r?` (expression: ${In.formatSyntaxKind(r.kind)})`:"")})).join(", ")}.`)}function vY(e,t,n){const r=t.length;if(r+n>e.length)return!1;for(let i=0;iOE(e)&&yf(e))))}function SY(e){return!!(8192&Cc(e))}function TY(e,t){const n=A(e.imports,(e=>{if(cW.nodeCoreModules.has(e.text))return fn(e.text,"node:")}));return null!=n?n:t.usesUriStyleNodeCoreModules}function CY(e){return"\n"===e?1:0}function AY(e){return ht(e)?fk(hk(e[0]),e.slice(1)):hk(e)}function wY({options:e},t){const n=!e.semicolons||"ignore"===e.semicolons,r="remove"===e.semicolons||n&&!WX(t);return{...e,semicolons:r?"remove":"ignore"}}function DY(e){return 2===e||3===e}function EY(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function NY(e,t){const n=new Set,r=new Set,i=new Set;for(const a of t)if(!gN(a)){const t=Hh(a.expression);if(tl(t))switch(t.kind){case 14:case 10:n.add(t.text);break;case 8:r.add(parseInt(t.text));break;case 9:const e=uT(en(t.text,"n")?t.text.slice(0,-1):t.text);e&&i.add(lT(e))}else{const t=e.getSymbolAtLocation(a.expression);if(t&&t.valueDeclaration&&kN(t.valueDeclaration)){const n=e.getConstantValue(t.valueDeclaration);void 0!==n&&o(n)}}}return{addValue:o,hasValue:function(e){switch(typeof e){case"string":return n.has(e);case"number":return r.has(e);case"object":return i.has(lT(e))}}};function o(e){switch(typeof e){case"string":n.add(e);break;case"number":r.add(e)}}}var FY,PY,IY=b({"src/services/utilities.ts"(){lfe(),GW=qs(99,!0),XW=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))(XW||{}),YW=/^\/\/\/\s*(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(eH||{}),tH=function(){const e=10*ad;let t,n,r,i;c();const o=e=>s(e,17);return{displayParts:()=>{const n=t.length&&t[t.length-1].text;return i>e&&n&&"..."!==n&&(vs(n.charCodeAt(n.length-1))||t.push(zG(" ",16)),t.push(zG("...",15))),t},writeKeyword:e=>s(e,5),writeOperator:e=>s(e,12),writePunctuation:e=>s(e,15),writeTrailingSemicolon:e=>s(e,15),writeSpace:e=>s(e,16),writeStringLiteral:e=>s(e,8),writeParameter:e=>s(e,13),writeProperty:e=>s(e,14),writeLiteral:e=>s(e,8),writeSymbol:function(n,r){i>e||(a(),i+=n.length,t.push(JG(n,r)))},writeLine:function(){i>e||(i+=1,t.push(rX()),n=!0)},write:o,writeComment:o,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Nt,getIndent:()=>r,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},clear:c};function a(){if(!(i>e)&&n){const e=lv(r);e&&(i+=e.length,t.push(zG(e,16))),n=!1}}function s(n,r){i>e||(a(),i+=n.length,t.push(zG(n,r)))}function c(){t=[],n=!0,r=0,i=0}}(),nH="\n",rH="anonymous function",iH=vn(UX,qX,VX,QX)}});function OY(e){let t=1;const n=ut(),i=new Map,o=new Map;let a;const s={isUsableByFile:e=>e===a,isEmpty:()=>!n.size,clear:()=>{n.clear(),i.clear(),a=void 0},add:(e,r,c,_,l,u,d,p)=>{let f;if(e!==a&&(s.clear(),a=e),l){const t=jT(l.fileName);if(t){const{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:i}=t;if(f=DR(wR(l.fileName.substring(r+1,i))),fn(e,l.path.substring(0,n))){const e=o.get(f),t=l.fileName.substring(0,r+1);e?n>e.indexOf(nM)&&o.set(f,t):o.set(f,t)}}}const m=1===u&&Yb(r)||r,g=0===u||iG(m)?Ic(c):fY(m,void 0),h="string"==typeof g?g:g[0],y="string"==typeof g?void 0:g[1],v=cv(_.name),b=t++,x=Ix(r,p),k=33554432&r.flags?void 0:r,S=33554432&_.flags?void 0:_;k&&S||i.set(b,[r,_]),n.add(function(e,t,n,r){const i=n||"";return`${e}|${VB(Ix(t,r))}|${i}`}(h,r,Xs(v)?void 0:v,p),{id:b,symbolTableKey:c,symbolName:h,capitalizedSymbolName:y,moduleName:v,moduleFile:l,moduleFileName:null==l?void 0:l.fileName,packageName:f,exportKind:u,targetFlags:x.flags,isFromPackageJson:d,symbol:k,moduleSymbol:S})},get:(e,t)=>{if(e!==a)return;const r=n.get(t);return null==r?void 0:r.map(c)},search:(t,r,i,s)=>{if(t===a)return up(n,((t,n)=>{const{symbolName:a,ambientModuleName:_}=function(e){const t=e.substring(0,e.indexOf("|")),n=e.substring(e.lastIndexOf("|")+1);return{symbolName:t,ambientModuleName:""===n?void 0:n}}(n),l=r&&t[0].capitalizedSymbolName||a;if(i(l,t[0].targetFlags)){const r=t.map(c).filter(((n,r)=>function(t,n){if(!n||!t.moduleFileName)return!0;const r=e.getGlobalTypingsCacheLocation();if(r&&fn(t.moduleFileName,r))return!0;const i=o.get(n);return!i||fn(t.moduleFileName,i)}(n,t[r].packageName)));if(r.length){const e=s(r,l,!!_,n);if(void 0!==e)return e}}}))},releaseSymbols:()=>{i.clear()},onFileChanged:(e,t,n)=>!(_(e)&&_(t)||(a&&a!==t.path||n&&oY(e)!==oY(t)||!be(e.moduleAugmentations,t.moduleAugmentations)||!function(e,t){if(!be(e.ambientModuleNames,t.ambientModuleNames))return!1;let n=-1,r=-1;for(const i of t.ambientModuleNames){const o=e=>ff(e)&&e.name.text===i;if(n=O(e.statements,o,n+1),r=O(t.statements,o,r+1),e.statements[n]!==t.statements[r])return!1}return!0}(e,t)?(s.clear(),0):(a=t.path,1)))};return In.isDebugging&&Object.defineProperty(s,"__cache",{get:()=>n}),s;function c(t){if(t.symbol&&t.moduleSymbol)return t;const{id:n,exportKind:o,targetFlags:a,isFromPackageJson:s,moduleFileName:c}=t,[_,l]=i.get(n)||r;if(_&&l)return{symbol:_,moduleSymbol:l,moduleFileName:c,exportKind:o,targetFlags:a,isFromPackageJson:s};const u=(s?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),d=t.moduleSymbol||l||In.checkDefined(t.moduleFile?u.getMergedSymbol(t.moduleFile.symbol):u.tryFindAmbientModule(t.moduleName)),p=t.symbol||_||In.checkDefined(2===o?u.resolveExternalModuleSymbol(d):u.tryGetMemberInModuleExportsAndProperties(Ic(t.symbolTableKey),d),`Could not find symbol '${t.symbolName}' by key '${t.symbolTableKey}' in module ${d.name}`);return i.set(n,[p,d]),{symbol:p,moduleSymbol:d,moduleFileName:c,exportKind:o,targetFlags:a,isFromPackageJson:s}}function _(e){return!(e.commonJsModuleIndicator||e.externalModuleIndicator||e.moduleAugmentations||e.ambientModuleNames)}}function LY(e,t,n,r,i,o,a){var s;if(t===n)return!1;const c=null==a?void 0:a.get(t.path,n.path,r,{});if(void 0!==(null==c?void 0:c.isBlockedByPackageJsonDependencies))return!c.isBlockedByPackageJsonDependencies;const _=gv(o),l=null==(s=o.getGlobalTypingsCacheLocation)?void 0:s.call(o),u=!!CB.forEachFileNameOfModule(t.fileName,n.fileName,o,!1,(r=>{const i=e.getSourceFile(r);return(i===n||!i)&&function(e,t,n,r){const i=Ra(t,(e=>"node_modules"===ca(e)?e:void 0)),o=i&&sa(n(i));return void 0===o||fn(n(e),o)||!!r&&fn(n(r),o)}(t.fileName,r,_,l)}));if(i){const e=u&&i.allowsImportingSourceFile(n,o);return null==a||a.setBlockedByPackageJsonDependencies(t.path,n.path,r,{},!e),e}return u}function MY(e,t,n,r,i){var o,a;const s=mv(t),c=n.autoImportFileExcludePatterns&&Z(n.autoImportFileExcludePatterns,(e=>{const t=SS(e,"","exclude");return t?wS(t,s):void 0}));RY(e.getTypeChecker(),e.getSourceFiles(),c,((t,n)=>i(t,n,e,!1)));const _=r&&(null==(o=t.getPackageJsonAutoImportProvider)?void 0:o.call(t));if(_){const n=_r(),r=e.getTypeChecker();RY(_.getTypeChecker(),_.getSourceFiles(),c,((t,n)=>{(n&&!e.getSourceFile(n.fileName)||!n&&!r.resolveName(t.name,void 0,1536,!1))&&i(t,n,_,!0)})),null==(a=t.log)||a.call(t,"forEachExternalModuleToImportFrom autoImportProvider: "+(_r()-n))}}function RY(e,t,n,r){var i;const o=n&&(e=>n.some((t=>t.test(e))));for(const t of e.getAmbientModules())rn(t.name,"*")||n&&(null==(i=t.declarations)?void 0:i.every((e=>o(e.getSourceFile().fileName))))||r(t,void 0);for(const n of t)em(n)&&!(null==o?void 0:o(n.fileName))&&r(e.getMergedSymbol(n.symbol),n)}function BY(e,t,n,r,i){var o,a,s,c,_;const l=_r();null==(o=t.getPackageJsonAutoImportProvider)||o.call(t);const u=(null==(a=t.getCachedExportInfoMap)?void 0:a.call(t))||OY({getCurrentProgram:()=>n,getPackageJsonAutoImportProvider:()=>{var e;return null==(e=t.getPackageJsonAutoImportProvider)?void 0:e.call(t)},getGlobalTypingsCacheLocation:()=>{var e;return null==(e=t.getGlobalTypingsCacheLocation)?void 0:e.call(t)}});if(u.isUsableByFile(e.path))return null==(s=t.log)||s.call(t,"getExportInfoMap: cache hit"),u;null==(c=t.log)||c.call(t,"getExportInfoMap: cache miss or empty; calculating new results");const d=n.getCompilerOptions();let p=0;try{MY(n,t,r,!0,((t,n,r,o)=>{++p%100==0&&(null==i||i.throwIfCancellationRequested());const a=new Map,s=r.getTypeChecker(),c=jY(t,s,d);c&&JY(c.symbol,s)&&u.add(e.path,c.symbol,1===c.exportKind?"default":"export=",t,n,c.exportKind,o,s),s.forEachExportAndPropertyOfModule(t,((r,i)=>{r!==(null==c?void 0:c.symbol)&&JY(r,s)&&$x(a,i)&&u.add(e.path,r,i,t,n,0,o,s)}))}))}catch(e){throw u.clear(),e}return null==(_=t.log)||_.call(t,`getExportInfoMap: done in ${_r()-l} ms`),u}function jY(e,t,n){const r=function(e,t){const n=t.resolveExternalModuleSymbol(e);if(n!==e)return{symbol:n,exportKind:2};const r=t.tryGetMemberInModuleExports("default",e);return r?{symbol:r,exportKind:1}:void 0}(e,t);if(!r)return;const{symbol:i,exportKind:o}=r,a=zY(i,t,n);return a&&{symbol:i,exportKind:o,...a}}function JY(e,t){return!(t.isUndefinedSymbol(e)||t.isUnknownSymbol(e)||Oy(e)||Ly(e))}function zY(e,t,n){const r=Yb(e);if(r)return{resolvedSymbol:r,name:r.name};const i=(o=e).declarations&&A(o.declarations,(e=>{var t;return HE(e)?null==(t=xt(UF(e.expression),Tw))?void 0:t.text:XE(e)?(In.assert("default"===e.name.text,"Expected the specifier to be a default export"),e.propertyName&&e.propertyName.text):void 0}));var o;if(void 0!==i)return{resolvedSymbol:e,name:i};if(2097152&e.flags){const r=t.getImmediateAliasedSymbol(e);if(r&&r.parent)return zY(r,t,n)}return"default"!==e.escapedName&&"export="!==e.escapedName?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:mY(e,n.target)}}var UY,qY=b({"src/services/exportInfoMap.ts"(){lfe(),FY=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(FY||{}),PY=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(PY||{})}});function VY(){const e=qs(99,!1);function t(t,n,r){let i=0,o=0;const a=[],{prefix:s,pushTemplate:c}=function(e){switch(e){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return In.assertNever(e)}}(n);t=s+t;const _=s.length;c&&a.push(15),e.setText(t);let l=0;const u=[];let d=0;do{i=e.scan(),xy(i)||(p(),o=i);const n=e.getTextPos();if(KY(e.getTokenPos(),n,_,HY(i),u),n>=t.length){const t=QY(e,i,Be(a));void 0!==t&&(l=t)}}while(1!==i);function p(){switch(i){case 43:case 68:UY[o]||13!==e.reScanSlashToken()||(i=13);break;case 29:79===o&&d++;break;case 31:d>0&&d--;break;case 131:case 152:case 148:case 134:case 153:d>0&&!r&&(i=79);break;case 15:a.push(i);break;case 18:a.length>0&&a.push(i);break;case 19:if(a.length>0){const t=Be(a);15===t?(i=e.reScanTemplateToken(!1),17===i?a.pop():In.assertEqual(i,16,"Should have been a template middle.")):(In.assertEqual(t,18,"Should have been an open brace"),a.pop())}break;default:if(!fy(i))break;(24===o||fy(o)&&fy(i)&&!function(e,t){if(!z$(e))return!0;switch(t){case 137:case 151:case 135:case 124:case 127:return!0;default:return!1}}(o,i))&&(i=79)}}return{endOfLineState:l,spans:u}}return{getClassificationsForLine:function(e,n,r){return function(e,t){const n=[],r=e.spans;let i=0;for(let e=0;e=0){const e=t-i;e>0&&n.push({length:e,classification:4})}n.push({length:o,classification:WY(a)}),i=t+o}const o=t.length-i;return o>0&&n.push({length:o,classification:4}),{entries:n,finalLexState:e.endOfLineState}}(t(e,n,r),e)},getEncodedLexicalClassifications:t}}function QY(e,t,n){switch(t){case 10:{if(!e.isUnterminated())return;const t=e.getTokenText(),n=t.length-1;let r=0;for(;92===t.charCodeAt(n-r);)r++;if(0==(1&r))return;return 34===t.charCodeAt(0)?3:2}case 3:return e.isUnterminated()?1:void 0;default:if(rl(t)){if(!e.isUnterminated())return;switch(t){case 17:return 5;case 14:return 4;default:return In.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return 15===n?6:void 0}}function KY(e,t,n,r,i){if(8===r)return;0===e&&n>0&&(e+=n);const o=t-e;o>0&&i.push(e-n,o,r)}function WY(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function HY(e){if(fy(e))return 3;if(function(e){switch(e){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 102:case 101:case 128:case 150:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}}(e)||function(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}(e))return 5;if(e>=18&&e<=78)return 10;switch(e){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;default:return rl(e)?6:2}}function $Y(e,t,n,r,i){return eZ(XY(e,t,n,r,i))}function GY(e,t){switch(t){case 264:case 260:case 261:case 259:case 228:case 215:case 216:e.throwIfCancellationRequested()}}function XY(e,t,n,r,i){const o=[];return n.forEachChild((function a(s){if(s&&cc(i,s.pos,s.getFullWidth())){if(GY(t,s.kind),Tw(s)&&!Lp(s)&&r.has(s.escapedText)){const t=e.getSymbolAtLocation(s),r=t&&YY(t,sH(s),e);r&&function(e,t,n){const r=t-e;In.assert(r>0,"Classification had non-positive length of "+r),o.push(e),o.push(r),o.push(n)}(s.getStart(n),s.getEnd(),r)}s.forEachChild(a)}})),{spans:o,endOfLineState:0}}function YY(e,t,n){const r=e.getFlags();return 0==(2885600&r)?void 0:32&r?11:384&r?12:524288&r?16:1536&r?4&t||1&t&&function(e){return _e(e.declarations,(e=>OE(e)&&1===BR(e)))}(e)?14:void 0:2097152&r?YY(n.getAliasedSymbol(e),t,n):2&t?64&r?13:262144&r?15:void 0:void 0}function ZY(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function eZ(e){In.assert(e.spans.length%3==0);const t=e.spans,n=[];for(let e=0;e])*)(\/>)?)?/im.exec(i);if(!o)return!1;if(!o[3]||!(o[3]in _o))return!1;let a=e;l(a,o[1].length),a+=o[1].length,c(a,o[2].length,10),a+=o[2].length,c(a,o[3].length,21),a+=o[3].length;const s=o[4];let _=a;for(;;){const e=r.exec(s);if(!e)break;const t=a+e.index+e[1].length;t>_&&(l(_,t-_),_=t),c(_,e[2].length,22),_+=e[2].length,e[3].length&&(l(_,e[3].length),_+=e[3].length),c(_,e[4].length,5),_+=e[4].length,e[5].length&&(l(_,e[5].length),_+=e[5].length),c(_,e[6].length,24),_+=e[6].length}a+=o[4].length,a>_&&l(_,a-_),o[5]&&(c(a,o[5].length,10),a+=o[5].length);const u=e+n;return a=0),i>0){const t=n||m(e.kind,e);t&&c(r,i,t)}return!0}function m(e,t){if(fy(e))return 3;if((29===e||31===e)&&t&&L$(t.parent))return 10;if(j$(e)){if(t){const n=t.parent;if(63===e&&(257===n.kind||169===n.kind||166===n.kind||288===n.kind))return 5;if(223===n.kind||221===n.kind||222===n.kind||224===n.kind)return 5}return 10}if(8===e)return 4;if(9===e)return 25;if(10===e)return t&&288===t.parent.kind?24:6;if(13===e)return 6;if(rl(e))return 6;if(11===e)return 23;if(79===e){if(t){switch(t.parent.kind){case 260:return t.parent.name===t?11:void 0;case 165:return t.parent.name===t?15:void 0;case 261:return t.parent.name===t?13:void 0;case 263:return t.parent.name===t?12:void 0;case 264:return t.parent.name===t?14:void 0;case 166:return t.parent.name===t?Uv(t)?3:17:void 0}if(z_(t.parent))return 3}return 2}}function g(n){if(n&&_c(r,i,n.pos,n.getFullWidth())){GY(e,n.kind);for(const e of n.getChildren(t))f(e)||g(e)}}}var rZ,iZ=b({"src/services/classifier.ts"(){lfe(),UY=rt([79,10,8,9,13,108,45,46,21,23,19,110,95],(e=>e),(()=>!0))}}),oZ=b({"src/services/documentHighlights.ts"(){lfe(),(e=>{function t(e,t){return{fileName:t.fileName,textSpan:H$(e,t),kind:"none"}}function n(e){return TE(e)?[e]:CE(e)?ue(e.catchClause?n(e.catchClause):e.tryBlock&&n(e.tryBlock),e.finallyBlock&&n(e.finallyBlock)):Sl(e)?void 0:i(e,n)}function r(e){return V_(e)?[e]:Sl(e)?void 0:i(e,r)}function i(e,t){const n=[];return e.forEachChild((e=>{const r=t(e);void 0!==r&&n.push(...yt(r))})),n}function o(e,t){const n=a(t);return!!n&&n===e}function a(e){return Ec(e,(t=>{switch(t.kind){case 252:if(248===e.kind)return!1;case 245:case 246:case 247:case 244:case 243:return!e.label||function(e,t){return!!Ec(e.parent,(e=>SE(e)?e.label.escapedText===t:"quit"))}(t,e.label.escapedText);default:return Sl(t)&&"quit"}}))}function s(e,t,...n){return!(!t||!R(n,t.kind)||(e.push(t),0))}function c(e){const t=[];if(s(t,e.getFirstToken(),97,115,90)&&243===e.kind){const n=e.getChildren();for(let e=n.length-1;e>=0&&!s(t,n[e],115);e--);}return T(r(e.statement),(n=>{o(e,n)&&s(t,n.getFirstToken(),81,86)})),t}function _(e){const t=a(e);if(t)switch(t.kind){case 245:case 246:case 247:case 243:case 244:return c(t);case 252:return l(t)}}function l(e){const t=[];return s(t,e.getFirstToken(),107),T(e.caseBlock.clauses,(n=>{s(t,n.getFirstToken(),82,88),T(r(n),(n=>{o(e,n)&&s(t,n.getFirstToken(),81)}))})),t}function u(e,t){const n=[];return s(n,e.getFirstToken(),111),e.catchClause&&s(n,e.catchClause.getFirstToken(),83),e.finallyBlock&&s(n,YH(e,96,t),96),n}function d(e,t){const r=function(e){let t=e;for(;t.parent;){const e=t.parent;if(Fm(e)||308===e.kind)return e;if(CE(e)&&e.tryBlock===t&&e.catchClause)return t;t=e}}(e);if(!r)return;const i=[];return T(n(r),(e=>{i.push(YH(e,109,t))})),Fm(r)&&vm(r,(e=>{i.push(YH(e,105,t))})),i}function p(e,t){const r=zm(e);if(!r)return;const i=[];return vm(kt(r.body,cE),(e=>{i.push(YH(e,105,t))})),T(n(r.body),(e=>{i.push(YH(e,109,t))})),i}function f(e){const t=zm(e);if(!t)return;const n=[];return t.modifiers&&t.modifiers.forEach((e=>{s(n,e,132)})),bI(t,(e=>{m(e,(e=>{UD(e)&&s(n,e.getFirstToken(),133)}))})),n}function m(e,t){t(e),Sl(e)||Fl(e)||FE(e)||OE(e)||PE(e)||Jl(e)||bI(e,(e=>m(e,t)))}e.getDocumentHighlights=function(e,n,r,i,o){const a=_$(r,i);if(a.parent&&(aN(a.parent)&&a.parent.tagName===a||sN(a.parent))){const{openingElement:e,closingElement:n}=a.parent.parent,i=[e,n].map((({tagName:e})=>t(e,r)));return[{fileName:r.fileName,highlightSpans:i}]}return function(e,t,n,r,i){const o=new Set(i.map((e=>e.fileName))),a=voe.getReferenceEntriesForNode(e,t,n,i,r,void 0,o);if(!a)return;const s=it(a.map(voe.toHighlightSpan),(e=>e.fileName),(e=>e.span)),c=ln(n.useCaseSensitiveFileNames());return Ze(te(s.entries(),(([e,t])=>{if(!o.has(e)){if(!n.redirectTargetsMap.has(xa(e,n.getCurrentDirectory(),c)))return;const t=n.getSourceFile(e);e=P(i,(e=>!!e.redirectInfo&&e.redirectInfo.redirectTarget===t)).fileName,In.assert(o.has(e))}return{fileName:e,highlightSpans:t}})))}(i,a,e,n,o)||function(e,n){const r=function(e,n){switch(e.kind){case 99:case 91:return dE(e.parent)?function(e,n){const r=function(e,t){const n=[];for(;dE(e.parent)&&e.parent.elseStatement===e;)e=e.parent;for(;;){const r=e.getChildren(t);s(n,r[0],99);for(let e=r.length-1;e>=0&&!s(n,r[e],91);e--);if(!e.elseStatement||!dE(e.elseStatement))break;e=e.elseStatement}return n}(e,n),i=[];for(let e=0;e=t.end;e--)if(!bs(n.text.charCodeAt(e))){a=!1;break}if(a){i.push({fileName:n.fileName,textSpan:pc(t.getStart(),o.end),kind:"reference"}),e++;continue}}i.push(t(r[e],n))}return i}(e.parent,n):void 0;case 105:return o(e.parent,bE,p);case 109:return o(e.parent,TE,d);case 111:case 83:case 96:return o(83===e.kind?e.parent.parent:e.parent,CE,u);case 107:return o(e.parent,kE,l);case 82:case 88:return gN(e.parent)||mN(e.parent)?o(e.parent.parent.parent,kE,l):void 0;case 81:case 86:return o(e.parent,V_,_);case 97:case 115:case 90:return o(e.parent,(e=>du(e,!0)),c);case 135:return i($w,[135]);case 137:case 151:return i(Pl,[137,151]);case 133:return o(e.parent,UD,f);case 132:return a(f(e));case 125:return a(function(e){const t=zm(e);if(!t)return;const n=[];return bI(t,(e=>{m(e,(e=>{HD(e)&&s(n,e.getFirstToken(),125)}))})),n}(e));case 101:return;default:return gl(e.kind)&&(Nu(e.parent)||_E(e.parent))?a((r=e.kind,Z(function(e,t){const n=e.parent;switch(n.kind){case 265:case 308:case 238:case 292:case 293:return 256&t&&NE(e)?[...e.members,e]:n.statements;case 173:case 171:case 259:return[...n.parameters,...Fl(n.parent)?n.parent.members:[]];case 260:case 228:case 261:case 184:const r=n.members;if(92&t){const e=P(n.members,$w);if(e)return[...r,...e.parameters]}else if(256&t)return[...r,n];return r;case 207:return;default:In.assertNever(n,"Invalid container kind.")}}(e.parent,wb(r)),(e=>EG(e,r))))):void 0}var r;function i(t,r){return o(e.parent,t,(e=>{var i;return Z(null==(i=xt(e,Au))?void 0:i.symbol.declarations,(e=>t(e)?P(e.getChildren(n),(e=>R(r,e.kind))):void 0))}))}function o(e,t,r){return t(e)?a(r(e,n)):void 0}function a(e){return e&&e.map((e=>t(e,n)))}}(e,n);return r&&[{fileName:n.fileName,highlightSpans:r}]}(a,r)}})(rZ||(rZ={}))}});function aZ(e){return!!e.sourceFile}function sZ(e,t){return cZ(e,t)}function cZ(e,t="",n){const r=new Map,i=ln(!!e);function o(e){return"function"==typeof e.getCompilationSettings?e.getCompilationSettings():e}function a(e,t,n,r,i,o,a,s){return _(e,t,n,r,i,o,!0,a,s)}function s(e,t,n,r,i,a,s,c){return _(e,t,o(n),r,i,a,!1,s,c)}function c(e,t){const n=aZ(e)?e:e.get(In.checkDefined(t,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return In.assert(void 0===t||!n||n.sourceFile.scriptKind===t,`Script kind should match provided ScriptKind:${t} and sourceFile.scriptKind: ${null==n?void 0:n.sourceFile.scriptKind}, !entry: ${!n}`),n}function _(e,t,i,a,s,_,l,u,d){var p,f,m,g;u=FS(e,u);const h=o(i),y=i===h?void 0:i,v=6===u?100:Rk(h),b="object"==typeof d?d:{languageVersion:v,impliedNodeFormat:y&&Nq(t,null==(g=null==(m=null==(f=null==(p=y.getCompilerHost)?void 0:p.call(y))?void 0:f.getModuleResolutionCache)?void 0:m.call(f))?void 0:g.getPackageJsonInfoCache(),y,h),setExternalModuleIndicator:Mk(h)};b.languageVersion=v;const x=r.size,k=lZ(a,b.impliedNodeFormat),S=ie(r,k,(()=>new Map));if(Ur){r.size>x&&Ur.instant(Ur.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:h.configFilePath,key:k});const e=!FI(t)&&up(r,((e,n)=>n!==k&&e.has(t)&&n));e&&Ur.instant(Ur.Phase.Session,"documentRegistryBucketOverlap",{path:t,key1:e,key2:k})}const T=S.get(t);let C=T&&c(T,u);if(!C&&n){const e=n.getDocument(k,t);e&&(In.assert(l),C={sourceFile:e,languageServiceRefCount:0},A())}if(C)C.sourceFile.version!==_&&(C.sourceFile=o2(C.sourceFile,s,_,s.getChangeRange(C.sourceFile.scriptSnapshot)),n&&n.setDocument(k,t,C.sourceFile)),l&&C.languageServiceRefCount++;else{const r=i2(e,s,b,_,!1,u);n&&n.setDocument(k,t,r),C={sourceFile:r,languageServiceRefCount:1},A()}return In.assert(0!==C.languageServiceRefCount),C.sourceFile;function A(){if(T)if(aZ(T)){const e=new Map;e.set(T.sourceFile.scriptKind,T),e.set(u,C),S.set(t,e)}else T.set(u,C);else S.set(t,C)}}function l(e,t,n,i){const o=In.checkDefined(r.get(lZ(t,i))),a=o.get(e),s=c(a,n);s.languageServiceRefCount--,In.assert(s.languageServiceRefCount>=0),0===s.languageServiceRefCount&&(aZ(a)?o.delete(e):(a.delete(n),1===a.size&&o.set(e,w(a.values(),wt))))}return{acquireDocument:function(e,n,r,s,c,_){return a(e,xa(e,t,i),n,_Z(o(n)),r,s,c,_)},acquireDocumentWithKey:a,updateDocument:function(e,n,r,a,c,_){return s(e,xa(e,t,i),n,_Z(o(n)),r,a,c,_)},updateDocumentWithKey:s,releaseDocument:function(e,n,r,o){return l(xa(e,t,i),_Z(n),r,o)},releaseDocumentWithKey:l,getLanguageServiceRefCounts:function(e,t){return Ze(r.entries(),(([n,r])=>{const i=r.get(e),o=i&&c(i,t);return[n,o&&o.languageServiceRefCount]}))},reportStats:function(){const e=Ze(r.keys()).filter((e=>e&&"_"===e.charAt(0))).map((e=>{const t=r.get(e),n=[];return t.forEach(((e,t)=>{aZ(e)?n.push({name:t,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach(((e,r)=>n.push({name:t,scriptKind:r,refCount:e.languageServiceRefCount})))})),n.sort(((e,t)=>t.refCount-e.refCount)),{bucket:e,sourceFiles:n}}));return JSON.stringify(e,void 0,2)},getKeyForCompilationSettings:_Z}}function _Z(e){return wM(e,eO)}function lZ(e,t){return t?`${e}|${t}`:e}var uZ=b({"src/services/documentRegistry.ts"(){lfe()}});function dZ(e,t,n,r,i,o,a){const s=mv(r),c=ln(s),_=pZ(t,n,c,a),l=pZ(n,t,c,a);return rde.ChangeTracker.with({host:r,formatContext:i,preferences:o},(i=>{!function(e,t,n,r,i,o,a){const{configFile:s}=e.getCompilerOptions();if(!s)return;const c=sa(s.fileName),_=Bm(s);function l(e){const t=DD(e.initializer)?e.initializer.elements:[e.initializer];let n=!1;for(const e of t)n=u(e)||n;return n}function u(e){if(!sw(e))return!1;const r=fZ(c,e.text),i=n(r);return void 0!==i&&(t.replaceRangeWithText(s,yZ(e,s),d(i)),!0)}function d(e){return Ia(c,e,!a)}_&&vZ(_,((e,n)=>{switch(n){case"files":case"include":case"exclude":{if(l(e)||"include"!==n||!DD(e.initializer))return;const _=Z(e.initializer.elements,(e=>sw(e)?e.text:void 0));if(0===_.length)return;const u=AS(c,[],_,a,o);return void(wS(In.checkDefined(u.includeFilePattern),a).test(r)&&!wS(In.checkDefined(u.includeFilePattern),a).test(i)&&t.insertNodeAfter(s,je(e.initializer.elements),dC.createStringLiteral(d(i))))}case"compilerOptions":return void vZ(e.initializer,((e,t)=>{const n=MO(t);In.assert("listOrElement"!==(null==n?void 0:n.type)),n&&(n.isFilePath||"list"===n.type&&n.element.isFilePath)?l(e):"paths"===t&&vZ(e.initializer,(e=>{if(DD(e.initializer))for(const t of e.initializer.elements)u(t)}))}))}}))}(e,i,_,t,n,r.getCurrentDirectory(),s),function(e,t,n,r,i,o){const a=e.getSourceFiles();for(const s of a){const c=n(s.fileName),_=null!=c?c:s.fileName,l=sa(_),u=r(s.fileName),d=u||s.fileName,p=sa(d),f=void 0!==c||void 0!==u;hZ(s,t,(e=>{if(!Yo(e))return;const t=fZ(p,e),r=n(t);return void 0===r?void 0:Ta(Ia(l,r,o))}),(t=>{const r=e.getTypeChecker().getSymbolAtLocation(t);if((null==r?void 0:r.declarations)&&r.declarations.some((e=>df(e))))return;const c=void 0!==u?gZ(t,jM(t.text,d,e.getCompilerOptions(),i),n,a):mZ(r,t,s,e,i,n);return void 0!==c&&(c.updated||f&&Yo(t.text))?CB.updateModuleSpecifier(e.getCompilerOptions(),s,o(_),c.newFileName,pG(e,i),t.text):void 0}))}}(e,i,_,l,r,c)}))}function pZ(e,t,n,r){const i=n(e);return e=>{const o=r&&r.tryGetSourcePosition({fileName:e,pos:0}),a=function(e){if(n(e)===i)return t;const r=hS(e,i,n);return void 0===r?void 0:t+"/"+r}(o?o.fileName:e);return o?void 0===a?void 0:function(e,t,n,r){const i=La(e,t,r);return fZ(sa(n),i)}(o.fileName,a,e,n):a}}function fZ(e,t){return Ta(function(e,t){return va(ma(e,t))}(e,t))}function mZ(e,t,n,r,i,o){var a;if(e){const t=P(e.declarations,TN).fileName,n=o(t);return void 0===n?{newFileName:t,updated:!1}:{newFileName:n,updated:!0}}{const e=gq(n,t);return gZ(t,i.resolveModuleNameLiterals||!i.resolveModuleNames?null==(a=n.resolvedModules)?void 0:a.get(t.text,e):i.getResolvedModuleWithFailedLookupLocationsFromCache&&i.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,n.fileName,e),o,r.getSourceFiles())}}function gZ(e,t,n,r){if(!t)return;if(t.resolvedModule){const e=o(t.resolvedModule.resolvedFileName);if(e)return e}return T(t.failedLookupLocations,(function(e){const t=n(e);return t&&P(r,(e=>e.fileName===t))?i(e):void 0}))||Yo(e.text)&&T(t.failedLookupLocations,i)||t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function i(e){return en(e,"/package.json")?void 0:o(e)}function o(e){const t=n(e);return t&&{newFileName:t,updated:!0}}}function hZ(e,t,n,i){for(const i of e.referencedFiles||r){const r=n(i.fileName);void 0!==r&&r!==e.text.slice(i.pos,i.end)&&t.replaceRangeWithText(e,i,r)}for(const n of e.imports){const r=i(n);void 0!==r&&r!==n.text&&t.replaceRangeWithText(e,yZ(n,e),r)}}function yZ(e,t){return sx(e.getStart(t)+1,e.end-1)}function vZ(e,t){if(ED(e))for(const n of e.properties)vN(n)&&sw(n.name)&&t(n,n.name.text)}var bZ,xZ=b({"src/services/getEditsForFileRename.ts"(){lfe()}});function kZ(e,t){return{kind:e,isCaseSensitive:t}}function SZ(e){const t=new Map,n=e.trim().split(".").map((e=>{return{totalTextChunk:MZ(t=e.trim()),subWordTextChunks:LZ(t)};var t}));if(!n.some((e=>!e.subWordTextChunks.length)))return{getFullMatch:(e,r)=>function(e,t,n,r){if(!AZ(t,je(n),r))return;if(n.length-1>e.length)return;let i;for(let t=n.length-2,o=e.length-1;t>=0;t-=1,o-=1)i=wZ(i,AZ(e[o],n[t],r));return i}(e,r,n,t),getMatchForLastSegmentOfPattern:e=>AZ(e,je(n),t),patternContainsDots:n.length>1}}function TZ(e,t){let n=t.get(e);return n||t.set(e,n=BZ(e)),n}function CZ(e,t,n){const r=function(e,t){const n=e.length-t.length;for(let r=0;r<=n;r++)if(QZ(t,((t,n)=>IZ(e.charCodeAt(n+r))===t)))return r;return-1}(e,t.textLowerCase);if(0===r)return kZ(t.text.length===e.length?0:1,fn(e,t.text));if(t.isLowerCase){if(-1===r)return;const i=TZ(e,n);for(const n of i)if(EZ(e,n,t.text,!0))return kZ(2,EZ(e,n,t.text,!1));if(t.text.length0)return kZ(2,!0);if(t.characterSpans.length>0){const r=TZ(e,n),i=!!NZ(e,r,t,!1)||!NZ(e,r,t,!0)&&void 0;if(void 0!==i)return kZ(3,i)}}}function AZ(e,t,n){if(QZ(t.totalTextChunk.text,(e=>32!==e&&42!==e))){const r=CZ(e,t.totalTextChunk,n);if(r)return r}const r=t.subWordTextChunks;let i;for(const t of r)i=wZ(i,CZ(e,t,n));return i}function wZ(e,t){return Ut([e,t],DZ)}function DZ(e,t){return void 0===e?1:void 0===t?-1:Jt(e.kind,t.kind)||Xt(!e.isCaseSensitive,!t.isCaseSensitive)}function EZ(e,t,n,r,i={start:0,length:n.length}){return i.length<=t.length&&VZ(0,i.length,(o=>function(e,t,n){return n?IZ(e)===IZ(t):e===t}(n.charCodeAt(i.start+o),e.charCodeAt(t.start+o),r)))}function NZ(e,t,n,r){const i=n.characterSpans;let o=0,a=0;for(;;){if(a===i.length)return!0;if(o===t.length)return!1;let s=t[o],c=!1;for(;a=65&&e<=90)return!0;if(e<127||!cs(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function PZ(e){if(e>=97&&e<=122)return!0;if(e<127||!cs(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function IZ(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function OZ(e){return e>=48&&e<=57}function LZ(e){const t=[];let n=0,r=0;for(let o=0;o0&&(t.push(MZ(e.substr(n,r))),r=0);var i;return r>0&&t.push(MZ(e.substr(n,r))),t}function MZ(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:RZ(e)}}function RZ(e){return jZ(e,!1)}function BZ(e){return jZ(e,!0)}function jZ(e,t){const n=[];let r=0;for(let i=1;iJZ(e)&&95!==e),t,n)}function UZ(e,t,n){return t!==n&&t+1t(e.charCodeAt(n),n)))}var KZ=b({"src/services/patternMatcher.ts"(){lfe(),bZ=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(bZ||{})}});function WZ(e,t=!0,n=!1){const r={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},i=[];let o,a,s,c=0,_=!1;function l(){return a=s,s=GW.scan(),18===s?c++:19===s&&c--,s}function u(){const e=GW.getTokenValue(),t=GW.getTokenPos();return{fileName:e,pos:t,end:t+e.length}}function d(){i.push(u()),p()}function p(){0===c&&(_=!0)}function f(){let e=GW.getToken();return 136===e&&(e=l(),142===e&&(e=l(),10===e&&(o||(o=[]),o.push({ref:u(),depth:c}))),!0)}function m(){if(24===a)return!1;let e=GW.getToken();if(100===e){if(e=l(),20===e){if(e=l(),10===e||14===e)return d(),!0}else{if(10===e)return d(),!0;if(154===e&&GW.lookAhead((()=>{const e=GW.scan();return 158!==e&&(41===e||18===e||79===e||fy(e))}))&&(e=l()),79===e||fy(e))if(e=l(),158===e){if(e=l(),10===e)return d(),!0}else if(63===e){if(h(!0))return!0}else{if(27!==e)return!0;e=l()}if(18===e){for(e=l();19!==e&&1!==e;)e=l();19===e&&(e=l(),158===e&&(e=l(),10===e&&d()))}else 41===e&&(e=l(),128===e&&(e=l(),(79===e||fy(e))&&(e=l(),158===e&&(e=l(),10===e&&d()))))}return!0}return!1}function g(){let e=GW.getToken();if(93===e){if(p(),e=l(),154===e&&GW.lookAhead((()=>{const e=GW.scan();return 41===e||18===e}))&&(e=l()),18===e){for(e=l();19!==e&&1!==e;)e=l();19===e&&(e=l(),158===e&&(e=l(),10===e&&d()))}else if(41===e)e=l(),158===e&&(e=l(),10===e&&d());else if(100===e&&(e=l(),154===e&&GW.lookAhead((()=>{const e=GW.scan();return 79===e||fy(e)}))&&(e=l()),(79===e||fy(e))&&(e=l(),63===e&&h(!0))))return!0;return!0}return!1}function h(e,t=!1){let n=e?l():GW.getToken();return 147===n&&(n=l(),20===n&&(n=l(),(10===n||t&&14===n)&&d()),!0)}function y(){let e=GW.getToken();if(79===e&&"define"===GW.getTokenValue()){if(e=l(),20!==e)return!0;if(e=l(),10===e||14===e){if(e=l(),27!==e)return!0;e=l()}if(22!==e)return!0;for(e=l();23!==e&&1!==e;)10!==e&&14!==e||d(),e=l();return!0}return!1}if(t&&function(){for(GW.setText(e),l();1!==GW.getToken();){if(15===GW.getToken()){const e=[GW.getToken()];e:for(;S(e);){const t=GW.scan();switch(t){case 1:break e;case 100:m();break;case 15:e.push(t);break;case 18:S(e)&&e.push(t);break;case 19:S(e)&&(15===Be(e)?17===GW.reScanTemplateToken(!1)&&e.pop():e.pop())}}l()}f()||m()||g()||n&&(h(!1,!0)||y())||l()}GW.setText(void 0)}(),PI(r,e),II(r,St),_){if(o)for(const e of o)i.push(e.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:i,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:void 0}}{let e;if(o)for(const t of o)0===t.depth?(e||(e=[]),e.push(t.ref.fileName)):i.push(t.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:i,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:e}}}var HZ,$Z=b({"src/services/preProcess.ts"(){lfe()}});function GZ(e){const t=ln(e.useCaseSensitiveFileNames()),n=e.getCurrentDirectory(),r=new Map,i=new Map;return{tryGetSourcePosition:function e(t){if(!FI(t.fileName))return;if(!s(t.fileName))return;const n=a(t.fileName).getSourcePosition(t);return n&&n!==t?e(n)||n:void 0},tryGetGeneratedPosition:function(r){if(FI(r.fileName))return;const i=s(r.fileName);if(!i)return;const o=e.getProgram();if(o.isSourceOfProjectReferenceRedirect(i.fileName))return;const c=Av(o.getCompilerOptions()),_=c?US(c)+".d.ts":Sv(r.fileName,o.getCompilerOptions(),n,o.getCommonSourceDirectory(),t);if(void 0===_)return;const l=a(_,r.fileName).getGeneratedPosition(r);return l===r?void 0:l},toLineColumnOffset:function(e,t){return c(e).getLineAndCharacterOfPosition(t)},clearCache:function(){r.clear(),i.clear()}};function o(e){return xa(e,n,t)}function a(n,r){const a=o(n),s=i.get(a);if(s)return s;let _;if(e.getDocumentPositionMapper)_=e.getDocumentPositionMapper(n,r);else if(e.readFile){const r=c(n);_=r&&XZ({getSourceFileLike:c,getCanonicalFileName:t,log:t=>e.log(t)},n,vj(r.text,fs(r)),(t=>!e.fileExists||e.fileExists(t)?e.readFile(t):void 0))}return i.set(a,_||gj),_||gj}function s(t){const n=e.getProgram();if(!n)return;const r=o(t),i=n.getSourceFileByPath(r);return i&&i.resolvedPath===r?i:void 0}function c(t){return e.getSourceFileLike?e.getSourceFileLike(t):s(t)||function(t){const n=o(t),i=r.get(n);if(void 0!==i)return i||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(n))return void r.set(n,!1);const a=e.readFile(n),s=!!a&&function(e,t){return{text:e,lineMap:void 0,getLineAndCharacterOfPosition(e){return ms(fs(this),e)}}}(a);return r.set(n,s),s||void 0}(t)}}function XZ(e,t,n,r){let i=bj(n);if(i){const n=HZ.exec(i);if(n){if(n[1]){const r=n[1];return YZ(e,nx(So,r),t)}i=void 0}}const o=[];i&&o.push(i),o.push(t+".map");const a=i&&ya(i,sa(t));for(const n of o){const i=ya(n,sa(t)),o=r(i,a);if(vt(o))return YZ(e,o,i);if(void 0!==o)return o||void 0}}function YZ(e,t,n){const r=Sj(t);if(r&&r.sources&&r.file&&r.mappings&&(!r.sourcesContent||!r.sourcesContent.some(vt)))return Ij(e,r,n)}var ZZ,e0=b({"src/services/sourcemaps.ts"(){lfe(),lfe(),HZ=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/}});function t0(e,t,n){t.getSemanticDiagnostics(e,n);const r=[],i=t.getTypeChecker();var o;1!==e.impliedNodeFormat&&!na(e.fileName,[".cts",".cjs"])&&e.commonJsModuleIndicator&&(uG(t)||dG(t.getCompilerOptions()))&&function(e){return e.statements.some((e=>{switch(e.kind){case 240:return e.declarationList.declarations.some((e=>!!e.initializer&&Dg(n0(e.initializer),!0)));case 241:{const{expression:t}=e;if(!QD(t))return Dg(t,!0);const n=Hg(t);return 1===n||2===n}default:return!1}}))}(e)&&r.push(zf(QD(o=e.commonJsModuleIndicator)?o.left:o,ja.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const a=xg(e);if(ZZ.clear(),function t(n){if(a)(function(e,t){var n,r,i,o;if(RD(e)){if(wE(e.parent)&&(null==(n=e.symbol.members)?void 0:n.size))return!0;const o=t.getSymbolOfExpando(e,!1);return!(!o||!(null==(r=o.exports)?void 0:r.size)&&!(null==(i=o.members)?void 0:i.size))}return!!EE(e)&&!!(null==(o=e.symbol.members)?void 0:o.size)})(n,i)&&r.push(zf(wE(n.parent)?n.parent.name:n,ja.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(_E(n)&&n.parent===e&&2&n.declarationList.flags&&1===n.declarationList.declarations.length){const e=n.declarationList.declarations[0].initializer;e&&Dg(e,!0)&&r.push(zf(e,ja.require_call_may_be_converted_to_an_import))}Ine.parameterShouldGetTypeFromJSDoc(n)&&r.push(zf(n.name||n,ja.JSDoc_types_may_be_moved_to_TypeScript_types))}u0(n)&&function(e,t,n){(function(e,t){return!Sy(e)&&e.body&&cE(e.body)&&function(e,t){return!!vm(e,(e=>o0(e,t)))}(e.body,t)&&i0(e,t)})(e,t)&&!ZZ.has(l0(e))&&n.push(zf(!e.name&&wE(e.parent)&&Tw(e.parent.name)?e.parent.name:e,ja.This_may_be_converted_to_an_async_function))}(n,i,r),n.forEachChild(t)}(e),$k(t.getCompilerOptions()))for(const n of e.imports){const i=r0(uh(n));if(!i)continue;const o=gp(e,n.text,gq(e,n)),a=o&&t.getSourceFile(o.resolvedFileName);a&&a.externalModuleIndicator&&!0!==a.externalModuleIndicator&&HE(a.externalModuleIndicator)&&a.externalModuleIndicator.isExportEquals&&r.push(zf(i,ja.Import_may_be_converted_to_a_default_import))}return Ae(r,e.bindSuggestionDiagnostics),Ae(r,t.getSuggestionDiagnostics(e,n)),r.sort(((e,t)=>e.start-t.start))}function n0(e){return ND(e)?n0(e.expression):e}function r0(e){switch(e.kind){case 269:const{importClause:t,moduleSpecifier:n}=e;return t&&!t.name&&t.namedBindings&&271===t.namedBindings.kind&&sw(n)?t.namedBindings.name:void 0;case 268:return e.name;default:return}}function i0(e,t){const n=t.getSignatureFromDeclaration(e),r=n?t.getReturnTypeOfSignature(n):void 0;return!!r&&!!t.getPromisedTypeOfPromise(r)}function o0(e,t){return bE(e)&&!!e.expression&&a0(e.expression,t)}function a0(e,t){if(!s0(e)||!c0(e)||!e.arguments.every((e=>_0(e,t))))return!1;let n=e.expression.expression;for(;s0(n)||ND(n);)if(PD(n)){if(!c0(n)||!n.arguments.every((e=>_0(e,t))))return!1;n=n.expression.expression}else n=n.expression;return!0}function s0(e){return PD(e)&&(kH(e,"then")||kH(e,"catch")||kH(e,"finally"))}function c0(e){const t=e.expression.name.text,n="then"===t?2:"catch"===t||"finally"===t?1:0;return!(e.arguments.length>n)&&(e.arguments.length104===e.kind||Tw(e)&&"undefined"===e.text)))}function _0(e,t){switch(e.kind){case 259:case 215:if(1&ky(e))return!1;case 216:ZZ.set(l0(e),!0);case 104:return!0;case 79:case 208:{const n=t.getSymbolAtLocation(e);return!!n&&(t.isUndefinedSymbol(n)||_e(Ix(n,t).declarations,(e=>Sl(e)||$u(e)&&!!e.initializer&&Sl(e.initializer))))}default:return!1}}function l0(e){return`${e.pos.toString()}:${e.end.toString()}`}function u0(e){switch(e.kind){case 259:case 171:case 215:case 216:return!0;default:return!1}}var d0,p0,f0=b({"src/services/suggestionDiagnostics.ts"(){lfe(),ZZ=new Map}});function m0(e,t){const n=[],r=t.compilerOptions?h0(t.compilerOptions,n):{},i={target:1,jsx:1};for(const e in i)We(i,e)&&void 0===r[e]&&(r[e]=i[e]);for(const e of nO)r.verbatimModuleSyntax&&d0.has(e.name)||(r[e.name]=e.transpileOptionValue);r.suppressOutputPathCheck=!0,r.allowNonTsExtensions=!0;const o=ax(r),a={getSourceFile:e=>e===va(s)?c:void 0,writeFile:(e,t)=>{ta(e,".map")?(In.assertEqual(l,void 0,"Unexpected multiple source map outputs, file:",e),l=t):(In.assertEqual(_,void 0,"Unexpected multiple outputs, file:",e),_=t)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:e=>e,getCurrentDirectory:()=>"",getNewLine:()=>o,fileExists:e=>e===s,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},s=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),c=TI(s,e,{languageVersion:Rk(r),impliedNodeFormat:Nq(xa(s,"",a.getCanonicalFileName),void 0,a,r),setExternalModuleIndicator:Mk(r)});let _,l;t.moduleName&&(c.moduleName=t.moduleName),t.renamedDependencies&&(c.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));const u=Pq([s],r,a);return t.reportDiagnostics&&(Ae(n,u.getSyntacticDiagnostics(c)),Ae(n,u.getOptionsDiagnostics())),u.emit(void 0,void 0,void 0,void 0,t.transformers),void 0===_?In.fail("Output generation failed"):{outputText:_,diagnostics:n,sourceMapText:l}}function g0(e,t,n,r,i){const o=m0(e,{compilerOptions:t,fileName:n,reportDiagnostics:!!r,moduleName:i});return Ae(r,o.diagnostics),o.outputText}function h0(e,t){p0=p0||z($I,(e=>"object"==typeof e.type&&!up(e.type,(e=>"number"!=typeof e)))),e=U$(e);for(const n of p0){if(!We(e,n.name))continue;const r=e[n.name];vt(r)?e[n.name]=EO(n,r,t):up(n.type,(e=>e===r))||t.push(wO(n))}return e}var y0=b({"src/services/transpile.ts"(){lfe(),d0=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function v0(e,t,n,i,o,a){const s=SZ(i);if(!s)return r;const c=[];for(const r of e)n.throwIfCancellationRequested(),a&&r.isDeclarationFile||r.getNamedDeclarations().forEach(((e,n)=>{b0(s,n,e,t,r.fileName,c)}));return c.sort(A0),(void 0===o?c:c.slice(0,o)).map(w0)}function b0(e,t,n,r,i,o){const a=e.getMatchForLastSegmentOfPattern(t);if(a)for(const s of n)if(x0(s,r))if(e.patternContainsDots){const n=e.getFullMatch(C0(s),t);n&&o.push({name:t,fileName:i,matchKind:n.kind,isCaseSensitive:n.isCaseSensitive,declaration:s})}else o.push({name:t,fileName:i,matchKind:a.kind,isCaseSensitive:a.isCaseSensitive,declaration:s})}function x0(e,t){switch(e.kind){case 270:case 273:case 268:const n=t.getSymbolAtLocation(e.name),r=t.getAliasedSymbol(n);return n.escapedName!==r.escapedName;default:return!0}}function k0(e,t){const n=qc(e);return!!n&&(T0(n,t)||164===n.kind&&S0(n.expression,t))}function S0(e,t){return T0(e,t)||ND(e)&&(t.push(e.name.text),!0)&&S0(e.expression,t)}function T0(e,t){return Ey(e)&&(t.push(Ny(e)),!0)}function C0(e){const t=[],n=qc(e);if(n&&164===n.kind&&!S0(n.expression,t))return r;t.shift();let i=OH(e);for(;i;){if(!k0(i,t))return r;i=OH(i)}return t.reverse()}function A0(e,t){return Jt(e.matchKind,t.matchKind)||$t(e.name,t.name)}function w0(e){const t=e.declaration,n=OH(t),r=n&&qc(n);return{name:e.name,kind:LH(t),kindModifiers:O$(t),matchKind:bZ[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:H$(t),containerName:r?r.text:"",containerKind:r?LH(n):""}}var D0=b({"src/services/navigateTo.ts"(){lfe()}}),E0={};x(E0,{getNavigateToItems:()=>v0});var N0,F0,P0,I0,O0,L0,M0,R0,B0,j0,J0=b({"src/services/_namespaces/ts.NavigateTo.ts"(){D0()}});function z0(e,t){P0=t,I0=e;try{return V(function(e){const t=[];return function e(n){if(function(e){if(e.children)return!0;switch(Q0(e)){case 260:case 228:case 263:case 261:case 264:case 308:case 262:case 349:case 341:return!0;case 216:case 259:case 215:return t(e);default:return!1}function t(e){if(!e.node.body)return!1;switch(Q0(e.parent)){case 265:case 308:case 171:case 173:return!0;default:return!1}}}(n)&&(t.push(n),n.children))for(const t of n.children)e(t)}(e),t}(W0(e)),m1)}finally{q0()}}function U0(e,t){P0=t,I0=e;try{return f1(W0(e))}finally{q0()}}function q0(){I0=void 0,P0=void 0,O0=[],L0=void 0,B0=[]}function V0(e){return C1(e.getText(I0))}function Q0(e){return e.node.kind}function K0(e,t){e.children?e.children.push(t):e.children=[t]}function W0(e){In.assert(!O0.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};L0=t;for(const t of e.statements)i1(t);return e1(),In.assert(!L0&&!O0.length),t}function H0(e,t){K0(L0,$0(e,t))}function $0(e,t){return{node:e,name:t||(Nu(e)||_u(e)?qc(e):void 0),additionalNodes:void 0,parent:L0,children:void 0,indent:L0.indent+1}}function G0(e){R0||(R0=new Map),R0.set(e,!0)}function X0(e){for(let t=0;t0;t--)Z0(e,n[t]);return[n.length-1,n[0]]}function Z0(e,t){const n=$0(e,t);K0(L0,n),O0.push(L0),M0.push(R0),R0=void 0,L0=n}function e1(){L0.children&&(o1(L0.children,L0),l1(L0.children)),L0=O0.pop(),R0=M0.pop()}function t1(e,t,n){Z0(e,n),i1(t),e1()}function n1(e){e.initializer&&function(e){switch(e.kind){case 216:case 215:case 228:return!0;default:return!1}}(e.initializer)?(Z0(e),bI(e.initializer,i1),e1()):t1(e,e.initializer)}function r1(e){return!Ay(e)||223!==e.kind&&ND(e.name.expression)&&Tw(e.name.expression.expression)&&"Symbol"===Oc(e.name.expression.expression)}function i1(e){if(P0.throwIfCancellationRequested(),e&&!Y_(e))switch(e.kind){case 173:const t=e;t1(t,t.body);for(const e of t.parameters)vc(e,t)&&H0(e);break;case 171:case 174:case 175:case 170:r1(e)&&t1(e,e.body);break;case 169:r1(e)&&n1(e);break;case 168:r1(e)&&H0(e);break;case 270:const n=e;n.name&&H0(n.name);const{namedBindings:r}=n;if(r)if(271===r.kind)H0(r);else for(const e of r.elements)H0(e);break;case 300:t1(e,e.name);break;case 301:const{expression:i}=e;Tw(i)?H0(e,i):H0(e);break;case 205:case 299:case 257:{const t=e;Ul(t.name)?i1(t.name):n1(t);break}case 259:const o=e.name;o&&Tw(o)&&G0(o.text),t1(e,e.body);break;case 216:case 215:t1(e,e.body);break;case 263:Z0(e);for(const t of e.members)b1(t)||H0(t);e1();break;case 260:case 228:case 261:Z0(e);for(const t of e.members)i1(t);e1();break;case 264:t1(e,v1(e).body);break;case 274:{const t=e.expression,n=ED(t)||PD(t)?t:BD(t)||RD(t)?t.body:void 0;n?(Z0(e),i1(n),e1()):H0(e);break}case 278:case 268:case 178:case 176:case 177:case 262:H0(e);break;case 210:case 223:{const t=Hg(e);switch(t){case 1:case 2:return void t1(e,e.right);case 6:case 3:{const n=e,r=n.left,i=3===t?r.expression:r;let o,a=0;return Tw(i.expression)?(G0(i.expression.text),o=i.expression):[a,o]=Y0(n,i.expression),6===t?ED(n.right)&&n.right.properties.length>0&&(Z0(n,o),bI(n.right,i1),e1()):RD(n.right)||BD(n.right)?t1(e,n.right,o):(Z0(n,o),t1(e,n.right,r.name),e1()),void X0(a)}case 7:case 9:{const n=e,r=7===t?n.arguments[0]:n.arguments[0].expression,i=n.arguments[1],[o,a]=Y0(e,r);return Z0(e,a),Z0(e,OP(dC.createIdentifier(i.text),i)),i1(e.arguments[2]),e1(),e1(),void X0(o)}case 5:{const t=e,n=t.left,r=n.expression;if(Tw(r)&&"prototype"!==rh(n)&&R0&&R0.has(r.text))return void(RD(t.right)||BD(t.right)?t1(e,t.right,r):Yg(n)&&(Z0(t,r),t1(t.left,t.right,th(n)),e1()));break}case 4:case 0:case 8:break;default:In.assertNever(t)}}default:Wu(e)&&T(e.jsDoc,(e=>{T(e.tags,(e=>{vh(e)&&H0(e)}))})),bI(e,i1)}}function o1(e,t){const n=new Map;U(e,((e,r)=>{const i=e.name||qc(e.node),o=i&&V0(i);if(!o)return!0;const a=n.get(o);if(!a)return n.set(o,e),!0;if(a instanceof Array){for(const n of a)if(a1(n,e,r,t))return!1;return a.push(e),!0}{const i=a;return!a1(i,e,r,t)&&(n.set(o,[i,e]),!0)}}))}function a1(e,t,n,r){return!!function(e,t,n,r){function i(e){return RD(e)||EE(e)||wE(e)}const o=QD(t.node)||PD(t.node)?Hg(t.node):0,a=QD(e.node)||PD(e.node)?Hg(e.node):0;if(j0[o]&&j0[a]||i(e.node)&&j0[o]||i(t.node)&&j0[a]||NE(e.node)&&s1(e.node)&&j0[o]||NE(t.node)&&j0[a]||NE(e.node)&&s1(e.node)&&i(t.node)||NE(t.node)&&i(e.node)&&s1(e.node)){let o=e.additionalNodes&&Be(e.additionalNodes)||e.node;if(!NE(e.node)&&!NE(t.node)||i(e.node)||i(t.node)){const n=i(e.node)?e.node:i(t.node)?t.node:void 0;if(void 0!==n){const r=$0(OP(dC.createConstructorDeclaration(void 0,[],void 0),n));r.indent=e.indent+1,r.children=e.node===n?e.children:t.children,e.children=e.node===n?ue([r],t.children||[t]):ue(e.children||[{...e}],[r])}else(e.children||t.children)&&(e.children=ue(e.children||[{...e}],t.children||[t]),e.children&&(o1(e.children,e),l1(e.children)));o=e.node=OP(dC.createClassDeclaration(void 0,e.name||dC.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=ue(e.children,t.children),e.children&&o1(e.children,e);const a=t.node;return r.children[n-1].node.end===o.end?OP(o,{pos:o.pos,end:a.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(OP(dC.createClassDeclaration(void 0,e.name||dC.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return 0!==o}(e,t,n,r)||!!function(e,t,n){if(e.kind!==t.kind||e.parent!==t.parent&&(!c1(e,n)||!c1(t,n)))return!1;switch(e.kind){case 169:case 171:case 174:case 175:return _b(e)===_b(t);case 264:return _1(e,t)&&y1(e)===y1(t);default:return!0}}(e.node,t.node,r)&&(o=t,(i=e).additionalNodes=i.additionalNodes||[],i.additionalNodes.push(o.node),o.additionalNodes&&i.additionalNodes.push(...o.additionalNodes),i.children=ue(i.children,o.children),i.children&&(o1(i.children,i),l1(i.children)),!0);var i,o}function s1(e){return!!(8&e.flags)}function c1(e,t){const n=LE(e.parent)?e.parent.parent:e.parent;return n===t.node||R(t.additionalNodes,n)}function _1(e,t){return e.body&&t.body?e.body.kind===t.body.kind&&(264!==e.body.kind||_1(e.body,t.body)):e.body===t.body}function l1(e){e.sort(u1)}function u1(e,t){return $t(d1(e.node),d1(t.node))||Jt(Q0(e),Q0(t))}function d1(e){if(264===e.kind)return h1(e);const t=qc(e);if(t&&xl(t)){const e=Dy(t);return e&&Ic(e)}switch(e.kind){case 215:case 216:case 228:return S1(e);default:return}}function p1(e,t){if(264===e.kind)return C1(h1(e));if(t){const e=Tw(t)?t.text:FD(t)?`[${V0(t.argumentExpression)}]`:V0(t);if(e.length>0)return C1(e)}switch(e.kind){case 308:const t=e;return wI(t)?`"${iv(ca(US(va(t.fileName))))}"`:"";case 274:return HE(e)&&e.isExportEquals?"export=":"default";case 216:case 259:case 215:case 260:case 228:return 1024&kb(e)?"default":S1(e);case 173:return"constructor";case 177:return"new()";case 176:return"()";case 178:return"[]";default:return""}}function f1(e){return{text:p1(e.node,e.name),kind:LH(e.node),kindModifiers:k1(e.node),spans:g1(e),nameSpan:e.name&&x1(e.name),childItems:V(e.children,f1)}}function m1(e){return{text:p1(e.node,e.name),kind:LH(e.node),kindModifiers:k1(e.node),spans:g1(e),childItems:V(e.children,(function(e){return{text:p1(e.node,e.name),kind:LH(e.node),kindModifiers:O$(e.node),spans:g1(e),childItems:B0,indent:0,bolded:!1,grayed:!1}}))||B0,indent:e.indent,bolded:!1,grayed:!1}}function g1(e){const t=[x1(e.node)];if(e.additionalNodes)for(const n of e.additionalNodes)t.push(x1(n));return t}function h1(e){return df(e)?ef(e.name):y1(e)}function y1(e){const t=[Ny(e.name)];for(;e.body&&264===e.body.kind;)e=e.body,t.push(Ny(e.name));return t.join(".")}function v1(e){return e.body&&OE(e.body)?v1(e.body):e}function b1(e){return!e.name||164===e.name.kind}function x1(e){return 308===e.kind?X$(e):H$(e,I0)}function k1(e){return e.parent&&257===e.parent.kind&&(e=e.parent),O$(e)}function S1(e){const{parent:t}=e;if(e.name&&mp(e.name)>0)return C1(Lf(e.name));if(wE(t))return C1(Lf(t.name));if(QD(t)&&63===t.operatorToken.kind)return V0(t.left).replace(N0,"");if(vN(t))return V0(t.name);if(1024&kb(e))return"default";if(Fl(e))return"";if(PD(t)){let e=T1(t.expression);if(void 0!==e)return e=C1(e),e.length>F0?e+" callback":`${e}(${C1(Z(t.arguments,(e=>ed(e)?e.getText(I0):void 0)).join(", "))}) callback`}return""}function T1(e){if(Tw(e))return e.text;if(ND(e)){const t=T1(e.expression),n=e.name.text;return void 0===t?n:`${t}.${n}`}}function C1(e){return(e=e.length>F0?e.substring(0,F0)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var A1=b({"src/services/navigationBar.ts"(){lfe(),N0=/\s+/g,F0=150,O0=[],M0=[],B0=[],j0={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),w1={};x(w1,{getNavigationBarItems:()=>z0,getNavigationTree:()=>U0});var D1,E1,N1,F1,P1,I1,O1,L1,M1,R1,B1,j1,J1,z1,U1,q1,V1,Q1=b({"src/services/_namespaces/ts.NavigationBar.ts"(){A1()}});function K1(e,t,n,r){const i=G_(e)?new E1(e,t,n):79===e?new I1(79,t,n):80===e?new O1(80,t,n):new P1(e,t,n);return i.parent=r,i.flags=50720768&r.flags,i}function W1(e,t,n,r){for(GW.setTextPos(t);t"inheritDoc"===e.tagName.text||"inheritdoc"===e.tagName.text))}function $1(e,t){if(!e)return r;let n=cae.getJsDocTagsFromDeclarations(e,t);if(t&&(0===n.length||e.some(H1))){const r=new Set;for(const i of e){const e=X1(t,i,(e=>{var n;if(!r.has(e))return r.add(e),174===i.kind||175===i.kind?e.getContextualJsDocTags(i,t):1===(null==(n=e.declarations)?void 0:n.length)?e.getJsDocTags():void 0}));e&&(n=[...e,...n])}}return n}function G1(e,t){if(!e)return r;let n=cae.getJsDocCommentsFromDeclarations(e,t);if(t&&(0===n.length||e.some(H1))){const r=new Set;for(const i of e){const e=X1(t,i,(e=>{if(!r.has(e))return r.add(e),174===i.kind||175===i.kind?e.getContextualDocumentationComment(i,t):e.getDocumentationComment(t)}));e&&(n=0===n.length?e.slice():e.concat(rX(),n))}}return n}function X1(e,t,n){var r;const i=173===(null==(r=t.parent)?void 0:r.kind)?t.parent.parent:t.parent;if(!i)return;const o=lb(t);return A(ly(i),(r=>{const i=e.getTypeAtLocation(r),a=o&&i.symbol?e.getTypeOfSymbol(i.symbol):i,s=e.getPropertyOfType(a,t.symbol.name);return s?n(s):void 0}))}function Y1(e){let t=!0;for(const n in e)if(We(e,n)&&!Z1(n)){t=!1;break}if(t)return e;const n={};for(const t in e)We(e,t)&&(n[Z1(t)?t:t.charAt(0).toLowerCase()+t.substr(1)]=e[t]);return n}function Z1(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function e2(e){return e?V(e,(e=>e.text)).join(""):""}function t2(){return{target:1,jsx:1}}function n2(){return Ine.getSupportedErrorCodes()}function r2(e,t,n){e.version=n,e.scriptSnapshot=t}function i2(e,t,n,r,i,o){const a=TI(e,aG(t),n,i,o);return r2(a,t,r),a}function o2(e,t,n,r,i){if(r&&n!==e.version){let o;const a=0!==r.span.start?e.text.substr(0,r.span.start):"",s=ec(r.span)!==e.text.length?e.text.substr(ec(r.span)):"";if(0===r.newLength)o=a&&s?a+s:a||s;else{const e=t.getText(r.span.start,r.span.start+r.newLength);o=a&&s?a+e+s:a?a+e:e+s}const c=DI(e,o,r,i);return r2(c,t,n),c.nameTable=void 0,e!==c&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),c}const o={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator};return i2(e.fileName,t,o,n,!0,e.scriptKind)}function a2(e,t=sZ(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),n){var i;let o;o=void 0===n?0:"boolean"==typeof n?n?2:0:n;const a=new j1(e);let s,c,_=0;const l=e.getCancellationToken?new z1(e.getCancellationToken()):J1,u=e.getCurrentDirectory();function d(t){e.log&&e.log(t)}gk(null==(i=e.getLocalizedDiagnosticMessages)?void 0:i.bind(e));const p=mv(e),f=ln(p),m=GZ({useCaseSensitiveFileNames:()=>p,getCurrentDirectory:()=>u,getProgram:y,fileExists:lt(e,e.fileExists),readFile:lt(e,e.readFile),getDocumentPositionMapper:lt(e,e.getDocumentPositionMapper),getSourceFileLike:lt(e,e.getSourceFileLike),log:d});function g(e){const t=s.getSourceFile(e);if(!t){const t=Error(`Could not find source file: '${e}'.`);throw t.ProgramFiles=s.getSourceFiles().map((e=>e.fileName)),t}return t}function h(){var n,r,i;if(In.assert(2!==o),e.getProjectVersion){const t=e.getProjectVersion();if(t){if(c===t&&!(null==(n=e.hasChangedAutomaticTypeDirectiveNames)?void 0:n.call(e)))return;c=t}}const a=e.getTypeRootsVersion?e.getTypeRootsVersion():0;_!==a&&(d("TypeRoots version has changed; provide new program"),s=void 0,_=a);const g=e.getScriptFileNames().slice(),h=e.getCompilationSettings()||{target:1,jsx:1},y=e.hasInvalidatedResolutions||Tt,v=lt(e,e.hasChangedAutomaticTypeDirectiveNames),b=null==(r=e.getProjectReferences)?void 0:r.call(e);let x,k={getSourceFile:E,getSourceFileByPath:N,getCancellationToken:()=>l,getCanonicalFileName:f,useCaseSensitiveFileNames:()=>p,getNewLine:()=>ax(h),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:St,getCurrentDirectory:()=>u,fileExists:t=>e.fileExists(t),readFile:t=>e.readFile&&e.readFile(t),getSymlinkCache:lt(e,e.getSymlinkCache),realpath:lt(e,e.realpath),directoryExists:t=>ox(t,e),getDirectories:t=>e.getDirectories?e.getDirectories(t):[],readDirectory:(t,n,r,i,o)=>(In.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(t,n,r,i,o)),onReleaseOldSourceFile:D,onReleaseParsedCommandLine:function(t,n,r){var i;e.getParsedCommandLine?null==(i=e.onReleaseParsedCommandLine)||i.call(e,t,n,r):n&&D(n.sourceFile,r)},hasInvalidatedResolutions:y,hasChangedAutomaticTypeDirectiveNames:v,trace:lt(e,e.trace),resolveModuleNames:lt(e,e.resolveModuleNames),getModuleResolutionCache:lt(e,e.getModuleResolutionCache),createHash:lt(e,e.createHash),resolveTypeReferenceDirectives:lt(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:lt(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:lt(e,e.resolveTypeReferenceDirectiveReferences),useSourceOfProjectReferenceRedirect:lt(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:w};const S=k.getSourceFile,{getSourceFileWithCache:T}=rq(k,(e=>xa(e,u,f)),((...e)=>S.call(k,...e)));k.getSourceFile=T,null==(i=e.setCompilerHost)||i.call(e,k);const C={useCaseSensitiveFileNames:p,fileExists:e=>k.fileExists(e),readFile:e=>k.readFile(e),readDirectory:(...e)=>k.readDirectory(...e),trace:k.trace,getCurrentDirectory:k.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:St},A=t.getKeyForCompilationSettings(h);if(!Dq(s,g,h,((t,n)=>e.getScriptVersion(n)),(e=>k.fileExists(e)),y,v,w,b))return s=Pq({rootNames:g,options:h,host:k,oldProgram:s,projectReferences:b}),k=void 0,x=void 0,m.clearCache(),void s.getTypeChecker();function w(t){const n=xa(t,u,f),r=null==x?void 0:x.get(n);if(void 0!==r)return r||void 0;const i=e.getParsedCommandLine?e.getParsedCommandLine(t):function(e){const t=E(e,100);return t?(t.path=xa(e,u,f),t.resolvedPath=t.path,t.originalFileName=t.fileName,mL(t,C,ya(sa(e),u),void 0,ya(e,u))):void 0}(t);return(x||(x=new Map)).set(n,i||!1),i}function D(e,n){const r=t.getKeyForCompilationSettings(n);t.releaseDocumentWithKey(e.resolvedPath,r,e.scriptKind,e.impliedNodeFormat)}function E(e,t,n,r){return N(e,xa(e,u,f),t,0,r)}function N(n,r,i,o,a){In.assert(k,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const c=e.getScriptSnapshot(n);if(!c)return;const _=lX(n,e),l=e.getScriptVersion(n);if(!a){const o=s&&s.getSourceFileByPath(r);if(o){if(_===o.scriptKind)return t.updateDocumentWithKey(n,r,e,A,c,l,_,i);t.releaseDocumentWithKey(o.resolvedPath,t.getKeyForCompilationSettings(s.getCompilerOptions()),o.scriptKind,o.impliedNodeFormat)}}return t.acquireDocumentWithKey(n,r,e,A,c,l,_,i)}}function y(){if(2!==o)return h(),s;In.assert(void 0===s)}function v(e,t,n){const r=va(e);In.assert(n.some((e=>va(e)===r))),h();const i=Z(n,(e=>s.getSourceFile(e))),o=g(e);return rZ.getDocumentHighlights(s,l,o,t,i)}function b(e,t,n,r){h();const i=n&&n.use===voe.FindReferencesUse.Rename?s.getSourceFiles().filter((e=>!s.isSourceFileDefaultLibrary(e))):s.getSourceFiles();return voe.findReferenceOrRenameEntries(s,l,i,e,t,n,r)}const x=new Map(Object.entries({18:19,20:21,22:23,31:29}));function k(t){return In.assertEqual(t.type,"install package"),e.installPackage?e.installPackage({fileName:(n=t.file,xa(n,u,f)),packageName:t.packageName}):Promise.reject("Host does not implement `installPackage`");var n}function S(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function C(e,t,n){const r=a.getCurrentSourceFile(e),i=[],{lineStarts:o,firstLine:s,lastLine:c}=S(r,t);let _=n||!1,l=Number.MAX_VALUE;const u=new Map,d=/\S/,p=C$(r,o[s]),f=p?"{/*":"//";for(let e=s;e<=c;e++){const t=r.text.substring(o[e],r.getLineEndOfPosition(o[e])),i=d.exec(t);i&&(l=Math.min(l,i.index),u.set(e.toString(),i.index),t.substr(i.index,f.length)!==f&&(_=void 0===n||n))}for(let n=s;n<=c;n++){if(s!==c&&o[n]===t.end)continue;const a=u.get(n.toString());void 0!==a&&(p?i.push.apply(i,A(e,{pos:o[n]+l,end:r.getLineEndOfPosition(o[n])},_,p)):_?i.push({newText:f,span:{length:0,start:o[n]+l}}):r.text.substr(o[n]+a,f.length)===f&&i.push({newText:"",span:{length:f.length,start:o[n]+a}}))}return i}function A(e,t,n,r){var i;const o=a.getCurrentSourceFile(e),s=[],{text:c}=o;let _=!1,l=n||!1;const u=[];let{pos:d}=t;const p=void 0!==r?r:C$(o,d),f=p?"{/*":"/*",m=p?"*/}":"*/",g=p?"\\{\\/\\*":"\\/\\*",h=p?"\\*\\/\\}":"\\*\\/";for(;d<=t.end;){const e=F$(o,d+(c.substr(d,f.length)===f?f.length:0));if(e)p&&(e.pos--,e.end++),u.push(e.pos),3===e.kind&&u.push(e.end),_=!0,d=e.end+1;else{const e=c.substring(d,t.end).search(`(${g})|(${h})`);l=void 0!==n?n:l||!LG(c,d,-1===e?t.end:d+e),d=-1===e?t.end+1:d+e+m.length}}if(l||!_){2!==(null==(i=F$(o,t.pos))?void 0:i.kind)&&ge(u,t.pos,Jt),ge(u,t.end,Jt);const e=u[0];c.substr(e,f.length)!==f&&s.push({newText:f,span:{length:0,start:e}});for(let e=1;e0?e-m.length:0,n=c.substr(t,m.length)===m?m.length:0;s.push({newText:"",span:{length:f.length,start:e-n}})}return s}function w({openingElement:e,closingElement:t,parent:n}){return!RI(e.tagName,t.tagName)||iN(n)&&RI(e.tagName,n.openingElement.tagName)&&w(n)}function D({closingFragment:e,parent:t}){return!!(131072&e.flags)||cN(t)&&D(t)}function E(t,n,r,i,o,a){const[s,c]="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:t,startPosition:s,endPosition:c,program:y(),host:e,formatContext:afe.getFormatContext(i,e),cancellationToken:l,preferences:r,triggerReason:o,kind:a}}x.forEach(((e,t)=>x.set(e.toString(),Number(t))));const N={dispose:function(){if(s){const e=t.getKeyForCompilationSettings(s.getCompilerOptions());T(s.getSourceFiles(),(n=>t.releaseDocumentWithKey(n.resolvedPath,e,n.scriptKind,n.impliedNodeFormat))),s=void 0}e=void 0},cleanupSemanticCache:function(){s=void 0},getSyntacticDiagnostics:function(e){return h(),s.getSyntacticDiagnostics(g(e),l).slice()},getSemanticDiagnostics:function(e){h();const t=g(e),n=s.getSemanticDiagnostics(t,l);if(!tS(s.getCompilerOptions()))return n.slice();const r=s.getDeclarationDiagnostics(t,l);return[...n,...r]},getSuggestionDiagnostics:function(e){return h(),t0(g(e),s,l)},getCompilerOptionsDiagnostics:function(){return h(),[...s.getOptionsDiagnostics(l),...s.getGlobalDiagnostics(l)]},getSyntacticClassifications:function(e,t){return tZ(l,a.getCurrentSourceFile(e),t)},getSemanticClassifications:function(e,t,n){return h(),"2020"===(n||"original")?l6.v2020.getSemanticClassifications(s,l,g(e),t):$Y(s.getTypeChecker(),l,g(e),s.getClassifiableNames(),t)},getEncodedSyntacticClassifications:function(e,t){return nZ(l,a.getCurrentSourceFile(e),t)},getEncodedSemanticClassifications:function(e,t,n){return h(),"original"===(n||"original")?XY(s.getTypeChecker(),l,g(e),s.getClassifiableNames(),t):l6.v2020.getEncodedSemanticClassifications(s,l,g(e),t)},getCompletionsAtPosition:function(t,n,r=DW,i){const o={...r,includeCompletionsForModuleExports:r.includeCompletionsForModuleExports||r.includeExternalModuleExports,includeCompletionsWithInsertText:r.includeCompletionsWithInsertText||r.includeInsertTextCompletions};return h(),Eie.getCompletionsAtPosition(e,s,d,g(t),n,o,r.triggerCharacter,r.triggerKind,l,i&&afe.getFormatContext(i,e),r.includeSymbol)},getCompletionEntryDetails:function(t,n,r,i,o,a=DW,c){return h(),Eie.getCompletionEntryDetails(s,d,g(t),n,{name:r,source:o,data:c},e,i&&afe.getFormatContext(i,e),a,l)},getCompletionEntrySymbol:function(t,n,r,i,o=DW){return h(),Eie.getCompletionEntrySymbol(s,d,g(t),n,{name:r,source:i},e,o)},getSignatureHelpItems:function(e,t,{triggerReason:n}=DW){h();const r=g(e);return nue.getSignatureHelpItems(s,r,t,n,l)},getQuickInfoAtPosition:function(e,t){h();const n=g(e),r=_$(n,t);if(r===n)return;const i=s.getTypeChecker(),o=function(e){return ID(e.parent)&&e.pos===e.parent.pos?e.parent.expression:_D(e.parent)&&e.pos===e.parent.pos||cm(e.parent)&&e.parent.name===e?e.parent:e}(r),a=function(e,t){const n=c2(e);if(n){const e=t.getContextualType(n.parent),r=e&&_2(n,t,e,!1);if(r&&1===r.length)return Me(r)}return t.getSymbolAtLocation(e)}(o,i);if(!a||i.isUnknownSymbol(a)){const e=function(e,t,n){switch(t.kind){case 79:return!CH(t)&&!AH(t)&&!z_(t.parent);case 208:case 163:return!F$(e,n);case 108:case 194:case 106:case 199:return!0;case 233:return cm(t);default:return!1}}(n,o,t)?i.getTypeAtLocation(o):void 0;return e&&{kind:"",kindModifiers:"",textSpan:H$(o,n),displayParts:i.runWithCancellationToken(l,(t=>oX(t,e,OH(o)))),documentation:e.symbol?e.symbol.getDocumentationComment(i):void 0,tags:e.symbol?e.symbol.getJsDocTags(i):void 0}}const{symbolKind:c,displayParts:_,documentation:u,tags:d}=i.runWithCancellationToken(l,(e=>Cue.getSymbolDisplayPartsDocumentationAndSymbolKind(e,a,n,OH(o),o)));return{kind:c,kindModifiers:Cue.getSymbolModifiers(i,a),textSpan:H$(o,n),displayParts:_,documentation:u,tags:d}},getDefinitionAtPosition:function(e,t,n,r){return h(),Loe.getDefinitionAtPosition(s,g(e),t,n,r)},getDefinitionAndBoundSpan:function(e,t){return h(),Loe.getDefinitionAndBoundSpan(s,g(e),t)},getImplementationAtPosition:function(e,t){return h(),voe.getImplementationsAtPosition(s,l,s.getSourceFiles(),g(e),t)},getTypeDefinitionAtPosition:function(e,t){return h(),Loe.getTypeDefinitionAtPosition(s.getTypeChecker(),g(e),t)},getReferencesAtPosition:function(e,t){return h(),b(_$(g(e),t),t,{use:voe.FindReferencesUse.References},voe.toReferenceEntry)},findReferences:function(e,t){return h(),voe.findReferencedSymbols(s,l,s.getSourceFiles(),g(e),t)},getFileReferences:function(e){return h(),voe.Core.getReferencesForFileName(e,s,s.getSourceFiles()).map(voe.toReferenceEntry)},getOccurrencesAtPosition:function(e,t){return H(v(e,t,[e]),(e=>e.highlightSpans.map((t=>({fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind,...t.isInString&&{isInString:!0},...t.contextSpan&&{contextSpan:t.contextSpan}})))))},getDocumentHighlights:v,getNameOrDottedNameSpan:function(e,t,n){const r=a.getCurrentSourceFile(e),i=_$(r,t);if(i===r)return;switch(i.kind){case 208:case 163:case 10:case 95:case 110:case 104:case 106:case 108:case 194:case 79:break;default:return}let o=i;for(;;)if(DH(o)||wH(o))o=o.parent;else{if(!NH(o))break;if(264!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return pc(o.getStart(),i.getEnd())},getBreakpointStatementAtPosition:function(e,t){const n=a.getCurrentSourceFile(e);return F2.spanInSourceFileAtLocation(n,t)},getNavigateToItems:function(e,t,n,r=!1){return h(),v0(n?[g(n)]:s.getSourceFiles(),s.getTypeChecker(),l,e,t,r)},getRenameInfo:function(e,t,n){return h(),Fle.getRenameInfo(s,g(e),t,n||{})},getSmartSelectionRange:function(e,t){return mue.getSmartSelectionRange(t,a.getCurrentSourceFile(e))},findRenameLocations:function(e,t,n,r,i){h();const o=g(e),a=c$(_$(o,t));if(Fle.nodeIsEligibleForRename(a)){if(Tw(a)&&(aN(a.parent)||sN(a.parent))&&_v(a.escapedText)){const{openingElement:e,closingElement:t}=a.parent.parent;return[e,t].map((e=>{const t=H$(e.tagName,o);return{fileName:o.fileName,textSpan:t,...voe.toContextSpan(t,o,e.parent)}}))}return b(a,t,{findInStrings:n,findInComments:r,providePrefixAndSuffixTextForRename:i,use:voe.FindReferencesUse.Rename},((e,t,n)=>voe.toRenameLocation(e,t,n,i||!1)))}},getNavigationBarItems:function(e){return z0(a.getCurrentSourceFile(e),l)},getNavigationTree:function(e){return U0(a.getCurrentSourceFile(e),l)},getOutliningSpans:function(e){const t=a.getCurrentSourceFile(e);return Hae.collectElements(t,l)},getTodoComments:function(e,t){h();const n=g(e);l.throwIfCancellationRequested();const r=n.text,i=[];if(t.length>0&&!rn(n.fileName,"/node_modules/")){const e=function(){const e="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+V(t,(e=>"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")")).join("|")+")";return RegExp(e+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}();let a;for(;a=e.exec(r);){l.throwIfCancellationRequested();const e=3;In.assert(a.length===t.length+e);const s=a[1],c=a.index+s.length;if(!F$(n,c))continue;let _;for(let n=0;n=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57)continue;const u=a[2];i.push({descriptor:_,message:u,position:c})}}var o;return i},getBraceMatchingAtPosition:function(e,t){const n=a.getCurrentSourceFile(e),i=l$(n,t),o=i.getStart(n)===t?x.get(i.kind.toString()):void 0,s=o&&YH(i.parent,o,n);return s?[H$(i,n),H$(s,n)].sort(((e,t)=>e.start-t.start)):r},getIndentationAtPosition:function(e,t,n){let r=_r();const i=Y1(n),o=a.getCurrentSourceFile(e);d("getIndentationAtPosition: getCurrentSourceFile: "+(_r()-r)),r=_r();const s=afe.SmartIndenter.getIndentation(t,o,i);return d("getIndentationAtPosition: computeIndentation : "+(_r()-r)),s},getFormattingEditsForRange:function(t,n,r,i){const o=a.getCurrentSourceFile(t);return afe.formatSelection(n,r,o,afe.getFormatContext(Y1(i),e))},getFormattingEditsForDocument:function(t,n){return afe.formatDocument(a.getCurrentSourceFile(t),afe.getFormatContext(Y1(n),e))},getFormattingEditsAfterKeystroke:function(t,n,r,i){const o=a.getCurrentSourceFile(t),s=afe.getFormatContext(Y1(i),e);if(!F$(o,n))switch(r){case"{":return afe.formatOnOpeningCurly(n,o,s);case"}":return afe.formatOnClosingCurly(n,o,s);case";":return afe.formatOnSemicolon(n,o,s);case"\n":return afe.formatOnEnter(n,o,s)}return[]},getDocCommentTemplateAtPosition:function(t,n,r,i){const o=i?afe.getFormatContext(i,e).options:void 0;return cae.getDocCommentTemplateAtPosition(nX(e,o),a.getCurrentSourceFile(t),n,r)},isValidBraceCompletionAtPosition:function(e,t,n){if(60===n)return!1;const r=a.getCurrentSourceFile(e);if(b$(r,t))return!1;if(x$(r,t))return 123===n;if(S$(r,t))return!1;switch(n){case 39:case 34:case 96:return!F$(r,t)}return!0},getJsxClosingTagAtPosition:function(e,t){const n=a.getCurrentSourceFile(e),r=g$(t,n);if(!r)return;const i=31===r.kind&&aN(r.parent)?r.parent.parent:cw(r)&&iN(r.parent)?r.parent:void 0;if(i&&w(i))return{newText:``};const o=31===r.kind&&_N(r.parent)?r.parent.parent:cw(r)&&cN(r.parent)?r.parent:void 0;return o&&D(o)?{newText:""}:void 0},getSpanOfEnclosingComment:function(e,t,n){const r=a.getCurrentSourceFile(e),i=afe.getRangeOfEnclosingComment(r,t);return!i||n&&3!==i.kind?void 0:X$(i)},getCodeFixesAtPosition:function(t,n,r,i,o,a=DW){h();const c=g(t),_=pc(n,r),u=afe.getFormatContext(o,e);return H(fe(i,Mt,Jt),(t=>(l.throwIfCancellationRequested(),Ine.getFixes({errorCode:t,sourceFile:c,span:_,program:s,host:e,cancellationToken:l,formatContext:u,preferences:a}))))},getCombinedCodeFix:function(t,n,r,i=DW){h(),In.assert("file"===t.type);const o=g(t.fileName),a=afe.getFormatContext(r,e);return Ine.getAllFixes({fixId:n,sourceFile:o,program:s,host:e,cancellationToken:l,formatContext:a,preferences:i})},applyCodeActionCommand:function(e,t){const n="string"==typeof e?t:e;return ht(n)?Promise.all(n.map((e=>k(e)))):k(n)},organizeImports:function(t,n,r=DW){var i;h(),In.assert("file"===t.type);const o=g(t.fileName),a=afe.getFormatContext(n,e),c=null!=(i=t.mode)?i:t.skipDestructiveCodeActions?"SortAndCombine":"All";return Rae.organizeImports(o,a,e,s,r,c)},getEditsForFileRename:function(t,n,r,i=DW){return dZ(y(),t,n,e,afe.getFormatContext(r,e),i,m)},getEmitOutput:function(t,n,r){h();const i=g(t),o=e.getCustomTransformers&&e.getCustomTransformers();return Vq(s,i,!!n,l,o,r)},getNonBoundSourceFile:function(e){return a.getCurrentSourceFile(e)},getProgram:y,getCurrentProgram:()=>s,getAutoImportProvider:function(){var t;return null==(t=e.getPackageJsonAutoImportProvider)?void 0:t.call(e)},updateIsDefinitionOfReferencedSymbols:function(t,n){const r=s.getTypeChecker(),i=function(){for(const i of t)for(const t of i.references){if(n.has(t)){const e=o(t);return In.assertIsDefined(e),r.getSymbolAtLocation(e)}const i=RG(t,m,lt(e,e.fileExists));if(i&&n.has(i)){const e=o(i);if(e)return r.getSymbolAtLocation(e)}}}();if(!i)return!1;for(const r of t)for(const t of r.references){const r=o(t);if(In.assertIsDefined(r),n.has(t)||voe.isDeclarationOfSymbol(r,i)){n.add(t),t.isDefinition=!0;const r=RG(t,m,lt(e,e.fileExists));r&&n.add(r)}else t.isDefinition=!1}return!0;function o(e){const t=s.getSourceFile(e.fileName);if(!t)return;const n=_$(t,e.textSpan.start);return voe.Core.getAdjustedNode(n,{use:voe.FindReferencesUse.References})}},getApplicableRefactors:function(e,t,n=DW,r,i){h();const o=g(e);return kle.getApplicableRefactors(E(o,t,n,DW,r,i))},getEditsForRefactor:function(e,t,n,r,i,o=DW){h();const a=g(e);return kle.getEditsForRefactor(E(a,n,o,t),r,i)},toLineColumnOffset:function(e,t){return 0===t?{line:0,character:0}:m.toLineColumnOffset(e,t)},getSourceMapper:()=>m,clearSourceMapperCache:()=>m.clearCache(),prepareCallHierarchy:function(e,t){h();const n=G2.resolveCallHierarchyDeclaration(s,_$(g(e),t));return n&&dY(n,(e=>G2.createCallHierarchyItem(s,e)))},provideCallHierarchyIncomingCalls:function(e,t){h();const n=g(e),r=pY(G2.resolveCallHierarchyDeclaration(s,0===t?n:_$(n,t)));return r?G2.getIncomingCalls(s,r,l):[]},provideCallHierarchyOutgoingCalls:function(e,t){h();const n=g(e),r=pY(G2.resolveCallHierarchyDeclaration(s,0===t?n:_$(n,t)));return r?G2.getOutgoingCalls(s,r):[]},toggleLineComment:C,toggleMultilineComment:A,commentSelection:function(e,t){const n=a.getCurrentSourceFile(e),{firstLine:r,lastLine:i}=S(n,t);return r===i&&t.pos!==t.end?A(e,t,!0):C(e,t,!0)},uncommentSelection:function(e,t){const n=a.getCurrentSourceFile(e),r=[],{pos:i}=t;let{end:o}=t;i===o&&(o+=C$(n,i)?2:1);for(let t=i;t<=o;t++){const i=F$(n,t);if(i){switch(i.kind){case 2:r.push.apply(r,C(e,{end:i.end,pos:i.pos+1},!1));break;case 3:r.push.apply(r,A(e,{end:i.end,pos:i.pos+1},!1))}t=i.end+1}}return r},provideInlayHints:function(t,n,r=DW){h();const i=g(t);return Uoe.provideInlayHints(function(t,n,r){return{file:t,program:y(),host:e,span:n,preferences:r,cancellationToken:l}}(i,n,r))},getSupportedCodeFixes:n2};switch(o){case 0:break;case 1:q1.forEach((e=>N[e]=()=>{throw Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:V1.forEach((e=>N[e]=()=>{throw Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.Syntactic`)}));break;default:In.assertNever(o)}return N}function s2(e){return e.nameTable||function(e){const t=e.nameTable=new Map;e.forEachChild((function e(n){if(Tw(n)&&!AH(n)&&n.escapedText||Ty(n)&&function(e){return Xh(e)||280===e.parent.kind||function(e){return e&&e.parent&&209===e.parent.kind&&e.parent.argumentExpression===e}(e)||Zh(e)}(n)){const e=Fy(n);t.set(e,void 0===t.get(e)?n.pos:-1)}else if(Cw(n)){const e=n.escapedText;t.set(e,void 0===t.get(e)?n.pos:-1)}if(bI(n,e),Wu(n))for(const t of n.jsDoc)bI(t,e)}))}(e),e.nameTable}function c2(e){const t=function(e){switch(e.kind){case 10:case 14:case 8:if(164===e.parent.kind)return Xu(e.parent.parent)?e.parent.parent:void 0;case 79:return!Xu(e.parent)||207!==e.parent.parent.kind&&289!==e.parent.parent.kind||e.parent.name!==e?void 0:e.parent}}(e);return t&&(ED(t.parent)||dN(t.parent))?t:void 0}function _2(e,t,n,i){const o=_G(e.name);if(!o)return r;if(!n.isUnion()){const e=n.getProperty(o);return e?[e]:r}const a=Z(n.types,(n=>(ED(e.parent)||dN(e.parent))&&t.isTypeInvalidDueToUnionDiscriminant(n,e.parent)?void 0:n.getProperty(o)));if(i&&(0===a.length||a.length===n.types.length)){const e=n.getProperty(o);if(e)return[e]}return 0===a.length?Z(n.types,(e=>e.getProperty(o))):a}function l2(e){if(So)return ma(sa(va(So.getExecutingFilePath())),Zs(e));throw Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var u2=b({"src/services/services.ts"(){lfe(),lfe(),J0(),Q1(),D1="0.8",E1=class{constructor(e,t,n){this.pos=t,this.end=n,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){In.assert(!HS(this.pos)&&!HS(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return wp(this)}getStart(e,t){return this.assertHasRealPosition(),$p(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=function(e,t){if(!G_(e.kind))return r;const n=[];if(qu(e))return e.forEachChild((e=>{n.push(e)})),n;GW.setText((t||e.getSourceFile()).text);let i=e.pos;const o=t=>{W1(n,i,t.pos,e),n.push(t),i=t.end};return T(e.jsDoc,o),i=e.pos,e.forEachChild(o,(t=>{W1(n,i,t.pos,e),n.push(function(e,t){const n=K1(354,e.pos,e.end,t);n._children=[];let r=e.pos;for(const i of e)W1(n._children,r,i.pos,t),n._children.push(i),r=i.end;return W1(n._children,r,e.end,t),n}(t,e)),i=t.end})),W1(n,i,e.end,e),GW.setText(void 0),n}(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const n=P(t,(e=>e.kind<312||e.kind>353));return n.kind<163?n:n.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=Be(this.getChildren(e));if(t)return t.kind<163?t:t.getLastToken(e)}forEachChild(e,t){return bI(this,e,t)}},N1=class{constructor(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return wp(this)}getStart(e,t){return $p(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return 1===this.kind&&this.jsDoc||r}getFirstToken(){}getLastToken(){}forEachChild(){}},F1=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return Mc(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=r,!this.declarations&&op(this)&&this.links.target&&op(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=G1([t],e)}else this.documentationComment=G1(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(Ku(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=G1(z(this.declarations,Ku),t)),S(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(Qu(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=G1(z(this.declarations,Qu),t)),S(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return void 0===this.tags&&(this.tags=$1(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(Ku(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=$1(z(this.declarations,Ku),t)),S(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(Qu(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=$1(z(this.declarations,Qu),t)),S(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},P1=class extends N1{constructor(e,t,n){super(t,n),this.kind=e}},(I1=class extends N1{constructor(e,t,n){super(t,n),this.kind=79}get text(){return Oc(this)}}).prototype.kind=79,(O1=class extends N1{constructor(e,t,n){super(t,n),this.kind=80}get text(){return Oc(this)}}).prototype.kind=80,L1=class{constructor(e,t){this.checker=e,this.flags=t}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(1048576&this.flags)}isIntersection(){return!!(2097152&this.flags)}isUnionOrIntersection(){return!!(3145728&this.flags)}isLiteral(){return!!(2432&this.flags)}isStringLiteral(){return!!(128&this.flags)}isNumberLiteral(){return!!(256&this.flags)}isTypeParameter(){return!!(262144&this.flags)}isClassOrInterface(){return!!(3&Vx(this))}isClass(){return!!(1&Vx(this))}isIndexType(){return!!(4194304&this.flags)}get typeArguments(){if(4&Vx(this))return this.checker.getTypeArguments(this)}},M1=class{constructor(e,t){this.checker=e,this.flags=t}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){const t=this.checker.getParameterType(this,e);if(t.isIndexType()&&BT(t.type)){const e=t.type.getConstraint();if(e)return this.checker.getIndexType(e)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=G1(kn(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=$1(kn(this.declaration),this.checker))}},R1=class extends E1{constructor(e,t,n){super(e,t,n),this.kind=308}update(e,t){return DI(this,e,t)}getLineAndCharacterOfPosition(e){return ys(this,e)}getLineStarts(){return fs(this)}getPositionOfLineAndCharacter(e,t,n){return ps(fs(this),e,t,this.text,n)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),n=this.getLineStarts();let r;t+1>=n.length&&(r=this.getEnd()),r||(r=n[t+1]-1);const i=this.getFullText();return"\n"===i[r]&&"\r"===i[r-1]?r-1:r}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=ut();return this.forEachChild((function r(i){switch(i.kind){case 259:case 215:case 171:case 170:const o=i,a=n(o);if(a){const t=function(t){let n=e.get(t);return n||e.set(t,n=[]),n}(a),n=Be(t);n&&o.parent===n.parent&&o.symbol===n.symbol?o.body&&!n.body&&(t[t.length-1]=o):t.push(o)}bI(i,r);break;case 260:case 228:case 261:case 262:case 263:case 264:case 268:case 278:case 273:case 270:case 271:case 174:case 175:case 184:t(i),bI(i,r);break;case 166:if(!cb(i,16476))break;case 257:case 205:{const e=i;if(Ul(e.name)){bI(e.name,r);break}e.initializer&&r(e.initializer)}case 302:case 169:case 168:t(i);break;case 275:const s=i;s.exportClause&&(GE(s.exportClause)?T(s.exportClause.elements,r):r(s.exportClause.name));break;case 269:const c=i.importClause;c&&(c.name&&t(c.name),c.namedBindings&&(271===c.namedBindings.kind?t(c.namedBindings):T(c.namedBindings.elements,r)));break;case 223:0!==Hg(i)&&t(i);default:bI(i,r)}})),e;function t(t){const r=n(t);r&&e.add(r,t)}function n(e){const t=Uc(e);return t&&(Jw(t)&&ND(t.expression)?t.expression.name.text:xl(t)?_G(t):void 0)}}},B1=class{constructor(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n}getLineAndCharacterOfPosition(e){return ys(this,e)}},j1=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,n,r,i,o,a,s,c;const _=this.host.getScriptSnapshot(e);if(!_)throw Error("Could not find file: '"+e+"'.");const l=lX(e,this.host),u=this.host.getScriptVersion(e);let d;if(this.currentFileName!==e)d=i2(e,_,{languageVersion:99,impliedNodeFormat:Nq(xa(e,this.host.getCurrentDirectory(),(null==(r=null==(n=(t=this.host).getCompilerHost)?void 0:n.call(t))?void 0:r.getCanonicalFileName)||gv(this.host)),null==(c=null==(s=null==(a=null==(o=(i=this.host).getCompilerHost)?void 0:o.call(i))?void 0:a.getModuleResolutionCache)?void 0:s.call(a))?void 0:c.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:Mk(this.host.getCompilationSettings())},u,!0,l);else if(this.currentFileVersion!==u){const e=_.getChangeRange(this.currentFileScriptSnapshot);d=o2(this.currentSourceFile,_,u,e)}return d&&(this.currentFileVersion=u,this.currentFileName=e,this.currentFileScriptSnapshot=_,this.currentSourceFile=d),this.currentSourceFile}},J1={isCancellationRequested:Tt,throwIfCancellationRequested:St},z1=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=Ur)||e.instant(Ur.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new ti}},U1=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=_r();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested())}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=Ur)||e.instant(Ur.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new ti}},q1=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],V1=[...q1,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],pk({getNodeConstructor:()=>E1,getTokenConstructor:()=>P1,getIdentifierConstructor:()=>I1,getPrivateIdentifierConstructor:()=>O1,getSourceFileConstructor:()=>R1,getSymbolConstructor:()=>F1,getTypeConstructor:()=>L1,getSignatureConstructor:()=>M1,getSourceMapSourceConstructor:()=>B1})}});function d2(e,t,n){const r=[];n=h0(n,r);const i=ht(e)?e:[e],o=Jz(void 0,void 0,dC,n,i,t,!0);return o.diagnostics=ue(o.diagnostics,r),o}var p2,f2,m2,g2,h2,y2,v2,b2,x2,k2=b({"src/services/transform.ts"(){lfe()}});function S2(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}function T2(e,t,n,r){return C2(e,t,!0,n,r)}function C2(e,t,n,r,i){try{const o=function(e,t,n,r){let i;r&&(e.log(t),i=_r());const o=n();if(r){const n=_r();if(e.log(`${t} completed in ${n-i} msec`),vt(o)){let t=o;t.length>128&&(t=t.substring(0,128)+"..."),e.log(` result.length=${t.length}, result='${JSON.stringify(t)}'`)}}return o}(e,t,r,i);return n?JSON.stringify({result:o}):o}catch(n){return n instanceof ti?JSON.stringify({canceled:!0}):(S2(e,n),n.description=t,JSON.stringify({error:n}))}}function A2(e,t){return e.map((e=>function(e,t){return{message:dq(e.messageText,t),start:e.start,length:e.length,category:po(e),code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}(e,t)))}function w2(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var D2=b({"src/services/shims.ts"(){lfe(),p2=function(){return this}(),f2=class{constructor(e){this.scriptSnapshotShim=e}getText(e,t){return this.scriptSnapshotShim.getText(e,t)}getLength(){return this.scriptSnapshotShim.getLength()}getChangeRange(e){const t=e,n=this.scriptSnapshotShim.getChangeRange(t.scriptSnapshotShim);if(null===n)return null;const r=JSON.parse(n);return gc(dc(r.span.start,r.span.length),r.newLength)}dispose(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()}},m2=class{constructor(e){this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=(e,t)=>{const n=JSON.parse(this.shimHost.getModuleResolutionsForFile(t));return V(e,(e=>{const t=He(n,e);return t?{resolvedFileName:t,extension:XS(t),isExternalLibraryImport:!1}:void 0}))}),"directoryExists"in this.shimHost&&(this.directoryExists=e=>this.shimHost.directoryExists(e)),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=(e,t)=>{const n=JSON.parse(this.shimHost.getTypeReferenceDirectiveResolutionsForFile(t));return V(e,(e=>He(n,vt(e)?e:Et(e.fileName))))})}log(e){this.loggingEnabled&&this.shimHost.log(e)}trace(e){this.tracingEnabled&&this.shimHost.trace(e)}error(e){this.shimHost.error(e)}getProjectVersion(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()}getTypeRootsVersion(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0}useCaseSensitiveFileNames(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()}getCompilationSettings(){const e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");const t=JSON.parse(e);return t.allowNonTsExtensions=!0,t}getScriptFileNames(){const e=this.shimHost.getScriptFileNames();return JSON.parse(e)}getScriptSnapshot(e){const t=this.shimHost.getScriptSnapshot(e);return t&&new f2(t)}getScriptKind(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0}getScriptVersion(e){return this.shimHost.getScriptVersion(e)}getLocalizedDiagnosticMessages(){const e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(e){return this.log(e.description||"diagnosticMessages.generated.json has invalid JSON format"),null}}getCancellationToken(){const e=this.shimHost.getCancellationToken();return new U1(e)}getCurrentDirectory(){return this.shimHost.getCurrentDirectory()}getDirectories(e){return JSON.parse(this.shimHost.getDirectories(e))}getDefaultLibFileName(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))}readDirectory(e,t,n,r,i){const o=AS(e,n,r,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,i))}readFile(e,t){return this.shimHost.readFile(e,t)}fileExists(e){return this.shimHost.fileExists(e)}},g2=class{constructor(e){this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost?this.directoryExists=e=>this.shimHost.directoryExists(e):this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=e=>this.shimHost.realpath(e):this.realpath=void 0}readDirectory(e,t,n,r,i){const o=AS(e,n,r,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,i))}fileExists(e){return this.shimHost.fileExists(e)}readFile(e){return this.shimHost.readFile(e)}getDirectories(e){return JSON.parse(this.shimHost.getDirectories(e))}},h2=class{constructor(e){this.factory=e,e.registerShim(this)}dispose(e){this.factory.unregisterShim(this)}},y2=class extends h2{constructor(e,t,n){super(e),this.host=t,this.languageService=n,this.logPerformance=!1,this.logger=this.host}forwardJSONCall(e,t){return T2(this.logger,e,t,this.logPerformance)}dispose(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,p2&&p2.CollectGarbage&&(p2.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,super.dispose(e)}refresh(e){this.forwardJSONCall(`refresh(${e})`,(()=>null))}cleanupSemanticCache(){this.forwardJSONCall("cleanupSemanticCache()",(()=>(this.languageService.cleanupSemanticCache(),null)))}realizeDiagnostics(e){return A2(e,nX(this.host,void 0))}getSyntacticClassifications(e,t,n){return this.forwardJSONCall(`getSyntacticClassifications('${e}', ${t}, ${n})`,(()=>this.languageService.getSyntacticClassifications(e,dc(t,n))))}getSemanticClassifications(e,t,n){return this.forwardJSONCall(`getSemanticClassifications('${e}', ${t}, ${n})`,(()=>this.languageService.getSemanticClassifications(e,dc(t,n))))}getEncodedSyntacticClassifications(e,t,n){return this.forwardJSONCall(`getEncodedSyntacticClassifications('${e}', ${t}, ${n})`,(()=>w2(this.languageService.getEncodedSyntacticClassifications(e,dc(t,n)))))}getEncodedSemanticClassifications(e,t,n){return this.forwardJSONCall(`getEncodedSemanticClassifications('${e}', ${t}, ${n})`,(()=>w2(this.languageService.getEncodedSemanticClassifications(e,dc(t,n)))))}getSyntacticDiagnostics(e){return this.forwardJSONCall(`getSyntacticDiagnostics('${e}')`,(()=>{const t=this.languageService.getSyntacticDiagnostics(e);return this.realizeDiagnostics(t)}))}getSemanticDiagnostics(e){return this.forwardJSONCall(`getSemanticDiagnostics('${e}')`,(()=>{const t=this.languageService.getSemanticDiagnostics(e);return this.realizeDiagnostics(t)}))}getSuggestionDiagnostics(e){return this.forwardJSONCall(`getSuggestionDiagnostics('${e}')`,(()=>this.realizeDiagnostics(this.languageService.getSuggestionDiagnostics(e))))}getCompilerOptionsDiagnostics(){return this.forwardJSONCall("getCompilerOptionsDiagnostics()",(()=>{const e=this.languageService.getCompilerOptionsDiagnostics();return this.realizeDiagnostics(e)}))}getQuickInfoAtPosition(e,t){return this.forwardJSONCall(`getQuickInfoAtPosition('${e}', ${t})`,(()=>this.languageService.getQuickInfoAtPosition(e,t)))}getNameOrDottedNameSpan(e,t,n){return this.forwardJSONCall(`getNameOrDottedNameSpan('${e}', ${t}, ${n})`,(()=>this.languageService.getNameOrDottedNameSpan(e,t,n)))}getBreakpointStatementAtPosition(e,t){return this.forwardJSONCall(`getBreakpointStatementAtPosition('${e}', ${t})`,(()=>this.languageService.getBreakpointStatementAtPosition(e,t)))}getSignatureHelpItems(e,t,n){return this.forwardJSONCall(`getSignatureHelpItems('${e}', ${t})`,(()=>this.languageService.getSignatureHelpItems(e,t,n)))}getDefinitionAtPosition(e,t){return this.forwardJSONCall(`getDefinitionAtPosition('${e}', ${t})`,(()=>this.languageService.getDefinitionAtPosition(e,t)))}getDefinitionAndBoundSpan(e,t){return this.forwardJSONCall(`getDefinitionAndBoundSpan('${e}', ${t})`,(()=>this.languageService.getDefinitionAndBoundSpan(e,t)))}getTypeDefinitionAtPosition(e,t){return this.forwardJSONCall(`getTypeDefinitionAtPosition('${e}', ${t})`,(()=>this.languageService.getTypeDefinitionAtPosition(e,t)))}getImplementationAtPosition(e,t){return this.forwardJSONCall(`getImplementationAtPosition('${e}', ${t})`,(()=>this.languageService.getImplementationAtPosition(e,t)))}getRenameInfo(e,t,n){return this.forwardJSONCall(`getRenameInfo('${e}', ${t})`,(()=>this.languageService.getRenameInfo(e,t,n)))}getSmartSelectionRange(e,t){return this.forwardJSONCall(`getSmartSelectionRange('${e}', ${t})`,(()=>this.languageService.getSmartSelectionRange(e,t)))}findRenameLocations(e,t,n,r,i){return this.forwardJSONCall(`findRenameLocations('${e}', ${t}, ${n}, ${r}, ${i})`,(()=>this.languageService.findRenameLocations(e,t,n,r,i)))}getBraceMatchingAtPosition(e,t){return this.forwardJSONCall(`getBraceMatchingAtPosition('${e}', ${t})`,(()=>this.languageService.getBraceMatchingAtPosition(e,t)))}isValidBraceCompletionAtPosition(e,t,n){return this.forwardJSONCall(`isValidBraceCompletionAtPosition('${e}', ${t}, ${n})`,(()=>this.languageService.isValidBraceCompletionAtPosition(e,t,n)))}getSpanOfEnclosingComment(e,t,n){return this.forwardJSONCall(`getSpanOfEnclosingComment('${e}', ${t})`,(()=>this.languageService.getSpanOfEnclosingComment(e,t,n)))}getIndentationAtPosition(e,t,n){return this.forwardJSONCall(`getIndentationAtPosition('${e}', ${t})`,(()=>{const r=JSON.parse(n);return this.languageService.getIndentationAtPosition(e,t,r)}))}getReferencesAtPosition(e,t){return this.forwardJSONCall(`getReferencesAtPosition('${e}', ${t})`,(()=>this.languageService.getReferencesAtPosition(e,t)))}findReferences(e,t){return this.forwardJSONCall(`findReferences('${e}', ${t})`,(()=>this.languageService.findReferences(e,t)))}getFileReferences(e){return this.forwardJSONCall(`getFileReferences('${e})`,(()=>this.languageService.getFileReferences(e)))}getOccurrencesAtPosition(e,t){return this.forwardJSONCall(`getOccurrencesAtPosition('${e}', ${t})`,(()=>this.languageService.getOccurrencesAtPosition(e,t)))}getDocumentHighlights(e,t,n){return this.forwardJSONCall(`getDocumentHighlights('${e}', ${t})`,(()=>{const r=this.languageService.getDocumentHighlights(e,t,JSON.parse(n)),i=Et(pa(e));return z(r,(e=>Et(pa(e.fileName))===i))}))}getCompletionsAtPosition(e,t,n,r){return this.forwardJSONCall(`getCompletionsAtPosition('${e}', ${t}, ${n}, ${r})`,(()=>this.languageService.getCompletionsAtPosition(e,t,n,r)))}getCompletionEntryDetails(e,t,n,r,i,o,a){return this.forwardJSONCall(`getCompletionEntryDetails('${e}', ${t}, '${n}')`,(()=>{const s=void 0===r?void 0:JSON.parse(r);return this.languageService.getCompletionEntryDetails(e,t,n,s,i,o,a)}))}getFormattingEditsForRange(e,t,n,r){return this.forwardJSONCall(`getFormattingEditsForRange('${e}', ${t}, ${n})`,(()=>{const i=JSON.parse(r);return this.languageService.getFormattingEditsForRange(e,t,n,i)}))}getFormattingEditsForDocument(e,t){return this.forwardJSONCall(`getFormattingEditsForDocument('${e}')`,(()=>{const n=JSON.parse(t);return this.languageService.getFormattingEditsForDocument(e,n)}))}getFormattingEditsAfterKeystroke(e,t,n,r){return this.forwardJSONCall(`getFormattingEditsAfterKeystroke('${e}', ${t}, '${n}')`,(()=>{const i=JSON.parse(r);return this.languageService.getFormattingEditsAfterKeystroke(e,t,n,i)}))}getDocCommentTemplateAtPosition(e,t,n,r){return this.forwardJSONCall(`getDocCommentTemplateAtPosition('${e}', ${t})`,(()=>this.languageService.getDocCommentTemplateAtPosition(e,t,n,r)))}getNavigateToItems(e,t,n){return this.forwardJSONCall(`getNavigateToItems('${e}', ${t}, ${n})`,(()=>this.languageService.getNavigateToItems(e,t,n)))}getNavigationBarItems(e){return this.forwardJSONCall(`getNavigationBarItems('${e}')`,(()=>this.languageService.getNavigationBarItems(e)))}getNavigationTree(e){return this.forwardJSONCall(`getNavigationTree('${e}')`,(()=>this.languageService.getNavigationTree(e)))}getOutliningSpans(e){return this.forwardJSONCall(`getOutliningSpans('${e}')`,(()=>this.languageService.getOutliningSpans(e)))}getTodoComments(e,t){return this.forwardJSONCall(`getTodoComments('${e}')`,(()=>this.languageService.getTodoComments(e,JSON.parse(t))))}prepareCallHierarchy(e,t){return this.forwardJSONCall(`prepareCallHierarchy('${e}', ${t})`,(()=>this.languageService.prepareCallHierarchy(e,t)))}provideCallHierarchyIncomingCalls(e,t){return this.forwardJSONCall(`provideCallHierarchyIncomingCalls('${e}', ${t})`,(()=>this.languageService.provideCallHierarchyIncomingCalls(e,t)))}provideCallHierarchyOutgoingCalls(e,t){return this.forwardJSONCall(`provideCallHierarchyOutgoingCalls('${e}', ${t})`,(()=>this.languageService.provideCallHierarchyOutgoingCalls(e,t)))}provideInlayHints(e,t,n){return this.forwardJSONCall(`provideInlayHints('${e}', '${JSON.stringify(t)}', ${JSON.stringify(n)})`,(()=>this.languageService.provideInlayHints(e,t,n)))}getEmitOutput(e){return this.forwardJSONCall(`getEmitOutput('${e}')`,(()=>{const{diagnostics:t,...n}=this.languageService.getEmitOutput(e);return{...n,diagnostics:this.realizeDiagnostics(t)}}))}getEmitOutputObject(e){return C2(this.logger,`getEmitOutput('${e}')`,!1,(()=>this.languageService.getEmitOutput(e)),this.logPerformance)}toggleLineComment(e,t){return this.forwardJSONCall(`toggleLineComment('${e}', '${JSON.stringify(t)}')`,(()=>this.languageService.toggleLineComment(e,t)))}toggleMultilineComment(e,t){return this.forwardJSONCall(`toggleMultilineComment('${e}', '${JSON.stringify(t)}')`,(()=>this.languageService.toggleMultilineComment(e,t)))}commentSelection(e,t){return this.forwardJSONCall(`commentSelection('${e}', '${JSON.stringify(t)}')`,(()=>this.languageService.commentSelection(e,t)))}uncommentSelection(e,t){return this.forwardJSONCall(`uncommentSelection('${e}', '${JSON.stringify(t)}')`,(()=>this.languageService.uncommentSelection(e,t)))}},v2=class extends h2{constructor(e,t){super(e),this.logger=t,this.logPerformance=!1,this.classifier=VY()}getEncodedLexicalClassifications(e,t,n=!1){return T2(this.logger,"getEncodedLexicalClassifications",(()=>w2(this.classifier.getEncodedLexicalClassifications(e,t,n))),this.logPerformance)}getClassificationsForLine(e,t,n=!1){const r=this.classifier.getClassificationsForLine(e,t,n);let i="";for(const e of r.entries)i+=e.length+"\n",i+=e.classification+"\n";return i+=r.finalLexState,i}},b2=class extends h2{constructor(e,t,n){super(e),this.logger=t,this.host=n,this.logPerformance=!1}forwardJSONCall(e,t){return T2(this.logger,e,t,this.logPerformance)}resolveModuleName(e,t,n){return this.forwardJSONCall(`resolveModuleName('${e}')`,(()=>{const r=JSON.parse(n),i=jM(t,pa(e),r,this.host);let o=i.resolvedModule?i.resolvedModule.resolvedFileName:void 0;return i.resolvedModule&&".ts"!==i.resolvedModule.extension&&".tsx"!==i.resolvedModule.extension&&".d.ts"!==i.resolvedModule.extension&&(o=void 0),{resolvedFileName:o,failedLookupLocations:i.failedLookupLocations,affectingLocations:i.affectingLocations}}))}resolveTypeReferenceDirective(e,t,n){return this.forwardJSONCall(`resolveTypeReferenceDirective(${e})`,(()=>{const r=JSON.parse(n),i=xM(t,pa(e),r,this.host);return{resolvedFileName:i.resolvedTypeReferenceDirective?i.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:!i.resolvedTypeReferenceDirective||i.resolvedTypeReferenceDirective.primary,failedLookupLocations:i.failedLookupLocations}}))}getPreProcessedFileInfo(e,t){return this.forwardJSONCall(`getPreProcessedFileInfo('${e}')`,(()=>{const e=WZ(aG(t),!0,!0);return{referencedFiles:this.convertFileReferences(e.referencedFiles),importedFiles:this.convertFileReferences(e.importedFiles),ambientExternalModules:e.ambientExternalModules,isLibFile:e.isLibFile,typeReferenceDirectives:this.convertFileReferences(e.typeReferenceDirectives),libReferenceDirectives:this.convertFileReferences(e.libReferenceDirectives)}}))}getAutomaticTypeDirectiveNames(e){return this.forwardJSONCall(`getAutomaticTypeDirectiveNames('${e}')`,(()=>CM(JSON.parse(e),this.host)))}convertFileReferences(e){if(!e)return;const t=[];for(const n of e)t.push({path:pa(n.fileName),position:n.pos,length:n.end-n.pos});return t}getTSConfigFileInfo(e,t){return this.forwardJSONCall(`getTSConfigFileInfo('${e}')`,(()=>{const n=AI(e,aG(t)),r=pa(e),i=mL(n,this.host,sa(r),{},r);return{options:i.options,typeAcquisition:i.typeAcquisition,files:i.fileNames,raw:i.raw,errors:A2([...n.parseDiagnostics,...i.errors],"\r\n")}}))}getDefaultCompilationSettings(){return this.forwardJSONCall("getDefaultCompilationSettings()",(()=>({target:1,jsx:1})))}discoverTypings(e){const t=ln(!1);return this.forwardJSONCall("discoverTypings()",(()=>{const n=JSON.parse(e);return void 0===this.safeList&&(this.safeList=cW.loadSafeList(this.host,xa(n.safeListPath,n.safeListPath,t))),cW.discoverTypings(this.host,(e=>this.logger.log(e)),n.fileNames,xa(n.projectRootPath,n.projectRootPath,t),this.safeList,n.packageNameToTypingLocation,n.typeAcquisition,n.unresolvedImports,n.typesRegistry,DW)}))}},x2=class{constructor(){this._shims=[]}getServicesVersion(){return D1}createLanguageServiceShim(e){try{void 0===this.documentRegistry&&(this.documentRegistry=sZ(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()));const t=a2(new m2(e),this.documentRegistry,!1);return new y2(this,e,t)}catch(t){throw S2(e,t),t}}createClassifierShim(e){try{return new v2(this,e)}catch(t){throw S2(e,t),t}}createCoreServicesShim(e){try{const t=new g2(e);return new b2(this,e,t)}catch(t){throw S2(e,t),t}}close(){q(this._shims),this.documentRegistry=void 0}registerShim(e){this._shims.push(e)}unregisterShim(e){for(let t=0;tr){const t=g$(n.pos,e);if(!t||e.getLineAndCharacterOfPosition(t.getEnd()).line!==r)return;n=t}if(!(16777216&n.flags))return _(n);function i(t,n){const r=MP(t)?I(t.modifiers,qw):void 0;return pc(r?As(e.text,r.end):t.getStart(e),(n||t).getEnd())}function o(t,n){return i(t,m$(n,n.parent,e))}function a(t,n){return t&&r===e.getLineAndCharacterOfPosition(t.getStart(e)).line?_(t):_(n)}function s(t){return _(g$(t.pos,e))}function c(t){return _(m$(t,t.parent,e))}function _(t){if(t){const{parent:l}=t;switch(t.kind){case 240:return u(t.declarationList.declarations[0]);case 257:case 169:case 168:return u(t);case 166:return function e(t){if(Ul(t.name))return m(t.name);if(function(e){return!!e.initializer||void 0!==e.dotDotDotToken||cb(e,12)}(t))return i(t);{const n=t.parent,r=n.parameters.indexOf(t);return In.assert(-1!==r),0!==r?e(n.parameters[r-1]):_(n.body)}}(t);case 259:case 171:case 170:case 174:case 175:case 173:case 215:case 216:return function(e){if(e.body)return d(e)?i(e):_(e.body)}(t);case 238:if(Fm(t))return function(e){const t=e.statements.length?e.statements[0]:e.getLastToken();return d(e.parent)?a(e.parent,t):_(t)}(t);case 265:return p(t);case 295:return p(t.block);case 241:return i(t.expression);case 250:return i(t.getChildAt(0),t.expression);case 244:return o(t,t.expression);case 243:return _(t.statement);case 256:return i(t.getChildAt(0));case 242:return o(t,t.expression);case 253:return _(t.statement);case 249:case 248:return i(t.getChildAt(0),t.label);case 245:return(r=t).initializer?f(r):r.condition?i(r.condition):r.incrementor?i(r.incrementor):void 0;case 246:return o(t,t.expression);case 247:return f(t);case 252:return o(t,t.expression);case 292:case 293:return _(t.statements[0]);case 255:return p(t.tryBlock);case 254:case 274:return i(t,t.expression);case 268:return i(t,t.moduleReference);case 269:case 275:return i(t,t.moduleSpecifier);case 264:if(1!==BR(t))return;case 260:case 263:case 302:case 205:return i(t);case 251:return _(t.statement);case 167:return function(t,n,r){if(t){const i=t.indexOf(n);if(i>=0){let n=i,o=i+1;for(;n>0&&r(t[n-1]);)n--;for(;o0)return _(t.declarations[0])}}function m(e){const t=T(e.elements,(e=>229!==e.kind?e:void 0));return t?_(t):205===e.parent.kind?i(e.parent):l(e.parent)}function g(e){In.assert(204!==e.kind&&203!==e.kind);const t=T(206===e.kind?e.elements:e.properties,(e=>229!==e.kind?e:void 0));return t?_(t):i(223===e.parent.kind?e.parent:e)}}}var N2=b({"src/services/breakpoints.ts"(){lfe()}}),F2={};x(F2,{spanInSourceFileAtLocation:()=>E2});var P2=b({"src/services/_namespaces/ts.BreakpointResolver.ts"(){N2()}});function I2(e){return(RD(e)||BD(e)||GD(e))&&wE(e.parent)&&e===e.parent.initializer&&Tw(e.parent.name)&&!!(2&Ac(e.parent))}function O2(e){return TN(e)||OE(e)||EE(e)||RD(e)||NE(e)||GD(e)||Hw(e)||Ww(e)||Kw(e)||Gw(e)||Xw(e)}function L2(e){return TN(e)||OE(e)&&Tw(e.name)||EE(e)||NE(e)||Hw(e)||Ww(e)||Kw(e)||Gw(e)||Xw(e)||function(e){return(RD(e)||GD(e))&&zc(e)}(e)||I2(e)}function M2(e){return TN(e)?e:zc(e)?e.name:I2(e)?e.parent.name:In.checkDefined(e.modifiers&&P(e.modifiers,R2))}function R2(e){return 88===e.kind}function B2(e,t){const n=M2(t);return n&&e.getSymbolAtLocation(n)}function j2(e,t){if(t.body)return t;if($w(t))return Rv(t.parent);if(EE(t)||Ww(t)){const n=B2(e,t);return n&&n.valueDeclaration&&Cl(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return t}function J2(e,t){const n=B2(e,t);let r;if(n&&n.declarations){const e=pe(n.declarations),t=V(n.declarations,(e=>({file:e.getSourceFile().fileName,pos:e.pos})));e.sort(((e,n)=>Qt(t[e].file,t[n].file)||t[e].pos-t[n].pos));const i=V(e,(e=>n.declarations[e]));let o;for(const e of i)L2(e)&&(o&&o.parent===e.parent&&o.end===e.pos||(r=Se(r,e)),o=e)}return r}function z2(e,t){var n,r,i;return Hw(t)?t:Cl(t)?null!=(r=null!=(n=j2(e,t))?n:J2(e,t))?r:t:null!=(i=J2(e,t))?i:t}function U2(e,t){const n=e.getTypeChecker();let r=!1;for(;;){if(L2(t))return z2(n,t);if(O2(t)){const e=Ec(t,L2);return e&&z2(n,e)}if(Xh(t)){if(L2(t.parent))return z2(n,t.parent);if(O2(t.parent)){const e=Ec(t.parent,L2);return e&&z2(n,e)}return wE(t.parent)&&t.parent.initializer&&I2(t.parent.initializer)?t.parent.initializer:void 0}if($w(t))return L2(t.parent)?t.parent:void 0;if(124!==t.kind||!Hw(t.parent)){if(wE(t)&&t.initializer&&I2(t.initializer))return t.initializer;if(!r){let e=n.getSymbolAtLocation(t);if(e&&(2097152&e.flags&&(e=n.getAliasedSymbol(e)),e.valueDeclaration)){r=!0,t=e.valueDeclaration;continue}}return}t=t.parent}}function q2(e,t){const n=t.getSourceFile(),r=function(e,t){if(TN(t))return{text:t.fileName,pos:0,end:0};if((EE(t)||NE(t))&&!zc(t)){const e=t.modifiers&&P(t.modifiers,R2);if(e)return{text:"default",pos:e.getStart(),end:e.getEnd()}}if(Hw(t)){const n=As(t.getSourceFile().text,ux(t).pos),r=n+6,i=e.getTypeChecker(),o=i.getSymbolAtLocation(t.parent);return{text:(o?i.symbolToString(o,t.parent)+" ":"")+"static {}",pos:n,end:r}}const n=I2(t)?t.parent.name:In.checkDefined(qc(t),"Expected call hierarchy item to have a name");let r=Tw(n)?Oc(n):Ty(n)?n.text:Jw(n)&&Ty(n.expression)?n.expression.text:void 0;if(void 0===r){const i=e.getTypeChecker(),o=i.getSymbolAtLocation(n);o&&(r=i.symbolToString(o,t))}if(void 0===r){const e=Kz();r=fp((n=>e.writeNode(4,t,t.getSourceFile(),n)))}return{text:r,pos:n.getStart(),end:n.getEnd()}}(e,t),i=function(e){var t,n;if(I2(e))return LE(e.parent.parent.parent.parent)&&Tw(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 174:case 175:case 171:return 207===e.parent.kind?null==(t=Vc(e.parent))?void 0:t.getText():null==(n=qc(e.parent))?void 0:n.getText();case 259:case 260:case 264:if(LE(e.parent)&&Tw(e.parent.parent.name))return e.parent.parent.name.getText()}}(t),o=LH(t),a=O$(t),s=pc(As(n.text,t.getFullStart(),!1,!0),t.getEnd()),c=pc(r.pos,r.end);return{file:n.fileName,kind:o,kindModifiers:a,name:r.text,containerName:i,span:s,selectionSpan:c}}function V2(e){return void 0!==e}function Q2(e){if(e.kind===voe.EntryKind.Node){const{node:t}=e;if(uH(t,!0,!0)||dH(t,!0,!0)||pH(t,!0,!0)||fH(t,!0,!0)||DH(t)||EH(t)){const e=t.getSourceFile();return{declaration:Ec(t,L2)||e,range:G$(t,e)}}}}function K2(e){return qB(e.declaration)}function W2(e,t,n){if(TN(t)||OE(t)||Hw(t))return[];const r=M2(t),i=z(voe.findReferenceOrRenameEntries(e,n,e.getSourceFiles(),r,0,{use:voe.FindReferencesUse.References},Q2),V2);return i?ot(i,K2,(t=>function(e,t){return{from:q2(e,t[0].declaration),fromSpans:V(t,(e=>X$(e.range)))}}(e,t))):[]}function H2(e,t){return 16777216&t.flags||Kw(t)?[]:ot(function(e,t){const n=[],r=function(e,t){function n(n){const r=OD(n)?n.tag:Ju(n)?n.tagName:Yx(n)||Hw(n)?n:n.expression,i=U2(e,r);if(i){const e=G$(r,n.getSourceFile());if(ht(i))for(const n of i)t.push({declaration:n,range:e});else t.push({declaration:i,range:e})}}return function e(t){if(t&&!(16777216&t.flags))if(L2(t)){if(Fl(t))for(const n of t.members)n.name&&Jw(n.name)&&e(n.name.expression)}else{switch(t.kind){case 79:case 268:case 269:case 275:case 261:case 262:return;case 172:return void n(t);case 213:case 231:case 235:return void e(t.expression);case 257:case 166:return e(t.name),void e(t.initializer);case 210:case 211:return n(t),e(t.expression),void T(t.arguments,e);case 212:return n(t),e(t.tag),void e(t.template);case 283:case 282:return n(t),e(t.tagName),void e(t.attributes);case 167:return n(t),void e(t.expression);case 208:case 209:n(t),bI(t,e)}hm(t)||bI(t,e)}}}(e,n);switch(t.kind){case 308:!function(e,t){T(e.statements,t)}(t,r);break;case 264:!function(e,t){!cb(e,2)&&e.body&&LE(e.body)&&T(e.body.statements,t)}(t,r);break;case 259:case 215:case 216:case 171:case 174:case 175:!function(e,t,n){const r=j2(e,t);r&&(T(r.parameters,n),n(r.body))}(e.getTypeChecker(),t,r);break;case 260:case 228:!function(e,t){T(e.modifiers,t);const n=cy(e);n&&t(n.expression);for(const n of e.members)LP(n)&&T(n.modifiers,t),Qw(n)?t(n.initializer):$w(n)&&n.body?(T(n.parameters,t),t(n.body)):Hw(n)&&t(n)}(t,r);break;case 172:!function(e,t){t(e.body)}(t,r);break;default:In.assertNever(t)}return n}(e,t),K2,(t=>function(e,t){return{to:q2(e,t[0].declaration),fromSpans:V(t,(e=>X$(e.range)))}}(e,t)))}var $2=b({"src/services/callHierarchy.ts"(){lfe()}}),G2={};x(G2,{createCallHierarchyItem:()=>q2,getIncomingCalls:()=>W2,getOutgoingCalls:()=>H2,resolveCallHierarchyDeclaration:()=>U2});var X2,Y2,Z2,e6,t6=b({"src/services/_namespaces/ts.CallHierarchy.ts"(){$2()}});function n6(e,t,n,r){const i=r6(e,t,n,r);In.assert(i.spans.length%3==0);const o=i.spans,a=[];for(let e=0;ee(r)||r.isUnion()&&r.types.some(e);if(6!==n&&e((e=>e.getConstructSignatures().length>0)))return 0;if(e((e=>e.getCallSignatures().length>0))&&!e((e=>e.getProperties().length>0))||function(e){for(;a6(e);)e=e.parent;return PD(e.parent)&&e.parent.expression===e}(t))return 9===n?11:10}}return n}(o,c,i);const s=n.valueDeclaration;if(s){const r=Tc(s),o=Ac(s);32&r&&(a|=2),512&r&&(a|=4),0!==i&&2!==i&&(64&r||2&o||8&n.getFlags())&&(a|=8),7!==i&&10!==i||!function(e,t){return wD(e)&&(e=o6(e)),wE(e)?(!TN(e.parent.parent.parent)||yN(e.parent))&&e.getSourceFile()===t:!!EE(e)&&!TN(e.parent)&&e.getSourceFile()===t}(s,t)||(a|=32),e.isSourceFileDefaultLibrary(s.getSourceFile())&&(a|=16)}else n.declarations&&n.declarations.some((t=>e.isSourceFileDefaultLibrary(t.getSourceFile())))&&(a|=16);r(c,i,a)}}}bI(c,s),a=_}(t)}(e,t,n,((e,n,r)=>{i.push(e.getStart(t),e.getWidth(t),(n+1<<8)+r)}),r),i}function o6(e){for(;;){if(!wD(e.parent.parent))return e.parent.parent;e=e.parent.parent}}function a6(e){return jw(e.parent)&&e.parent.right===e||ND(e.parent)&&e.parent.name===e}var s6=b({"src/services/classifier2020.ts"(){lfe(),X2=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(X2||{}),Y2=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(Y2||{}),Z2=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(Z2||{}),e6=new Map([[257,7],[166,6],[169,9],[264,3],[263,1],[302,8],[260,0],[171,11],[259,10],[215,10],[170,11],[174,9],[175,9],[168,9],[261,2],[262,5],[165,4],[299,9],[300,9]])}}),c6={};x(c6,{TokenEncodingConsts:()=>X2,TokenModifier:()=>Z2,TokenType:()=>Y2,getEncodedSemanticClassifications:()=>r6,getSemanticClassifications:()=>n6});var _6=b({"src/services/_namespaces/ts.classifier.v2020.ts"(){s6()}}),l6={};x(l6,{v2020:()=>c6});var u6,d6,p6=b({"src/services/_namespaces/ts.classifier.ts"(){_6()}});function f6(e,t,n){return h6(e,AY(n),t,void 0,void 0)}function m6(e,t,n,r,i,o){return h6(e,AY(n),t,r,AY(i),o)}function g6(e,t,n,r,i,o){return h6(e,AY(n),t,r,i&&AY(i),o)}function h6(e,t,n,r,i,o){return{fixName:e,description:t,changes:n,fixId:r,fixAllDescription:i,commands:o?[o]:void 0}}function y6(e){for(const t of e.errorCodes)u6.add(t+"",e);if(e.fixIds)for(const t of e.fixIds)In.assert(!d6.has(t)),d6.set(t,e)}function v6(){return Ze(u6.keys())}function b6(e){const t=A6(e);return H(u6.get(e.errorCode+""),(n=>V(n.getCodeActions(e),function(e,t){const{errorCodes:n}=e;let r=0;for(const e of t)if(R(n,e.code)&&r++,r>1)break;const i=r<2;return({fixId:e,fixAllDescription:t,...n})=>i?n:{...n,fixId:e,fixAllDescription:t}}(n,t))))}function x6(e){return d6.get(kt(e.fixId,vt)).getAllCodeActions(e)}function k6(e,t){return{changes:e,commands:t}}function S6(e,t){return{fileName:e,textChanges:t}}function T6(e,t,n){const r=[];return k6(rde.ChangeTracker.with(e,(i=>C6(e,t,(e=>n(i,e,r))))),0===r.length?void 0:r)}function C6(e,t,n){for(const r of A6(e))R(t,r.code)&&n(r)}function A6({program:e,sourceFile:t,cancellationToken:n}){return[...e.getSemanticDiagnostics(t,n),...e.getSyntacticDiagnostics(t,n),...t0(t,e,n)]}var w6,D6,E6=b({"src/services/codeFixProvider.ts"(){lfe(),u6=ut(),d6=new Map}});function N6(e,t,n){const r=ZD(n)?dC.createAsExpression(n.expression,dC.createKeywordTypeNode(157)):dC.createTypeAssertion(dC.createKeywordTypeNode(157),n.expression);e.replaceNode(t,n.expression,r)}function F6(e,t){if(!Sg(e))return Ec(u$(e,t),(e=>ZD(e)||LD(e)))}var P6,I6,O6=b({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){lfe(),Une(),w6="addConvertToUnknownForNonOverlappingTypes",y6({errorCodes:D6=[ja.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code],getCodeActions:function(e){const t=F6(e.sourceFile,e.span.start);if(void 0===t)return;const n=rde.ChangeTracker.with(e,(n=>N6(n,e.sourceFile,t)));return[m6(w6,n,ja.Add_unknown_conversion_for_non_overlapping_types,w6,ja.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[w6],getAllCodeActions:e=>T6(e,D6,((e,t)=>{const n=F6(t.file,t.start);n&&N6(e,t.file,n)}))})}}),L6=b({"src/services/codefixes/addEmptyExportDeclaration.ts"(){lfe(),Une(),y6({errorCodes:[ja.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,ja.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(e){const{sourceFile:t}=e;return[f6("addEmptyExportDeclaration",rde.ChangeTracker.with(e,(e=>{const n=dC.createExportDeclaration(void 0,!1,dC.createNamedExports([]),void 0);e.insertNodeAtEndOfScope(t,t,n)})),ja.Add_export_to_make_this_file_into_a_module)]}})}});function M6(e,t,n,r){const i=n((n=>function(e,t,n,r){if(r&&r.has(qB(n)))return;null==r||r.add(qB(n));const i=dC.updateModifiers(gX(n,!0),dC.createNodeArray(dC.createModifiersFromModifierFlags(512|kb(n))));e.replaceNode(t,n,i)}(n,e.sourceFile,t,r)));return m6(P6,i,ja.Add_async_modifier_to_containing_function,P6,ja.Add_all_missing_async_modifiers)}function R6(e,t){if(t)return Ec(u$(e,t.start),(n=>n.getStart(e)ec(t)?"quit":(BD(n)||Ww(n)||RD(n)||EE(n))&&PG(t,H$(n,e))))}var B6,j6,J6,z6,U6=b({"src/services/codefixes/addMissingAsync.ts"(){lfe(),Une(),P6="addMissingAsync",I6=[ja.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,ja.Type_0_is_not_assignable_to_type_1.code,ja.Type_0_is_not_comparable_to_type_1.code],y6({fixIds:[P6],errorCodes:I6,getCodeActions:function(e){const{sourceFile:t,errorCode:n,cancellationToken:r,program:i,span:o}=e,a=P(i.getTypeChecker().getDiagnostics(t,r),function(e,t){return({start:n,length:r,relatedInformation:i,code:o})=>bt(n)&&bt(r)&&PG({start:n,length:r},e)&&o===t&&!!i&&_e(i,(e=>e.code===ja.Did_you_mean_to_mark_this_function_as_async.code))}(o,n)),s=R6(t,a&&a.relatedInformation&&P(a.relatedInformation,(e=>e.code===ja.Did_you_mean_to_mark_this_function_as_async.code)));if(s)return[M6(e,s,(t=>rde.ChangeTracker.with(e,t)))]},getAllCodeActions:e=>{const{sourceFile:t}=e,n=new Set;return T6(e,I6,((r,i)=>{const o=i.relatedInformation&&P(i.relatedInformation,(e=>e.code===ja.Did_you_mean_to_mark_this_function_as_async.code)),a=R6(t,o);if(a)return M6(e,a,(e=>(e(r),[])),n)}))}})}});function q6(e,t,n,r,i){const o=uY(e,n);return o&&function(e,t,n,r,i){return _e(i.getTypeChecker().getDiagnostics(e,r),(({start:e,length:r,relatedInformation:i,code:o})=>bt(e)&&bt(r)&&PG({start:e,length:r},n)&&o===t&&!!i&&_e(i,(e=>e.code===ja.Did_you_forget_to_use_await.code))))}(e,t,n,r,i)&&W6(o)?o:void 0}function V6(e,t,n,r,i,o){const{sourceFile:a,program:s,cancellationToken:c}=e,_=function(e,t,n,r,i){const o=function(e,t){if(ND(e.parent)&&Tw(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(Tw(e))return{identifiers:[e],isCompleteFix:!0};if(QD(e)){let n,r=!0;for(const i of[e.left,e.right]){const e=t.getTypeAtLocation(i);if(t.getPromisedTypeOfPromise(e)){if(!Tw(i)){r=!1;continue}(n||(n=[])).push(i)}}return n&&{identifiers:n,isCompleteFix:r}}}(e,i);if(!o)return;let a,s=o.isCompleteFix;for(const e of o.identifiers){const o=i.getSymbolAtLocation(e);if(!o)continue;const c=xt(o.valueDeclaration,wE),_=c&&xt(c.name,Tw),l=py(c,240);if(!c||!l||c.type||!c.initializer||l.getSourceFile()!==t||cb(l,1)||!_||!W6(c.initializer)){s=!1;continue}const u=r.getSemanticDiagnostics(t,n);voe.Core.eachSymbolReferenceInFile(_,i,t,(n=>e!==n&&!K6(n,u,t,i)))?s=!1:(a||(a=[])).push({expression:c.initializer,declarationSymbol:o})}return a&&{initializers:a,needsSecondPassForFixAll:!s}}(t,a,c,s,r);if(_)return f6("addMissingAwaitToInitializer",i((e=>{T(_.initializers,(({expression:t})=>H6(e,n,a,r,t,o))),o&&_.needsSecondPassForFixAll&&H6(e,n,a,r,t,o)})),1===_.initializers.length?[ja.Add_await_to_initializer_for_0,_.initializers[0].declarationSymbol.name]:ja.Add_await_to_initializers)}function Q6(e,t,n,r,i,o){const a=i((i=>H6(i,n,e.sourceFile,r,t,o)));return m6(B6,a,ja.Add_await,B6,ja.Fix_all_expressions_possibly_missing_await)}function K6(e,t,n,r){const i=ND(e.parent)?e.parent.name:QD(e.parent)?e.parent:e,o=P(t,(e=>e.start===i.getStart(n)&&e.start+e.length===i.getEnd()));return o&&R(z6,o.code)||1&r.getTypeAtLocation(i).flags}function W6(e){return 32768&e.kind||!!Ec(e,(e=>e.parent&&BD(e.parent)&&e.parent.body===e||cE(e)&&(259===e.parent.kind||215===e.parent.kind||216===e.parent.kind||171===e.parent.kind)))}function H6(e,t,n,r,i,o){if(hE(i.parent)&&!i.parent.awaitModifier){const t=r.getTypeAtLocation(i),o=r.getAsyncIterableType();if(o&&r.isTypeAssignableTo(t,o)){const t=i.parent;return void e.replaceNode(n,t,dC.updateForOfStatement(t,dC.createToken(133),t.initializer,t.expression,t.statement))}}if(QD(i))for(const t of[i.left,i.right]){if(o&&Tw(t)){const e=r.getSymbolAtLocation(t);if(e&&o.has(VB(e)))continue}const i=r.getTypeAtLocation(t),a=r.getPromisedTypeOfPromise(i)?dC.createAwaitExpression(t):t;e.replaceNode(n,t,a)}else if(t===j6&&ND(i.parent)){if(o&&Tw(i.parent.expression)){const e=r.getSymbolAtLocation(i.parent.expression);if(e&&o.has(VB(e)))return}e.replaceNode(n,i.parent.expression,dC.createParenthesizedExpression(dC.createAwaitExpression(i.parent.expression))),$6(e,i.parent.expression,n)}else if(R(J6,t)&&tu(i.parent)){if(o&&Tw(i)){const e=r.getSymbolAtLocation(i);if(e&&o.has(VB(e)))return}e.replaceNode(n,i,dC.createParenthesizedExpression(dC.createAwaitExpression(i))),$6(e,i,n)}else{if(o&&wE(i.parent)&&Tw(i.parent.name)){const e=r.getSymbolAtLocation(i.parent.name);if(e&&!oe(o,VB(e)))return}e.replaceNode(n,i,dC.createAwaitExpression(i))}}function $6(e,t,n){const r=g$(t.pos,n);r&&KX(r.end,r.parent,n)&&e.insertText(n,t.getStart(n),";")}var G6,X6,Y6=b({"src/services/codefixes/addMissingAwait.ts"(){lfe(),Une(),B6="addMissingAwait",j6=ja.Property_0_does_not_exist_on_type_1.code,J6=[ja.This_expression_is_not_callable.code,ja.This_expression_is_not_constructable.code],z6=[ja.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,ja.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,ja.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,ja.Operator_0_cannot_be_applied_to_type_1.code,ja.Operator_0_cannot_be_applied_to_types_1_and_2.code,ja.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,ja.This_condition_will_always_return_true_since_this_0_is_always_defined.code,ja.Type_0_is_not_an_array_type.code,ja.Type_0_is_not_an_array_type_or_a_string_type.code,ja.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,ja.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,ja.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,ja.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,ja.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,ja.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,j6,...J6],y6({fixIds:[B6],errorCodes:z6,getCodeActions:function(e){const{sourceFile:t,errorCode:n,span:r,cancellationToken:i,program:o}=e,a=q6(t,n,r,i,o);if(!a)return;const s=e.program.getTypeChecker(),c=t=>rde.ChangeTracker.with(e,t);return xe([V6(e,a,n,s,c),Q6(e,a,n,s,c)])},getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:r}=e,i=e.program.getTypeChecker(),o=new Set;return T6(e,z6,((a,s)=>{const c=q6(t,s.code,s,r,n);if(!c)return;const _=e=>(e(a),[]);return V6(e,c,s.code,i,_,o)||Q6(e,c,s.code,i,_,o)}))}})}});function Z6(e,t,n,r,i){const o=u$(t,n),a=Ec(o,(e=>hu(e.parent)?e.parent.initializer===e:!function(e){switch(e.kind){case 79:case 206:case 207:case 299:case 300:return!0;default:return!1}}(e)&&"quit"));if(a)return e3(e,a,t,i);const s=o.parent;if(QD(s)&&63===s.operatorToken.kind&&uE(s.parent))return e3(e,o,t,i);if(DD(s)){const n=r.getTypeChecker();if(!F(s.elements,(e=>function(e,t){const n=Tw(e)?e:Rb(e,!0)&&Tw(e.left)?e.left:void 0;return!!n&&!t.getSymbolAtLocation(n)}(e,n))))return;return e3(e,s,t,i)}const c=Ec(o,(e=>!!uE(e.parent)||!function(e){switch(e.kind){case 79:case 223:case 27:return!0;default:return!1}}(e)&&"quit"));if(c){if(!t3(c,r.getTypeChecker()))return;return e3(e,c,t,i)}}function e3(e,t,n,r){r&&!oe(r,t)||e.insertModifierBefore(n,85,t)}function t3(e,t){return!!QD(e)&&(27===e.operatorToken.kind?F([e.left,e.right],(e=>t3(e,t))):63===e.operatorToken.kind&&Tw(e.left)&&!t.getSymbolAtLocation(e.left))}var n3,r3,i3=b({"src/services/codefixes/addMissingConst.ts"(){lfe(),Une(),G6="addMissingConst",y6({errorCodes:X6=[ja.Cannot_find_name_0.code,ja.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],getCodeActions:function(e){const t=rde.ChangeTracker.with(e,(t=>Z6(t,e.sourceFile,e.span.start,e.program)));if(t.length>0)return[m6(G6,t,ja.Add_const_to_unresolved_variable,G6,ja.Add_const_to_all_unresolved_variables)]},fixIds:[G6],getAllCodeActions:e=>{const t=new Set;return T6(e,X6,((n,r)=>Z6(n,r.file,r.start,e.program,t)))}})}});function o3(e,t,n,r){const i=u$(t,n);if(!Tw(i))return;const o=i.parent;169!==o.kind||r&&!oe(r,o)||e.insertModifierBefore(t,136,o)}var a3,s3,c3=b({"src/services/codefixes/addMissingDeclareProperty.ts"(){lfe(),Une(),n3="addMissingDeclareProperty",y6({errorCodes:r3=[ja.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code],getCodeActions:function(e){const t=rde.ChangeTracker.with(e,(t=>o3(t,e.sourceFile,e.span.start)));if(t.length>0)return[m6(n3,t,ja.Prefix_with_declare,n3,ja.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[n3],getAllCodeActions:e=>{const t=new Set;return T6(e,r3,((e,n)=>o3(e,n.file,n.start,t)))}})}});function _3(e,t,n){const r=Ec(u$(t,n),qw);In.assert(!!r,"Expected position to be owned by a decorator.");const i=dC.createCallExpression(r.expression,void 0,void 0);e.replaceNode(t,r.expression,i)}var l3,u3,d3=b({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){lfe(),Une(),a3="addMissingInvocationForDecorator",y6({errorCodes:s3=[ja._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],getCodeActions:function(e){const t=rde.ChangeTracker.with(e,(t=>_3(t,e.sourceFile,e.span.start)));return[m6(a3,t,ja.Call_decorator_expression,a3,ja.Add_to_all_uncalled_decorators)]},fixIds:[a3],getAllCodeActions:e=>T6(e,s3,((e,t)=>_3(e,t.file,t.start)))})}});function p3(e,t,n){const r=u$(t,n),i=r.parent;if(!Uw(i))return In.fail("Tried to add a parameter name to a non-parameter: "+In.formatSyntaxKind(r.kind));const o=i.parent.parameters.indexOf(i);In.assert(!i.type,"Tried to add a parameter name to a parameter that already had one."),In.assert(o>-1,"Parameter not found in parent parameter list.");const a=dC.createTypeReferenceNode(i.name,void 0),s=dC.createParameterDeclaration(i.modifiers,i.dotDotDotToken,"arg"+o,i.questionToken,i.dotDotDotToken?dC.createArrayTypeNode(a):a,i.initializer);e.replaceNode(t,i,s)}var f3,m3=b({"src/services/codefixes/addNameToNamelessParameter.ts"(){lfe(),Une(),l3="addNameToNamelessParameter",y6({errorCodes:u3=[ja.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],getCodeActions:function(e){const t=rde.ChangeTracker.with(e,(t=>p3(t,e.sourceFile,e.span.start)));return[m6(l3,t,ja.Add_parameter_name,l3,ja.Add_names_to_all_parameters_without_names)]},fixIds:[l3],getAllCodeActions:e=>T6(e,u3,((e,t)=>p3(e,t.file,t.start)))})}});function g3(e,t,n){var i,o;const a=h3(uY(e,t),n);if(!a)return r;const{source:s,target:c}=a,_=function(e,t,n){return ND(t)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(t.expression)).length&&n.getTypeAtLocation(e)===n.getUndefinedType()}(s,c,n)?n.getTypeAtLocation(c.expression):n.getTypeAtLocation(c);return(null==(o=null==(i=_.symbol)?void 0:i.declarations)?void 0:o.some((e=>wp(e).fileName.match(/\.d\.ts$/))))?r:n.getExactOptionalProperties(_)}function h3(e,t){var n;if(e){if(QD(e.parent)&&63===e.parent.operatorToken.kind)return{source:e.parent.right,target:e.parent.left};if(wE(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(PD(e.parent)){const n=t.getSymbolAtLocation(e.parent.expression);if(!(null==n?void 0:n.valueDeclaration)||!Dl(n.valueDeclaration.kind))return;if(!_u(e))return;const r=e.parent.arguments.indexOf(e);if(-1===r)return;const i=n.valueDeclaration.parameters[r].name;if(Tw(i))return{source:e,target:i}}else if(vN(e.parent)&&Tw(e.parent.name)||bN(e.parent)){const r=h3(e.parent.parent,t);if(!r)return;const i=t.getPropertyOfType(t.getTypeAtLocation(r.target),e.parent.name.text),o=null==(n=null==i?void 0:i.declarations)?void 0:n[0];if(!o)return;return{source:vN(e.parent)?e.parent.initializer:e.parent.name,target:o}}}}var y3,v3,b3=b({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){lfe(),Une(),f3="addOptionalPropertyUndefined",y6({errorCodes:[ja.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,ja.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,ja.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],getCodeActions(e){const t=e.program.getTypeChecker(),n=g3(e.sourceFile,e.span,t);if(!n.length)return;const r=rde.ChangeTracker.with(e,(e=>function(e,t){for(const n of t){const t=n.valueDeclaration;if(t&&(Vw(t)||Qw(t))&&t.type){const n=dC.createUnionTypeNode([...189===t.type.kind?t.type.types:[t.type],dC.createTypeReferenceNode("undefined")]);e.replaceNode(t.getSourceFile(),t.type,n)}}}(e,n)));return[f6(f3,r,ja.Add_undefined_to_optional_property_type)]},fixIds:[f3]})}});function x3(e,t){const n=u$(e,t);return xt(Uw(n.parent)?n.parent.parent:n.parent,k3)}function k3(e){return function(e){return Cl(e)||257===e.kind||168===e.kind||169===e.kind}(e)&&S3(e)}function S3(e){return Cl(e)?e.parameters.some(S3)||!e.type&&!!x_(e):!e.type&&!!b_(e)}function T3(e,t,n){if(Cl(n)&&(x_(n)||n.parameters.some((e=>!!b_(e))))){if(!n.typeParameters){const r=$v(n);r.length&&e.insertTypeParameters(t,n,r)}const r=BD(n)&&!YH(n,20,t);r&&e.insertNodeBefore(t,Me(n.parameters),dC.createToken(20));for(const r of n.parameters)if(!r.type){const n=b_(r);n&&e.tryInsertTypeAnnotation(t,r,tj(n,C3,Jl))}if(r&&e.insertNodeAfter(t,je(n.parameters),dC.createToken(21)),!n.type){const r=x_(n);r&&e.tryInsertTypeAnnotation(t,n,tj(r,C3,Jl))}}else{const r=In.checkDefined(b_(n),"A JSDocType for this declaration should exist");In.assert(!n.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,n,tj(r,C3,Jl))}}function C3(e){switch(e.kind){case 315:case 316:return dC.createTypeReferenceNode("any",r);case 319:return function(e){return dC.createUnionTypeNode([tj(e.type,C3,Jl),dC.createTypeReferenceNode("undefined",r)])}(e);case 318:return C3(e.type);case 317:return function(e){return dC.createUnionTypeNode([tj(e.type,C3,Jl),dC.createTypeReferenceNode("null",r)])}(e);case 321:return function(e){return dC.createArrayTypeNode(tj(e.type,C3,Jl))}(e);case 320:return function(e){var t;return dC.createFunctionTypeNode(r,e.parameters.map(A3),null!=(t=e.type)?t:dC.createKeywordTypeNode(131))}(e);case 180:return function(e){let t=e.typeName,n=e.typeArguments;if(Tw(e.typeName)){if(wg(e))return function(e){const t=dC.createParameterDeclaration(void 0,void 0,148===e.typeArguments[0].kind?"n":"s",void 0,dC.createTypeReferenceNode(148===e.typeArguments[0].kind?"number":"string",[]),void 0),n=dC.createTypeLiteralNode([dC.createIndexSignature(void 0,[t],e.typeArguments[1])]);return RC(n,1),n}(e);let i=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1)}t=dC.createIdentifier(i),n="Array"!==i&&"Promise"!==i||e.typeArguments?nj(e.typeArguments,C3,Jl):dC.createNodeArray([dC.createTypeReferenceNode("any",r)])}return dC.createTypeReferenceNode(t,n)}(e);case 325:return function(e){const t=dC.createTypeLiteralNode(V(e.jsDocPropertyTags,(e=>dC.createPropertySignature(void 0,Tw(e.name)?e.name:e.name.right,qT(e)?dC.createToken(57):void 0,e.typeExpression&&tj(e.typeExpression.type,C3,Jl)||dC.createKeywordTypeNode(131)))));return RC(t,1),t}(e);default:const t=uj(e,C3,Nz);return RC(t,1),t}}function A3(e){const t=e.parent.parameters.indexOf(e),n=321===e.type.kind&&t===e.parent.parameters.length-1,r=e.name||(n?"rest":"arg"+t),i=n?dC.createToken(25):e.dotDotDotToken;return dC.createParameterDeclaration(e.modifiers,i,r,e.questionToken,tj(e.type,C3,Jl),e.initializer)}var w3,D3,E3=b({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){lfe(),Une(),y3="annotateWithTypeFromJSDoc",y6({errorCodes:v3=[ja.JSDoc_types_may_be_moved_to_TypeScript_types.code],getCodeActions(e){const t=x3(e.sourceFile,e.span.start);if(!t)return;const n=rde.ChangeTracker.with(e,(n=>T3(n,e.sourceFile,t)));return[m6(y3,n,ja.Annotate_with_type_from_JSDoc,y3,ja.Annotate_everything_with_types_from_JSDoc)]},fixIds:[y3],getAllCodeActions:e=>T6(e,v3,((e,t)=>{const n=x3(t.file,t.start);n&&T3(e,t.file,n)}))})}});function N3(e,t,n,r,i,o){const a=r.getSymbolAtLocation(u$(t,n));if(!(a&&a.valueDeclaration&&19&a.flags))return;const s=a.valueDeclaration;if(EE(s)||RD(s))e.replaceNode(t,s,function(e){const t=c(a);e.body&&t.unshift(dC.createConstructorDeclaration(void 0,e.parameters,e.body));const n=F3(e,93);return dC.createClassDeclaration(n,e.name,void 0,void 0,t)}(s));else if(wE(s)){const n=function(e){const t=e.initializer;if(!t||!RD(t)||!Tw(e.name))return;const n=c(e.symbol);t.body&&n.unshift(dC.createConstructorDeclaration(void 0,t.parameters,t.body));const r=F3(e.parent.parent,93);return dC.createClassDeclaration(r,e.name,void 0,void 0,n)}(s);if(!n)return;const r=s.parent.parent;DE(s.parent)&&s.parent.declarations.length>1?(e.delete(t,s),e.insertNodeAfter(t,r,n)):e.replaceNode(t,r,n)}function c(n){const r=[];return n.exports&&n.exports.forEach((e=>{if("prototype"===e.name&&e.declarations){const t=e.declarations[0];1===e.declarations.length&&ND(t)&&QD(t.parent)&&63===t.parent.operatorToken.kind&&ED(t.parent.right)&&a(t.parent.right.symbol,void 0,r)}else a(e,[dC.createToken(124)],r)})),n.members&&n.members.forEach(((i,o)=>{var s,c,_,l;if("constructor"===o&&i.valueDeclaration){const r=null==(l=null==(_=null==(c=null==(s=n.exports)?void 0:s.get("prototype"))?void 0:c.declarations)?void 0:_[0])?void 0:l.parent;r&&QD(r)&&ED(r.right)&&_e(r.right.properties,P3)||e.delete(t,i.valueDeclaration.parent)}else a(i,void 0,r)})),r;function a(n,r,a){if(!(8192&n.flags||4096&n.flags))return;const s=n.valueDeclaration,c=s.parent,_=c.right;if(u=_,!(Yx(l=s)?ND(l)&&P3(l)||Sl(u):F(l.properties,(e=>!!(Ww(e)||P_(e)||vN(e)&&RD(e.initializer)&&e.name||P3(e))))))return;var l,u;if(_e(a,(e=>{const t=qc(e);return!(!t||!Tw(t)||Oc(t)!==Mc(n))})))return;const d=c.parent&&241===c.parent.kind?c.parent:c;if(e.delete(t,d),_)if(Yx(s)&&(RD(_)||BD(_))){const e=bG(t,i),n=function(e,t,n){if(ND(e))return e.name;const r=e.argumentExpression;return ow(r)?r:ed(r)?Us(r.text,Rk(t))?dC.createIdentifier(r.text):lw(r)?dC.createStringLiteral(r.text,0===n):r:void 0}(s,o,e);n&&p(a,_,n)}else{if(!ED(_)){if(xg(t))return;if(!ND(s))return;const e=dC.createPropertyDeclaration(r,s.name,void 0,void 0,_);return EX(c.parent,e,t),void a.push(e)}T(_.properties,(e=>{(Ww(e)||P_(e))&&a.push(e),vN(e)&&RD(e.initializer)&&p(a,e.initializer,e.name),P3(e)}))}else a.push(dC.createPropertyDeclaration(r,n.name,void 0,void 0,void 0));function p(e,n,i){return RD(n)?function(e,n,i){const o=ue(r,F3(n,132)),a=dC.createMethodDeclaration(o,void 0,i,void 0,void 0,n.parameters,void 0,n.body);return EX(c,a,t),void e.push(a)}(e,n,i):function(e,n,i){const o=n.body;let a;a=238===o.kind?o:dC.createBlock([dC.createReturnStatement(o)]);const s=ue(r,F3(n,132)),_=dC.createMethodDeclaration(s,void 0,i,void 0,void 0,n.parameters,void 0,a);EX(c,_,t),e.push(_)}(e,n,i)}}}}function F3(e,t){return LP(e)?z(e.modifiers,(e=>e.kind===t)):void 0}function P3(e){return!!e.name&&!(!Tw(e.name)||"constructor"!==e.name.text)}var I3,O3,L3,M3=b({"src/services/codefixes/convertFunctionToEs6Class.ts"(){lfe(),Une(),w3="convertFunctionToEs6Class",y6({errorCodes:D3=[ja.This_constructor_function_may_be_converted_to_a_class_declaration.code],getCodeActions(e){const t=rde.ChangeTracker.with(e,(t=>N3(t,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())));return[m6(w3,t,ja.Convert_function_to_an_ES2015_class,w3,ja.Convert_all_constructor_functions_to_classes)]},fixIds:[w3],getAllCodeActions:e=>T6(e,D3,((t,n)=>N3(t,n.file,n.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())))})}});function R3(e,t,n,i){const o=u$(t,n);let a;if(a=Tw(o)&&wE(o.parent)&&o.parent.initializer&&Cl(o.parent.initializer)?o.parent.initializer:xt(zm(u$(t,n)),u0),!a)return;const s=new Map,c=Sg(a),_=function(e,t){if(!e.body)return new Set;const n=new Set;return bI(e.body,(function e(r){B3(r,t,"then")?(n.add(qB(r)),T(r.arguments,e)):B3(r,t,"catch")||B3(r,t,"finally")?(n.add(qB(r)),bI(r,e)):z3(r,t)?n.add(qB(r)):bI(r,e)})),n}(a,i),l=function(e,t,n){const r=new Map,i=ut();return bI(e,(function e(o){if(!Tw(o))return void bI(o,e);const a=t.getSymbolAtLocation(o);if(a){const e=e4(t.getTypeAtLocation(o),t),s=VB(a).toString();if(!e||Uw(o.parent)||Cl(o.parent)||n.has(s)){if(o.parent&&(Uw(o.parent)||wE(o.parent)||wD(o.parent))){const e=o.text,t=i.get(e);if(t&&t.some((e=>e!==a))){const t=U3(o,i);r.set(s,t.identifier),n.set(s,t),i.add(e,a)}else{const t=gX(o);n.set(s,i4(t)),i.add(e,a)}}}else{const t=Oe(e.parameters),r=(null==t?void 0:t.valueDeclaration)&&Uw(t.valueDeclaration)&&xt(t.valueDeclaration.name,Tw)||dC.createUniqueName("result",16),o=U3(r,i);n.set(s,o),i.add(r.text,a)}}})),hX(e,!0,(e=>{if(wD(e)&&Tw(e.name)&&CD(e.parent)){const n=t.getSymbolAtLocation(e.name),i=n&&r.get(VB(n)+"");if(i&&i.text!==(e.name||e.propertyName).getText())return dC.createBindingElement(e.dotDotDotToken,e.propertyName||e.name,i,e.initializer)}else if(Tw(e)){const n=t.getSymbolAtLocation(e),i=n&&r.get(VB(n)+"");if(i)return dC.createIdentifier(i.text)}}))}(a,i,s);if(!i0(l,i))return;const u=l.body&&cE(l.body)?function(e,t){const n=[];return vm(e,(e=>{o0(e,t)&&n.push(e)})),n}(l.body,i):r,d={checker:i,synthNamesMap:s,setOfExpressionsToReturn:_,isInJSFile:c};if(!u.length)return;const p=As(t.text,ux(a).pos);e.insertModifierAt(t,p,132,{suffix:" "});for(const n of u)if(bI(n,(function r(i){if(PD(i)){const r=Q3(i,i,d,!1);if(q3())return!0;e.replaceNodeWithNodes(t,n,r)}else if(!Sl(i)&&(bI(i,r),q3()))return!0})),q3())return}function B3(e,t,n){if(!PD(e))return!1;const r=kH(e,n)&&t.getTypeAtLocation(e);return!(!r||!t.getPromisedTypeOfPromise(r))}function j3(e,t){return 0!=(4&Vx(e))&&e.target===t}function J3(e,t,n){if("finally"===e.expression.name.escapedText)return;const r=n.getTypeAtLocation(e.expression.expression);if(j3(r,n.getPromiseType())||j3(r,n.getPromiseLikeType())){if("then"!==e.expression.name.escapedText)return s(e.typeArguments,0);if(t===s(e.arguments,0))return s(e.typeArguments,0);if(t===s(e.arguments,1))return s(e.typeArguments,1)}}function z3(e,t){return!!_u(e)&&!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e))}function U3(e,t){const n=(t.get(e.text)||r).length;return i4(0===n?e:dC.createIdentifier(e.text+"_"+n))}function q3(){return!L3}function V3(){return L3=!1,r}function Q3(e,t,n,r,i){if(B3(t,n.checker,"then"))return function(e,t,n,r,i,o){if(!t||K3(r,t))return $3(e,n,r,i,o);if(n&&!K3(r,n))return V3();const a=n4(t,r),s=Q3(e.expression.expression,e.expression.expression,r,!0,a);if(q3())return V3();const c=Y3(t,i,o,a,e,r);return q3()?V3():ue(s,c)}(t,s(t.arguments,0),s(t.arguments,1),n,r,i);if(B3(t,n.checker,"catch"))return $3(t,s(t.arguments,0),n,r,i);if(B3(t,n.checker,"finally"))return function(e,t,n,r,i){if(!t||K3(n,t))return Q3(e,e.expression.expression,n,r,i);const o=W3(e,n,i),a=Q3(e,e.expression.expression,n,!0,o);if(q3())return V3();const s=Y3(t,r,void 0,void 0,e,n);if(q3())return V3();const c=dC.createBlock(a),_=dC.createBlock(s);return H3(e,n,dC.createTryStatement(c,void 0,_),o,i)}(t,s(t.arguments,0),n,r,i);if(ND(t))return Q3(e,t.expression,n,r,i);const o=n.checker.getTypeAtLocation(t);return o&&n.checker.getPromisedTypeOfPromise(o)?(In.assertNode(Dc(t).parent,ND),function(e,t,n,r,i){if(l4(e,n)){let e=gX(t);return r&&(e=dC.createAwaitExpression(e)),[dC.createReturnStatement(e)]}return G3(i,dC.createAwaitExpression(t),void 0)}(e,t,n,r,i)):V3()}function K3({checker:e},t){if(104===t.kind)return!0;if(Tw(t)&&!dl(t)&&"undefined"===Oc(t)){const n=e.getSymbolAtLocation(t);return!n||e.isUndefinedSymbol(n)}return!1}function W3(e,t,n){let r;return n&&!l4(e,t)&&(_4(n)?(r=n,t.synthNamesMap.forEach(((e,r)=>{if(e.identifier.text===n.identifier.text){const e=(i=n,i4(dC.createUniqueName(i.identifier.text,16)));t.synthNamesMap.set(r,e)}var i}))):r=i4(dC.createUniqueName("result",16),n.types),c4(r)),r}function H3(e,t,n,r,i){const o=[];let a;if(r&&!l4(e,t)){a=gX(c4(r));const e=r.types,n=t.checker.getUnionType(e,2),i=t.isInJSFile?void 0:t.checker.typeToTypeNode(n,void 0,void 0),s=[dC.createVariableDeclaration(a,void 0,i)],c=dC.createVariableStatement(void 0,dC.createVariableDeclarationList(s,1));o.push(c)}return o.push(n),i&&a&&1===i.kind&&o.push(dC.createVariableStatement(void 0,dC.createVariableDeclarationList([dC.createVariableDeclaration(gX(s4(i)),void 0,void 0,a)],2))),o}function $3(e,t,n,r,i){if(!t||K3(n,t))return Q3(e,e.expression.expression,n,r,i);const o=n4(t,n),a=W3(e,n,i),s=Q3(e,e.expression.expression,n,!0,a);if(q3())return V3();const c=Y3(t,r,a,o,e,n);if(q3())return V3();const _=dC.createBlock(s),l=dC.createCatchClause(o&&gX(a4(o)),dC.createBlock(c));return H3(e,n,dC.createTryStatement(_,l,void 0),a,i)}function G3(e,t,n){return!e||r4(e)?[dC.createExpressionStatement(t)]:_4(e)&&e.hasBeenDeclared?[dC.createExpressionStatement(dC.createAssignment(gX(o4(e)),t))]:[dC.createVariableStatement(void 0,dC.createVariableDeclarationList([dC.createVariableDeclaration(gX(a4(e)),void 0,n,t)],2))]}function X3(e,t){if(t&&e){const n=dC.createUniqueName("result",16);return[...G3(i4(n),e,t),dC.createReturnStatement(n)]}return[dC.createReturnStatement(e)]}function Y3(e,t,n,i,o,a){var s;switch(e.kind){case 104:break;case 208:case 79:if(!i)break;const c=dC.createCallExpression(gX(e),void 0,_4(i)?[o4(i)]:[]);if(l4(o,a))return X3(c,J3(o,e,a.checker));const _=a.checker.getTypeAtLocation(e),l=a.checker.getSignaturesOfType(_,0);if(!l.length)return V3();const u=l[0].getReturnType(),d=G3(n,dC.createAwaitExpression(c),J3(o,e,a.checker));return n&&n.types.push(a.checker.getAwaitedType(u)||u),d;case 215:case 216:{const i=e.body,c=null==(s=e4(a.checker.getTypeAtLocation(e),a.checker))?void 0:s.getReturnType();if(cE(i)){let r=[],s=!1;for(const _ of i.statements)if(bE(_))if(s=!0,o0(_,a.checker))r=r.concat(t4(a,_,t,n));else{const t=c&&_.expression?Z3(a.checker,c,_.expression):_.expression;r.push(...X3(t,J3(o,e,a.checker)))}else{if(t&&vm(_,Ct))return V3();r.push(_)}return l4(o,a)?r.map((e=>gX(e))):function(e,t,n,r){const i=[];for(const r of e)if(bE(r)){if(r.expression){const e=z3(r.expression,n.checker)?dC.createAwaitExpression(r.expression):r.expression;void 0===t?i.push(dC.createExpressionStatement(e)):_4(t)&&t.hasBeenDeclared?i.push(dC.createExpressionStatement(dC.createAssignment(o4(t),e))):i.push(dC.createVariableStatement(void 0,dC.createVariableDeclarationList([dC.createVariableDeclaration(a4(t),void 0,void 0,e)],2)))}}else i.push(gX(r));return r||void 0===t||i.push(dC.createVariableStatement(void 0,dC.createVariableDeclarationList([dC.createVariableDeclaration(a4(t),void 0,void 0,dC.createIdentifier("undefined"))],2))),i}(r,n,a,s)}{const s=a0(i,a.checker)?t4(a,dC.createReturnStatement(i),t,n):r;if(s.length>0)return s;if(c){const t=Z3(a.checker,c,i);if(l4(o,a))return X3(t,J3(o,e,a.checker));{const e=G3(n,t,void 0);return n&&n.types.push(a.checker.getAwaitedType(c)||c),e}}return V3()}}default:return V3()}return r}function Z3(e,t,n){const r=gX(n);return e.getPromisedTypeOfPromise(t)?dC.createAwaitExpression(r):r}function e4(e,t){return Be(t.getSignaturesOfType(e,0))}function t4(e,t,n,r){let i=[];return bI(t,(function t(o){if(PD(o)){const t=Q3(o,o,e,n,r);if(i=i.concat(t),i.length>0)return}else Sl(o)||bI(o,t)})),i}function n4(e,t){const n=[];let i;if(Cl(e)?e.parameters.length>0&&(i=function e(t){if(Tw(t))return o(t);return function(e,t=r,n=[]){return{kind:1,bindingPattern:e,elements:t,types:n}}(t,H(t.elements,(t=>XD(t)?[]:[e(t.name)])))}(e.parameters[0].name)):Tw(e)?i=o(e):ND(e)&&Tw(e.name)&&(i=o(e.name)),i&&(!("identifier"in i)||"undefined"!==i.identifier.text))return i;function o(e){var r;const i=function(e){var n,r;return null!=(r=null==(n=xt(e,Au))?void 0:n.symbol)?r:t.checker.getSymbolAtLocation(e)}((r=e).original?r.original:r);return i&&t.synthNamesMap.get(VB(i).toString())||i4(e,n)}}function r4(e){return!e||(_4(e)?!e.identifier.text:F(e.elements,r4))}function i4(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function o4(e){return e.hasBeenReferenced=!0,e.identifier}function a4(e){return _4(e)?c4(e):s4(e)}function s4(e){for(const t of e.elements)a4(t);return e.bindingPattern}function c4(e){return e.hasBeenDeclared=!0,e.identifier}function _4(e){return 0===e.kind}function l4(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(qB(e.original))}var u4=b({"src/services/codefixes/convertToAsyncFunction.ts"(){lfe(),Une(),I3="convertToAsyncFunction",O3=[ja.This_may_be_converted_to_an_async_function.code],L3=!0,y6({errorCodes:O3,getCodeActions(e){L3=!0;const t=rde.ChangeTracker.with(e,(t=>R3(t,e.sourceFile,e.span.start,e.program.getTypeChecker())));return L3?[m6(I3,t,ja.Convert_to_async_function,I3,ja.Convert_all_to_async_functions)]:[]},fixIds:[I3],getAllCodeActions:e=>T6(e,O3,((t,n)=>R3(t,n.file,n.start,e.program.getTypeChecker())))})}});function d4(e,t,n,r){for(const i of e.imports){const o=gp(e,i.text,gq(e,i));if(!o||o.resolvedFileName!==t.fileName)continue;const a=uh(i);switch(a.kind){case 268:n.replaceNode(e,a,hG(a.name,void 0,i,r));break;case 210:Dg(a,!1)&&n.replaceNode(e,a,dC.createPropertyAccessExpression(gX(a),"default"))}}}function p4(e,t){e.forEachChild((function n(r){if(ND(r)&&QR(e,r.expression)&&Tw(r.name)){const{parent:e}=r;t(r,QD(e)&&e.left===r&&63===e.operatorToken.kind)}r.forEachChild(n)}))}function f4(e,t,n,r,o,a,s,c,_){switch(t.kind){case 240:return m4(e,t,r,n,o,a,_),!1;case 241:{const{expression:o}=t;switch(o.kind){case 210:return Dg(o,!0)&&r.replaceNode(e,t,hG(void 0,void 0,o.arguments[0],_)),!1;case 223:{const{operatorToken:t}=o;return 63===t.kind&&function(e,t,n,r,o,a){const{left:s,right:c}=n;if(!ND(s))return!1;if(QR(e,s)){if(!QR(e,c)){const o=ED(c)?function(e,t){const n=Y(e.properties,(e=>{switch(e.kind){case 174:case 175:case 300:case 301:return;case 299:return Tw(e.name)?function(e,t,n){const r=[dC.createToken(93)];switch(t.kind){case 215:{const{name:n}=t;if(n&&n.text!==e)return i()}case 216:return k4(e,r,t,n);case 228:return function(e,t,n,r){return dC.createClassDeclaration(ue(t,vX(n.modifiers)),e,vX(n.typeParameters),vX(n.heritageClauses),y4(n.members,r))}(e,r,t,n);default:return i()}function i(){return C4(r,dC.createIdentifier(e),y4(t,n))}}(e.name.text,e.initializer,t):void 0;case 171:return Tw(e.name)?k4(e.name.text,[dC.createToken(93)],e,t):void 0;default:In.assertNever(e,"Convert to ES6 got invalid prop kind "+e.kind)}}));return n&&[n,!1]}(c,a):Dg(c,!0)?function(e,t){const n=e.text,r=t.getSymbolAtLocation(e),o=r?r.exports:i;return o.has("export=")?[[h4(n)],!0]:o.has("default")?o.size>1?[[g4(n),h4(n)],!0]:[[h4(n)],!0]:[[g4(n)],!1]}(c.arguments[0],t):void 0;return o?(r.replaceNodeWithNodes(e,n.parent,o[0]),o[1]):(r.replaceRangeWithText(e,sx(s.getStart(e),c.pos),"export default"),!0)}r.delete(e,n.parent)}else QR(e,s.expression)&&function(e,t,n,r){const{text:i}=t.left.name,o=r.get(i);if(void 0!==o){const r=[C4(void 0,o,t.right),A4([dC.createExportSpecifier(!1,o,i)])];n.replaceNodeWithNodes(e,t.parent,r)}else!function({left:e,right:t,parent:n},r,i){const o=e.name.text;if(!(RD(t)||BD(t)||GD(t))||t.name&&t.name.text!==o)i.replaceNodeRangeWithNodes(r,e.expression,YH(e,24,r),[dC.createToken(93),dC.createToken(85)],{joiner:" ",suffix:" "});else{i.replaceRange(r,{pos:e.getStart(r),end:t.getStart(r)},dC.createToken(93),{suffix:" "}),t.name||i.insertName(r,t,o);const a=YH(n,26,r);a&&i.delete(r,a)}}(t,e,n)}(e,n,r,o);return!1}(e,n,o,r,s,c)}}}default:return!1}}function m4(e,t,n,r,i,o,a){const{declarationList:s}=t;let c=!1;const _=V(s.declarations,(t=>{const{name:n,initializer:_}=t;if(_){if(QR(e,_))return c=!0,w4([]);if(Dg(_,!0))return c=!0,function(e,t,n,r,i,o){switch(e.kind){case 203:{const n=Y(e.elements,(e=>e.dotDotDotToken||e.initializer||e.propertyName&&!Tw(e.propertyName)||!Tw(e.name)?void 0:T4(e.propertyName&&e.propertyName.text,e.name.text)));if(n)return w4([hG(void 0,n,t,o)])}case 204:{const n=v4(R8(t.text,i),r);return w4([hG(dC.createIdentifier(n),void 0,t,o),C4(void 0,gX(e),dC.createIdentifier(n))])}case 79:return function(e,t,n,r,i){const o=n.getSymbolAtLocation(e),a=new Map;let s,c=!1;for(const t of r.original.get(e.text)){if(n.getSymbolAtLocation(t)!==o||t===e)continue;const{parent:i}=t;if(ND(i)){const{name:{text:e}}=i;if("default"===e){c=!0;const e=t.getText();(null!=s?s:s=new Map).set(i,dC.createIdentifier(e))}else{In.assert(i.expression===t,"Didn't expect expression === use");let n=a.get(e);void 0===n&&(n=v4(e,r),a.set(e,n)),(null!=s?s:s=new Map).set(i,dC.createIdentifier(n))}}else c=!0}const _=0===a.size?void 0:Ze(Q(a.entries(),(([e,t])=>dC.createImportSpecifier(!1,e===t?void 0:dC.createIdentifier(e),dC.createIdentifier(t)))));return _||(c=!0),w4([hG(c?gX(e):void 0,_,t,i)],s)}(e,t,n,r,o);default:return In.assertNever(e,"Convert to ES module got invalid name kind "+e.kind)}}(n,_.arguments[0],r,i,o,a);if(ND(_)&&Dg(_.expression,!0))return c=!0,function(e,t,n,r,i){switch(e.kind){case 203:case 204:{const o=v4(t,r);return w4([S4(o,t,n,i),C4(void 0,e,dC.createIdentifier(o))])}case 79:return w4([S4(e.text,t,n,i)]);default:return In.assertNever(e,"Convert to ES module got invalid syntax form "+e.kind)}}(n,_.name.text,_.expression.arguments[0],i,a)}return w4([dC.createVariableStatement(void 0,dC.createVariableDeclarationList([t],s.flags))])}));if(c){let r;return n.replaceNodeWithNodes(e,t,H(_,(e=>e.newImports))),T(_,(e=>{e.useSitesToUnqualify&&pp(e.useSitesToUnqualify,null!=r?r:r=new Map)})),r}}function g4(e){return A4(void 0,e)}function h4(e){return A4([dC.createExportSpecifier(!1,void 0,"default")],e)}function y4(e,t){return t&&_e(Ze(t.keys()),(t=>BH(e,t)))?ht(e)?bX(e,!0,n):hX(e,!0,n):e;function n(e){if(208===e.kind){const n=t.get(e);return t.delete(e),n}}}function v4(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_"+e;return t.additional.add(e),e}function b4(e){const t=ut();return x4(e,(e=>t.add(e.text,e))),t}function x4(e,t){Tw(e)&&function(e){const{parent:t}=e;switch(t.kind){case 208:return t.name!==e;case 205:case 273:return t.propertyName!==e;default:return!0}}(e)&&t(e),e.forEachChild((e=>x4(e,t)))}function k4(e,t,n,r){return dC.createFunctionDeclaration(ue(t,vX(n.modifiers)),gX(n.asteriskToken),e,vX(n.typeParameters),vX(n.parameters),gX(n.type),dC.converters.convertToFunctionBlock(y4(n.body,r)))}function S4(e,t,n,r){return"default"===t?hG(dC.createIdentifier(e),void 0,n,r):hG(void 0,[T4(t,e)],n,r)}function T4(e,t){return dC.createImportSpecifier(!1,void 0!==e&&e!==t?dC.createIdentifier(e):void 0,dC.createIdentifier(t))}function C4(e,t,n){return dC.createVariableStatement(e,dC.createVariableDeclarationList([dC.createVariableDeclaration(t,void 0,void 0,n)],2))}function A4(e,t){return dC.createExportDeclaration(void 0,!1,e&&dC.createNamedExports(e),void 0===t?void 0:dC.createStringLiteral(t))}function w4(e,t){return{newImports:e,useSitesToUnqualify:t}}var D4,E4,N4=b({"src/services/codefixes/convertToEsModule.ts"(){lfe(),Une(),y6({errorCodes:[ja.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:n,preferences:r}=e;return[f6("convertToEsModule",rde.ChangeTracker.with(e,(e=>{if(function(e,t,n,r,i){const o={original:b4(e),additional:new Set},a=function(e,t,n){const r=new Map;return p4(e,(e=>{const{text:i}=e.name;r.has(i)||!by(e.name)&&!t.resolveName(i,e,111551,!0)||r.set(i,v4("_"+i,n))})),r}(e,t,o);!function(e,t,n){p4(e,((r,i)=>{if(i)return;const{text:o}=r.name;n.replaceNode(e,r,dC.createIdentifier(t.get(o)||o))}))}(e,a,n);let s,c=!1;for(const a of z(e.statements,_E)){const c=m4(e,a,n,t,o,r,i);c&&pp(c,null!=s?s:s=new Map)}for(const _ of z(e.statements,(e=>!_E(e)))){const l=f4(e,_,t,n,o,r,a,s,i);c=c||l}return null==s||s.forEach(((t,r)=>{n.replaceNode(e,r,t)})),c}(t,n.getTypeChecker(),e,Rk(n.getCompilerOptions()),bG(t,r)))for(const i of n.getSourceFiles())d4(i,t,e,bG(i,r))})),ja.Convert_to_ES_module)]}})}});function F4(e,t){const n=Ec(u$(e,t),jw);return In.assert(!!n,"Expected position to be owned by a qualified name."),Tw(n.left)?n:void 0}function P4(e,t,n){const r=n.right.text,i=dC.createIndexedAccessTypeNode(dC.createTypeReferenceNode(n.left,void 0),dC.createLiteralTypeNode(dC.createStringLiteral(r)));e.replaceNode(t,n,i)}var I4,O4,L4=b({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){lfe(),Une(),D4="correctQualifiedNameToIndexedAccessType",y6({errorCodes:E4=[ja.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code],getCodeActions(e){const t=F4(e.sourceFile,e.span.start);if(!t)return;const n=rde.ChangeTracker.with(e,(n=>P4(n,e.sourceFile,t))),r=`${t.left.text}["${t.right.text}"]`;return[m6(D4,n,[ja.Rewrite_as_the_indexed_access_type_0,r],D4,ja.Rewrite_all_as_indexed_access_types)]},fixIds:[D4],getAllCodeActions:e=>T6(e,E4,((e,t)=>{const n=F4(t.file,t.start);n&&P4(e,t.file,n)}))})}});function M4(e,t){return xt(u$(t,e.start).parent,XE)}function R4(e,t,n){if(!t)return;const r=t.parent,i=r.parent,o=function(e,t){const n=e.parent;if(1===n.elements.length)return n.elements;const r=_Y(H$(n),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return z(n.elements,(t=>{var n;return t===e||(null==(n=cY(t,r))?void 0:n.code)===I4[0]}))}(t,n);if(o.length===r.elements.length)e.insertModifierBefore(n.sourceFile,154,r);else{const t=dC.updateExportDeclaration(i,i.modifiers,!1,dC.updateNamedExports(r,z(r.elements,(e=>!R(o,e)))),i.moduleSpecifier,void 0),a=dC.createExportDeclaration(void 0,!0,dC.createNamedExports(o),i.moduleSpecifier,void 0);e.replaceNode(n.sourceFile,i,t,{leadingTriviaOption:rde.LeadingTriviaOption.IncludeAll,trailingTriviaOption:rde.TrailingTriviaOption.Exclude}),e.insertNodeAfter(n.sourceFile,i,a)}}var B4,j4,J4=b({"src/services/codefixes/convertToTypeOnlyExport.ts"(){lfe(),Une(),y6({errorCodes:I4=[ja.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],getCodeActions:function(e){const t=rde.ChangeTracker.with(e,(t=>R4(t,M4(e.span,e.sourceFile),e)));if(t.length)return[m6(O4,t,ja.Convert_to_type_only_export,O4,ja.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[O4="convertToTypeOnlyExport"],getAllCodeActions:function(e){const t=new Map;return T6(e,I4,((n,r)=>{const i=M4(r,e.sourceFile);i&&$x(t,qB(i.parent.parent))&&R4(n,i,e)}))}})}});function z4(e,t){const{parent:n}=u$(e,t);return WE(n)||jE(n)&&n.importClause?n:void 0}function U4(e,t,n){if(WE(n))e.replaceNode(t,n,dC.updateImportSpecifier(n,!0,n.propertyName,n.name));else{const r=n.importClause;if(r.name&&r.namedBindings)e.replaceNodeWithNodes(t,n,[dC.createImportDeclaration(vX(n.modifiers,!0),dC.createImportClause(!0,gX(r.name,!0),void 0),gX(n.moduleSpecifier,!0),gX(n.assertClause,!0)),dC.createImportDeclaration(vX(n.modifiers,!0),dC.createImportClause(!0,void 0,gX(r.namedBindings,!0)),gX(n.moduleSpecifier,!0),gX(n.assertClause,!0))]);else{const i=dC.updateImportDeclaration(n,n.modifiers,dC.updateImportClause(r,!0,r.name,r.namedBindings),n.moduleSpecifier,n.assertClause);e.replaceNode(t,n,i)}}}var q4,V4,Q4=b({"src/services/codefixes/convertToTypeOnlyImport.ts"(){lfe(),Une(),y6({errorCodes:B4=[ja.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,ja._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],getCodeActions:function(e){const t=z4(e.sourceFile,e.span.start);if(t){const n=rde.ChangeTracker.with(e,(n=>U4(n,e.sourceFile,t)));return[m6(j4,n,ja.Convert_to_type_only_import,j4,ja.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]}},fixIds:[j4="convertToTypeOnlyImport"],getAllCodeActions:function(e){return T6(e,B4,((e,t)=>{const n=z4(t.file,t.start);n&&U4(e,t.file,n)}))}})}});function K4(e,t){const n=u$(e,t);if(Tw(n)){const t=kt(n.parent.parent,Vw),r=n.getText(e);return{container:kt(t.parent,aD),typeNode:t.type,constraint:r,name:"K"===r?"P":"K"}}}function W4(e,t,{container:n,typeNode:r,constraint:i,name:o}){e.replaceNode(t,n,dC.createMappedTypeNode(void 0,dC.createTypeParameterDeclaration(void 0,o,dC.createTypeReferenceNode(i)),void 0,void 0,r,void 0))}var H4,$4,G4=b({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){lfe(),Une(),q4="convertLiteralTypeToMappedType",y6({errorCodes:V4=[ja._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=K4(t,n.start);if(!r)return;const{name:i,constraint:o}=r,a=rde.ChangeTracker.with(e,(e=>W4(e,t,r)));return[m6(q4,a,[ja.Convert_0_to_1_in_0,o,i],q4,ja.Convert_all_type_literals_to_mapped_type)]},fixIds:[q4],getAllCodeActions:e=>T6(e,V4,((e,t)=>{const n=K4(t.file,t.start);n&&W4(e,t.file,n)}))})}});function X4(e,t){return In.checkDefined(qm(u$(e,t)),"There should be a containing class")}function Y4(e){return!(e.valueDeclaration&&8&bb(e.valueDeclaration))}function Z4(e,t,n,r,i,o){const a=e.program.getTypeChecker(),s=function(e,t){const n=sy(e);if(!n)return ip();const r=t.getTypeAtLocation(n);return ip(t.getPropertiesOfType(r).filter(Y4))}(r,a),c=a.getTypeAtLocation(t),_=a.getPropertiesOfType(c).filter(yn(Y4,(e=>!s.has(e.escapedName)))),l=a.getTypeAtLocation(r),u=P(r.members,(e=>$w(e)));l.getNumberIndexType()||p(c,1),l.getStringIndexType()||p(c,0);const d=i8(n,e.program,o,e.host);function p(t,i){const o=a.getIndexInfoOfType(t,i);o&&f(n,r,a.indexInfoToIndexSignatureDeclaration(o,r,void 0,Bee(e)))}function f(e,t,n){u?i.insertNodeAfter(e,u,n):i.insertMemberAtStart(e,t,n)}Ree(r,_,n,e,o,d,(e=>f(n,r,e))),d.writeFixes(i)}var e8,t8,n8,r8=b({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){lfe(),Une(),y6({errorCodes:H4=[ja.Class_0_incorrectly_implements_interface_1.code,ja.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],getCodeActions(e){const{sourceFile:t,span:n}=e,r=X4(t,n.start);return Z(_y(r),(n=>{const i=rde.ChangeTracker.with(e,(i=>Z4(e,n,t,r,i,e.preferences)));return 0===i.length?void 0:m6($4,i,[ja.Implement_interface_0,n.getText(t)],$4,ja.Implement_all_unimplemented_interfaces)}))},fixIds:[$4="fixClassIncorrectlyImplementsInterface"],getAllCodeActions(e){const t=new Map;return T6(e,H4,((n,r)=>{const i=X4(r.file,r.start);if($x(t,qB(i)))for(const t of _y(i))Z4(e,t,r.file,i,n,e.preferences)}))}})}});function i8(e,t,n,r,i){return o8(e,t,!1,n,r,i)}function o8(e,t,n,r,i,o){const a=t.getCompilerOptions(),s=[],c=[],_=new Map,l=new Map;return{addImportFromDiagnostic:function(e,t){const r=y8(t,e.code,e.start,n);r&&r.length&&u(Me(r))},addImportFromExportedSymbol:function(n,s){const c=In.checkDefined(n.parent),_=mY(n,Rk(a)),l=t.getTypeChecker(),d=l.getMergedSymbol(Ix(n,l)),p=u8(e,d,_,c,!1,t,i,r,o),f=g8(e,t),m=_8(e,In.checkDefined(p),t,void 0,!!s,f,i,r);m&&u({fix:m,symbolName:_,errorIdentifierText:void 0})},writeFixes:function(t){const n=bG(e,r);for(const n of s)D8(t,e,n);for(const r of c)E8(t,e,r,n);let i;_.forEach((({importClauseOrBindingPattern:n,defaultImport:i,namedImports:o})=>{w8(t,e,n,i,Ze(o.entries(),(([e,t])=>({addAsTypeOnly:t,name:e}))),a,r)})),l.forEach((({useRequire:e,defaultImport:t,namedImports:r,namespaceLikeImport:o},s)=>{const c=(e?I8:P8)(s.slice(2),n,t,r&&Ze(r.entries(),(([e,t])=>({addAsTypeOnly:t,name:e}))),o,a);i=Te(i,c)})),i&&NG(t,e,i,!0,r)},hasFixes:function(){return s.length>0||c.length>0||_.size>0||l.size>0}};function u(e){var t,n;const{fix:r,symbolName:i}=e;switch(r.kind){case 0:s.push(r);break;case 1:c.push(r);break;case 2:{const{importClauseOrBindingPattern:e,importKind:n,addAsTypeOnly:a}=r,s=qB(e)+"";let c=_.get(s);if(c||_.set(s,c={importClauseOrBindingPattern:e,defaultImport:void 0,namedImports:new Map}),0===n){const e=null==c?void 0:c.namedImports.get(i);c.namedImports.set(i,o(e,a))}else In.assert(void 0===c.defaultImport||c.defaultImport.name===i,"(Add to Existing) Default import should be missing or match symbolName"),c.defaultImport={name:i,addAsTypeOnly:o(null==(t=c.defaultImport)?void 0:t.addAsTypeOnly,a)};break}case 3:{const{moduleSpecifier:e,importKind:t,useRequire:s,addAsTypeOnly:c}=r,_=function(e,t,n,r){const i=a(e,!0),o=a(e,!1),s=l.get(i),c=l.get(o),_={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:n};return 1===t&&2===r?s||(l.set(i,_),_):1===r&&(s||c)?s||c:c||(l.set(o,_),_)}(e,t,s,c);switch(In.assert(_.useRequire===s,"(Add new) Tried to add an `import` and a `require` for the same module"),t){case 1:In.assert(void 0===_.defaultImport||_.defaultImport.name===i,"(Add new) Default import should be missing or match symbolName"),_.defaultImport={name:i,addAsTypeOnly:o(null==(n=_.defaultImport)?void 0:n.addAsTypeOnly,c)};break;case 0:const e=(_.namedImports||(_.namedImports=new Map)).get(i);_.namedImports.set(i,o(e,c));break;case 3:case 2:In.assert(void 0===_.namespaceLikeImport||_.namespaceLikeImport.name===i,"Namespacelike import shoudl be missing or match symbolName"),_.namespaceLikeImport={importKind:t,name:i,addAsTypeOnly:c}}break}case 4:break;default:In.assertNever(r,"fix wasn't never - got kind "+r.kind)}function o(e,t){return Math.max(null!=e?e:0,t)}function a(e,t){return`${t?1:0}|${e}`}}}function a8(e,t,n,r){const i=iY(e,r,n),o=m8(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:function(a,s,c,_){const{fixes:l,computedWithoutCacheCount:u}=p8(a,s,c,!1,t,e,n,r,o,_),d=v8(l,e,t,i,n);return d&&{...d,computedWithoutCacheCount:u}}}}function s8(e,t,n,r,i,o,a,s,c,_,l,u){const d=s.getCompilerOptions();let p;n?(p=BY(r,a,s,l,u).get(r.path,n),In.assertIsDefined(p,"Some exportInfo should match the specified exportMapKey")):(p=Zo(cv(t.name))?[d8(e,i,t,s,a)]:u8(r,e,i,t,o,s,a,l,u),In.assertIsDefined(p,"Some exportInfo should match the specified symbol / moduleSymbol"));const f=g8(r,s),m=fT(u$(r,_)),g=In.checkDefined(_8(r,p,s,_,m,f,a,l));return{moduleSpecifier:g.moduleSpecifier,codeAction:l8(C8({host:a,formatContext:c,preferences:l},r,i,g,!1,d,l))}}function c8(e,t,n,r,i,o){const a=n.getCompilerOptions(),s=ze(T8(e,n.getTypeChecker(),t,a)),c=S8(e,t,s,n),_=s!==t.text;return c&&l8(C8({host:r,formatContext:i,preferences:o},e,s,c,_,a,o))}function _8(e,t,n,r,i,o,a,s){const c=iY(e,s,a);return v8(p8(t,r,i,o,n,e,a,s).fixes,e,n,c,a)}function l8({description:e,changes:t,commands:n}){return{description:e,changes:t,commands:n}}function u8(e,t,n,r,i,o,a,s,c){const _=h8(o,a);return BY(e,a,o,s,c).search(e.path,i,(e=>e===n),(e=>{if(Ix(e[0].symbol,_(e[0].isFromPackageJson))===t&&e.some((e=>e.moduleSymbol===r||e.symbol.parent===r)))return e}))}function d8(e,t,n,r,i){var o,a;const s=r.getCompilerOptions(),c=l(r.getTypeChecker(),!1);if(c)return c;const _=null==(a=null==(o=i.getPackageJsonAutoImportProvider)?void 0:o.call(i))?void 0:a.getTypeChecker();return In.checkDefined(_&&l(_,!0),"Could not find symbol in specified module for code actions");function l(r,i){const o=jY(n,r,s);if(o&&Ix(o.symbol,r)===e)return{symbol:o.symbol,moduleSymbol:n,moduleFileName:void 0,exportKind:o.exportKind,targetFlags:Ix(e,r).flags,isFromPackageJson:i};const a=r.tryGetMemberInModuleExportsAndProperties(t,n);return a&&Ix(a,r)===e?{symbol:a,moduleSymbol:n,moduleFileName:void 0,exportKind:0,targetFlags:Ix(e,r).flags,isFromPackageJson:i}:void 0}}function p8(e,t,n,i,o,a,s,c,_=m8(o.getTypeChecker(),a,o.getCompilerOptions()),l){const u=o.getTypeChecker(),d=H(e,_.getImportsForExportInfo),p=void 0!==t&&function(e,t){return A(e,(({declaration:e,importKind:n})=>{var r;if(0!==n)return;const i=function(e){var t,n,r;switch(e.kind){case 257:return null==(t=xt(e.name,Tw))?void 0:t.text;case 268:return e.name.text;case 269:return null==(r=xt(null==(n=e.importClause)?void 0:n.namedBindings,VE))?void 0:r.name.text;default:return In.assertNever(e)}}(e),o=i&&(null==(r=lh(e))?void 0:r.text);return o?{kind:0,namespacePrefix:i,usagePosition:t,moduleSpecifier:o}:void 0}))}(d,t),f=function(e,t,n,r){return A(e,(({declaration:e,importKind:i,symbol:o,targetFlags:a})=>{if(3===i||2===i||268===e.kind)return;if(257===e.kind)return 0!==i&&1!==i||203!==e.name.kind?void 0:{kind:2,importClauseOrBindingPattern:e.name,importKind:i,moduleSpecifier:e.initializer.arguments[0].text,addAsTypeOnly:4};const{importClause:s}=e;if(!s||!ed(e.moduleSpecifier))return;const{name:c,namedBindings:_}=s;if(s.isTypeOnly&&(0!==i||!_))return;const l=f8(t,!1,o,a,n,r);return 1===i&&(c||2===l&&_)||0===i&&271===(null==_?void 0:_.kind)?void 0:{kind:2,importClauseOrBindingPattern:s,importKind:i,moduleSpecifier:e.moduleSpecifier.text,addAsTypeOnly:l}}))}(d,n,u,o.getCompilerOptions());if(f)return{computedWithoutCacheCount:0,fixes:[...p?[p]:r,f]};const{fixes:m,computedWithoutCacheCount:g=0}=function(e,t,n,r,i,o,a,s,c,_){const l=A(t,(e=>function({declaration:e,importKind:t,symbol:n,targetFlags:r},i,o,a,s){var c;const _=null==(c=lh(e))?void 0:c.text;if(_)return{kind:3,moduleSpecifier:_,importKind:t,addAsTypeOnly:o?4:f8(i,!0,n,r,a,s),useRequire:o}}(e,o,a,n.getTypeChecker(),n.getCompilerOptions())));return l?{fixes:[l]}:function(e,t,n,r,i,o,a,s,c){const _=xg(t),l=e.getCompilerOptions(),u=pG(e,a),d=h8(e,a),p=mG(Jk(l)),f=c?e=>({moduleSpecifiers:CB.tryGetModuleSpecifiersFromCache(e,t,u,s),computedWithoutCache:!1}):(e,n)=>CB.getModuleSpecifiersWithCacheInfo(e,n,l,t,u,s);let m=0;const g=H(o,((e,o)=>{const a=d(e.isFromPackageJson),{computedWithoutCache:s,moduleSpecifiers:c}=f(e.moduleSymbol,a),u=!!(111551&e.targetFlags),g=f8(r,!0,e.symbol,e.targetFlags,a,l);return m+=s?1:0,Z(c,(r=>{var s;if(p&&HM(r))return;if(!u&&_&&void 0!==n)return{kind:1,moduleSpecifier:r,usagePosition:n,exportInfo:e,isReExport:o>0};const c=k8(t,e.exportKind,l);let d;if(void 0!==n&&3===c&&0===e.exportKind){const t=a.resolveExternalModuleSymbol(e.moduleSymbol);let r;t!==e.moduleSymbol&&(r=null==(s=zY(t,a,l))?void 0:s.name),r||(r=M8(e.moduleSymbol,Rk(l),!1)),d={namespacePrefix:r,usagePosition:n}}return{kind:3,moduleSpecifier:r,importKind:c,useRequire:i,addAsTypeOnly:g,exportInfo:e,isReExport:o>0,qualification:d}}))}));return{computedWithoutCacheCount:m,fixes:g}}(n,r,i,o,a,e,s,c,_)}(e,d,o,a,t,n,i,s,c,l);return{computedWithoutCacheCount:g,fixes:[...p?[p]:r,...m]}}function f8(e,t,n,r,i,o){return e?t&&2===o.importsNotUsedAsValues?2:!Vk(o)||111551&r&&!i.getTypeOnlyAliasDeclaration(n)?1:2:4}function m8(e,t,n){let i;for(const n of t.imports){const t=uh(n);if(Eg(t.parent)){const r=e.resolveExternalModuleName(n);r&&(i||(i=ut())).add(VB(r),t.parent)}else if(269===t.kind||268===t.kind){const r=e.getSymbolAtLocation(n);r&&(i||(i=ut())).add(VB(r),t)}}return{getImportsForExportInfo:({moduleSymbol:e,exportKind:o,targetFlags:a,symbol:s})=>{if(!(111551&a)&&xg(t))return r;const c=null==i?void 0:i.get(VB(e));if(!c)return r;const _=k8(t,o,n);return c.map((e=>({declaration:e,importKind:_,symbol:s,targetFlags:a})))}}}function g8(e,t){if(!xg(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const n=t.getCompilerOptions();if(n.configFile)return Bk(n)<5;for(const n of t.getSourceFiles())if(n!==e&&xg(n)&&!t.isSourceFileFromExternalLibrary(n)){if(n.commonJsModuleIndicator&&!n.externalModuleIndicator)return!0;if(n.externalModuleIndicator&&!n.commonJsModuleIndicator)return!1}return!0}function h8(e,t){return Pt((n=>n?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker()))}function y8(e,t,n,r){const i=u$(e.sourceFile,n);let o;if(t===ja._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)o=function({sourceFile:e,program:t,host:n,preferences:r},i){const o=t.getTypeChecker(),a=function(e,t){const n=Tw(e)?t.getSymbolAtLocation(e):void 0;if(Kx(n))return n;const{parent:r}=e;if(Ju(r)&&r.tagName===e||_N(r)){const n=t.resolveName(t.getJsxNamespace(r),Ju(r)?e:r,111551,!1);if(Kx(n))return n}}(i,o);if(!a)return;const s=o.getAliasedSymbol(a),c=a.name;return p8([{symbol:a,moduleSymbol:s,moduleFileName:void 0,exportKind:3,targetFlags:s.flags,isFromPackageJson:!1}],void 0,!1,g8(e,t),t,e,n,r).fixes.map((e=>{var t;return{fix:e,symbolName:c,errorIdentifierText:null==(t=xt(i,Tw))?void 0:t.text}}))}(e,i);else{if(!Tw(i))return;if(t===ja._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const t=ze(T8(e.sourceFile,e.program.getTypeChecker(),i,e.program.getCompilerOptions())),n=S8(e.sourceFile,i,t,e.program);return n&&[{fix:n,symbolName:t,errorIdentifierText:i.text}]}o=function({sourceFile:e,program:t,cancellationToken:n,host:r,preferences:i},o,a){const s=t.getTypeChecker(),c=t.getCompilerOptions();return H(T8(e,s,o,c),(s=>{if("default"===s)return;const c=fT(o),_=g8(e,t),l=function(e,t,n,r,i,o,a,s,c){var _;const l=ut(),u=iY(i,c,s),d=null==(_=s.getModuleSpecifierCache)?void 0:_.call(s),p=Pt((e=>pG(e?s.getPackageJsonAutoImportProvider():o,s)));function f(e,t,n,r,o,a){const s=p(a);if(t&&LY(o,i,t,c,u,s,d)||!t&&u.allowsImportingAmbientModule(e,s)){const i=o.getTypeChecker();l.add(pX(n,i).toString(),{symbol:n,moduleSymbol:e,moduleFileName:null==t?void 0:t.fileName,exportKind:r,targetFlags:Ix(n,i).flags,isFromPackageJson:a})}}return MY(o,s,c,a,((i,o,a,s)=>{const c=a.getTypeChecker();r.throwIfCancellationRequested();const _=a.getCompilerOptions(),l=jY(i,c,_);l&&(l.name===e||M8(i,Rk(_),t)===e)&&L8(l.resolvedSymbol,n)&&f(i,o,l.symbol,l.exportKind,a,s);const u=c.tryGetMemberInModuleExportsAndProperties(e,i);u&&L8(u,n)&&f(i,o,u,0,a,s)})),l}(s,dg(o),sH(o),n,e,t,a,r,i);return Ze(G(l.values(),(n=>p8(n,o.getStart(e),c,_,t,e,r,i).fixes)),(e=>({fix:e,symbolName:s,errorIdentifierText:o.text,isJsxNamespaceFix:s!==o.text})))}))}(e,i,r)}const a=iY(e.sourceFile,e.preferences,e.host);return o&&function(e,t,n,r,i){const o=e=>xa(e,i.getCurrentDirectory(),gv(i));return Ne(e,((e,i)=>Xt(!!e.isJsxNamespaceFix,!!i.isJsxNamespaceFix)||Jt(e.fix.kind,i.fix.kind)||b8(e.fix,i.fix,t,n,r.allowsImportingSpecifier,o)))}(o,e.sourceFile,e.program,a,e.host)}function v8(e,t,n,r,i){if(_e(e))return 0===e[0].kind||2===e[0].kind?e[0]:e.reduce(((e,o)=>-1===b8(o,e,t,n,r.allowsImportingSpecifier,(e=>xa(e,i.getCurrentDirectory(),gv(i))))?o:e))}function b8(e,t,n,r,i,o){return 0!==e.kind&&0!==t.kind?Xt(i(t.moduleSpecifier),i(e.moduleSpecifier))||function(e,t,n,r){return fn(e,"node:")&&!fn(t,"node:")?TY(n,r)?-1:1:fn(t,"node:")&&!fn(e,"node:")?TY(n,r)?1:-1:0}(e.moduleSpecifier,t.moduleSpecifier,n,r)||Xt(x8(e,n,r.getCompilerOptions(),o),x8(t,n,r.getCompilerOptions(),o))||zS(e.moduleSpecifier,t.moduleSpecifier):0}function x8(e,t,n,r){var i;if(e.isReExport&&(null==(i=e.exportInfo)?void 0:i.moduleFileName)&&2===Jk(n)&&"index"===ca(e.exportInfo.moduleFileName,[".js",".jsx",".d.ts",".ts",".tsx"],!0)){const n=r(sa(e.exportInfo.moduleFileName));return fn(t.path,n)}return!1}function k8(e,t,n,r){if(n.verbatimModuleSyntax&&(1===Bk(n)||1===e.impliedNodeFormat))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return function(e,t,n){const r=$k(t),i=Sg(e);if(!i&&Bk(t)>=5)return r?1:2;if(i)return wI(e)||n?r?1:2:3;for(const t of e.statements)if(BE(t)&&!Lp(t.moduleReference))return 3;return r?1:3}(e,n,!!r);case 3:return function(e,t,n){if($k(t))return 1;const r=Bk(t);switch(r){case 2:case 1:case 3:return Sg(e)&&(wI(e)||n)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:return 2;case 100:case 199:return 99===e.impliedNodeFormat?2:3;default:return In.assertNever(r,"Unexpected moduleKind "+r)}}(e,n,!!r);default:return In.assertNever(t)}}function S8(e,t,n,r){const i=r.getTypeChecker(),o=i.resolveName(n,t,111551,!0);if(!o)return;const a=i.getTypeOnlyAliasDeclaration(o);return a&&wp(a)===e?{kind:4,typeOnlyAliasDeclaration:a}:void 0}function T8(e,t,n,r){const i=n.parent;if((Ju(i)||sN(i))&&i.tagName===n&&DY(r.jsx)){const r=t.getJsxNamespace(e);if(function(e,t,n){if(_v(t.text))return!0;const r=n.resolveName(e,t,111551,!0);return!r||_e(r.declarations,_l)&&!(111551&r.flags)}(r,n,t))return _v(n.text)||t.resolveName(n.text,n,111551,!1)?[r]:[n.text,r]}return[n.text]}function C8(e,t,n,i,o,a,s){let c;const _=rde.ChangeTracker.with(e,(e=>{c=function(e,t,n,i,o,a,s){const c=bG(t,s);switch(i.kind){case 0:return D8(e,t,i),[ja.Change_0_to_1,n,`${i.namespacePrefix}.${n}`];case 1:return E8(e,t,i,c),[ja.Change_0_to_1,n,N8(i.moduleSpecifier,c)+n];case 2:{const{importClauseOrBindingPattern:c,importKind:_,addAsTypeOnly:l,moduleSpecifier:u}=i;w8(e,t,c,1===_?{name:n,addAsTypeOnly:l}:void 0,0===_?[{name:n,addAsTypeOnly:l}]:r,a,s);const d=cv(u);return o?[ja.Import_0_from_1,n,d]:[ja.Update_import_from_0,d]}case 3:{const{importKind:r,moduleSpecifier:_,addAsTypeOnly:l,useRequire:u,qualification:d}=i;return NG(e,t,(u?I8:P8)(_,c,1===r?{name:n,addAsTypeOnly:l}:void 0,0===r?[{name:n,addAsTypeOnly:l}]:void 0,2===r||3===r?{importKind:r,name:(null==d?void 0:d.namespacePrefix)||n,addAsTypeOnly:l}:void 0,a),!0,s),d&&D8(e,t,d),o?[ja.Import_0_from_1,n,_]:[ja.Add_import_from_0,_]}case 4:{const{typeOnlyAliasDeclaration:r}=i,o=function(e,t,n,r,i){const o=Vk(n);switch(t.kind){case 273:if(t.isTypeOnly){const n=Rae.detectImportSpecifierSorting(t.parent.elements,i);if(t.parent.elements.length>1&&n){e.delete(r,t);const o=dC.updateImportSpecifier(t,!1,t.propertyName,t.name),a=Rae.getOrganizeImportsComparer(i,2===n),s=Rae.getImportSpecifierInsertionIndex(t.parent.elements,o,a);e.insertImportSpecifierAtIndex(r,o,t.parent,s)}else e.deleteRange(r,t.getFirstToken());return t}return In.assert(t.parent.parent.isTypeOnly),a(t.parent.parent),t.parent.parent;case 270:return a(t),t;case 271:return a(t.parent),t.parent;case 268:return e.deleteRange(r,t.getChildAt(1)),t;default:In.failBadSyntaxKind(t)}function a(n){if(e.delete(r,FG(n,r)),o){const o=xt(n.namedBindings,KE);if(o&&o.elements.length>1){Rae.detectImportSpecifierSorting(o.elements,i)&&273===t.kind&&0!==o.elements.indexOf(t)&&(e.delete(r,t),e.insertImportSpecifierAtIndex(r,t,o,0));for(const n of o.elements)n===t||n.isTypeOnly||e.insertModifierBefore(r,154,n)}}}}(e,r,a,t,s);return 273===o.kind?[ja.Remove_type_from_import_of_0_from_1,n,A8(o.parent.parent)]:[ja.Remove_type_from_import_declaration_from_0,A8(o)]}default:return In.assertNever(i,"Unexpected fix kind "+i.kind)}}(e,t,n,i,o,a,s)}));return m6(e8,_,c,t8,ja.Add_all_missing_imports)}function A8(e){var t,n;return 268===e.kind?(null==(n=xt(null==(t=xt(e.moduleReference,rN))?void 0:t.expression,ed))?void 0:n.text)||e.moduleReference.getText():kt(e.parent.moduleSpecifier,sw).text}function w8(e,t,n,r,i,o,a){var s;if(203===n.kind){r&&u(n,r.name,"default");for(const e of i)u(n,e.name,void 0);return}const c=n.isTypeOnly&&_e([r,...i],(e=>4===(null==e?void 0:e.addAsTypeOnly))),_=n.namedBindings&&(null==(s=xt(n.namedBindings,KE))?void 0:s.elements),l=c&&Vk(o);if(r&&(In.assert(!n.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,n.getStart(t),dC.createIdentifier(r.name),{suffix:", "})),i.length){let r;if("boolean"==typeof a.organizeImportsIgnoreCase)r=a.organizeImportsIgnoreCase;else if(_){const e=Rae.detectImportSpecifierSorting(_,a);3!==e&&(r=2===e)}void 0===r&&(r=2===Rae.detectSorting(t,a));const o=Rae.getOrganizeImportsComparer(a,r),s=Pe(i.map((e=>dC.createImportSpecifier((!n.isTypeOnly||c)&&F8(e),void 0,dC.createIdentifier(e.name)))),((e,t)=>Rae.compareImportOrExportSpecifiers(e,t,o))),u=(null==_?void 0:_.length)&&Rae.detectImportSpecifierSorting(_,a);if(!u||r&&1===u){if(null==_?void 0:_.length)for(const n of s)e.insertNodeInListAfter(t,je(_),n,_);else if(s.length){const r=dC.createNamedImports(s);n.namedBindings?e.replaceNode(t,n.namedBindings,r):e.insertNodeAfter(t,In.checkDefined(n.name,"Import clause must have either named imports or a default import"),r)}}else for(const r of s){const i=l&&!r.isTypeOnly?0:Rae.getImportSpecifierInsertionIndex(_,r,o);e.insertImportSpecifierAtIndex(t,r,n.namedBindings,i)}}if(c&&(e.delete(t,FG(n,t)),l&&_))for(const n of _)e.insertModifierBefore(t,154,n);function u(n,r,i){const o=dC.createBindingElement(void 0,i,r);n.elements.length?e.insertNodeInListAfter(t,je(n.elements),o):e.replaceNode(t,n,dC.createObjectBindingPattern([o]))}}function D8(e,t,{namespacePrefix:n,usagePosition:r}){e.insertText(t,r,n+".")}function E8(e,t,{moduleSpecifier:n,usagePosition:r},i){e.insertText(t,r,N8(n,i))}function N8(e,t){const n=xG(t);return`import(${n}${e}${n}).`}function F8({addAsTypeOnly:e}){return 2===e}function P8(e,t,n,r,i,o){const a=yG(e,t);let s;if(void 0!==n||(null==r?void 0:r.length)){const i=(!n||F8(n))&&F(r,F8)||o.verbatimModuleSyntax&&4!==(null==n?void 0:n.addAsTypeOnly)&&!_e(r,(e=>4===e.addAsTypeOnly));s=Te(s,hG(n&&dC.createIdentifier(n.name),null==r?void 0:r.map((({addAsTypeOnly:e,name:t})=>dC.createImportSpecifier(!i&&2===e,void 0,dC.createIdentifier(t)))),e,t,i))}return i&&(s=Te(s,3===i.importKind?dC.createImportEqualsDeclaration(void 0,F8(i),dC.createIdentifier(i.name),dC.createExternalModuleReference(a)):dC.createImportDeclaration(void 0,dC.createImportClause(F8(i),void 0,dC.createNamespaceImport(dC.createIdentifier(i.name))),a,void 0))),In.checkDefined(s)}function I8(e,t,n,r,i){const o=yG(e,t);let a;if(n||(null==r?void 0:r.length)){const e=(null==r?void 0:r.map((({name:e})=>dC.createBindingElement(void 0,void 0,e))))||[];n&&e.unshift(dC.createBindingElement(void 0,"default",n.name)),a=Te(a,O8(dC.createObjectBindingPattern(e),o))}return i&&(a=Te(a,O8(i.name,o))),In.checkDefined(a)}function O8(e,t){return dC.createVariableStatement(void 0,dC.createVariableDeclarationList([dC.createVariableDeclaration("string"==typeof e?dC.createIdentifier(e):e,void 0,void 0,dC.createCallExpression(dC.createIdentifier("require"),void 0,[t]))],2))}function L8({declarations:e},t){return _e(e,(e=>!!(aH(e)&t)))}function M8(e,t,n){return R8(US(cv(e.name)),t,n)}function R8(e,t,n){const r=ca(tn(e,"/index"));let i="",o=!0;const a=r.charCodeAt(0);Js(a,t)?(i+=String.fromCharCode(a),n&&(i=i.toUpperCase())):o=!1;for(let e=1;eC8(e,r,i,t,i!==a,o.getCompilerOptions(),n)))},fixIds:[t8],getAllCodeActions:e=>{const{sourceFile:t,program:n,preferences:r,host:i,cancellationToken:o}=e,a=o8(t,n,!0,r,i,o);return C6(e,n8,(t=>a.addImportFromDiagnostic(t,e))),k6(rde.ChangeTracker.with(e,a.writeFixes))}})}});function z8(e,t,n){const r=P(e.getSemanticDiagnostics(t),(e=>e.start===n.start&&e.length===n.length));if(void 0===r||void 0===r.relatedInformation)return;const i=P(r.relatedInformation,(e=>e.code===ja.This_type_parameter_might_need_an_extends_0_constraint.code));if(void 0===i||void 0===i.file||void 0===i.start||void 0===i.length)return;let o=rte(i.file,dc(i.start,i.length));if(void 0!==o&&(Tw(o)&&zw(o.parent)&&(o=o.parent),zw(o))){if(bD(o.parent))return;const r=u$(t,n.start);return{constraint:(a=e.getTypeChecker(),(Jl((s=r).parent)?a.getTypeArgumentConstraint(s.parent):(_u(s)?a.getContextualType(s):void 0)||a.getTypeAtLocation(s))||function(e){const[t,n]=dq(e,"\n",0).match(/`extends (.*)`/)||[];return n}(i.messageText)),declaration:o,token:r}}var a,s}function U8(e,t,n,r,i,o){const{declaration:a,constraint:s}=o,c=t.getTypeChecker();if(vt(s))e.insertText(i,a.name.end," extends "+s);else{const o=Rk(t.getCompilerOptions()),_=Bee({program:t,host:r}),l=i8(i,t,n,r),u=qee(c,l,s,void 0,o,void 0,_);u&&(e.replaceNode(i,a,dC.updateTypeParameterDeclaration(a,void 0,a.name,u,a.default)),l.writeFixes(e))}}var q8,V8,Q8,K8,W8,H8=b({"src/services/codefixes/fixAddMissingConstraint.ts"(){lfe(),Une(),B8="addMissingConstraint",y6({errorCodes:j8=[ja.Type_0_is_not_comparable_to_type_1.code,ja.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,ja.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,ja.Type_0_is_not_assignable_to_type_1.code,ja.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,ja.Property_0_is_incompatible_with_index_signature.code,ja.Property_0_in_type_1_is_not_assignable_to_type_2.code,ja.Type_0_does_not_satisfy_the_constraint_1.code],getCodeActions(e){const{sourceFile:t,span:n,program:r,preferences:i,host:o}=e,a=z8(r,t,n);if(void 0===a)return;const s=rde.ChangeTracker.with(e,(e=>U8(e,r,i,o,t,a)));return[m6(B8,s,ja.Add_extends_constraint,B8,ja.Add_extends_constraint_to_all_type_parameters)]},fixIds:[B8],getAllCodeActions:e=>{const{program:t,preferences:n,host:r}=e,i=new Map;return k6(rde.ChangeTracker.with(e,(o=>{C6(e,j8,(e=>{const a=z8(t,e.file,dc(e.start,e.length));if(a&&$x(i,qB(a.declaration)))return U8(o,t,n,r,e.file,a)}))})))}})}});function $8(e,t,n,i){switch(n){case ja.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case ja.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case ja.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case ja.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case ja.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return function(e,t,n){const i=X8(t,n);if(xg(t))return void e.addJSDocTags(t,i,[dC.createJSDocOverrideTag(dC.createIdentifier("override"))]);const o=i.modifiers||r,a=P(o,Pw),s=P(o,Iw),c=P(o,(e=>z$(e.kind))),_=I(o,qw),l=s?s.end:a?a.end:c?c.end:_?As(t.text,_.end):i.getStart(t),u=c||a||s?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,l,161,u)}(e,t.sourceFile,i);case ja.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case ja.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case ja.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case ja.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return function(e,t,n){const r=X8(t,n);if(xg(t))return void e.filterJSDocTags(t,r,bn(YN));const i=P(r.modifiers,Ow);In.assertIsDefined(i),e.deleteModifier(t,i)}(e,t.sourceFile,i);default:In.fail("Unexpected error code: "+n)}}function G8(e){switch(e.kind){case 173:case 169:case 171:case 174:case 175:return!0;case 166:return vc(e,e.parent);default:return!1}}function X8(e,t){const n=Ec(u$(e,t),(e=>Fl(e)?"quit":G8(e)));return In.assert(n&&G8(n)),n}var Y8,Z8,e7=b({"src/services/codefixes/fixOverrideModifier.ts"(){lfe(),Une(),q8="fixOverrideModifier",V8="fixAddOverrideModifier",Q8="fixRemoveOverrideModifier",K8=[ja.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,ja.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,ja.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,ja.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,ja.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,ja.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,ja.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,ja.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,ja.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],W8={[ja.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:ja.Add_override_modifier,fixId:V8,fixAllDescriptions:ja.Add_all_missing_override_modifiers},[ja.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:ja.Add_override_modifier,fixId:V8,fixAllDescriptions:ja.Add_all_missing_override_modifiers},[ja.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:ja.Remove_override_modifier,fixId:Q8,fixAllDescriptions:ja.Remove_all_unnecessary_override_modifiers},[ja.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:ja.Remove_override_modifier,fixId:Q8,fixAllDescriptions:ja.Remove_override_modifier},[ja.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:ja.Add_override_modifier,fixId:V8,fixAllDescriptions:ja.Add_all_missing_override_modifiers},[ja.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:ja.Add_override_modifier,fixId:V8,fixAllDescriptions:ja.Add_all_missing_override_modifiers},[ja.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:ja.Add_override_modifier,fixId:V8,fixAllDescriptions:ja.Remove_all_unnecessary_override_modifiers},[ja.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:ja.Remove_override_modifier,fixId:Q8,fixAllDescriptions:ja.Remove_all_unnecessary_override_modifiers},[ja.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:ja.Remove_override_modifier,fixId:Q8,fixAllDescriptions:ja.Remove_all_unnecessary_override_modifiers}},y6({errorCodes:K8,getCodeActions:function(e){const{errorCode:t,span:n}=e,i=W8[t];if(!i)return r;const{descriptions:o,fixId:a,fixAllDescriptions:s}=i,c=rde.ChangeTracker.with(e,(r=>$8(r,e,t,n.start)));return[g6(q8,c,o,a,s)]},fixIds:[q8,V8,Q8],getAllCodeActions:e=>T6(e,K8,((t,n)=>{const{code:r,start:i}=n,o=W8[r];o&&o.fixId===e.fixId&&$8(t,e,r,i)}))})}});function t7(e,t,n,r){const i=bG(t,r),o=dC.createStringLiteral(n.name.text,0===i);e.replaceNode(t,n,I_(n)?dC.createElementAccessChain(n.expression,n.questionDotToken,o):dC.createElementAccessExpression(n.expression,o))}function n7(e,t){return kt(u$(e,t).parent,ND)}var r7,i7,o7=b({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){lfe(),Une(),Y8="fixNoPropertyAccessFromIndexSignature",y6({errorCodes:Z8=[ja.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],fixIds:[Y8],getCodeActions(e){const{sourceFile:t,span:n,preferences:r}=e,i=n7(t,n.start),o=rde.ChangeTracker.with(e,(t=>t7(t,e.sourceFile,i,r)));return[m6(Y8,o,[ja.Use_element_access_for_0,i.name.text],Y8,ja.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>T6(e,Z8,((t,n)=>t7(t,n.file,n7(n.file,n.start),e.preferences)))})}});function a7(e,t,n,r){const i=u$(t,n);if(!MH(i))return;const o=Km(i,!1,!1);if((EE(o)||RD(o))&&!TN(Km(o,!1,!1))){const n=In.checkDefined(YH(o,98,t)),{name:i}=o,a=In.checkDefined(o.body);if(RD(o)){if(i&&voe.Core.isSymbolReferencedInFile(i,r,t,a))return;return e.delete(t,n),i&&e.delete(t,i),e.insertText(t,a.pos," =>"),[ja.Convert_function_expression_0_to_arrow_function,i?i.text:rH]}return e.replaceNode(t,n,dC.createToken(85)),e.insertText(t,i.end," = "),e.insertText(t,a.pos," =>"),[ja.Convert_function_declaration_0_to_arrow_function,i.text]}}var s7,c7,_7=b({"src/services/codefixes/fixImplicitThis.ts"(){lfe(),Une(),r7="fixImplicitThis",y6({errorCodes:i7=[ja.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],getCodeActions:function(e){const{sourceFile:t,program:n,span:i}=e;let o;const a=rde.ChangeTracker.with(e,(e=>{o=a7(e,t,i.start,n.getTypeChecker())}));return o?[m6(r7,a,o,r7,ja.Fix_all_implicit_this_errors)]:r},fixIds:[r7],getAllCodeActions:e=>T6(e,i7,((t,n)=>{a7(t,n.file,n.start,e.program.getTypeChecker())}))})}});function l7(e,t,n){var r;const i=u$(e,t);if(Tw(i)){const t=Ec(i,jE);if(void 0===t)return;const o=sw(t.moduleSpecifier)?t.moduleSpecifier.text:void 0;if(void 0===o)return;const a=gp(e,o,void 0);if(void 0===a)return;const s=n.getSourceFile(a.resolvedFileName);if(void 0===s||EY(n,s))return;const c=null==(r=xt(s.symbol.valueDeclaration,wu))?void 0:r.locals;if(void 0===c)return;const _=c.get(i.escapedText);if(void 0===_)return;const l=function(e){if(void 0===e.valueDeclaration)return Oe(e.declarations);const t=e.valueDeclaration,n=wE(t)?xt(t.parent.parent,_E):void 0;return n&&1===S(n.declarationList.declarations)?n:t}(_);if(void 0===l)return;return{exportName:{node:i,isTypeOnly:zT(l)},node:l,moduleSourceFile:s,moduleSpecifier:o}}}function u7(e,t,n,r,i){S(r)&&(i?p7(e,t,n,i,r):f7(e,t,n,r))}function d7(e,t){return I(e.statements,(e=>$E(e)&&(t&&e.isTypeOnly||!e.isTypeOnly)))}function p7(e,t,n,r,i){const o=r.exportClause&&GE(r.exportClause)?r.exportClause.elements:dC.createNodeArray([]),a=!(r.isTypeOnly||!qk(t.getCompilerOptions())&&!P(o,(e=>e.isTypeOnly)));e.replaceNode(n,r,dC.updateExportDeclaration(r,r.modifiers,r.isTypeOnly,dC.createNamedExports(dC.createNodeArray([...o,...m7(i,a)],o.hasTrailingComma)),r.moduleSpecifier,r.assertClause))}function f7(e,t,n,r){e.insertNodeAtEndOfScope(n,n,dC.createExportDeclaration(void 0,!1,dC.createNamedExports(m7(r,qk(t.getCompilerOptions()))),void 0,void 0))}function m7(e,t){return dC.createNodeArray(V(e,(e=>dC.createExportSpecifier(t&&e.isTypeOnly,void 0,e.node))))}var g7,h7,y7,v7=b({"src/services/codefixes/fixImportNonExportedMember.ts"(){lfe(),Une(),s7="fixImportNonExportedMember",y6({errorCodes:c7=[ja.Module_0_declares_1_locally_but_it_is_not_exported.code],fixIds:[s7],getCodeActions(e){const{sourceFile:t,span:n,program:r}=e,i=l7(t,n.start,r);if(void 0===i)return;const o=rde.ChangeTracker.with(e,(e=>function(e,t,{exportName:n,node:r,moduleSourceFile:i}){const o=d7(i,n.isTypeOnly);o?p7(e,t,i,o,[n]):UT(r)?e.insertExportModifier(i,r):f7(e,t,i,[n])}(e,r,i)));return[m6(s7,o,[ja.Export_0_from_module_1,i.exportName.node.text,i.moduleSpecifier],s7,ja.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return k6(rde.ChangeTracker.with(e,(n=>{const r=new Map;C6(e,c7,(e=>{const i=l7(e.file,e.start,t);if(void 0===i)return;const{exportName:o,node:a,moduleSourceFile:s}=i;if(void 0===d7(s,o.isTypeOnly)&&UT(a))n.insertExportModifier(s,a);else{const e=r.get(s)||{typeOnlyExports:[],exports:[]};o.isTypeOnly?e.typeOnlyExports.push(o):e.exports.push(o),r.set(s,e)}})),r.forEach(((e,r)=>{const i=d7(r,!0);i&&i.isTypeOnly?(u7(n,t,r,e.typeOnlyExports,i),u7(n,t,r,e.exports,d7(r,!1))):u7(n,t,r,[...e.exports,...e.typeOnlyExports],i)}))})))}})}}),b7=b({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){lfe(),Une(),g7="fixIncorrectNamedTupleSyntax",y6({errorCodes:[ja.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,ja.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=function(e,t){return Ec(u$(e,t),(e=>199===e.kind))}(t,n.start),i=rde.ChangeTracker.with(e,(e=>function(e,t,n){if(!n)return;let r=n.type,i=!1,o=!1;for(;187===r.kind||188===r.kind||193===r.kind;)187===r.kind?i=!0:188===r.kind&&(o=!0),r=r.type;const a=dC.updateNamedTupleMember(n,n.dotDotDotToken||(o?dC.createToken(25):void 0),n.name,n.questionToken||(i?dC.createToken(57):void 0),r);a!==n&&e.replaceNode(t,n,a)}(e,t,r)));return[m6(g7,i,ja.Move_labeled_tuple_element_modifiers_to_labels,g7,ja.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[g7]})}});function x7(e,t,n,r){const i=u$(e,t),o=i.parent;if((r===ja.No_overload_matches_this_call.code||r===ja.Type_0_is_not_assignable_to_type_1.code)&&!uN(o))return;const a=n.program.getTypeChecker();let s;if(ND(o)&&o.name===i){In.assert(F_(i),"Expected an identifier for spelling (property access)");let e=a.getTypeAtLocation(o.expression);32&o.flags&&(e=a.getNonNullableType(e)),s=a.getSuggestedSymbolForNonexistentProperty(i,e)}else if(QD(o)&&101===o.operatorToken.kind&&o.left===i&&Cw(i)){const e=a.getTypeAtLocation(o.right);s=a.getSuggestedSymbolForNonexistentProperty(i,e)}else if(jw(o)&&o.right===i){const e=a.getSymbolAtLocation(o.left);e&&1536&e.flags&&(s=a.getSuggestedSymbolForNonexistentModule(o.right,e))}else if(WE(o)&&o.name===i){In.assertNode(i,Tw,"Expected an identifier for spelling (import)");const t=function(e,t,n){if(!n||!ed(n.moduleSpecifier))return;const r=gp(e,n.moduleSpecifier.text,gq(e,n.moduleSpecifier));return r?t.program.getSourceFile(r.resolvedFileName):void 0}(e,n,Ec(i,jE));t&&t.symbol&&(s=a.getSuggestedSymbolForNonexistentModule(i,t.symbol))}else if(uN(o)&&o.name===i){In.assertNode(i,Tw,"Expected an identifier for JSX attribute");const e=Ec(i,Ju),t=a.getContextualTypeForArgumentAtIndex(e,0);s=a.getSuggestedSymbolForNonexistentJSXAttribute(i,t)}else if(cb(o,16384)&&Nl(o)&&o.name===i){const e=Ec(i,Fl),t=e?sy(e):void 0,n=t?a.getTypeAtLocation(t):void 0;n&&(s=a.getSuggestedSymbolForNonexistentClassMember(ef(i),n))}else{const e=sH(i),t=ef(i);In.assert(void 0!==t,"name should be defined"),s=a.getSuggestedSymbolForNonexistentSymbol(i,t,function(e){let t=0;return 4&e&&(t|=1920),2&e&&(t|=788968),1&e&&(t|=111551),t}(e))}return void 0===s?void 0:{node:i,suggestedSymbol:s}}function k7(e,t,n,r,i){const o=Mc(r);if(!Us(o,i)&&ND(n.parent)){const i=r.valueDeclaration;i&&zc(i)&&Cw(i.name)?e.replaceNode(t,n,dC.createIdentifier(o)):e.replaceNode(t,n.parent,dC.createElementAccessExpression(n.parent.expression,dC.createStringLiteral(o)))}else e.replaceNode(t,n,dC.createIdentifier(o))}var S7,T7,C7,A7,w7,D7=b({"src/services/codefixes/fixSpelling.ts"(){lfe(),Une(),h7="fixSpelling",y6({errorCodes:y7=[ja.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,ja.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,ja.Cannot_find_name_0_Did_you_mean_1.code,ja.Could_not_find_name_0_Did_you_mean_1.code,ja.Cannot_find_namespace_0_Did_you_mean_1.code,ja.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,ja.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,ja._0_has_no_exported_member_named_1_Did_you_mean_2.code,ja.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,ja.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,ja.No_overload_matches_this_call.code,ja.Type_0_is_not_assignable_to_type_1.code],getCodeActions(e){const{sourceFile:t,errorCode:n}=e,r=x7(t,e.span.start,e,n);if(!r)return;const{node:i,suggestedSymbol:o}=r,a=Rk(e.host.getCompilationSettings());return[m6("spelling",rde.ChangeTracker.with(e,(e=>k7(e,t,i,o,a))),[ja.Change_spelling_to_0,Mc(o)],h7,ja.Fix_all_detected_spelling_errors)]},fixIds:[h7],getAllCodeActions:e=>T6(e,y7,((t,n)=>{const r=x7(n.file,n.start,e,n.code),i=Rk(e.host.getCompilationSettings());r&&k7(t,e.sourceFile,r.node,r.suggestedSymbol,i)}))})}});function E7(e,t,n){const r=e.createSymbol(4,t.escapedText);r.links.type=e.getTypeAtLocation(n);const i=ip([r]);return e.createAnonymousType(void 0,i,[],[],[])}function N7(e,t,n,r){if(!t.body||!cE(t.body)||1!==S(t.body.statements))return;const i=Me(t.body.statements);if(uE(i)&&F7(e,t,e.getTypeAtLocation(i.expression),n,r))return{declaration:t,kind:0,expression:i.expression,statement:i,commentSource:i.expression};if(SE(i)&&uE(i.statement)){const o=dC.createObjectLiteralExpression([dC.createPropertyAssignment(i.label,i.statement.expression)]);if(F7(e,t,E7(e,i.label,i.statement.expression),n,r))return BD(t)?{declaration:t,kind:1,expression:o,statement:i,commentSource:i.statement.expression}:{declaration:t,kind:0,expression:o,statement:i,commentSource:i.statement.expression}}else if(cE(i)&&1===S(i.statements)){const o=Me(i.statements);if(SE(o)&&uE(o.statement)){const a=dC.createObjectLiteralExpression([dC.createPropertyAssignment(o.label,o.statement.expression)]);if(F7(e,t,E7(e,o.label,o.statement.expression),n,r))return{declaration:t,kind:0,expression:a,statement:i,commentSource:o}}}}function F7(e,t,n,r,i){if(i){const r=e.getSignatureFromDeclaration(t);if(r){cb(t,512)&&(n=e.createPromiseType(n));const i=e.createSignature(t,r.typeParameters,r.thisParameter,r.parameters,n,void 0,r.minArgumentCount,r.flags);n=e.createAnonymousType(void 0,ip(),[i],[],[])}else n=e.getAnyType()}return e.isTypeAssignableTo(n,r)}function P7(e,t,n,r){const i=u$(t,n);if(!i.parent)return;const o=Ec(i.parent,Cl);switch(r){case ja.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:if(!(o&&o.body&&o.type&&BH(o.type,i)))return;return N7(e,o,e.getTypeFromTypeNode(o.type),!1);case ja.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!PD(o.parent)||!o.body)return;const t=o.parent.arguments.indexOf(o),n=e.getContextualTypeForArgumentAtIndex(o.parent,t);if(!n)return;return N7(e,o,n,!0);case ja.Type_0_is_not_assignable_to_type_1.code:if(!Xh(i)||!Sm(i.parent)&&!uN(i.parent))return;const r=function(e){switch(e.kind){case 257:case 166:case 205:case 169:case 299:return e.initializer;case 288:return e.initializer&&(fN(e.initializer)?e.initializer.expression:void 0);case 300:case 168:case 302:case 351:case 344:return}}(i.parent);if(!r||!Cl(r)||!r.body)return;return N7(e,r,e.getTypeAtLocation(i.parent),!0)}}function I7(e,t,n,r){xX(n);const i=WX(t);e.replaceNode(t,r,dC.createReturnStatement(n),{leadingTriviaOption:rde.LeadingTriviaOption.Exclude,trailingTriviaOption:rde.TrailingTriviaOption.Exclude,suffix:i?";":void 0})}function O7(e,t,n,r,i,o){const a=o||OX(r)?dC.createParenthesizedExpression(r):r;xX(i),TX(i,a),e.replaceNode(t,n.body,a)}function L7(e,t,n,r){e.replaceNode(t,n.body,dC.createParenthesizedExpression(r))}function M7(e,t,n){const r=rde.ChangeTracker.with(e,(r=>I7(r,e.sourceFile,t,n)));return m6(S7,r,ja.Add_a_return_statement,T7,ja.Add_all_missing_return_statement)}function R7(e,t,n){const r=rde.ChangeTracker.with(e,(r=>L7(r,e.sourceFile,t,n)));return m6(S7,r,ja.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,A7,ja.Wrap_all_object_literal_with_parentheses)}var B7,j7,J7,z7,U7,q7=b({"src/services/codefixes/returnValueCorrect.ts"(){lfe(),Une(),S7="returnValueCorrect",T7="fixAddReturnStatement",C7="fixRemoveBracesFromArrowFunctionBody",A7="fixWrapTheBlockWithParen",y6({errorCodes:w7=[ja.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,ja.Type_0_is_not_assignable_to_type_1.code,ja.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],fixIds:[T7,C7,A7],getCodeActions:function(e){const{program:t,sourceFile:n,span:{start:r},errorCode:i}=e,o=P7(t.getTypeChecker(),n,r,i);if(o)return 0===o.kind?Se([M7(e,o.expression,o.statement)],BD(o.declaration)?function(e,t,n,r){const i=rde.ChangeTracker.with(e,(i=>O7(i,e.sourceFile,t,n,r,!1)));return m6(S7,i,ja.Remove_braces_from_arrow_function_body,C7,ja.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(e,o.declaration,o.expression,o.commentSource):void 0):[R7(e,o.declaration,o.expression)]},getAllCodeActions:e=>T6(e,w7,((t,n)=>{const r=P7(e.program.getTypeChecker(),n.file,n.start,n.code);if(r)switch(e.fixId){case T7:I7(t,n.file,r.expression,r.statement);break;case C7:if(!BD(r.declaration))return;O7(t,n.file,r.declaration,r.expression,r.commentSource,!1);break;case A7:if(!BD(r.declaration))return;L7(t,n.file,r.declaration,r.expression);break;default:In.fail(JSON.stringify(e.fixId))}}))})}});function V7(e,t,n,i,o){var a;const s=u$(e,t),c=s.parent;if(n===ja.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(18!==s.kind||!ED(c)||!PD(c.parent))return;const e=O(c.parent.arguments,(e=>e===c));if(e<0)return;const t=i.getResolvedSignature(c.parent);if(!(t&&t.declaration&&t.parameters[e]))return;const n=t.parameters[e].valueDeclaration;if(!(n&&Uw(n)&&Tw(n.name)))return;const r=Ze(i.getUnmatchedProperties(i.getTypeAtLocation(c),i.getParameterType(t,e),!1,!1));if(!S(r))return;return{kind:3,token:n.name,properties:r,parentDeclaration:c}}if(!F_(s))return;if(Tw(s)&&$u(c)&&c.initializer&&ED(c.initializer)){const e=Ze(i.getUnmatchedProperties(i.getTypeAtLocation(c.initializer),i.getTypeAtLocation(s),!1,!1));if(!S(e))return;return{kind:3,token:s,properties:e,parentDeclaration:c.initializer}}if(Tw(s)&&Ju(s.parent)){const e=function(e,t,n){const i=e.getContextualType(n.attributes);if(void 0===i)return r;const o=i.getProperties();if(!S(o))return r;const a=new Set;for(const t of n.attributes.properties)if(uN(t)&&a.add(t.name.escapedText),pN(t)){const n=e.getTypeAtLocation(t.expression);for(const e of n.getProperties())a.add(e.escapedName)}return z(o,(e=>Us(e.name,t,1)&&!(16777216&e.flags||48&Fx(e)||a.has(e.escapedName))))}(i,Rk(o.getCompilerOptions()),s.parent);if(!S(e))return;return{kind:4,token:s,attributes:e,parentDeclaration:s.parent}}if(Tw(s)){const t=null==(a=i.getContextualType(s))?void 0:a.getNonNullableType();if(t&&16&Vx(t)){const n=Oe(i.getSignaturesOfType(t,0));if(void 0===n)return;return{kind:5,token:s,signature:n,sourceFile:e,parentDeclaration:r5(s)}}if(PD(c)&&c.expression===s)return{kind:2,token:s,call:c,sourceFile:e,modifierFlags:0,parentDeclaration:r5(s)}}if(!ND(c))return;const _=cG(i.getTypeAtLocation(c.expression)),l=_.symbol;if(!l||!l.declarations)return;if(Tw(s)&&PD(c.parent)){const t=P(l.declarations,OE),n=null==t?void 0:t.getSourceFile();if(t&&n&&!EY(o,n))return{kind:2,token:s,call:c.parent,sourceFile:e,modifierFlags:1,parentDeclaration:t};const r=P(l.declarations,TN);if(e.commonJsModuleIndicator)return;if(r&&!EY(o,r))return{kind:2,token:s,call:c.parent,sourceFile:r,modifierFlags:1,parentDeclaration:r}}const u=P(l.declarations,Fl);if(!u&&Cw(s))return;const d=u||P(l.declarations,(e=>FE(e)||aD(e)));if(d&&!EY(o,d.getSourceFile())){const e=!aD(d)&&(_.target||_)!==i.getDeclaredTypeOfSymbol(l);if(e&&(Cw(s)||FE(d)))return;const t=d.getSourceFile(),n=aD(d)?0:(e?32:0)|(bY(s.text)?8:0),r=xg(t);return{kind:0,token:s,call:xt(c.parent,PD),modifierFlags:n,parentDeclaration:d,declSourceFile:t,isJSFile:r}}const p=P(l.declarations,IE);return!p||1056&_.flags||Cw(s)||EY(o,p.getSourceFile())?void 0:{kind:1,token:s,parentDeclaration:p}}function Q7(e,t,n,r,i){const o=r.text;if(i){if(228===n.kind)return;const r=n.name.getText(),i=K7(dC.createIdentifier(r),o);e.insertNodeAfter(t,n,i)}else if(Cw(r)){const r=dC.createPropertyDeclaration(void 0,o,void 0,void 0,void 0),i=$7(n);i?e.insertNodeAfter(t,i,r):e.insertMemberAtStart(t,n,r)}else{const r=Rv(n);if(!r)return;const i=K7(dC.createThis(),o);e.insertNodeAtConstructorEnd(t,r,i)}}function K7(e,t){return dC.createExpressionStatement(dC.createAssignment(dC.createPropertyAccessExpression(e,t),n5()))}function W7(e,t,n){let r;if(223===n.parent.parent.kind){const i=n.parent.parent,o=n.parent===i.left?i.right:i.left,a=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(o)));r=e.typeToTypeNode(a,t,1)}else{const t=e.getContextualType(n.parent);r=t?e.typeToTypeNode(t,void 0,1):void 0}return r||dC.createKeywordTypeNode(131)}function H7(e,t,n,r,i,o){const a=o?dC.createNodeArray(dC.createModifiersFromModifierFlags(o)):void 0,s=Fl(n)?dC.createPropertyDeclaration(a,r,void 0,i,void 0):dC.createPropertySignature(void 0,r,void 0,i),c=$7(n);c?e.insertNodeAfter(t,c,s):e.insertMemberAtStart(t,n,s)}function $7(e){let t;for(const n of e.members){if(!Qw(n))break;t=n}return t}function G7(e,t,n,r,i,o,a){const s=i8(a,e.program,e.preferences,e.host),c=zee(Fl(o)?171:170,e,s,n,r,i,o),_=function(e,t){if(aD(e))return;const n=Ec(t,(e=>Ww(e)||$w(e)));return n&&n.parent===e?n:void 0}(o,n);_?t.insertNodeAfter(a,_,c):t.insertMemberAtStart(a,o,c),s.writeFixes(t)}function X7(e,t,{token:n,parentDeclaration:r}){const i=_e(r.members,(e=>{const n=t.getTypeAtLocation(e);return!!(n&&402653316&n.flags)})),o=dC.createEnumMember(n,i?dC.createStringLiteral(n.text):void 0);e.replaceNode(r.getSourceFile(),r,dC.updateEnumDeclaration(r,r.modifiers,r.name,ue(r.members,kn(o))),{leadingTriviaOption:rde.LeadingTriviaOption.IncludeAll,trailingTriviaOption:rde.TrailingTriviaOption.Exclude})}function Y7(e,t,n){const r=bG(t.sourceFile,t.preferences),i=i8(t.sourceFile,t.program,t.preferences,t.host),o=2===n.kind?zee(259,t,i,n.call,Oc(n.token),n.modifierFlags,n.parentDeclaration):Jee(259,t,r,n.signature,$ee(ja.Function_not_implemented.message,r),n.token,void 0,void 0,void 0,i);void 0===o&&In.fail("fixMissingFunctionDeclaration codefix got unexpected error."),bE(n.parentDeclaration)?e.insertNodeBefore(n.sourceFile,n.parentDeclaration,o,!0):e.insertNodeAtEndOfScope(n.sourceFile,n.parentDeclaration,o),i.writeFixes(e)}function Z7(e,t,n){const r=i8(t.sourceFile,t.program,t.preferences,t.host),i=bG(t.sourceFile,t.preferences),o=t.program.getTypeChecker(),a=n.parentDeclaration.attributes,s=_e(a.properties,pN),c=V(n.attributes,(e=>{const a=t5(t,o,r,i,o.getTypeOfSymbol(e),n.parentDeclaration),s=dC.createIdentifier(e.name),c=dC.createJsxAttribute(s,dC.createJsxExpression(void 0,a));return kT(s,c),c})),_=dC.createJsxAttributes(s?[...c,...a.properties]:[...a.properties,...c]),l={prefix:a.pos===a.end?" ":void 0};e.replaceNode(t.sourceFile,a,_,l),r.writeFixes(e)}function e5(e,t,n){const r=i8(t.sourceFile,t.program,t.preferences,t.host),i=bG(t.sourceFile,t.preferences),o=Rk(t.program.getCompilerOptions()),a=t.program.getTypeChecker(),s=V(n.properties,(e=>{const s=t5(t,a,r,i,a.getTypeOfSymbol(e),n.parentDeclaration);return dC.createPropertyAssignment(function(e,t,n,r){if(op(e)){const t=r.symbolToNode(e,111551,void 0,1073741824);if(t&&Jw(t))return t}return RT(e.name,t,0===n)}(e,o,i,a),s)})),c={leadingTriviaOption:rde.LeadingTriviaOption.Exclude,trailingTriviaOption:rde.TrailingTriviaOption.Exclude,indentation:n.indentation};e.replaceNode(t.sourceFile,n.parentDeclaration,dC.createObjectLiteralExpression([...n.parentDeclaration.properties,...s],!0),c),r.writeFixes(e)}function t5(e,t,n,i,o,a){if(3&o.flags)return n5();if(134217732&o.flags)return dC.createStringLiteral("",0===i);if(8&o.flags)return dC.createNumericLiteral(0);if(64&o.flags)return dC.createBigIntLiteral("0n");if(16&o.flags)return dC.createFalse();if(1056&o.flags){const e=o.symbol.exports?Le(o.symbol.exports.values()):o.symbol,n=t.symbolToExpression(o.symbol.parent?o.symbol.parent:o.symbol,111551,void 0,void 0);return void 0===e||void 0===n?dC.createNumericLiteral(0):dC.createPropertyAccessExpression(n,t.symbolToString(e))}if(256&o.flags)return dC.createNumericLiteral(o.value);if(2048&o.flags)return dC.createBigIntLiteral(o.value);if(128&o.flags)return dC.createStringLiteral(o.value,0===i);if(512&o.flags)return o===t.getFalseType()||o===t.getFalseType(!0)?dC.createFalse():dC.createTrue();if(65536&o.flags)return dC.createNull();if(1048576&o.flags){const r=A(o.types,(r=>t5(e,t,n,i,r,a)));return null!=r?r:n5()}if(t.isArrayLikeType(o))return dC.createArrayLiteralExpression();if(function(e){return 524288&e.flags&&(128&Vx(e)||e.symbol&&xt(Je(e.symbol.declarations),aD))}(o)){const r=V(t.getPropertiesOfType(o),(r=>{const o=t5(e,t,n,i,t.getTypeOfSymbol(r),a);return dC.createPropertyAssignment(r.name,o)}));return dC.createObjectLiteralExpression(r,!0)}if(16&Vx(o)){if(void 0===P(o.symbol.declarations||r,vn(rD,Kw,Ww)))return n5();const s=t.getSignaturesOfType(o,0);if(void 0===s)return n5();const c=Jee(215,e,i,s[0],$ee(ja.Function_not_implemented.message,i),void 0,void 0,void 0,a,n);return null!=c?c:n5()}if(1&Vx(o)){const e=qx(o.symbol);if(void 0===e||db(e))return n5();const t=Rv(e);return t&&S(t.parameters)?n5():dC.createNewExpression(dC.createIdentifier(o.symbol.name),void 0,void 0)}return n5()}function n5(){return dC.createIdentifier("undefined")}function r5(e){if(Ec(e,fN)){const t=Ec(e.parent,bE);if(t)return t}return wp(e)}var i5,o5,a5=b({"src/services/codefixes/fixAddMissingMember.ts"(){lfe(),Une(),B7="fixMissingMember",j7="fixMissingProperties",J7="fixMissingAttributes",z7="fixMissingFunctionDeclaration",y6({errorCodes:U7=[ja.Property_0_does_not_exist_on_type_1.code,ja.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,ja.Property_0_is_missing_in_type_1_but_required_in_type_2.code,ja.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,ja.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,ja.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,ja.Cannot_find_name_0.code],getCodeActions(e){const t=e.program.getTypeChecker(),n=V7(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(n){if(3===n.kind){const t=rde.ChangeTracker.with(e,(t=>e5(t,e,n)));return[m6(j7,t,ja.Add_missing_properties,j7,ja.Add_all_missing_properties)]}if(4===n.kind){const t=rde.ChangeTracker.with(e,(t=>Z7(t,e,n)));return[m6(J7,t,ja.Add_missing_attributes,J7,ja.Add_all_missing_attributes)]}if(2===n.kind||5===n.kind){const t=rde.ChangeTracker.with(e,(t=>Y7(t,e,n)));return[m6(z7,t,[ja.Add_missing_function_declaration_0,n.token.text],z7,ja.Add_all_missing_function_declarations)]}if(1===n.kind){const t=rde.ChangeTracker.with(e,(t=>X7(t,e.program.getTypeChecker(),n)));return[m6(B7,t,[ja.Add_missing_enum_member_0,n.token.text],B7,ja.Add_all_missing_members)]}return ue(function(e,t){const{parentDeclaration:n,declSourceFile:r,modifierFlags:i,token:o,call:a}=t;if(void 0===a)return;if(Cw(o))return;const s=o.text,c=t=>rde.ChangeTracker.with(e,(i=>G7(e,i,a,o,t,n,r))),_=[m6(B7,c(32&i),[32&i?ja.Declare_static_method_0:ja.Declare_method_0,s],B7,ja.Add_all_missing_members)];return 8&i&&_.unshift(f6(B7,c(8),[ja.Declare_private_method_0,s])),_}(e,n),function(e,t){return t.isJSFile?kn(function(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:i}){if(FE(t)||aD(t))return;const o=rde.ChangeTracker.with(e,(e=>Q7(e,n,t,i,!!(32&r))));if(0===o.length)return;const a=32&r?ja.Initialize_static_property_0:Cw(i)?ja.Declare_a_private_field_named_0:ja.Initialize_property_0_in_the_constructor;return m6(B7,o,[a,i.text],B7,ja.Add_all_missing_members)}(e,t)):function(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:i}){const o=i.text,a=32&r,s=W7(e.program.getTypeChecker(),t,i),c=r=>rde.ChangeTracker.with(e,(e=>H7(e,n,t,o,s,r))),_=[m6(B7,c(32&r),[a?ja.Declare_static_property_0:ja.Declare_property_0,o],B7,ja.Add_all_missing_members)];return a||Cw(i)||(8&r&&_.unshift(f6(B7,c(8),[ja.Declare_private_property_0,o])),_.push(function(e,t,n,r,i){const o=dC.createKeywordTypeNode(152),a=dC.createParameterDeclaration(void 0,void 0,"x",void 0,o,void 0),s=dC.createIndexSignature(void 0,[a],i),c=rde.ChangeTracker.with(e,(e=>e.insertMemberAtStart(t,n,s)));return f6(B7,c,[ja.Add_index_signature_for_property_0,r])}(e,n,t,i.text,s))),_}(e,t)}(e,n))}},fixIds:[B7,z7,j7,J7],getAllCodeActions:e=>{const{program:t,fixId:n}=e,r=t.getTypeChecker(),i=new Map,o=new Map;return k6(rde.ChangeTracker.with(e,(t=>{C6(e,U7,(a=>{const s=V7(a.file,a.start,a.code,r,e.program);if(s&&$x(i,qB(s.parentDeclaration)+"#"+s.token.text))if(n!==z7||2!==s.kind&&5!==s.kind){if(n===j7&&3===s.kind)e5(t,e,s);else if(n===J7&&4===s.kind)Z7(t,e,s);else if(1===s.kind&&X7(t,r,s),0===s.kind){const{parentDeclaration:e,token:t}=s,n=ie(o,e,(()=>[]));n.some((e=>e.token.text===t.text))||n.push(s)}}else Y7(t,e,s)})),o.forEach(((n,i)=>{const a=aD(i)?void 0:dte(i,r);for(const i of n){if(null==a?void 0:a.some((e=>{const t=o.get(e);return!!t&&t.some((({token:e})=>e.text===i.token.text))})))continue;const{parentDeclaration:n,declSourceFile:s,modifierFlags:c,token:_,call:l,isJSFile:u}=i;if(l&&!Cw(_))G7(e,t,l,_,32&c,n,s);else if(!u||FE(n)||aD(n)){const e=W7(r,n,_);H7(t,s,n,_.text,e,32&c)}else Q7(t,s,n,_,!!(32&c))}}))})))}})}});function s5(e,t,n){const r=kt(function(e,t){let n=u$(e,t.start);const r=ec(t);for(;n.ends5(e,t,n)));return[m6(i5,r,ja.Add_missing_new_operator_to_call,i5,ja.Add_missing_new_operator_to_all_calls)]},fixIds:[i5],getAllCodeActions:e=>T6(e,o5,((t,n)=>s5(t,e.sourceFile,n)))})}});function d5(e,t){return{type:"install package",file:e,packageName:t}}function p5(e,t){const n=xt(u$(e,t),sw);if(!n)return;const r=n.text,{packageName:i}=pR(r);return Xs(i)?void 0:i}function f5(e,t,n){var r;return n===_5?cW.nodeCoreModules.has(e)?"@types/node":void 0:(null==(r=t.isKnownTypesPackageName)?void 0:r.call(t,e))?CR(e):void 0}var m5,g5,h5=b({"src/services/codefixes/fixCannotFindModule.ts"(){lfe(),Une(),c5="installTypesPackage",_5=ja.Cannot_find_module_0_or_its_corresponding_type_declarations.code,y6({errorCodes:l5=[_5,ja.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],getCodeActions:function(e){const{host:t,sourceFile:n,span:{start:r}}=e,i=p5(n,r);if(void 0===i)return;const o=f5(i,t,e.errorCode);return void 0===o?[]:[m6("fixCannotFindModule",[],[ja.Install_0,o],c5,ja.Install_all_missing_types_packages,d5(n.fileName,o))]},fixIds:[c5],getAllCodeActions:e=>T6(e,l5,((t,n,r)=>{const i=p5(n.file,n.start);if(void 0!==i)switch(e.fixId){case c5:{const t=f5(i,e.host,n.code);t&&r.push(d5(n.file.fileName,t));break}default:In.fail("Bad fixId: "+e.fixId)}}))})}});function y5(e,t){return kt(u$(e,t).parent,Fl)}function v5(e,t,n,r,i){const o=sy(e),a=n.program.getTypeChecker(),s=a.getTypeAtLocation(o),c=a.getPropertiesOfType(s).filter(b5),_=i8(t,n.program,i,n.host);Ree(e,c,t,n,i,_,(n=>r.insertMemberAtStart(t,e,n))),_.writeFixes(r)}function b5(e){const t=kb(Me(e.getDeclarations()));return!(8&t||!(256&t))}var x5,k5,S5=b({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){lfe(),Une(),y6({errorCodes:m5=[ja.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,ja.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=rde.ChangeTracker.with(e,(r=>v5(y5(t,n.start),t,e,r,e.preferences)));return 0===r.length?void 0:[m6(g5,r,ja.Implement_inherited_abstract_class,g5,ja.Implement_all_inherited_abstract_classes)]},fixIds:[g5="fixClassDoesntImplementInheritedAbstractMember"],getAllCodeActions:function(e){const t=new Map;return T6(e,m5,((n,r)=>{const i=y5(r.file,r.start);$x(t,qB(i))&&v5(i,e.sourceFile,e,n,e.preferences)}))}})}});function T5(e,t,n,r){e.insertNodeAtConstructorStart(t,n,r),e.delete(t,r)}function C5(e,t){const n=u$(e,t);if(108!==n.kind)return;const r=zm(n),i=A5(r.body);return i&&!i.expression.arguments.some((e=>ND(e)&&e.expression===n))?{constructor:r,superCall:i}:void 0}function A5(e){return uE(e)&&am(e.expression)?e:Sl(e)?void 0:bI(e,A5)}var w5,D5,E5=b({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){lfe(),Une(),x5="classSuperMustPrecedeThisAccess",y6({errorCodes:k5=[ja.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],getCodeActions(e){const{sourceFile:t,span:n}=e,r=C5(t,n.start);if(!r)return;const{constructor:i,superCall:o}=r,a=rde.ChangeTracker.with(e,(e=>T5(e,t,i,o)));return[m6(x5,a,ja.Make_super_call_the_first_statement_in_the_constructor,x5,ja.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[x5],getAllCodeActions(e){const{sourceFile:t}=e,n=new Map;return T6(e,k5,((e,r)=>{const i=C5(r.file,r.start);if(!i)return;const{constructor:o,superCall:a}=i;$x(n,qB(o.parent))&&T5(e,t,o,a)}))}})}});function N5(e,t){const n=u$(e,t);return In.assert($w(n.parent),"token should be at the constructor declaration"),n.parent}function F5(e,t,n){const i=dC.createExpressionStatement(dC.createCallExpression(dC.createSuper(),void 0,r));e.insertNodeAtConstructorStart(t,n,i)}var P5,I5,O5=b({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){lfe(),Une(),w5="constructorForDerivedNeedSuperCall",y6({errorCodes:D5=[ja.Constructors_for_derived_classes_must_contain_a_super_call.code],getCodeActions(e){const{sourceFile:t,span:n}=e,r=N5(t,n.start),i=rde.ChangeTracker.with(e,(e=>F5(e,t,r)));return[m6(w5,i,ja.Add_missing_super_call,w5,ja.Add_all_missing_super_calls)]},fixIds:[w5],getAllCodeActions:e=>T6(e,D5,((t,n)=>F5(t,e.sourceFile,N5(n.file,n.start))))})}});function L5(e,t){Xee(e,t,"jsx",dC.createStringLiteral("react"))}var M5,R5,B5=b({"src/services/codefixes/fixEnableJsxFlag.ts"(){lfe(),Une(),P5="fixEnableJsxFlag",y6({errorCodes:I5=[ja.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],getCodeActions:function(e){const{configFile:t}=e.program.getCompilerOptions();if(void 0===t)return;const n=rde.ChangeTracker.with(e,(e=>L5(e,t)));return[f6(P5,n,ja.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[P5],getAllCodeActions:e=>T6(e,I5,(t=>{const{configFile:n}=e.program.getCompilerOptions();void 0!==n&&L5(t,n)}))})}});function j5(e,t,n){const r=P(e.getSemanticDiagnostics(t),(e=>e.start===n.start&&e.length===n.length));if(void 0===r||void 0===r.relatedInformation)return;const i=P(r.relatedInformation,(e=>e.code===ja.Did_you_mean_0.code));if(void 0===i||void 0===i.file||void 0===i.start||void 0===i.length)return;const o=rte(i.file,dc(i.start,i.length));return void 0!==o&&_u(o)&&QD(o.parent)?{suggestion:z5(i.messageText),expression:o.parent,arg:o}:void 0}function J5(e,t,n,r){const i=dC.createCallExpression(dC.createPropertyAccessExpression(dC.createIdentifier("Number"),dC.createIdentifier("isNaN")),void 0,[n]),o=r.operatorToken.kind;e.replaceNode(t,r,37===o||35===o?dC.createPrefixUnaryExpression(53,i):i)}function z5(e){const[t,n]=dq(e,"\n",0).match(/\'(.*)\'/)||[];return n}var U5,q5,V5=b({"src/services/codefixes/fixNaNEquality.ts"(){lfe(),Une(),M5="fixNaNEquality",y6({errorCodes:R5=[ja.This_condition_will_always_return_0.code],getCodeActions(e){const{sourceFile:t,span:n,program:r}=e,i=j5(r,t,n);if(void 0===i)return;const{suggestion:o,expression:a,arg:s}=i,c=rde.ChangeTracker.with(e,(e=>J5(e,t,s,a)));return[m6(M5,c,[ja.Use_0,o],M5,ja.Use_Number_isNaN_in_all_conditions)]},fixIds:[M5],getAllCodeActions:e=>T6(e,R5,((t,n)=>{const r=j5(e.program,n.file,dc(n.start,n.length));r&&J5(t,n.file,r.arg,r.expression)}))})}}),Q5=b({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){lfe(),Une(),y6({errorCodes:[ja.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,ja.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(e){const t=e.program.getCompilerOptions(),{configFile:n}=t;if(void 0===n)return;const r=[],i=Bk(t);if(i>=5&&i<99){const t=rde.ChangeTracker.with(e,(e=>{Xee(e,n,"module",dC.createStringLiteral("esnext"))}));r.push(f6("fixModuleOption",t,[ja.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const o=Rk(t);if(o<4||o>99){const t=rde.ChangeTracker.with(e,(e=>{if(!Bm(n))return;const t=[["target",dC.createStringLiteral("es2017")]];1===i&&t.push(["module",dC.createStringLiteral("commonjs")]),Gee(e,n,t)}));r.push(f6("fixTargetOption",t,[ja.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return r.length?r:void 0}})}});function K5(e,t,n){e.replaceNode(t,n,dC.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function W5(e,t){return kt(u$(e,t).parent,bN)}var H5,$5,G5=b({"src/services/codefixes/fixPropertyAssignment.ts"(){lfe(),Une(),U5="fixPropertyAssignment",y6({errorCodes:q5=[ja.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code],fixIds:[U5],getCodeActions(e){const{sourceFile:t,span:n}=e,r=W5(t,n.start),i=rde.ChangeTracker.with(e,(t=>K5(t,e.sourceFile,r)));return[m6(U5,i,[ja.Change_0_to_1,"=",":"],U5,[ja.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>T6(e,q5,((e,t)=>K5(e,t.file,W5(t.file,t.start))))})}});function X5(e,t){const n=qm(u$(e,t)).heritageClauses,r=n[0].getFirstToken();return 94===r.kind?{extendsToken:r,heritageClauses:n}:void 0}function Y5(e,t,n,r){if(e.replaceNode(t,n,dC.createToken(117)),2===r.length&&94===r[0].token&&117===r[1].token){const n=r[1].getFirstToken(),i=n.getFullStart();e.replaceRange(t,{pos:i,end:i},dC.createToken(27));const o=t.text;let a=n.end;for(;aY5(e,t,r,i)));return[m6(H5,o,ja.Change_extends_to_implements,H5,ja.Change_all_extended_interfaces_to_implements)]},fixIds:[H5],getAllCodeActions:e=>T6(e,$5,((e,t)=>{const n=X5(t.file,t.start);n&&Y5(e,t.file,n.extendsToken,n.heritageClauses)}))})}});function r9(e,t,n){const r=u$(e,t);if(Tw(r)||Cw(r))return{node:r,className:n===e9?qm(r).name.text:void 0}}function i9(e,t,{node:n,className:r}){xX(n),e.replaceNode(t,n,dC.createPropertyAccessExpression(r?dC.createIdentifier(r):dC.createThis(),n))}var o9,a9,s9,c9,_9=b({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){lfe(),Une(),Z5="forgottenThisPropertyAccess",e9=ja.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,y6({errorCodes:t9=[ja.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,ja.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,e9],getCodeActions(e){const{sourceFile:t}=e,n=r9(t,e.span.start,e.errorCode);if(!n)return;const r=rde.ChangeTracker.with(e,(e=>i9(e,t,n)));return[m6(Z5,r,[ja.Add_0_to_unresolved_variable,n.className||"this"],Z5,ja.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[Z5],getAllCodeActions:e=>T6(e,t9,((t,n)=>{const r=r9(n.file,n.start,n.code);r&&i9(t,e.sourceFile,r)}))})}});function l9(e,t,n,r,i){const o=n.getText()[r];if(!function(e){return We(c9,e)}(o))return;const a=i?c9[o]:`{${MX(n,t,o)}}`;e.replaceRangeWithText(n,{pos:r,end:r+1},a)}var u9,d9,p9,f9=b({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){lfe(),Une(),o9="fixInvalidJsxCharacters_expression",a9="fixInvalidJsxCharacters_htmlEntity",y6({errorCodes:s9=[ja.Unexpected_token_Did_you_mean_or_gt.code,ja.Unexpected_token_Did_you_mean_or_rbrace.code],fixIds:[o9,a9],getCodeActions(e){const{sourceFile:t,preferences:n,span:r}=e,i=rde.ChangeTracker.with(e,(e=>l9(e,n,t,r.start,!1))),o=rde.ChangeTracker.with(e,(e=>l9(e,n,t,r.start,!0)));return[m6(o9,i,ja.Wrap_invalid_character_in_an_expression_container,o9,ja.Wrap_all_invalid_characters_in_an_expression_container),m6(a9,o,ja.Convert_invalid_character_to_its_html_entity_code,a9,ja.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:e=>T6(e,s9,((t,n)=>l9(t,e.preferences,n.file,n.start,e.fixId===a9)))}),c9={">":">","}":"}"}}});function m9(e,t){const n=u$(e,t);if(n.parent&&rF(n.parent)&&Tw(n.parent.name)){const e=n.parent,t=Lh(e),r=Ih(e);if(t&&r)return{jsDocHost:t,signature:r,name:n.parent.name,jsDocParameterTag:e}}}var g9,h9,y9,v9,b9,x9,k9,S9=b({"src/services/codefixes/fixUnmatchedParameter.ts"(){lfe(),Une(),u9="deleteUnmatchedParameter",d9="renameUnmatchedParameter",p9=[ja.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],y6({fixIds:[u9,d9],errorCodes:p9,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=[],i=m9(t,n.start);if(i)return Se(r,function(e,{name:t,jsDocHost:n,jsDocParameterTag:r}){const i=rde.ChangeTracker.with(e,(t=>t.filterJSDocTags(e.sourceFile,n,(e=>e!==r))));return m6(u9,i,[ja.Delete_unused_param_tag_0,t.getText(e.sourceFile)],u9,ja.Delete_all_unused_param_tags)}(e,i)),Se(r,function(e,{name:t,jsDocHost:n,signature:r,jsDocParameterTag:i}){if(!S(r.parameters))return;const o=e.sourceFile,a=S_(r),s=new Set;for(const e of a)rF(e)&&Tw(e.name)&&s.add(e.name.escapedText);const c=A(r.parameters,(e=>Tw(e.name)&&!s.has(e.name.escapedText)?e.name.getText(o):void 0));if(void 0===c)return;const _=dC.updateJSDocParameterTag(i,i.tagName,dC.createIdentifier(c),i.isBracketed,i.typeExpression,i.isNameFirst,i.comment),l=rde.ChangeTracker.with(e,(e=>e.replaceJSDocComment(o,n,V(a,(e=>e===i?_:e)))));return f6(d9,l,[ja.Rename_param_tag_name_0_to_1,t.getText(o),c])}(e,i)),r},getAllCodeActions:function(e){const t=new Map;return k6(rde.ChangeTracker.with(e,(n=>{C6(e,p9,(({file:e,start:n})=>{const r=m9(e,n);r&&t.set(r.signature,Se(t.get(r.signature),r.jsDocParameterTag))})),t.forEach(((t,r)=>{if(e.fixId===u9){const e=new Set(t);n.filterJSDocTags(r.getSourceFile(),r,(t=>!e.has(t)))}}))})))}})}}),T9=b({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){lfe(),Une(),g9="fixUnreferenceableDecoratorMetadata",y6({errorCodes:[ja.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],getCodeActions:e=>{const t=function(e,t,n){const i=xt(u$(e,n),Tw);if(!i||180!==i.parent.kind)return;const o=t.getTypeChecker().getSymbolAtLocation(i);return P((null==o?void 0:o.declarations)||r,vn(JE,WE,BE))}(e.sourceFile,e.program,e.span.start);if(!t)return;const n=rde.ChangeTracker.with(e,(n=>273===t.kind&&function(e,t,n,r){kle.doChangeNamedToNamespaceOrDefault(t,r,e,n.parent)}(n,e.sourceFile,t,e.program))),i=rde.ChangeTracker.with(e,(n=>function(e,t,n,r){if(268===n.kind)return void e.insertModifierBefore(t,154,n.name);const i=270===n.kind?n:n.parent.parent;if(i.name&&i.namedBindings)return;const o=r.getTypeChecker();gh(i,(e=>{if(111551&Ix(e.symbol,o).flags)return!0}))||e.insertModifierBefore(t,154,i)}(n,e.sourceFile,t,e.program)));let o;return n.length&&(o=Se(o,f6(g9,n,ja.Convert_named_imports_to_namespace_import))),i.length&&(o=Se(o,f6(g9,i,ja.Convert_to_type_only_import))),o},fixIds:[g9]})}});function C9(e,t,n){e.replaceNode(t,n.parent,dC.createKeywordTypeNode(157))}function A9(e,t){return m6(h9,e,t,v9,ja.Delete_all_unused_declarations)}function w9(e,t,n){e.delete(t,In.checkDefined(kt(n.parent,wf).typeParameters,"The type parameter to delete should exist"))}function D9(e){return 100===e.kind||79===e.kind&&(273===e.parent.kind||270===e.parent.kind)}function E9(e){return 100===e.kind?xt(e.parent,jE):void 0}function N9(e,t){return DE(t.parent)&&Me(t.parent.getChildren(e))===t}function F9(e,t,n){e.delete(t,240===n.parent.kind?n.parent:n)}function P9(e,t,n,r){t!==ja.Property_0_is_declared_but_its_value_is_never_read.code&&(138===r.kind&&(r=kt(r.parent,mD).typeParameter.name),Tw(r)&&function(e){switch(e.parent.kind){case 166:case 165:return!0;case 257:switch(e.parent.parent.parent.kind){case 247:case 246:return!0}}return!1}(r)&&(e.replaceNode(n,r,dC.createIdentifier("_"+r.text)),Uw(r.parent)&&Hc(r.parent).forEach((t=>{Tw(t.name)&&e.replaceNode(n,t.name,dC.createIdentifier("_"+t.name.text))}))))}function I9(e,t,n,r,i,o,a,s){!function(e,t,n,r,i,o,a,s){const{parent:c}=e;if(Uw(c))!function(e,t,n,r,i,o,a,s=!1){if(function(e,t,n,r,i,o,a){const{parent:s}=n;switch(s.kind){case 171:case 173:const c=s.parameters.indexOf(n),_=Ww(s)?s.name:s,l=voe.Core.getReferencedSymbolsForNode(s.pos,_,i,r,o);if(l)for(const e of l)for(const t of e.references)if(t.kind===voe.EntryKind.Node){const e=Mw(t.node)&&PD(t.node.parent)&&t.node.parent.arguments.length>c,r=ND(t.node.parent)&&Mw(t.node.parent.expression)&&PD(t.node.parent.parent)&&t.node.parent.parent.arguments.length>c,i=(Ww(t.node.parent)||Kw(t.node.parent))&&t.node.parent!==n.parent&&t.node.parent.parameters.length>c;if(e||r||i)return!1}return!0;case 259:return!s.name||!function(e,t,n){return!!voe.Core.eachSymbolReferenceInFile(n,e,t,(e=>Tw(e)&&PD(e.parent)&&e.parent.arguments.indexOf(e)>=0))}(e,t,s.name)||L9(s,n,a);case 215:case 216:return L9(s,n,a);case 175:return!1;case 174:return!0;default:return In.failBadSyntaxKind(s)}}(r,t,n,i,o,a,s))if(n.modifiers&&n.modifiers.length>0&&(!Tw(n.name)||voe.Core.isSymbolReferencedInFile(n.name,r,t)))for(const r of n.modifiers)vl(r)&&e.deleteModifier(t,r);else!n.initializer&&O9(n,r,i)&&e.delete(t,n)}(t,n,c,r,i,o,a,s);else if(!(s&&Tw(e)&&voe.Core.isSymbolReferencedInFile(e,r,n))){const r=JE(c)?e:Jw(c)?c.parent:c;In.assert(r!==n,"should not delete whole source file"),t.delete(n,r)}}(t,n,e,r,i,o,a,s),Tw(t)&&voe.Core.eachSymbolReferenceInFile(t,r,e,(t=>{var r;ND(t.parent)&&t.parent.name===t&&(t=t.parent),!s&&(QD((r=t).parent)&&r.parent.left===r||(VD(r.parent)||qD(r.parent))&&r.parent.operand===r)&&uE(r.parent.parent)&&n.delete(e,t.parent.parent)}))}function O9(e,t,n){const r=e.parent.parameters.indexOf(e);return!voe.Core.someSignatureUsage(e.parent,n,t,((e,t)=>!t||t.arguments.length>r))}function L9(e,t,n){const r=e.parameters,i=r.indexOf(t);return In.assert(-1!==i,"The parameter should already be in the list"),n?r.slice(i+1).every((e=>Tw(e.name)&&!e.symbol.isReferenced)):i===r.length-1}var M9,R9,B9=b({"src/services/codefixes/fixUnusedIdentifier.ts"(){lfe(),Une(),h9="unusedIdentifier",y9="unusedIdentifier_prefix",v9="unusedIdentifier_delete",b9="unusedIdentifier_deleteImports",x9="unusedIdentifier_infer",y6({errorCodes:k9=[ja._0_is_declared_but_its_value_is_never_read.code,ja._0_is_declared_but_never_used.code,ja.Property_0_is_declared_but_its_value_is_never_read.code,ja.All_imports_in_import_declaration_are_unused.code,ja.All_destructured_elements_are_unused.code,ja.All_variables_are_unused.code,ja.All_type_parameters_are_unused.code],getCodeActions(e){const{errorCode:t,sourceFile:n,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),a=r.getSourceFiles(),s=u$(n,e.span.start);if(sF(s))return[A9(rde.ChangeTracker.with(e,(e=>e.delete(n,s))),ja.Remove_template_tag)];if(29===s.kind)return[A9(rde.ChangeTracker.with(e,(e=>w9(e,n,s))),ja.Remove_type_parameters)];const c=E9(s);if(c){const t=rde.ChangeTracker.with(e,(e=>e.delete(n,c)));return[m6(h9,t,[ja.Remove_import_from_0,Wx(c)],b9,ja.Delete_all_unused_imports)]}if(D9(s)){const t=rde.ChangeTracker.with(e,(e=>I9(n,s,e,o,a,r,i,!1)));if(t.length)return[m6(h9,t,[ja.Remove_unused_declaration_for_Colon_0,s.getText(n)],b9,ja.Delete_all_unused_imports)]}if(CD(s.parent)||AD(s.parent)){if(Uw(s.parent.parent)){const t=s.parent.elements,r=[t.length>1?ja.Remove_unused_declarations_for_Colon_0:ja.Remove_unused_declaration_for_Colon_0,V(t,(e=>e.getText(n))).join(", ")];return[A9(rde.ChangeTracker.with(e,(e=>function(e,t,n){T(n.elements,(n=>e.delete(t,n)))}(e,n,s.parent))),r)]}return[A9(rde.ChangeTracker.with(e,(e=>e.delete(n,s.parent.parent))),ja.Remove_unused_destructuring_declaration)]}if(N9(n,s))return[A9(rde.ChangeTracker.with(e,(e=>F9(e,n,s.parent))),ja.Remove_variable_statement)];const _=[];if(138===s.kind){const t=rde.ChangeTracker.with(e,(e=>C9(e,n,s))),r=kt(s.parent,mD).typeParameter.name.text;_.push(m6(h9,t,[ja.Replace_infer_0_with_unknown,r],x9,ja.Replace_all_unused_infer_with_unknown))}else{const t=rde.ChangeTracker.with(e,(e=>I9(n,s,e,o,a,r,i,!1)));if(t.length){const e=Jw(s.parent)?s.parent:s;_.push(A9(t,[ja.Remove_unused_declaration_for_Colon_0,e.getText(n)]))}}const l=rde.ChangeTracker.with(e,(e=>P9(e,t,n,s)));return l.length&&_.push(m6(h9,l,[ja.Prefix_0_with_an_underscore,s.getText(n)],y9,ja.Prefix_all_unused_declarations_with_where_possible)),_},fixIds:[y9,v9,b9,x9],getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:r}=e,i=n.getTypeChecker(),o=n.getSourceFiles();return T6(e,k9,((a,s)=>{const c=u$(t,s.start);switch(e.fixId){case y9:P9(a,s.code,t,c);break;case b9:{const e=E9(c);e?a.delete(t,e):D9(c)&&I9(t,c,a,i,o,n,r,!0);break}case v9:if(138===c.kind||D9(c))break;if(sF(c))a.delete(t,c);else if(29===c.kind)w9(a,t,c);else if(CD(c.parent)){if(c.parent.parent.initializer)break;Uw(c.parent.parent)&&!O9(c.parent.parent,i,o)||a.delete(t,c.parent.parent)}else{if(AD(c.parent.parent)&&c.parent.parent.parent.initializer)break;N9(t,c)?F9(a,t,c.parent):I9(t,c,a,i,o,n,r,!0)}break;case x9:138===c.kind&&C9(a,t,c);break;default:In.fail(JSON.stringify(e.fixId))}}))}})}});function j9(e,t,n,i,o){const a=u$(t,n),s=Ec(a,Iu);if(s.getStart(t)!==a.getStart(t)){const e=JSON.stringify({statementKind:In.formatSyntaxKind(s.kind),tokenKind:In.formatSyntaxKind(a.kind),errorCode:o,start:n,length:i});In.fail("Token and statement should start at the same point. "+e)}const c=(cE(s.parent)?s.parent:s).parent;if(!cE(s.parent)||s===Me(s.parent.statements))switch(c.kind){case 242:if(c.elseStatement){if(cE(s.parent))break;return void e.replaceNode(t,s,dC.createBlock(r))}case 244:case 245:return void e.delete(t,c)}if(cE(s.parent)){const r=n+i,o=In.checkDefined(function(e,t){let n;for(const t of e){if(!(t.posj9(t,e.sourceFile,e.span.start,e.span.length,e.errorCode)));return[m6(M9,t,ja.Remove_unreachable_code,M9,ja.Remove_all_unreachable_code)]},fixIds:[M9],getAllCodeActions:e=>T6(e,R9,((e,t)=>j9(e,t.file,t.start,t.length,t.code)))})}});function q9(e,t,n){const r=u$(t,n),i=kt(r.parent,SE),o=r.getStart(t),a=i.statement.getStart(t),s=kx(o,a,t)?a:As(t.text,YH(i,58,t).end,!0);e.deleteRange(t,{pos:o,end:s})}var V9,Q9,K9,W9=b({"src/services/codefixes/fixUnusedLabel.ts"(){lfe(),Une(),J9="fixUnusedLabel",y6({errorCodes:z9=[ja.Unused_label.code],getCodeActions(e){const t=rde.ChangeTracker.with(e,(t=>q9(t,e.sourceFile,e.span.start)));return[m6(J9,t,ja.Remove_unused_label,J9,ja.Remove_all_unused_labels)]},fixIds:[J9],getAllCodeActions:e=>T6(e,z9,((e,t)=>q9(e,t.file,t.start)))})}});function H9(e,t,n,r,i){e.replaceNode(t,n,i.typeToTypeNode(r,n,void 0))}function $9(e,t,n){const r=Ec(u$(e,t),G9),i=r&&r.type;return i&&{typeNode:i,type:X9(n,i)}}function G9(e){switch(e.kind){case 231:case 176:case 177:case 259:case 174:case 178:case 197:case 171:case 170:case 166:case 169:case 168:case 175:case 262:case 213:case 257:return!0;default:return!1}}function X9(e,t){if(LN(t)){const n=e.getTypeFromTypeNode(t.type);return n===e.getNeverType()||n===e.getVoidType()?n:e.getUnionType(Se([n,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var Y9,Z9,eee=b({"src/services/codefixes/fixJSDocTypes.ts"(){lfe(),Une(),V9="fixJSDocTypes_plain",Q9="fixJSDocTypes_nullable",y6({errorCodes:K9=[ja.JSDoc_types_can_only_be_used_inside_documentation_comments.code,ja._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,ja._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],getCodeActions(e){const{sourceFile:t}=e,n=e.program.getTypeChecker(),r=$9(t,e.span.start,n);if(!r)return;const{typeNode:i,type:o}=r,a=i.getText(t),s=[c(o,V9,ja.Change_all_jsdoc_style_types_to_TypeScript)];return 317===i.kind&&s.push(c(o,Q9,ja.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),s;function c(r,o,s){return m6("jdocTypes",rde.ChangeTracker.with(e,(e=>H9(e,t,i,r,n))),[ja.Change_0_to_1,a,n.typeToString(r)],o,s)}},fixIds:[V9,Q9],getAllCodeActions(e){const{fixId:t,program:n,sourceFile:r}=e,i=n.getTypeChecker();return T6(e,K9,((e,n)=>{const o=$9(n.file,n.start,i);if(!o)return;const{typeNode:a,type:s}=o,c=317===a.kind&&t===Q9?i.getNullableType(s,32768):s;H9(e,r,a,c,i)}))}})}});function tee(e,t,n){e.replaceNodeWithText(t,n,n.text+"()")}function nee(e,t){const n=u$(e,t);if(ND(n.parent)){let e=n.parent;for(;ND(e.parent);)e=e.parent;return e.name}if(Tw(n))return n}var ree,iee,oee=b({"src/services/codefixes/fixMissingCallParentheses.ts"(){lfe(),Une(),Y9="fixMissingCallParentheses",y6({errorCodes:Z9=[ja.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],fixIds:[Y9],getCodeActions(e){const{sourceFile:t,span:n}=e,r=nee(t,n.start);if(!r)return;const i=rde.ChangeTracker.with(e,(t=>tee(t,e.sourceFile,r)));return[m6(Y9,i,ja.Add_missing_call_parentheses,Y9,ja.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>T6(e,Z9,((e,t)=>{const n=nee(t.file,t.start);n&&tee(e,t.file,n)}))})}});function aee(e,t){const n=zm(u$(e,t));if(!n)return;let r;switch(n.kind){case 171:r=n.name;break;case 259:case 215:r=YH(n,98,e);break;case 216:r=YH(n,n.typeParameters?29:20,e)||Me(n.parameters);break;default:return}return r&&{insertBefore:r,returnType:(i=n,i.type?i.type:wE(i.parent)&&i.parent.type&&rD(i.parent.type)?i.parent.type.type:void 0)};var i}function see(e,t,{insertBefore:n,returnType:r}){if(r){const n=rg(r);n&&79===n.kind&&"Promise"===n.text||e.replaceNode(t,r,dC.createTypeReferenceNode("Promise",dC.createNodeArray([r])))}e.insertModifierBefore(t,132,n)}var cee,_ee,lee=b({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){lfe(),Une(),ree="fixAwaitInSyncFunction",y6({errorCodes:iee=[ja.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,ja.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,ja.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],getCodeActions(e){const{sourceFile:t,span:n}=e,r=aee(t,n.start);if(!r)return;const i=rde.ChangeTracker.with(e,(e=>see(e,t,r)));return[m6(ree,i,ja.Add_async_modifier_to_containing_function,ree,ja.Add_all_missing_async_modifiers)]},fixIds:[ree],getAllCodeActions:function(e){const t=new Map;return T6(e,iee,((n,r)=>{const i=aee(r.file,r.start);i&&$x(t,qB(i.insertBefore))&&see(n,e.sourceFile,i)}))}})}});function uee(e,t,n,r,i){let o,a;if(r===ja._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)o=t,a=t+n;else if(r===ja._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const n=i.program.getTypeChecker(),r=u$(e,t).parent;In.assert(Pl(r),"error span of fixPropertyOverrideAccessor should only be on an accessor");const s=r.parent;In.assert(Fl(s),"erroneous accessors should only be inside classes");const c=Je(dte(s,n));if(!c)return[];const _=Ic(jf(r.name)),l=n.getPropertyOfType(n.getTypeAtLocation(c),_);if(!l||!l.valueDeclaration)return[];o=l.valueDeclaration.pos,a=l.valueDeclaration.end,e=wp(l.valueDeclaration)}else In.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+r);return ote(e,i.program,o,a,i,ja.Generate_get_and_set_accessors.message)}var dee,pee,fee=b({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){lfe(),Une(),y6({errorCodes:cee=[ja._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,ja._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],getCodeActions(e){const t=uee(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[m6(_ee,t,ja.Generate_get_and_set_accessors,_ee,ja.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[_ee="fixPropertyOverrideAccessor"],getAllCodeActions:e=>T6(e,cee,((t,n)=>{const r=uee(n.file,n.start,n.length,n.code,e);if(r)for(const n of r)t.pushRaw(e.sourceFile,n)}))})}});function mee(e,t){switch(e){case ja.Parameter_0_implicitly_has_an_1_type.code:case ja.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Xw(zm(t))?ja.Infer_type_of_0_from_usage:ja.Infer_parameter_types_from_usage;case ja.Rest_parameter_0_implicitly_has_an_any_type.code:case ja.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return ja.Infer_parameter_types_from_usage;case ja.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return ja.Infer_this_type_of_0_from_usage;default:return ja.Infer_type_of_0_from_usage}}function gee(e,t,n,r,i,o,a,s,c){if(!hl(n.kind)&&79!==n.kind&&25!==n.kind&&108!==n.kind)return;const{parent:_}=n,l=i8(t,i,c,s);switch(r=function(e){switch(e){case ja.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return ja.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case ja.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return ja.Variable_0_implicitly_has_an_1_type.code;case ja.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return ja.Parameter_0_implicitly_has_an_1_type.code;case ja.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return ja.Rest_parameter_0_implicitly_has_an_any_type.code;case ja.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return ja.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case ja._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return ja._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case ja.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return ja.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case ja.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return ja.Member_0_implicitly_has_an_1_type.code}return e}(r)){case ja.Member_0_implicitly_has_an_1_type.code:case ja.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(wE(_)&&a(_)||Qw(_)||Vw(_))return hee(e,l,t,_,i,s,o),l.writeFixes(e),_;if(ND(_)){const n=zX(kee(_.name,i,o),_,i,s);if(n){const r=dC.createJSDocTypeTag(void 0,dC.createJSDocTypeExpression(n),void 0);e.addJSDocTags(t,kt(_.parent.parent,uE),[r])}return l.writeFixes(e),_}return;case ja.Variable_0_implicitly_has_an_1_type.code:{const t=i.getTypeChecker().getSymbolAtLocation(n);return t&&t.valueDeclaration&&wE(t.valueDeclaration)&&a(t.valueDeclaration)?(hee(e,l,wp(t.valueDeclaration),t.valueDeclaration,i,s,o),l.writeFixes(e),t.valueDeclaration):void 0}}const u=zm(n);if(void 0===u)return;let d;switch(r){case ja.Parameter_0_implicitly_has_an_1_type.code:if(Xw(u)){yee(e,l,t,u,i,s,o),d=u;break}case ja.Rest_parameter_0_implicitly_has_an_any_type.code:if(a(u)){const n=kt(_,Uw);!function(e,t,n,r,i,o,a,s){if(!Tw(r.name))return;const c=function(e,t,n,r){const i=See(e,t,n,r);return i&&Tee(n,i,r).parameters(e)||e.parameters.map((e=>({declaration:e,type:Tw(e.name)?kee(e.name,n,r):n.getTypeChecker().getAnyType()})))}(i,n,o,s);if(In.assert(i.parameters.length===c.length,"Parameter count and inference count should match"),Sg(i))bee(e,n,c,o,a);else{const r=BD(i)&&!YH(i,20,n);r&&e.insertNodeBefore(n,Me(i.parameters),dC.createToken(20));for(const{declaration:r,type:i}of c)!r||r.type||r.initializer||vee(e,t,n,r,i,o,a);r&&e.insertNodeAfter(n,je(i.parameters),dC.createToken(21))}}(e,l,t,n,u,i,s,o),d=n}break;case ja.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case ja._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:Gw(u)&&Tw(u.name)&&(vee(e,l,t,u,kee(u.name,i,o),i,s),d=u);break;case ja.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:Xw(u)&&(yee(e,l,t,u,i,s,o),d=u);break;case ja.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:rde.isThisTypeAnnotatable(u)&&a(u)&&(function(e,t,n,r,i,o){const a=See(n,t,r,o);if(!a||!a.length)return;const s=zX(Tee(r,a,o).thisParameter(),n,r,i);s&&(Sg(n)?function(e,t,n,r){e.addJSDocTags(t,n,[dC.createJSDocThisTag(void 0,dC.createJSDocTypeExpression(r))])}(e,t,n,s):e.tryInsertThisTypeAnnotation(t,n,s))}(e,t,u,i,s,o),d=u);break;default:return In.fail(r+"")}return l.writeFixes(e),d}function hee(e,t,n,r,i,o,a){Tw(r.name)&&vee(e,t,n,r,kee(r.name,i,a),i,o)}function yee(e,t,n,r,i,o,a){const s=Oe(r.parameters);if(s&&Tw(r.name)&&Tw(s.name)){let c=kee(r.name,i,a);c===i.getTypeChecker().getAnyType()&&(c=kee(s.name,i,a)),Sg(r)?bee(e,n,[{declaration:s,type:c}],i,o):vee(e,t,n,s,c,i,o)}}function vee(e,t,n,r,i,o,a){const s=zX(i,r,o,a);if(s)if(Sg(n)&&168!==r.kind){const t=wE(r)?xt(r.parent.parent,_E):r;if(!t)return;const i=dC.createJSDocTypeExpression(s),o=Gw(r)?dC.createJSDocReturnTag(void 0,i,void 0):dC.createJSDocTypeTag(void 0,i,void 0);e.addJSDocTags(n,t,[o])}else(function(e,t,n,r,i,o){const a=ete(e,o);return!(!a||!r.tryInsertTypeAnnotation(n,t,a.typeNode)||(T(a.symbols,(e=>i.addImportFromExportedSymbol(e,!0))),0))})(s,r,n,e,t,Rk(o.getCompilerOptions()))||e.tryInsertTypeAnnotation(n,r,s)}function bee(e,t,n,r,i){const o=n.length&&n[0].declaration.parent;if(!o)return;const a=Z(n,(e=>{const t=e.declaration;if(t.initializer||b_(t)||!Tw(t.name))return;const n=e.type&&zX(e.type,t,r,i);return n?(RC(dC.cloneNode(t.name),7168),{name:dC.cloneNode(t.name),param:t,isOptional:!!e.isOptional,typeNode:n}):void 0}));if(a.length)if(BD(o)||RD(o)){const n=BD(o)&&!YH(o,20,t);n&&e.insertNodeBefore(t,Me(o.parameters),dC.createToken(20)),T(a,(({typeNode:n,param:r})=>{const i=dC.createJSDocTypeTag(void 0,dC.createJSDocTypeExpression(n)),o=dC.createJSDocComment(void 0,[i]);e.insertNodeAt(t,r.getStart(t),o,{suffix:" "})})),n&&e.insertNodeAfter(t,je(o.parameters),dC.createToken(21))}else{const n=V(a,(({name:e,typeNode:t,isOptional:n})=>dC.createJSDocParameterTag(void 0,e,!!n,dC.createJSDocTypeExpression(t),!1,void 0)));e.addJSDocTags(t,o,n)}}function xee(e,t,n){return Z(voe.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n),(e=>e.kind!==voe.EntryKind.Span?xt(e.node,Tw):void 0))}function kee(e,t,n){return Tee(t,xee(e,t,n),n).single()}function See(e,t,n,r){let i;switch(e.kind){case 173:i=YH(e,135,t);break;case 216:case 215:const n=e.parent;i=(wE(n)||Qw(n))&&Tw(n.name)?n.name:e.name;break;case 259:case 171:case 170:i=e.name}if(i)return xee(i,n,r)}function Tee(e,t,n){const i=e.getTypeChecker(),o={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:e=>i.createArrayType(e),Promise:e=>i.createPromiseType(e)},a=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:function(){return d(c(t))},parameters:function(r){if(0===t.length||!r.parameters)return;const o={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const e of t)n.throwIfCancellationRequested(),_(e,o);const a=[...o.constructs||[],...o.calls||[]];return r.parameters.map(((t,o)=>{const s=[],_=rd(t);let l=!1;for(const e of a)if(e.argumentTypes.length<=o)l=Sg(r),s.push(i.getUndefinedType());else if(_)for(let t=o;t{t.has(n)||t.set(n,[]),t.get(n).push(e)}));const n=new Map;return t.forEach(((e,t)=>{n.set(t,s(e))})),{isNumber:e.some((e=>e.isNumber)),isString:e.some((e=>e.isString)),isNumberOrString:e.some((e=>e.isNumberOrString)),candidateTypes:H(e,(e=>e.candidateTypes)),properties:n,calls:H(e,(e=>e.calls)),constructs:H(e,(e=>e.constructs)),numberIndex:T(e,(e=>e.numberIndex)),stringIndex:T(e,(e=>e.stringIndex)),candidateThisTypes:H(e,(e=>e.candidateThisTypes)),inferredTypes:void 0}}function c(e){const t={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const r of e)n.throwIfCancellationRequested(),_(r,t);return p(t)}function _(e,t){for(;Wb(e);)e=e.parent;switch(e.parent.kind){case 241:!function(e,t){h(t,PD(e)?i.getVoidType():i.getAnyType())}(e,t);break;case 222:t.isNumber=!0;break;case 221:!function(e,t){switch(e.operator){case 45:case 46:case 40:case 54:t.isNumber=!0;break;case 39:t.isNumberOrString=!0}}(e.parent,t);break;case 223:!function(e,t,n){switch(t.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 65:case 67:case 66:case 68:case 69:case 73:case 74:case 78:case 70:case 72:case 71:case 40:case 29:case 32:case 31:case 33:const r=i.getTypeAtLocation(t.left===e?t.right:t.left);1056&r.flags?h(n,r):n.isNumber=!0;break;case 64:case 39:const o=i.getTypeAtLocation(t.left===e?t.right:t.left);1056&o.flags?h(n,o):296&o.flags?n.isNumber=!0:402653316&o.flags?n.isString=!0:1&o.flags||(n.isNumberOrString=!0);break;case 63:case 34:case 36:case 37:case 35:h(n,i.getTypeAtLocation(t.left===e?t.right:t.left));break;case 101:e===t.left&&(n.isString=!0);break;case 56:case 60:e!==t.left||257!==e.parent.parent.kind&&!Rb(e.parent.parent,!0)||h(n,i.getTypeAtLocation(t.right))}}(e,e.parent,t);break;case 292:case 293:!function(e,t){h(t,i.getTypeAtLocation(e.parent.parent.expression))}(e.parent,t);break;case 210:case 211:e.parent.expression===e?function(e,t){const n={argumentTypes:[],return_:{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}};if(e.arguments)for(const t of e.arguments)n.argumentTypes.push(i.getTypeAtLocation(t));_(e,n.return_),210===e.kind?(t.calls||(t.calls=[])).push(n):(t.constructs||(t.constructs=[])).push(n)}(e.parent,t):l(e,t);break;case 208:!function(e,t){const n=Pc(e.name.text);t.properties||(t.properties=new Map);const r=t.properties.get(n)||{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};_(e,r),t.properties.set(n,r)}(e.parent,t);break;case 209:!function(e,t,n){if(t!==e.argumentExpression){const t=i.getTypeAtLocation(e.argumentExpression),r={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};_(e,r),296&t.flags?n.numberIndex=r:n.stringIndex=r}else n.isNumberOrString=!0}(e.parent,e,t);break;case 299:case 300:!function(e,t){const n=wE(e.parent.parent)?e.parent.parent:e.parent;y(t,i.getTypeAtLocation(n))}(e.parent,t);break;case 169:!function(e,t){y(t,i.getTypeAtLocation(e.parent))}(e.parent,t);break;case 257:{const{name:n,initializer:r}=e.parent;if(e===n){r&&h(t,i.getTypeAtLocation(r));break}}default:return l(e,t)}}function l(e,t){pg(e)&&h(t,i.getContextualType(e))}function u(e){return d(p(e))}function d(e){if(!e.length)return i.getAnyType();const t=i.getUnionType([i.getStringType(),i.getNumberType()]);let n=function(e,t){const n=[];for(const r of e)for(const{high:e,low:i}of t)e(r)&&(In.assert(!i(r),"Priority can't have both low and high"),n.push(i));return e.filter((e=>n.every((t=>!t(e)))))}(e,[{high:e=>e===i.getStringType()||e===i.getNumberType(),low:e=>e===t},{high:e=>!(16385&e.flags),low:e=>!!(16385&e.flags)},{high:e=>!(114689&e.flags||16&Vx(e)),low:e=>!!(16&Vx(e))}]);const r=n.filter((e=>16&Vx(e)));return r.length&&(n=n.filter((e=>!(16&Vx(e)))),n.push(function(e){if(1===e.length)return e[0];const t=[],n=[],r=[],o=[];let a=!1,s=!1;const c=ut();for(const _ of e){for(const e of i.getPropertiesOfType(_))c.add(e.name,e.valueDeclaration?i.getTypeOfSymbolAtLocation(e,e.valueDeclaration):i.getAnyType());t.push(...i.getSignaturesOfType(_,0)),n.push(...i.getSignaturesOfType(_,1));const e=i.getIndexInfoOfType(_,0);e&&(r.push(e.type),a=a||e.isReadonly);const l=i.getIndexInfoOfType(_,1);l&&(o.push(l.type),s=s||l.isReadonly)}const _=ce(c,((t,n)=>{const r=n.lengthi.getBaseTypeOfLiteralType(e))),l=(null==(s=e.calls)?void 0:s.length)?f(e):void 0;return l&&_?c.push(i.getUnionType([l,..._],2)):(l&&c.push(l),S(_)&&c.push(..._)),c.push(...function(e){if(!e.properties||!e.properties.size)return[];const t=a.filter((t=>function(e,t){return!!t.properties&&!up(t.properties,((t,n)=>{const o=i.getTypeOfPropertyOfType(e,n);return!(o&&(t.calls?i.getSignaturesOfType(o,0).length&&i.isTypeAssignableTo(o,(a=t.calls,i.createAnonymousType(void 0,ip(),[g(a)],r,r))):i.isTypeAssignableTo(o,u(t))));var a}))}(t,e)));return 0function(e,t){if(!(4&Vx(e)&&t.properties))return e;const n=e.target,r=Je(n.typeParameters);if(!r)return e;const a=[];return t.properties.forEach(((e,t)=>{const o=i.getTypeOfPropertyOfType(n,t);In.assert(!!o,"generic should have all the properties of its reference."),a.push(...m(o,u(e),r))})),o[e.symbol.escapedName](d(a))}(t,e))):[]}(e)),c}function f(e){const t=new Map;e.properties&&e.properties.forEach(((e,n)=>{const r=i.createSymbol(4,n);r.links.type=u(e),t.set(n,r)}));const n=e.calls?[g(e.calls)]:[],r=e.constructs?[g(e.constructs)]:[],o=e.stringIndex?[i.createIndexInfo(i.getStringType(),u(e.stringIndex),!1)]:[];return i.createAnonymousType(void 0,t,n,r,o)}function m(e,t,n){if(e===n)return[t];if(3145728&e.flags)return H(e.types,(e=>m(e,t,n)));if(4&Vx(e)&&4&Vx(t)){const r=i.getTypeArguments(e),o=i.getTypeArguments(t),a=[];if(r&&o)for(let e=0;ee.argumentTypes.length)));for(let r=0;re.argumentTypes[r]||i.getUndefinedType()))),e.some((e=>void 0===e.argumentTypes[r]))&&(n.flags|=16777216),t.push(n)}const r=u(s(e.map((e=>e.return_))));return i.createSignature(void 0,void 0,void 0,t,r,void 0,n,0)}function h(e,t){!t||1&t.flags||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function y(e,t){!t||1&t.flags||131072&t.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(t)}}var Cee,Aee,wee=b({"src/services/codefixes/inferFromUsage.ts"(){lfe(),Une(),dee="inferFromUsage",y6({errorCodes:pee=[ja.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,ja.Variable_0_implicitly_has_an_1_type.code,ja.Parameter_0_implicitly_has_an_1_type.code,ja.Rest_parameter_0_implicitly_has_an_any_type.code,ja.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,ja._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,ja.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,ja.Member_0_implicitly_has_an_1_type.code,ja.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,ja.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,ja.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,ja.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,ja.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,ja._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,ja.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,ja.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,ja.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],getCodeActions(e){const{sourceFile:t,program:n,span:{start:r},errorCode:i,cancellationToken:o,host:a,preferences:s}=e,c=u$(t,r);let _;const l=rde.ChangeTracker.with(e,(e=>{_=gee(e,t,c,i,n,o,Ct,a,s)})),u=_&&qc(_);return u&&0!==l.length?[m6(dee,l,[mee(i,c),ef(u)],dee,ja.Infer_all_types_from_usage)]:void 0},fixIds:[dee],getAllCodeActions(e){const{sourceFile:t,program:n,cancellationToken:r,host:i,preferences:o}=e,a=oG();return T6(e,pee,((e,s)=>{gee(e,t,u$(s.file,s.start),s.code,n,r,a,i,o)}))}})}});function Dee(e,t,n){if(Sg(e))return;const r=Ec(u$(e,n),Cl),i=null==r?void 0:r.type;if(!i)return;const o=t.getTypeFromTypeNode(i),a=t.getAwaitedType(o)||t.getVoidType(),s=t.typeToTypeNode(a,i,void 0);return s?{returnTypeNode:i,returnType:o,promisedTypeNode:s,promisedType:a}:void 0}function Eee(e,t,n,r){e.replaceNode(t,n,dC.createTypeReferenceNode("Promise",[r]))}var Nee,Fee,Pee,Iee=b({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){lfe(),Une(),Cee="fixReturnTypeInAsyncFunction",y6({errorCodes:Aee=[ja.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],fixIds:[Cee],getCodeActions:function(e){const{sourceFile:t,program:n,span:r}=e,i=n.getTypeChecker(),o=Dee(t,n.getTypeChecker(),r.start);if(!o)return;const{returnTypeNode:a,returnType:s,promisedTypeNode:c,promisedType:_}=o,l=rde.ChangeTracker.with(e,(e=>Eee(e,t,a,c)));return[m6(Cee,l,[ja.Replace_0_with_Promise_1,i.typeToString(s),i.typeToString(_)],Cee,ja.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>T6(e,Aee,((t,n)=>{const r=Dee(n.file,e.program.getTypeChecker(),n.start);r&&Eee(t,n.file,r.returnTypeNode,r.promisedTypeNode)}))})}});function Oee(e,t,n,r){const{line:i}=ys(t,n);r&&!oe(r,i)||e.insertCommentBeforeLine(t,i,n," @ts-ignore")}var Lee,Mee=b({"src/services/codefixes/disableJsDiagnostics.ts"(){lfe(),Une(),Nee="disableJsDiagnostics",Fee="disableJsDiagnostics",y6({errorCodes:Pee=Z(Object.keys(ja),(e=>{const t=ja[e];return 1===t.category?t.code:void 0})),getCodeActions:function(e){const{sourceFile:t,program:n,span:r,host:i,formatContext:o}=e;if(!Sg(t)||!eT(t,n.getCompilerOptions()))return;const a=t.checkJsDirective?"":nX(i,o.options),s=[f6(Nee,[S6(t.fileName,[eG(t.checkJsDirective?pc(t.checkJsDirective.pos,t.checkJsDirective.end):dc(0,0),"// @ts-nocheck"+a)])],ja.Disable_checking_for_this_file)];return rde.isValidLocationToAddComment(t,r.start)&&s.unshift(m6(Nee,rde.ChangeTracker.with(e,(e=>Oee(e,t,r.start))),ja.Ignore_this_error_message,Fee,ja.Add_ts_ignore_to_all_error_messages)),s},fixIds:[Fee],getAllCodeActions:e=>{const t=new Set;return T6(e,Pee,((e,n)=>{rde.isValidLocationToAddComment(n.file,n.start)&&Oee(e,n.file,n.start,t)}))}})}});function Ree(e,t,n,r,i,o,a){const s=e.symbol.members;for(const c of t)s.has(c.escapedName)||jee(c,e,n,r,i,o,a,void 0)}function Bee(e){return{trackSymbol:()=>!1,moduleResolverHost:fG(e.program,e.host)}}function jee(e,t,n,i,o,a,s,c,_=3,l=!1){var u;const d=e.getDeclarations(),p=null==d?void 0:d[0],f=i.program.getTypeChecker(),m=Rk(i.program.getCompilerOptions()),g=null!=(u=null==p?void 0:p.kind)?u:168,h=gX(qc(p),!1),y=p?bb(p):0;let v=4&y?4:16&y?16:0;p&&Il(p)&&(v|=128);const b=function(){let e;return v&&(e=Te(e,dC.createModifiersFromModifierFlags(v))),i.program.getCompilerOptions().noImplicitOverride&&p&&db(p)&&(e=Se(e,dC.createToken(161))),e&&dC.createNodeArray(e)}(),x=f.getWidenedType(f.getTypeOfSymbolAtLocation(e,t)),k=!!(16777216&e.flags),T=!!(16777216&t.flags)||l,C=bG(n,o);switch(g){case 168:case 169:const n=0===C?268435456:void 0;let o=f.typeToTypeNode(x,t,n,Bee(i));if(a){const e=ete(o,m);e&&(o=e.typeNode,nte(a,e.symbols))}s(dC.createPropertyDeclaration(b,p?w(h):e.getName(),k&&2&_?dC.createToken(57):void 0,o,void 0));break;case 174:case 175:{In.assertIsDefined(d);let e=f.typeToTypeNode(x,t,void 0,Bee(i));const n=Qv(d,p),o=n.secondAccessor?[n.firstAccessor,n.secondAccessor]:[n.firstAccessor];if(a){const t=ete(e,m);t&&(e=t.typeNode,nte(a,t.symbols))}for(const t of o)if(Gw(t))s(dC.createGetAccessorDeclaration(b,w(h),r,E(e),D(c,C,T)));else{In.assertNode(t,Xw,"The counterpart to a getter should be a setter");const n=Bv(t),r=n&&Tw(n.name)?Oc(n.name):void 0;s(dC.createSetAccessorDeclaration(b,w(h),Wee(1,[r],[E(e)],1,!1),D(c,C,T)))}break}case 170:case 171:In.assertIsDefined(d);const l=x.isUnion()?H(x.types,(e=>e.getCallSignatures())):x.getCallSignatures();if(!_e(l))break;if(1===d.length){In.assert(1===l.length,"One declaration implies one signature");const e=l[0];A(C,e,b,w(h),D(c,C,T));break}for(const e of l)A(C,e,b,w(h));if(!T)if(d.length>l.length){const e=f.getSignatureFromDeclaration(d[d.length-1]);A(C,e,b,w(h),D(c,C))}else In.assert(d.length===l.length,"Declarations and signatures should match count"),s(function(e,t,n,r,i,o,a,s,c){let _=r[0],l=r[0].minArgumentCount,u=!1;for(const e of r)l=Math.min(e.minArgumentCount,l),XB(e)&&(u=!0),e.parameters.length>=_.parameters.length&&(!XB(e)||XB(_))&&(_=e);const d=_.parameters.length-(XB(_)?1:0),p=_.parameters.map((e=>e.name)),f=Wee(d,p,void 0,l,!1);if(u){const e=dC.createParameterDeclaration(void 0,dC.createToken(25),p[d]||"rest",d>=l?dC.createToken(57):void 0,dC.createArrayTypeNode(dC.createKeywordTypeNode(157)),void 0);f.push(e)}return function(e,t,n,r,i,o,a,s){return dC.createMethodDeclaration(e,void 0,t,n?dC.createToken(57):void 0,void 0,i,o,s||Hee(a))}(a,i,o,0,f,function(e,t,n,r){if(S(e)){const i=t.getUnionType(V(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(i,r,1,Bee(n))}}(r,e,t,n),s,c)}(f,i,t,l,w(h),k&&!!(1&_),b,C,c))}function A(e,n,r,o,c){const l=Jee(171,i,e,n,c,o,r,k&&!!(1&_),t,a);l&&s(l)}function w(e){return Tw(e)&&"constructor"===e.escapedText?dC.createComputedPropertyName(dC.createStringLiteral(Oc(e),0===C)):gX(e,!1)}function D(e,t,n){return n?void 0:gX(e,!1)||Hee(t)}function E(e){return gX(e,!1)}}function Jee(e,t,n,r,i,o,a,s,c,_){const l=t.program,u=l.getTypeChecker(),d=Rk(l.getCompilerOptions()),p=Sg(c),f=524545|(0===n?268435456:0),m=u.signatureToSignatureDeclaration(r,e,c,f,Bee(t));if(!m)return;let g=p?void 0:m.typeParameters,h=m.parameters,y=p?void 0:m.type;if(_){if(g){const e=K(g,(e=>{let t=e.constraint,n=e.default;if(t){const e=ete(t,d);e&&(t=e.typeNode,nte(_,e.symbols))}if(n){const e=ete(n,d);e&&(n=e.typeNode,nte(_,e.symbols))}return dC.updateTypeParameterDeclaration(e,e.modifiers,e.name,t,n)}));g!==e&&(g=OP(dC.createNodeArray(e,g.hasTrailingComma),g))}const e=K(h,(e=>{let t=p?void 0:e.type;if(t){const e=ete(t,d);e&&(t=e.typeNode,nte(_,e.symbols))}return dC.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,p?void 0:e.questionToken,t,e.initializer)}));if(h!==e&&(h=OP(dC.createNodeArray(e,h.hasTrailingComma),h)),y){const e=ete(y,d);e&&(y=e.typeNode,nte(_,e.symbols))}}const v=s?dC.createToken(57):void 0,b=m.asteriskToken;return RD(m)?dC.updateFunctionExpression(m,a,m.asteriskToken,xt(o,Tw),g,h,y,null!=i?i:m.body):BD(m)?dC.updateArrowFunction(m,a,g,h,y,m.equalsGreaterThanToken,null!=i?i:m.body):Ww(m)?dC.updateMethodDeclaration(m,a,b,null!=o?o:dC.createIdentifier(""),v,g,h,y,i):EE(m)?dC.updateFunctionDeclaration(m,a,m.asteriskToken,xt(o,Tw),g,h,y,null!=i?i:m.body):void 0}function zee(e,t,n,r,i,o,a){const s=bG(t.sourceFile,t.preferences),c=Rk(t.program.getCompilerOptions()),_=Bee(t),l=t.program.getTypeChecker(),u=Sg(a),{typeArguments:d,arguments:p,parent:f}=r,m=u?void 0:l.getContextualType(r),g=V(p,(e=>Tw(e)?e.text:ND(e)&&Tw(e.name)?e.name.text:void 0)),h=u?[]:V(p,(e=>l.getTypeAtLocation(e))),{argumentTypeNodes:y,argumentTypeParameters:v}=Qee(l,n,h,a,c,void 0,_),b=o?dC.createNodeArray(dC.createModifiersFromModifierFlags(o)):void 0,x=HD(f)?dC.createToken(41):void 0,k=u?void 0:function(e,t,n){const r=new Set(t.map((e=>e[0]))),i=new Map(t);if(n){const i=n.filter((n=>!t.some((t=>{var r;return e.getTypeAtLocation(n)===(null==(r=t[1])?void 0:r.argumentType)})))),o=r.size+i.length;for(let e=0;r.size{var t;return dC.createTypeParameterDeclaration(void 0,e,null==(t=i.get(e))?void 0:t.constraint)}))}(l,v,d),S=Wee(p.length,g,y,void 0,u),T=u||void 0===m?void 0:l.typeToTypeNode(m,a,void 0,_);switch(e){case 171:return dC.createMethodDeclaration(b,x,i,void 0,k,S,T,Hee(s));case 170:return dC.createMethodSignature(b,i,void 0,k,S,void 0===T?dC.createKeywordTypeNode(157):T);case 259:return dC.createFunctionDeclaration(b,x,i,k,S,T,$ee(ja.Function_not_implemented.message,s));default:In.fail("Unexpected kind")}}function Uee(e){return 84+e<=90?String.fromCharCode(84+e):"T"+e}function qee(e,t,n,r,i,o,a){let s=e.typeToTypeNode(n,r,o,a);if(s&&kD(s)){const e=ete(s,i);e&&(nte(t,e.symbols),s=e.typeNode)}return gX(s)}function Vee(e){return e.isUnionOrIntersection()?e.types.some(Vee):262144&e.flags}function Qee(e,t,n,r,i,o,a){const s=[],c=new Map;for(let l=0;l=r?dC.createToken(57):void 0,i?void 0:(null==n?void 0:n[s])||dC.createKeywordTypeNode(157),void 0);o.push(_)}return o}function Hee(e){return $ee(ja.Method_not_implemented.message,e)}function $ee(e,t){return dC.createBlock([dC.createThrowStatement(dC.createNewExpression(dC.createIdentifier("Error"),void 0,[dC.createStringLiteral(e,0===t)]))],!0)}function Gee(e,t,n){const r=Bm(t);if(!r)return;const i=Zee(r,"compilerOptions");if(void 0===i)return void e.insertNodeAtObjectStart(t,r,Yee("compilerOptions",dC.createObjectLiteralExpression(n.map((([e,t])=>Yee(e,t))),!0)));const o=i.initializer;if(ED(o))for(const[r,i]of n){const n=Zee(o,r);void 0===n?e.insertNodeAtObjectStart(t,o,Yee(r,i)):e.replaceNode(t,n.initializer,i)}}function Xee(e,t,n,r){Gee(e,t,[[n,r]])}function Yee(e,t){return dC.createPropertyAssignment(dC.createStringLiteral(e),t)}function Zee(e,t){return P(e.properties,(e=>vN(e)&&!!e.name&&sw(e.name)&&e.name.text===t))}function ete(e,t){let n;const r=tj(e,(function e(r){if(_m(r)&&r.qualifier){const i=Ub(r.qualifier),o=mY(i.symbol,t),a=o!==i.text?tte(r.qualifier,dC.createIdentifier(o)):r.qualifier;n=Se(n,i.symbol);const s=nj(r.typeArguments,e,Jl);return dC.createTypeReferenceNode(a,s)}return uj(r,e,Nz)}),Jl);if(n&&r)return{typeNode:r,symbols:n}}function tte(e,t){return 79===e.kind?t:dC.createQualifiedName(tte(e.left,t),e.right)}function nte(e,t){t.forEach((t=>e.addImportFromExportedSymbol(t,!0)))}function rte(e,t){const n=ec(t);let r=u$(e,t.start);for(;r.end(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(Lee||{})}});function ote(e,t,n,r,i,o){const a=_te(e,t,n,r);if(!a||kle.isRefactorErrorInfo(a))return;const s=rde.ChangeTracker.fromContext(i),{isStatic:c,isReadonly:_,fieldName:l,accessorName:u,originalName:d,type:p,container:f,declaration:m}=a;let g,h;if(xX(l),xX(u),xX(m),xX(f),Fl(f)){const t=bb(m);if(xg(e)){const e=dC.createModifiersFromModifierFlags(t);g=e,h=e}else g=dC.createModifiersFromModifierFlags(function(e){return e&=-65,16&(e&=-9)||(e|=4),e}(t)),h=dC.createModifiersFromModifierFlags(function(e){return e&=-5,8|(e&=-17)}(t));MP(m)&&(h=ue(Qc(m),h))}!function(e,t,n,r,i,o){Qw(n)?function(e,t,n,r,i,o){const a=dC.updatePropertyDeclaration(n,o,i,n.questionToken||n.exclamationToken,r,n.initializer);e.replaceNode(t,n,a)}(e,t,n,r,i,o):vN(n)?function(e,t,n,r){let i=dC.updatePropertyAssignment(n,r,n.initializer);(i.modifiers||i.questionToken||i.exclamationToken)&&(i===n&&(i=dC.cloneNode(i)),i.modifiers=void 0,i.questionToken=void 0,i.exclamationToken=void 0),e.replacePropertyAssignment(t,n,i)}(e,t,n,i):e.replaceNode(t,n,dC.updateParameterDeclaration(n,o,n.dotDotDotToken,kt(i,Tw),n.questionToken,n.type,n.initializer))}(s,e,m,p,l,h);const y=function(e,t,n,r,i,o){return dC.createGetAccessorDeclaration(r,t,[],n,dC.createBlock([dC.createReturnStatement(cte(e,i,o))],!0))}(l,u,p,g,c,f);if(xX(y),lte(s,e,y,m,f),_){const t=Rv(f);t&&function(e,t,n,r,i){n.body&&n.body.forEachChild((function n(o){FD(o)&&108===o.expression.kind&&sw(o.argumentExpression)&&o.argumentExpression.text===i&&Mx(o)&&e.replaceNode(t,o.argumentExpression,dC.createStringLiteral(r)),ND(o)&&108===o.expression.kind&&o.name.text===i&&Mx(o)&&e.replaceNode(t,o.name,dC.createIdentifier(r)),Sl(o)||Fl(o)||o.forEachChild(n)}))}(s,e,t,l.text,d)}else{const t=function(e,t,n,r,i,o){return dC.createSetAccessorDeclaration(r,t,[dC.createParameterDeclaration(void 0,void 0,dC.createIdentifier("value"),void 0,n)],dC.createBlock([dC.createExpressionStatement(dC.createAssignment(cte(e,i,o),dC.createIdentifier("value")))],!0))}(l,u,p,g,c,f);xX(t),lte(s,e,t,m,f)}return s.getChanges()}function ate(e){return vc(e,e.parent)||Qw(e)||vN(e)}function ste(e,t){return Tw(t)?dC.createIdentifier(e):dC.createStringLiteral(e)}function cte(e,t,n){const r=t?n.name:dC.createThis();return Tw(e)?dC.createPropertyAccessExpression(r,e):dC.createElementAccessExpression(r,dC.createStringLiteralFromNode(e))}function _te(e,t,n,r,i=!0){const o=n===r&&i,a=Ec(u$(e,n).parent,ate);if(!a||!QH(a.name,e,n,r)&&!o)return{error:hk(ja.Could_not_find_property_for_which_to_generate_accessor)};if(!function(e){return Tw(e)||sw(e)}(a.name))return{error:hk(ja.Name_is_not_valid)};if(124!=(126975&bb(a)|124))return{error:hk(ja.Can_only_convert_property_with_modifier)};const s=a.name.text,c=bY(s),_=ste(c?s:wX("_"+s,e),a.name),l=ste(c?wX(s.substring(1),e):s,a.name);return{isStatic:lb(a),isReadonly:mb(a),type:ute(a,t),container:166===a.kind?a.parent.parent:a.parent,originalName:a.name.text,declaration:a,fieldName:_,accessorName:l,renameAccessor:c}}function lte(e,t,n,r,i){vc(r,r.parent)?e.insertMemberAtStart(t,i,n):vN(r)?e.insertNodeAfterComma(t,r,n):e.insertNodeAfter(t,r,n)}function ute(e,t){const n=Wv(e);if(Qw(e)&&n&&e.questionToken){const e=t.getTypeChecker(),r=e.getTypeFromTypeNode(n);if(!e.isTypeAssignableTo(e.getUndefinedType(),r)){const e=dD(n)?n.types:[n];return dC.createUnionTypeNode([...e,dC.createKeywordTypeNode(155)])}}return n}function dte(e,t){const n=[];for(;e;){const r=cy(e),i=r&&t.getSymbolAtLocation(r.expression);if(!i)break;const o=2097152&i.flags?t.getAliasedSymbol(i):i,a=o.declarations&&P(o.declarations,Fl);if(!a)break;n.push(a),e=a}return n}var pte,fte=b({"src/services/codefixes/generateAccessors.ts"(){lfe()}});function mte(e,t,n,r){const i=rde.ChangeTracker.with(e,(e=>e.replaceNode(t,n,r)));return f6(pte,i,[ja.Replace_import_with_0,i[0].textChanges[0].newText])}function gte(e){const t=e.sourceFile,n=ja.This_expression_is_not_callable.code===e.errorCode?210:211,r=Ec(u$(t,e.span.start),(e=>e.kind===n));return r?yte(e,r.expression):[]}function hte(e){const t=Ec(u$(e.sourceFile,e.span.start),(t=>t.getStart()===e.span.start&&t.getEnd()===e.span.start+e.span.length));return t?yte(e,t):[]}function yte(e,t){const n=e.program.getTypeChecker().getTypeAtLocation(t);if(!(n.symbol&&op(n.symbol)&&n.symbol.links.originatingImport))return[];const r=[],i=n.symbol.links.originatingImport;if(sm(i)||Ae(r,function(e,t){const n=wp(t),r=fh(t),i=e.program.getCompilerOptions(),o=[];return o.push(mte(e,n,t,hG(r.name,void 0,t.moduleSpecifier,bG(n,e.preferences)))),1===Bk(i)&&o.push(mte(e,n,t,dC.createImportEqualsDeclaration(void 0,!1,r.name,dC.createExternalModuleReference(t.moduleSpecifier)))),o}(e,i)),_u(t)&&(!zc(t.parent)||t.parent.name!==t)){const n=e.sourceFile,i=rde.ChangeTracker.with(e,(e=>e.replaceNode(n,t,dC.createPropertyAccessExpression(t,"default"),{})));r.push(f6(pte,i,ja.Use_synthetic_default_member))}return r}var vte,bte,xte,kte,Ste,Tte=b({"src/services/codefixes/fixInvalidImportSyntax.ts"(){lfe(),Une(),pte="invalidImportSyntax",y6({errorCodes:[ja.This_expression_is_not_callable.code,ja.This_expression_is_not_constructable.code],getCodeActions:gte}),y6({errorCodes:[ja.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,ja.Type_0_does_not_satisfy_the_constraint_1.code,ja.Type_0_is_not_assignable_to_type_1.code,ja.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,ja.Type_predicate_0_is_not_assignable_to_1.code,ja.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,ja._0_index_type_1_is_not_assignable_to_2_index_type_3.code,ja.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,ja.Property_0_in_type_1_is_not_assignable_to_type_2.code,ja.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,ja.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:hte})}});function Cte(e,t){const n=u$(e,t);if(Tw(n)&&Qw(n.parent)){const e=Kv(n.parent);if(e)return{type:e,prop:n.parent,isJs:Sg(n.parent)}}}function Ate(e,t,n){xX(n);const r=dC.updatePropertyDeclaration(n,n.modifiers,n.name,dC.createToken(53),n.type,n.initializer);e.replaceNode(t,n,r)}function wte(e,t,n){const r=dC.createKeywordTypeNode(155),i=dD(n.type)?n.type.types.concat(r):[n.type,r],o=dC.createUnionTypeNode(i);n.isJs?e.addJSDocTags(t,n.prop,[dC.createJSDocTypeTag(void 0,dC.createJSDocTypeExpression(o))]):e.replaceNode(t,n.type,o)}function Dte(e,t,n,r){xX(n);const i=dC.updatePropertyDeclaration(n,n.modifiers,n.name,n.questionToken,n.type,r);e.replaceNode(t,n,i)}function Ete(e,t){return Nte(e,e.getTypeFromTypeNode(t.type))}function Nte(e,t){if(512&t.flags)return t===e.getFalseType()||t===e.getFalseType(!0)?dC.createFalse():dC.createTrue();if(t.isStringLiteral())return dC.createStringLiteral(t.value);if(t.isNumberLiteral())return dC.createNumericLiteral(t.value);if(2048&t.flags)return dC.createBigIntLiteral(t.value);if(t.isUnion())return A(t.types,(t=>Nte(e,t)));if(t.isClass()){const e=qx(t.symbol);if(!e||cb(e,256))return;const n=Rv(e);if(n&&n.parameters.length)return;return dC.createNewExpression(dC.createIdentifier(t.symbol.name),void 0,void 0)}return e.isArrayLikeType(t)?dC.createArrayLiteralExpression():void 0}var Fte,Pte,Ite=b({"src/services/codefixes/fixStrictClassInitialization.ts"(){lfe(),Une(),vte="strictClassInitialization",bte="addMissingPropertyDefiniteAssignmentAssertions",xte="addMissingPropertyUndefinedType",kte="addMissingPropertyInitializer",y6({errorCodes:Ste=[ja.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],getCodeActions:function(e){const t=Cte(e.sourceFile,e.span.start);if(!t)return;const n=[];return Se(n,function(e,t){const n=rde.ChangeTracker.with(e,(n=>wte(n,e.sourceFile,t)));return m6(vte,n,[ja.Add_undefined_type_to_property_0,t.prop.name.getText()],xte,ja.Add_undefined_type_to_all_uninitialized_properties)}(e,t)),Se(n,function(e,t){if(t.isJs)return;const n=rde.ChangeTracker.with(e,(n=>Ate(n,e.sourceFile,t.prop)));return m6(vte,n,[ja.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],bte,ja.Add_definite_assignment_assertions_to_all_uninitialized_properties)}(e,t)),Se(n,function(e,t){if(t.isJs)return;const n=Ete(e.program.getTypeChecker(),t.prop);if(!n)return;const r=rde.ChangeTracker.with(e,(r=>Dte(r,e.sourceFile,t.prop,n)));return m6(vte,r,[ja.Add_initializer_to_property_0,t.prop.name.getText()],kte,ja.Add_initializers_to_all_uninitialized_properties)}(e,t)),n},fixIds:[bte,xte,kte],getAllCodeActions:e=>T6(e,Ste,((t,n)=>{const r=Cte(n.file,n.start);if(r)switch(e.fixId){case bte:Ate(t,n.file,r.prop);break;case xte:wte(t,n.file,r);break;case kte:const i=Ete(e.program.getTypeChecker(),r.prop);if(!i)return;Dte(t,n.file,r.prop,i);break;default:In.fail(JSON.stringify(e.fixId))}}))})}});function Ote(e,t,n){const{allowSyntheticDefaults:r,defaultImportName:i,namedImports:o,statement:a,required:s}=n;e.replaceNode(t,a,i&&!r?dC.createImportEqualsDeclaration(void 0,!1,i,dC.createExternalModuleReference(s)):dC.createImportDeclaration(void 0,dC.createImportClause(!1,i,o),s,void 0))}function Lte(e,t,n){const{parent:r}=u$(e,n);if(!Dg(r,!0))throw In.failBadSyntaxKind(r);const i=kt(r.parent,wE),o=xt(i.name,Tw),a=CD(i.name)?function(e){const t=[];for(const n of e.elements){if(!Tw(n.name)||n.initializer)return;t.push(dC.createImportSpecifier(!1,xt(n.propertyName,Tw),n.name))}if(t.length)return dC.createNamedImports(t)}(i.name):void 0;if(o||a)return{allowSyntheticDefaults:$k(t.getCompilerOptions()),defaultImportName:o,namedImports:a,statement:kt(i.parent.parent,_E),required:Me(r.arguments)}}var Mte,Rte,Bte=b({"src/services/codefixes/requireInTs.ts"(){lfe(),Une(),Fte="requireInTs",y6({errorCodes:Pte=[ja.require_call_may_be_converted_to_an_import.code],getCodeActions(e){const t=Lte(e.sourceFile,e.program,e.span.start);if(!t)return;const n=rde.ChangeTracker.with(e,(n=>Ote(n,e.sourceFile,t)));return[m6(Fte,n,ja.Convert_require_to_import,Fte,ja.Convert_all_require_to_import)]},fixIds:[Fte],getAllCodeActions:e=>T6(e,Pte,((t,n)=>{const r=Lte(n.file,e.program,n.start);r&&Ote(t,e.sourceFile,r)}))})}});function jte(e,t){const n=u$(e,t);if(!Tw(n))return;const{parent:r}=n;if(BE(r)&&rN(r.moduleReference))return{importNode:r,name:n,moduleSpecifier:r.moduleReference.expression};if(VE(r)){const e=r.parent.parent;return{importNode:e,name:n,moduleSpecifier:e.moduleSpecifier}}}function Jte(e,t,n,r){e.replaceNode(t,n.importNode,hG(n.name,void 0,n.moduleSpecifier,bG(t,r)))}var zte,Ute,qte=b({"src/services/codefixes/useDefaultImport.ts"(){lfe(),Une(),Mte="useDefaultImport",y6({errorCodes:Rte=[ja.Import_may_be_converted_to_a_default_import.code],getCodeActions(e){const{sourceFile:t,span:{start:n}}=e,r=jte(t,n);if(!r)return;const i=rde.ChangeTracker.with(e,(n=>Jte(n,t,r,e.preferences)));return[m6(Mte,i,ja.Convert_to_default_import,Mte,ja.Convert_all_to_default_imports)]},fixIds:[Mte],getAllCodeActions:e=>T6(e,Rte,((t,n)=>{const r=jte(n.file,n.start);r&&Jte(t,n.file,r,e.preferences)}))})}});function Vte(e,t,n){const r=xt(u$(t,n.start),ow);if(!r)return;const i=r.getText(t)+"n";e.replaceNode(t,r,dC.createBigIntLiteral(i))}var Qte,Kte,Wte=b({"src/services/codefixes/useBigintLiteral.ts"(){lfe(),Une(),zte="useBigintLiteral",y6({errorCodes:Ute=[ja.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],getCodeActions:function(e){const t=rde.ChangeTracker.with(e,(t=>Vte(t,e.sourceFile,e.span)));if(t.length>0)return[m6(zte,t,ja.Convert_to_a_bigint_numeric_literal,zte,ja.Convert_all_to_bigint_numeric_literals)]},fixIds:[zte],getAllCodeActions:e=>T6(e,Ute,((e,t)=>Vte(e,t.file,t)))})}});function Hte(e,t){const n=u$(e,t);return In.assert(100===n.kind,"This token should be an ImportKeyword"),In.assert(202===n.parent.kind,"Token parent should be an ImportType"),n.parent}function $te(e,t,n){const r=dC.updateImportTypeNode(n,n.argument,n.assertions,n.qualifier,n.typeArguments,!0);e.replaceNode(t,n,r)}var Gte,Xte,Yte=b({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){lfe(),Une(),Qte="fixAddModuleReferTypeMissingTypeof",y6({errorCodes:Kte=[ja.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Hte(t,n.start),i=rde.ChangeTracker.with(e,(e=>$te(e,t,r)));return[m6(Qte,i,ja.Add_missing_typeof,Qte,ja.Add_missing_typeof)]},fixIds:[Qte],getAllCodeActions:e=>T6(e,Kte,((t,n)=>$te(t,e.sourceFile,Hte(n.file,n.start))))})}});function Zte(e,t){let n=u$(e,t).parent.parent;if((QD(n)||(n=n.parent,QD(n)))&&Lp(n.operatorToken))return n}function ene(e,t,n){const r=function(e){const t=[];let n=e;for(;;){if(QD(n)&&Lp(n.operatorToken)&&27===n.operatorToken.kind){if(t.push(n.left),Ru(n.right))return t.push(n.right),t;if(QD(n.right)){n=n.right;continue}return}return}}(n);r&&e.replaceNode(t,n,dC.createJsxFragment(dC.createJsxOpeningFragment(),r,dC.createJsxJsxClosingFragment()))}var tne,nne,rne=b({"src/services/codefixes/wrapJsxInFragment.ts"(){lfe(),Une(),Gte="wrapJsxInFragment",y6({errorCodes:Xte=[ja.JSX_expressions_must_have_one_parent_element.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Zte(t,n.start);if(!r)return;const i=rde.ChangeTracker.with(e,(e=>ene(e,t,r)));return[m6(Gte,i,ja.Wrap_in_JSX_fragment,Gte,ja.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[Gte],getAllCodeActions:e=>T6(e,Xte,((t,n)=>{const r=Zte(e.sourceFile,n.start);r&&ene(t,e.sourceFile,r)}))})}});function ine(e,t){const n=xt(u$(e,t).parent.parent,eD);if(!n)return;const r=FE(n.parent)?n.parent:xt(n.parent.parent,PE);return r?{indexSignature:n,container:r}:void 0}function one(e,t,{indexSignature:n,container:i}){const o=(FE(i)?i.members:i.type.members).filter((e=>!eD(e))),a=Me(n.parameters),s=dC.createTypeParameterDeclaration(void 0,kt(a.name,Tw),a.type),c=dC.createMappedTypeNode(mb(n)?dC.createModifier(146):void 0,s,void 0,n.questionToken,n.type,void 0),_=dC.createIntersectionTypeNode([...ly(i),c,...o.length?[dC.createTypeLiteralNode(o)]:r]);var l,u;e.replaceNode(t,i,(l=i,u=_,dC.createTypeAliasDeclaration(l.modifiers,l.name,l.typeParameters,u)))}var ane,sne,cne,_ne=b({"src/services/codefixes/convertToMappedObjectType.ts"(){lfe(),Une(),tne="fixConvertToMappedObjectType",y6({errorCodes:nne=[ja.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=ine(t,n.start);if(!r)return;const i=rde.ChangeTracker.with(e,(e=>one(e,t,r))),o=Oc(r.container.name);return[m6(tne,i,[ja.Convert_0_to_mapped_object_type,o],tne,[ja.Convert_0_to_mapped_object_type,o])]},fixIds:[tne],getAllCodeActions:e=>T6(e,nne,((e,t)=>{const n=ine(t.file,t.start);n&&one(e,t.file,n)}))})}}),lne=b({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){lfe(),Une(),ane="removeAccidentalCallParentheses",y6({errorCodes:[ja.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],getCodeActions(e){const t=Ec(u$(e.sourceFile,e.span.start),PD);if(!t)return;const n=rde.ChangeTracker.with(e,(n=>{n.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})}));return[f6(ane,n,ja.Remove_parentheses)]},fixIds:[ane]})}});function une(e,t,n){const r=xt(u$(t,n.start),(e=>133===e.kind)),i=r&&xt(r.parent,UD);if(!i)return;let o=i;if(MD(i.parent)&&Tw(ik(i.expression,!1))){const e=g$(i.parent.pos,t);e&&103!==e.kind&&(o=i.parent)}e.replaceNode(t,o,i.expression)}var dne,pne,fne=b({"src/services/codefixes/removeUnnecessaryAwait.ts"(){lfe(),Une(),sne="removeUnnecessaryAwait",y6({errorCodes:cne=[ja.await_has_no_effect_on_the_type_of_this_expression.code],getCodeActions:function(e){const t=rde.ChangeTracker.with(e,(t=>une(t,e.sourceFile,e.span)));if(t.length>0)return[m6(sne,t,ja.Remove_unnecessary_await,sne,ja.Remove_all_unnecessary_uses_of_await)]},fixIds:[sne],getAllCodeActions:e=>T6(e,cne,((e,t)=>une(e,t.file,t)))})}});function mne(e,t){return Ec(u$(e,t.start),jE)}function gne(e,t,n){if(!t)return;const r=In.checkDefined(t.importClause);e.replaceNode(n.sourceFile,t,dC.updateImportDeclaration(t,t.modifiers,dC.updateImportClause(r,r.isTypeOnly,r.name,void 0),t.moduleSpecifier,t.assertClause)),e.insertNodeAfter(n.sourceFile,t,dC.createImportDeclaration(void 0,dC.updateImportClause(r,r.isTypeOnly,void 0,r.namedBindings),t.moduleSpecifier,t.assertClause))}var hne,yne,vne=b({"src/services/codefixes/splitTypeOnlyImport.ts"(){lfe(),Une(),y6({errorCodes:dne=[ja.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],fixIds:[pne="splitTypeOnlyImport"],getCodeActions:function(e){const t=rde.ChangeTracker.with(e,(t=>gne(t,mne(e.sourceFile,e.span),e)));if(t.length)return[m6(pne,t,ja.Split_into_two_separate_import_declarations,pne,ja.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>T6(e,dne,((t,n)=>{gne(t,mne(e.sourceFile,n),e)}))})}});function bne(e,t,n){var r;const i=n.getTypeChecker().getSymbolAtLocation(u$(e,t));if(void 0===i)return;const o=xt(null==(r=null==i?void 0:i.valueDeclaration)?void 0:r.parent,DE);if(void 0===o)return;const a=YH(o,85,e);return void 0!==a?{symbol:i,token:a}:void 0}function xne(e,t,n){e.replaceNode(t,n,dC.createToken(119))}var kne,Sne,Tne,Cne=b({"src/services/codefixes/convertConstToLet.ts"(){lfe(),Une(),hne="fixConvertConstToLet",y6({errorCodes:yne=[ja.Cannot_assign_to_0_because_it_is_a_constant.code],getCodeActions:function(e){const{sourceFile:t,span:n,program:r}=e,i=bne(t,n.start,r);if(void 0===i)return;const o=rde.ChangeTracker.with(e,(e=>xne(e,t,i.token)));return[g6(hne,o,ja.Convert_const_to_let,hne,ja.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,n=new Map;return k6(rde.ChangeTracker.with(e,(r=>{C6(e,yne,(e=>{const i=bne(e.file,e.start,t);if(i&&$x(n,VB(i.symbol)))return xne(r,e.file,i.token)}))})))},fixIds:[hne]})}});function Ane(e,t,n){const r=u$(e,t);return 26===r.kind&&r.parent&&(ED(r.parent)||DD(r.parent))?{node:r}:void 0}function wne(e,t,{node:n}){const r=dC.createToken(27);e.replaceNode(t,n,r)}var Dne,Ene,Nne=b({"src/services/codefixes/fixExpectedComma.ts"(){lfe(),Une(),kne="fixExpectedComma",Sne=ja._0_expected.code,y6({errorCodes:Tne=[Sne],getCodeActions(e){const{sourceFile:t}=e,n=Ane(t,e.span.start,e.errorCode);if(!n)return;const r=rde.ChangeTracker.with(e,(e=>wne(e,t,n)));return[m6(kne,r,[ja.Change_0_to_1,";",","],kne,[ja.Change_0_to_1,";",","])]},fixIds:[kne],getAllCodeActions:e=>T6(e,Tne,((t,n)=>{const r=Ane(n.file,n.start,n.code);r&&wne(t,e.sourceFile,r)}))})}});function Fne(e,t,n,r,i){const o=u$(t,n.start);if(!Tw(o)||!PD(o.parent)||o.parent.expression!==o||0!==o.parent.arguments.length)return;const a=r.getTypeChecker(),s=a.getSymbolAtLocation(o),c=null==s?void 0:s.valueDeclaration;if(!c||!Uw(c)||!ID(c.parent.parent))return;if(null==i?void 0:i.has(c))return;null==i||i.add(c);const _=function(e){var t;if(!Sg(e))return e.typeArguments;if(MD(e.parent)){const n=null==(t=v_(e.parent))?void 0:t.typeExpression.type;if(n&&nD(n)&&Tw(n.typeName)&&"Promise"===Oc(n.typeName))return n.typeArguments}}(c.parent.parent);if(_e(_)){const n=_[0],r=!dD(n)&&!gD(n)&&gD(dC.createUnionTypeNode([n,dC.createKeywordTypeNode(114)]).types[0]);r&&e.insertText(t,n.pos,"("),e.insertText(t,n.end,r?") | void":" | void")}else{const n=a.getResolvedSignature(o.parent),r=null==n?void 0:n.parameters[0],i=r&&a.getTypeOfSymbolAtLocation(r,c.parent.parent);Sg(c)?(!i||3&i.flags)&&(e.insertText(t,c.parent.parent.end,")"),e.insertText(t,As(t.text,c.parent.parent.pos),"/** @type {Promise} */(")):(!i||2&i.flags)&&e.insertText(t,c.parent.parent.expression.end,"")}}var Pne=b({"src/services/codefixes/fixAddVoidToPromise.ts"(){lfe(),Une(),Dne="addVoidToPromise",y6({errorCodes:Ene=[ja.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,ja.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],fixIds:[Dne],getCodeActions(e){const t=rde.ChangeTracker.with(e,(t=>Fne(t,e.sourceFile,e.span,e.program)));if(t.length>0)return[m6("addVoidToPromise",t,ja.Add_void_to_Promise_resolved_without_a_value,Dne,ja.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:e=>T6(e,Ene,((t,n)=>Fne(t,n.file,n,e.program,new Set)))})}}),Ine={};x(Ine,{PreserveOptionalFlags:()=>Lee,addNewNodeForMemberSymbol:()=>jee,codeFixAll:()=>T6,createCodeFixAction:()=>m6,createCodeFixActionMaybeFixAll:()=>g6,createCodeFixActionWithoutFixAll:()=>f6,createCombinedCodeActions:()=>k6,createFileTextChanges:()=>S6,createImportAdder:()=>i8,createImportSpecifierResolver:()=>a8,createJsonPropertyAssignment:()=>Yee,createMissingMemberNodes:()=>Ree,createSignatureDeclarationFromCallExpression:()=>zee,createSignatureDeclarationFromSignature:()=>Jee,createStubbedBody:()=>$ee,eachDiagnostic:()=>C6,findAncestorMatchingSpan:()=>rte,findJsonProperty:()=>Zee,generateAccessorFromProperty:()=>ote,getAccessorConvertiblePropertyAtPosition:()=>_te,getAllFixes:()=>x6,getAllSupers:()=>dte,getArgumentTypesAndTypeParameters:()=>Qee,getFixes:()=>b6,getImportCompletionAction:()=>s8,getImportKind:()=>k8,getNoopSymbolTrackerWithResolver:()=>Bee,getPromoteTypeOnlyCompletionAction:()=>c8,getSupportedErrorCodes:()=>v6,importFixName:()=>e8,importSymbols:()=>nte,moduleSpecifierToValidIdentifier:()=>R8,moduleSymbolToValidIdentifier:()=>M8,parameterShouldGetTypeFromJSDoc:()=>k3,registerCodeFix:()=>y6,setJsonCompilerOptionValue:()=>Xee,setJsonCompilerOptionValues:()=>Gee,tryGetAutoImportableReferenceFromTypeNode:()=>ete,typeToAutoImportableTypeNode:()=>qee});var One,Lne,Mne,Rne,Bne,jne,Jne,zne,Une=b({"src/services/_namespaces/ts.codefix.ts"(){E6(),O6(),L6(),U6(),Y6(),i3(),c3(),d3(),m3(),b3(),E3(),M3(),u4(),N4(),L4(),J4(),Q4(),G4(),r8(),J8(),H8(),e7(),o7(),_7(),v7(),b7(),D7(),q7(),a5(),u5(),h5(),S5(),E5(),O5(),B5(),V5(),Q5(),G5(),n9(),_9(),f9(),S9(),T9(),B9(),U9(),W9(),eee(),oee(),lee(),fee(),wee(),Iee(),Mee(),ite(),fte(),Tte(),Ite(),Bte(),qte(),Wte(),Yte(),rne(),_ne(),lne(),fne(),vne(),Cne(),Nne(),Pne()}});function qne(e){return!!(e&&4&e.kind)}function Vne(e){return!(!e||32!==e.kind)}function Qne(e){return(qne(e)||Vne(e))&&!!e.isFromPackageJson}function Kne(e){return!!(e&&64&e.kind)}function Wne(e){return!!(e&&128&e.kind)}function Hne(e){return!!(e&&512&e.kind)}function $ne(e,t,n,r,i,o,a,s,c){var _,l,u;const d=_r(),p=a||Gk(Jk(r.getCompilerOptions()));let f=!1,m=0,g=0,h=0,y=0;const v=c({tryResolve:function(e,t){if(t){const t=n.getModuleSpecifierForBestExportInfo(e,i,s);return t&&m++,t||"failed"}const r=p||o.allowIncompleteCompletions&&gf,resolvedAny:()=>g>0,resolvedBeyondLimit:()=>g>One}),b=y?` (${(h/y*100).toFixed(1)}% hit rate)`:"";return null==(_=t.log)||_.call(t,`${e}: resolved ${g} module specifiers, plus ${m} ambient and ${h} from cache${b}`),null==(l=t.log)||l.call(t,`${e}: response is ${f?"incomplete":"complete"}`),null==(u=t.log)||u.call(t,`${e}: ${_r()-d}`),v}function Gne(e,t,n,r,i,o,a,s,c,_,l=!1){var u;const{previousToken:d}=Are(i,r);if(a&&!b$(r,i,d)&&!function(e,t,n,r){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&BX(n)&&r===n.getStart(e)+1;case"#":return!!n&&Cw(n)&&!!qm(n);case"<":return!!n&&29===n.kind&&(!QD(n.parent)||Jre(n.parent));case"/":return!!n&&(ed(n)?!!dh(n):43===n.kind&&sN(n.parent));case" ":return!!n&&Rw(n)&&308===n.parent.kind;default:return In.assertNever(t)}}(r,a,d,i))return;if(" "===a)return o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;const p=t.getCompilerOptions(),f=o.allowIncompleteCompletions?null==(u=e.getIncompleteCompletionsCache)?void 0:u.call(e):void 0;if(f&&3===s&&d&&Tw(d)){const n=function(e,t,n,r,i,o,a,s){const c=e.get();if(!c)return;const _=_$(t,s),l=n.text.toLowerCase(),u=BY(t,i,r,o,a),d=$ne("continuePreviousIncompleteResponse",i,Ine.createImportSpecifierResolver(t,r,i,o),r,n.getStart(),o,!1,fT(n),(e=>{const n=Z(c.entries,(n=>{var o;if(!n.hasAction||!n.source||!n.data||Yne(n.data))return n;if(!$re(n.name,l))return;const{origin:a}=In.checkDefined(wre(n.name,n.data,r,i)),s=u.get(t.path,n.data.exportMapKey),c=s&&e.tryResolve(s,!Xs(cv(a.moduleSymbol.name)));if("skipped"===c)return n;if(!c||"failed"===c)return void(null==(o=i.log)||o.call(i,`Unexpected failure resolving auto import for '${n.name}' from '${n.source}'`));const _={...a,kind:32,moduleSpecifier:c.moduleSpecifier};return n.data=dre(_),n.source=gre(_),n.sourceDisplay=[$G(_.moduleSpecifier)],n}));return e.skippedAny()||(c.isIncomplete=void 0),n}));return c.entries=d,c.flags=4|(c.flags||0),c.optionalReplacementSpan=tre(_),c}(f,r,d,t,e,o,c,i);if(n)return n}else null==f||f.clear();const m=wie.getStringLiteralCompletions(r,i,d,p,e,t,n,o,l);if(m)return m;if(d&&V_(d.parent)&&(81===d.kind||86===d.kind||79===d.kind))return function(e){const t=function(e){const t=[],n=new Map;let r=e;for(;r&&!Sl(r);){if(SE(r)){const e=r.label.text;n.has(e)||(n.set(e,!0),t.push({name:e,kindModifiers:"",kind:"label",sortText:Mne.LocationPriority}))}r=r.parent}return t}(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t}}(d.parent);const g=Cre(t,n,r,p,i,o,void 0,e,_,c);var h;if(g)switch(g.kind){case 0:const a=function(e,t,n,r,i,o,a,s,c,_){const{symbols:l,contextToken:u,completionKind:d,isInSnippetScope:p,isNewIdentifierLocation:f,location:m,propertyAccessToConvert:g,keywordFilters:h,symbolToOriginInfoMap:y,recommendedCompletion:v,isJsxInitializer:b,isTypeOnlyLocation:x,isJsxIdentifierExpected:k,isRightOfOpenTag:S,isRightOfDotOrQuestionDot:T,importStatementCompletion:C,insideJsDocTagTypeExpression:A,symbolToSortTextMap:w,hasUnresolvedAutoImports:D}=o;let E=o.literals;const N=n.getTypeChecker();if(1===Pk(e.scriptKind)){const t=function(e,t){const n=Ec(e,(e=>{switch(e.kind){case 284:return!0;case 43:case 31:case 79:case 208:return!1;default:return"quit"}}));if(n){const e=!!YH(n,31,t),r=n.parent.openingElement.tagName.getText(t)+(e?"":">");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:H$(n.tagName),entries:[{name:r,kind:"class",kindModifiers:void 0,sortText:Mne.LocationPriority}]}}}(m,e);if(t)return t}const F=Ec(u,mN);if(F&&(Bw(u)||Gh(u,F.expression))){const e=NY(N,F.parent.clauses);E=E.filter((t=>!e.hasValue(t))),l.forEach(((t,n)=>{if(t.valueDeclaration&&kN(t.valueDeclaration)){const r=N.getConstantValue(t.valueDeclaration);void 0!==r&&e.hasValue(r)&&(y[n]={kind:256})}}))}const P=[],I=nre(e,r);if(I&&!f&&(!l||0===l.length)&&0===h)return;const O=hre(l,P,void 0,u,m,c,e,t,n,Rk(r),i,d,a,r,s,x,g,k,b,C,v,y,w,k,S,_);if(0!==h)for(const t of Ere(h,!A&&xg(e)))(x&&tG(ls(t.name))||!O.has(t.name))&&(O.add(t.name),ge(P,t,Xne,!0));for(const e of function(e,t){const n=[];if(e){const r=e.getSourceFile(),i=e.parent,o=r.getLineAndCharacterOfPosition(e.end).line,a=r.getLineAndCharacterOfPosition(t).line;(jE(i)||$E(i)&&i.moduleSpecifier)&&e===i.moduleSpecifier&&o===a&&n.push({name:_s(130),kind:"keyword",kindModifiers:"",sortText:Mne.GlobalsOrKeywords})}return n}(u,c))O.has(e.name)||(O.add(e.name),ge(P,e,Xne,!0));for(const t of E){const n=cre(e,a,t);O.add(n.name),ge(P,n,Xne,!0)}let L;if(I||function(e,t,n,r,i){s2(e).forEach(((e,o)=>{if(e===t)return;const a=Ic(o);!n.has(a)&&Us(a,r)&&(n.add(a),ge(i,{name:a,kind:"warning",kindModifiers:"",sortText:Mne.JavascriptIdentifiers,isFromUncheckedFile:!0},Xne))}))}(e,m.pos,O,Rk(r),P),a.includeCompletionsWithInsertText&&u&&!S&&!T&&(L=Ec(u,ME))){const i=rre(L,e,a,r,t,n,s);i&&P.push(i.entry)}return{flags:o.flags,isGlobalCompletion:p,isIncomplete:!(!a.allowIncompleteCompletions||!D)||void 0,isMemberCompletion:are(d),isNewIdentifierLocation:f,optionalReplacementSpan:tre(m),entries:P}}(r,e,t,p,n,g,o,_,i,l);return(null==a?void 0:a.isIncomplete)&&(null==f||f.set(a)),a;case 1:return Zne(cae.getJSDocTagNameCompletions());case 2:return Zne(cae.getJSDocTagCompletions());case 3:return Zne(cae.getJSDocParameterNameCompletions(g.tag));case 4:return h=g.keywordCompletions,{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:g.isNewIdentifierLocation,entries:h.slice()};default:return In.assertNever(g)}}function Xne(e,t){var n,r;let i=$t(e.sortText,t.sortText);return 0===i&&(i=$t(e.name,t.name)),0===i&&(null==(n=e.data)?void 0:n.moduleSpecifier)&&(null==(r=t.data)?void 0:r.moduleSpecifier)&&(i=zS(e.data.moduleSpecifier,t.data.moduleSpecifier)),0===i?-1:i}function Yne(e){return!!(null==e?void 0:e.moduleSpecifier)}function Zne(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function ere(e,t,n){return{kind:4,keywordCompletions:Ere(e,t),isNewIdentifierLocation:n}}function tre(e){return 79===(null==e?void 0:e.kind)?H$(e):void 0}function nre(e,t){return!xg(e)||!!eT(e,t)}function rre(e,t,n,r,i,o,a){const s=e.clauses,c=o.getTypeChecker(),_=c.getTypeAtLocation(e.parent.expression);if(_&&_.isUnion()&&F(_.types,(e=>e.isLiteral()))){const l=NY(c,s),u=Rk(r),d=bG(t,n),p=Ine.createImportAdder(t,o,n,i),f=[];for(const t of _.types)if(1024&t.flags){In.assert(t.symbol,"An enum member type should have a symbol"),In.assert(t.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const n=t.symbol.valueDeclaration&&c.getConstantValue(t.symbol.valueDeclaration);if(void 0!==n){if(l.hasValue(n))continue;l.addValue(n)}const r=Ine.typeToAutoImportableTypeNode(c,p,t,e,u);if(!r)return;const i=ire(r,u,d);if(!i)return;f.push(i)}else if(!l.hasValue(t.value))switch(typeof t.value){case"object":f.push(t.value.negative?dC.createPrefixUnaryExpression(40,dC.createBigIntLiteral({negative:!1,base10Value:t.value.base10Value})):dC.createBigIntLiteral(t.value));break;case"number":f.push(t.value<0?dC.createPrefixUnaryExpression(40,dC.createNumericLiteral(-t.value)):dC.createNumericLiteral(t.value));break;case"string":f.push(dC.createStringLiteral(t.value,0===d))}if(0===f.length)return;const m=V(f,(e=>dC.createCaseClause(e,[]))),g=nX(i,null==a?void 0:a.options),h=ure({removeComments:!0,module:r.module,target:r.target,newLine:CY(g)}),y=a?e=>h.printAndFormatNode(4,e,t,a):e=>h.printNode(4,e,t),v=V(m,((e,t)=>n.includeCompletionsWithSnippetText?`${y(e)}$${t+1}`:""+y(e))).join(g);return{entry:{name:h.printNode(4,m[0],t)+" ...",kind:"",sortText:Mne.GlobalsOrKeywords,insertText:v,hasAction:p.hasFixes()||void 0,source:"SwitchCases/",isSnippet:!!n.includeCompletionsWithSnippetText||void 0},importAdder:p}}}function ire(e,t,n){switch(e.kind){case 180:return ore(e.typeName,t,n);case 196:const r=ire(e.objectType,t,n),i=ire(e.indexType,t,n);return r&&i&&dC.createElementAccessExpression(r,i);case 198:const o=e.literal;switch(o.kind){case 10:return dC.createStringLiteral(o.text,0===n);case 8:return dC.createNumericLiteral(o.text,o.numericLiteralFlags)}return;case 193:const a=ire(e.type,t,n);return a&&(Tw(a)?a:dC.createParenthesizedExpression(a));case 183:return ore(e.exprName,t,n);case 202:In.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function ore(e,t,n){if(Tw(e))return e;const r=Ic(e.right.escapedText);return VT(r,t)?dC.createPropertyAccessExpression(ore(e.left,t,n),r):dC.createElementAccessExpression(ore(e.left,t,n),dC.createStringLiteral(r,0===n))}function are(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function sre(e,t,n){return"object"==typeof n?lT(n)+"n":vt(n)?MX(e,t,n):JSON.stringify(n)}function cre(e,t,n){return{name:sre(e,t,n),kind:"string",kindModifiers:"",sortText:Mne.LocationPriority}}function _re(e,t,n,r,i,o,a,s,c,_,l,u,d,p,f,m,g,h,y,v,b,x,k,S){let T,C,A,w,D,E,N=W$(n),I=gre(u);const O=c.getTypeChecker(),L=u&&function(e){return!!(16&e.kind)}(u),M=u&&function(e){return!!(2&e.kind)}(u)||l;if(u&&function(e){return!!(1&e.kind)}(u))T=l?`this${L?"?.":""}[${fre(a,y,_)}]`:`this${L?"?.":"."}${_}`;else if((M||L)&&p){T=M?l?`[${fre(a,y,_)}]`:`[${_}]`:_,(L||p.questionDotToken)&&(T="?."+T);const e=YH(p,24,a)||YH(p,28,a);if(!e)return;const t=fn(_,p.name.text)?p.name.end:e.end;N=pc(e.getStart(a),t)}if(f&&(void 0===T&&(T=_),T=`{${T}}`,"boolean"!=typeof f&&(N=H$(f,a))),u&&function(e){return!!(8&e.kind)}(u)&&p){void 0===T&&(T=_);const e=g$(p.pos,a);let t="";e&&KX(e.end,e.parent,a)&&(t=";"),t+=`(await ${p.expression.getText()})`,T=l?`${t}${T}`:`${t}${L?"?.":"."}${T}`,N=pc((xt(p.parent,UD)?p.parent:p.expression).getStart(a),p.end)}if(Vne(u)&&(w=[$G(u.moduleSpecifier)],m&&(({insertText:T,replacementSpan:N}=function(e,t,n,r,i,o,a){const s=t.replacementSpan,c=MX(i,a,LT(n.moduleSpecifier)),_=n.isDefaultExport?1:"export="===n.exportName?2:0,l=a.includeCompletionsWithSnippetText?"$1":"",u=Ine.getImportKind(i,_,o,!0),d=t.couldBeTypeOnlyImportSpecifier,p=t.isTopLevelTypeOnly?` ${_s(154)} `:" ",f=d?_s(154)+" ":"",m=r?";":"";switch(u){case 3:return{replacementSpan:s,insertText:`import${p}${LT(e)}${l} = require(${c})${m}`};case 1:return{replacementSpan:s,insertText:`import${p}${LT(e)}${l} from ${c}${m}`};case 2:return{replacementSpan:s,insertText:`import${p}* as ${LT(e)} from ${c}${m}`};case 0:return{replacementSpan:s,insertText:`import${p}{ ${f}${LT(e)}${l} } from ${c}${m}`}}}(_,m,u,g,a,h,y)),A=!!y.includeCompletionsWithSnippetText||void 0)),64===(null==u?void 0:u.kind)&&(D=!0),y.includeCompletionsWithClassMemberSnippets&&y.includeCompletionsWithInsertText&&3===v&&function(e,t,n){if(Sg(t))return!1;return!!(106500&e.flags)&&(Fl(t)||t.parent&&t.parent.parent&&Nl(t.parent)&&t===t.parent.name&&t.parent.getLastToken(n)===t.parent.name&&Fl(t.parent.parent)||t.parent&&fF(t)&&Fl(t.parent))}(e,i,a)){let n;({insertText:T,isSnippet:A,importAdder:n,replacementSpan:N}=lre(s,c,h,y,_,e,i,o,r,b)),t=Mne.ClassMemberSnippets,(null==n?void 0:n.hasFixes())&&(D=!0,I="ClassMemberSnippet/")}if(u&&Wne(u)&&(({insertText:T,isSnippet:A,labelDetails:E}=u),y.useLabelDetailsInCompletionEntries||(_+=E.detail,E=void 0),I="ObjectLiteralMethodSnippet/",t=Mne.SortBelow(t)),x&&!k&&y.includeCompletionsWithSnippetText&&y.jsxAttributeCompletionStyle&&"none"!==y.jsxAttributeCompletionStyle&&(!uN(i.parent)||!i.parent.initializer)){let t="braces"===y.jsxAttributeCompletionStyle;const n=O.getTypeOfSymbolAtLocation(e,i);"auto"!==y.jsxAttributeCompletionStyle||528&n.flags||1048576&n.flags&&P(n.types,(e=>!!(528&e.flags)))||(402653316&n.flags||1048576&n.flags&&F(n.types,(e=>!!(402686084&e.flags||B$(e))))?(T=`${LT(_)}=${MX(a,y,"$1")}`,A=!0):t=!0),t&&(T=LT(_)+"={$1}",A=!0)}if(void 0===T||y.includeCompletionsWithInsertText)return(qne(u)||Vne(u))&&(C=dre(u),D=!m),{name:_,kind:Cue.getSymbolKind(O,e,i),kindModifiers:Cue.getSymbolModifiers(O,e),sortText:t,source:I,hasAction:!!D||void 0,isRecommended:mre(e,d,O)||void 0,insertText:T,replacementSpan:N,sourceDisplay:w,labelDetails:E,isSnippet:A,isPackageJsonImport:Qne(u)||void 0,isImportStatementCompletion:!!m||void 0,data:C,...S?{symbol:e}:void 0}}function lre(e,t,n,r,i,o,a,s,c,_){const l=Ec(a,Fl);if(!l)return{insertText:i};let u,d,p=i;const f=t.getTypeChecker(),m=a.getSourceFile(),g=ure({removeComments:!0,module:n.module,target:n.target,omitTrailingSemicolon:!1,newLine:CY(nX(e,null==_?void 0:_.options))}),h=Ine.createImportAdder(m,t,r,e);let y;if(r.includeCompletionsWithSnippetText){u=!0;const e=dC.createEmptyStatement();y=dC.createBlock([e],!0),lA(e,{kind:0,order:0})}else y=dC.createBlock([],!0);let v=0;const{modifiers:b,span:x}=function(e,t,n){if(!e||ys(t,n).line>ys(t,e.getEnd()).line)return{modifiers:0};let r,i,o=0;return(i=function(e){if(vl(e))return e.kind;if(Tw(e)){const t=Lc(e);if(t&&gl(t))return t}}(e))&&(o|=wb(i),r=H$(e)),Qw(e.parent)&&(o|=126975&Ab(e.parent.modifiers),r=H$(e.parent)),{modifiers:o,span:r}}(c,m,s),k=!!(256&b),S=[];if(Ine.addNewNodeForMemberSymbol(o,l,m,{program:t,host:e},r,h,(e=>{let t=0;k&&(t|=256),Nl(e)&&1===f.getMemberOverrideModifierStatus(l,e,o)&&(t|=16384),S.length||(v=e.modifierFlagsCache|t|b),e=dC.updateModifiers(e,v),S.push(e)}),y,Ine.PreserveOptionalFlags.Property,k),S.length){const e=131073;d=x,p=_?g.printAndFormatSnippetList(e,dC.createNodeArray(S),m,_):g.printSnippetList(e,dC.createNodeArray(S),m)}return{insertText:p,isSnippet:u,importAdder:h,replacementSpan:d}}function ure(e){let t;const n=rde.createWriter(ax(e)),r=hU(e,n),i={...n,write:e=>o(e,(()=>n.write(e))),nonEscapingWrite:n.write,writeLiteral:e=>o(e,(()=>n.writeLiteral(e))),writeStringLiteral:e=>o(e,(()=>n.writeStringLiteral(e))),writeSymbol:(e,t)=>o(e,(()=>n.writeSymbol(e,t))),writeParameter:e=>o(e,(()=>n.writeParameter(e))),writeComment:e=>o(e,(()=>n.writeComment(e))),writeProperty:e=>o(e,(()=>n.writeProperty(e)))};return{printSnippetList:function(e,n,r){const i=a(e,n,r);return t?rde.applyChanges(i,t):i},printAndFormatSnippetList:function(e,n,r,i){const o={text:a(e,n,r),getLineAndCharacterOfPosition(e){return ys(this,e)}},s=wY(i,r),c=H(n,(e=>{const t=rde.assignPositionsToNode(e);return afe.formatNodeGivenIndentation(t,o,r.languageVariant,0,0,{...i,options:s})})),_=t?Pe(ue(c,t),((e,t)=>zt(e.span,t.span))):c;return rde.applyChanges(o.text,_)},printNode:function(e,n,r){const i=s(e,n,r);return t?rde.applyChanges(i,t):i},printAndFormatNode:function(e,n,r,i){const o={text:s(e,n,r),getLineAndCharacterOfPosition(e){return ys(this,e)}},a=wY(i,r),c=rde.assignPositionsToNode(n),_=afe.formatNodeGivenIndentation(c,o,r.languageVariant,0,0,{...i,options:a}),l=t?Pe(ue(_,t),((e,t)=>zt(e.span,t.span))):_;return rde.applyChanges(o.text,l)}};function o(e,r){const i=LT(e);if(i!==e){const e=n.getTextPos();r();const o=n.getTextPos();t=Se(t||(t=[]),{newText:i,span:{start:e,length:o-e}})}else r()}function a(e,n,o){return t=void 0,i.clear(),r.writeList(e,n,o,i),i.getText()}function s(e,n,o){return t=void 0,i.clear(),r.writeNode(e,n,o,i),i.getText()}}function dre(e){const t=e.fileName?void 0:cv(e.moduleSymbol.name),n=!!e.isFromPackageJson||void 0;return Vne(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:n}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:cv(e.moduleSymbol.name),isPackageJsonImport:!!e.isFromPackageJson||void 0}}function pre(e,t,n){const r="default"===e.exportName,i=!!e.isPackageJsonImport;return Yne(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:i}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:i}}function fre(e,t,n){return/^\d+$/.test(n)?n:MX(e,t,n)}function mre(e,t,n){return e===t||!!(1048576&e.flags)&&n.getExportSymbolOfSymbol(e)===t}function gre(e){return qne(e)?cv(e.moduleSymbol.name):Vne(e)?e.moduleSpecifier:1===(null==e?void 0:e.kind)?"ThisProperty/":64===(null==e?void 0:e.kind)?"TypeOnlyAlias/":void 0}function hre(e,t,n,r,i,o,a,s,c,_,l,u,d,p,f,m,g,h,y,v,b,x,k,S,T,C=!1){var A;const w=_r(),D=Ec(i,(e=>Fm(e)||function(e){return e.parent&&BD(e.parent)&&e.parent.body===e}(e)||Ul(e)?"quit":wE(e))),E=WX(a),N=c.getTypeChecker(),F=new Map;for(let l=0;le.getSourceFile()===i.getSourceFile())));F.set(I,R),ge(t,M,Xne,!0)}return l("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(_r()-w)),{has:e=>F.has(e),add:e=>F.set(e,!0)};function P(e,t){let n=e.flags;if(!TN(i)){if(HE(i.parent))return!0;if(D&&e.valueDeclaration===D)return!1;const r=Ix(e,N);if(a.externalModuleIndicator&&!p.allowUmdGlobalAccess&&t[VB(e)]===Mne.GlobalsOrKeywords&&(t[VB(r)]===Mne.AutoImportSuggestions||t[VB(r)]===Mne.LocationPriority))return!1;if(n|=Ox(r),cH(i))return!!(1920&n);if(m)return Wre(e,N)}return!!(111551&n)}}function yre(e,t,n,r,i,o,a){if("SwitchCases/"===i.source)return{type:"cases"};if(i.data){const t=wre(i.name,i.data,e,o);if(t){const{contextToken:e,previousToken:i}=Are(r,n);return{type:"symbol",symbol:t.symbol,location:_$(n,r),previousToken:i,contextToken:e,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:t.origin}}}const s=e.getCompilerOptions(),c=Cre(e,t,n,s,r,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},i,o,void 0);if(!c)return{type:"none"};if(0!==c.kind)return{type:"request",request:c};const{symbols:_,literals:l,location:u,completionKind:d,symbolToOriginInfoMap:p,contextToken:f,previousToken:m,isJsxInitializer:g,isTypeOnlyLocation:h}=c,y=P(l,(e=>sre(n,a,e)===i.name));return void 0!==y?{type:"literal",literal:y}:A(_,((e,t)=>{const n=p[t],r=Dre(e,Rk(s),n,d,c.isJsxIdentifierExpected);return r&&r.name===i.name&&("ClassMemberSnippet/"===i.source&&106500&e.flags||"ObjectLiteralMethodSnippet/"===i.source&&8196&e.flags||gre(n)===i.source)?{type:"symbol",symbol:e,location:u,origin:n,contextToken:f,previousToken:m,isJsxInitializer:g,isTypeOnlyLocation:h}:void 0}))||{type:"none"}}function vre(e,t,n,r,i,o,a,s,c){const _=e.getTypeChecker(),l=e.getCompilerOptions(),{name:u,source:d,data:p}=i,{previousToken:f,contextToken:m}=Are(r,n);if(b$(n,r,f))return wie.getStringLiteralCompletionDetails(u,n,r,f,_,l,o,c,s);const g=yre(e,t,n,r,i,o,s);switch(g.type){case"request":{const{request:e}=g;switch(e.kind){case 1:return cae.getJSDocTagNameCompletionDetails(u);case 2:return cae.getJSDocTagCompletionDetails(u);case 3:return cae.getJSDocParameterNameCompletionDetails(u);case 4:return _e(e.keywordCompletions,(e=>e.name===u))?bre(u,"keyword",5):void 0;default:return In.assertNever(e)}}case"symbol":{const{symbol:t,location:i,contextToken:f,origin:m,previousToken:h}=g,{codeActions:y,sourceDisplay:v}=function(e,t,n,r,i,o,a,s,c,_,l,u,d,p,f,m){if((null==p?void 0:p.moduleSpecifier)&&l&&zre(n||l).replacementSpan)return{codeActions:void 0,sourceDisplay:[$G(p.moduleSpecifier)]};if("ClassMemberSnippet/"===f){const{importAdder:r}=lre(a,o,s,d,e,i,t,_,n,u);if(r)return{sourceDisplay:void 0,codeActions:[{changes:rde.ChangeTracker.with({host:a,formatContext:u,preferences:d},r.writeFixes),description:AY([ja.Includes_imports_of_types_referenced_by_0,e])}]}}if(Kne(r)){const e=Ine.getPromoteTypeOnlyCompletionAction(c,r.declaration.name,o,a,u,d);return In.assertIsDefined(e,"Expected to have a code action for promoting type-only alias"),{codeActions:[e],sourceDisplay:void 0}}if(!r||!qne(r)&&!Vne(r))return{codeActions:void 0,sourceDisplay:void 0};const g=r.isFromPackageJson?a.getPackageJsonAutoImportProvider().getTypeChecker():o.getTypeChecker(),{moduleSymbol:h}=r,y=g.getMergedSymbol(Ix(i.exportSymbol||i,g)),v=29===(null==n?void 0:n.kind)&&Ju(n.parent),{moduleSpecifier:b,codeAction:x}=Ine.getImportCompletionAction(y,h,null==p?void 0:p.exportMapKey,c,e,v,a,o,u,l&&Tw(l)?l.getStart(c):_,d,m);return In.assert(!(null==p?void 0:p.moduleSpecifier)||b===p.moduleSpecifier),{sourceDisplay:[$G(b)],codeActions:[x]}}(u,i,f,m,t,e,o,l,n,r,h,a,s,p,d,c);return xre(t,Hne(m)?m.symbolName:t.name,_,n,i,c,y,v)}case"literal":{const{literal:e}=g;return bre(sre(n,s,e),"string","string"==typeof e?8:7)}case"cases":{const{entry:t,importAdder:r}=rre(m.parent,n,s,e.getCompilerOptions(),o,e,void 0);if(r.hasFixes()){const e=rde.ChangeTracker.with({host:o,formatContext:a,preferences:s},r.writeFixes);return{name:t.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:e,description:AY([ja.Includes_imports_of_types_referenced_by_0,u])}]}}return{name:t.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return zne().some((e=>e.name===u))?bre(u,"keyword",5):void 0;default:In.assertNever(g)}}function bre(e,t,n){return kre(e,"",t,[zG(e,n)])}function xre(e,t,n,r,i,o,a,s){const{displayParts:c,documentation:_,symbolKind:l,tags:u}=n.runWithCancellationToken(o,(t=>Cue.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,r,i,i,7)));return kre(t,Cue.getSymbolModifiers(n,e),l,c,_,u,a,s)}function kre(e,t,n,r,i,o,a,s){return{name:e,kindModifiers:t,kind:n,displayParts:r,documentation:i,tags:o,codeActions:a,source:s,sourceDisplay:s}}function Sre(e,t,n,r,i,o,a){const s=yre(e,t,n,r,i,o,a);return"symbol"===s.type?s.symbol:void 0}function Tre(e,t,n){const r=n.getAccessibleSymbolChain(e,t,67108863,!1);return r?Me(r):e.parent&&(function(e){var t;return!!(null==(t=e.declarations)?void 0:t.some((e=>308===e.kind)))}(e.parent)?e:Tre(e.parent,t,n))}function Cre(e,t,n,r,i,o,a,s,c,_){const l=e.getTypeChecker(),u=nre(n,r);let d=_r(),p=u$(n,i);t("getCompletionData: Get current token: "+(_r()-d)),d=_r();const f=F$(n,i,p);t("getCompletionData: Is inside comment: "+(_r()-d));let m=!1,g=!1;if(f){if(P$(n,i)){if(64===n.text.charCodeAt(i-1))return{kind:1};{const e=RH(i,n);if(!/[^\*|\s(/)]/.test(n.text.substring(e,i)))return{kind:2}}}const e=function(e,t){return Ec(e,(e=>!(!Vu(e)||!JH(e,t))||!!zN(e)&&"quit"))}(p,i);if(e){if(e.tagName.pos<=i&&i<=e.tagName.end)return{kind:1};const t=function(e){if(function(e){switch(e.kind){case 344:case 351:case 345:case 347:case 349:case 352:case 353:return!0;case 348:return!!e.constraint;default:return!1}}(e)){const t=sF(e)?e.constraint:e.typeExpression;return t&&312===t.kind?t:void 0}if(VN(e)||uF(e))return e.class}(e);if(t&&(p=u$(n,i),p&&(Xh(p)||351===p.parent.kind&&p.parent.name===p)||(m=ge(t))),!m&&rF(e)&&(Lp(e.name)||e.name.pos<=i&&i<=e.name.end))return{kind:3,tag:e}}if(!m)return void t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}d=_r();const h=!m&&xg(n),y=Are(i,n),v=y.previousToken;let b=y.contextToken;t("getCompletionData: Get previous token: "+(_r()-d));let x,k,S=p,C=!1,w=!1,D=!1,E=!1,N=!1,F=!1,I=_$(n,i),O=0,L=!1,M=0;if(b){const e=zre(b);if(e.keywordCompletion){if(e.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[(R=e.keywordCompletion,{name:_s(R),kind:"keyword",kindModifiers:"",sortText:Mne.GlobalsOrKeywords})],isNewIdentifierLocation:e.isNewIdentifierLocation};O=function(e){if(154===e)return 8;In.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}(e.keywordCompletion)}if(e.replacementSpan&&o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText&&(M|=2,k=e,L=e.isNewIdentifierLocation),!e.replacementSpan&&function(e){const r=_r(),o=function(e){return(_w(e)||ul(e))&&(zH(e,i)||i===e.end&&(!!e.isUnterminated||_w(e)))}(e)||function(e){const t=e.parent,r=t.kind;switch(e.kind){case 27:return 257===r||258===(o=e).parent.kind&&!D$(o,n,l)||240===r||263===r||de(r)||261===r||204===r||262===r||Fl(t)&&!!t.typeParameters&&t.typeParameters.end>=e.pos;case 24:case 22:return 204===r;case 58:return 205===r;case 20:return 295===r||de(r);case 18:return 263===r;case 29:return 260===r||228===r||261===r||262===r||Dl(r);case 124:return 169===r&&!Fl(t.parent);case 25:return 166===r||!!t.parent&&204===t.parent.kind;case 123:case 121:case 122:return 166===r&&!$w(t.parent);case 128:return 273===r||278===r||271===r;case 137:case 151:return!jre(e);case 79:if(273===r&&e===t.name&&"type"===e.text)return!1;break;case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 138:return!0;case 154:return 273!==r;case 41:return Sl(e.parent)&&!Ww(e.parent)}var o;if(Pre(Ore(e))&&jre(e))return!1;if(ce(e)&&(!Tw(e)||hl(Ore(e))||ge(e)))return!1;switch(Ore(e)){case 126:case 84:case 85:case 136:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 132:return Qw(e.parent)}if(Ec(e.parent,Fl)&&e===v&&le(e,i))return!1;const a=py(e.parent,169);if(a&&e!==v&&Fl(v.parent.parent)&&i<=v.end){if(le(e,v.end))return!1;if(63!==e.kind&&(Zj(a)||Hu(a)))return!0}return Xh(e)&&!bN(e.parent)&&!uN(e.parent)&&!(Fl(e.parent)&&(e!==v||i>v.end))}(e)||function(e){if(8===e.kind){const t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(e)||function(e){if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(I===e.parent&&(283===I.kind||282===I.kind))return!1;if(283===e.parent.kind)return 283!==I.parent.kind;if(284===e.parent.kind||282===e.parent.kind)return!!e.parent.parent&&281===e.parent.parent.kind}return!1}(e)||aw(e);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(_r()-r)),o}(b))return t("Returning an empty list because completion was requested in an invalid position."),O?ere(O,h,se()):void 0;let r=b.parent;if(24===b.kind||28===b.kind)switch(C=24===b.kind,w=28===b.kind,r.kind){case 208:if(x=r,S=x.expression,Lp(nk(x))||(PD(S)||Sl(S))&&S.end===b.pos&&S.getChildCount(n)&&21!==je(S.getChildren(n)).kind)return;break;case 163:S=r.left;break;case 264:S=r.name;break;case 202:S=r;break;case 233:S=r.getFirstToken(n),In.assert(100===S.kind||103===S.kind);break;default:return}else if(!k){if(r&&208===r.kind&&(b=r,r=r.parent),p.parent===I)switch(p.kind){case 31:281!==p.parent.kind&&283!==p.parent.kind||(I=p);break;case 43:282===p.parent.kind&&(I=p)}switch(r.kind){case 284:43===b.kind&&(E=!0,I=b);break;case 223:if(!Jre(r))break;case 282:case 281:case 283:F=!0,29===b.kind&&(D=!0,I=b);break;case 291:case 290:(19===v.kind||79===v.kind&&288===v.parent.kind)&&(F=!0);break;case 288:if(r.initializer===v&&v.endpG(t?s.getPackageJsonAutoImportProvider():e,s)));if(C||w)!function(){J=2;const e=_m(S),t=m||e&&!S.isTypeOf||hm(S.parent)||D$(b,n,l),r=cH(S);if(bl(S)||e||ND(S)){const n=OE(S.parent);n&&(L=!0);let i=l.getSymbolAtLocation(S);if(i&&(i=Ix(i,l),1920&i.flags)){const a=l.getExportsOfModule(i);In.assertEachIsDefined(a,"getExportsOfModule() should all be defined");const s=t=>l.isValidPropertyAccess(e?S:S.parent,t.name),c=e=>Wre(e,l),_=n?e=>{var t;return!!(1920&e.flags)&&!(null==(t=e.declarations)?void 0:t.every((e=>e.parent===S.parent)))}:r?e=>c(e)||s(e):t?c:s;for(const e of a)_(e)&&V.push(e);if(!t&&i.declarations&&i.declarations.some((e=>308!==e.kind&&264!==e.kind&&263!==e.kind))){let e=l.getTypeOfSymbolAtLocation(i,S).getNonOptionalType(),t=!1;if(e.isNullableType()){const n=C&&!w&&!1!==o.includeAutomaticOptionalChainCompletions;(n||w)&&(e=e.getNonNullableType(),n&&(t=!0))}ne(e,!!(32768&S.flags),t)}return}}if(!t){l.tryGetThisTypeAt(S,!1);let e=l.getTypeAtLocation(S).getNonOptionalType(),t=!1;if(e.isNullableType()){const n=C&&!w&&!1!==o.includeAutomaticOptionalChainCompletions;(n||w)&&(e=e.getNonNullableType(),n&&(t=!0))}ne(e,!!(32768&S.flags),t)}}();else if(D)V=l.getJsxIntrinsicTagNamesAt(I),In.assertEachIsDefined(V,"getJsxIntrinsicTagNames() should all be defined"),oe(),J=1,O=0;else if(E){const e=b.parent.parent.openingElement.tagName,t=l.getSymbolAtLocation(e);t&&(V=[t]),J=1,O=0}else if(!oe())return O?ere(O,h,L):void 0;t("getCompletionData: Semantic work: "+(_r()-B));const Y=v&&function(e,t,n,r){const{parent:i}=e;switch(e.kind){case 79:return LX(e,r);case 63:switch(i.kind){case 257:return r.getContextualType(i.initializer);case 223:return r.getTypeAtLocation(i.left);case 288:return r.getContextualTypeForJsxAttribute(i);default:return}case 103:return r.getContextualType(i);case 82:const o=xt(i,mN);return o?JX(o,r):void 0;case 18:return!fN(i)||iN(i.parent)||cN(i.parent)?void 0:r.getContextualTypeForJsxAttribute(i.parent);default:const a=nue.getArgumentInfoForCompletions(e,t,n);return a?r.getContextualTypeForArgumentAtIndex(a.invocation,a.argumentIndex+(27===e.kind?1:0)):RX(e.kind)&&QD(i)&&RX(i.operatorToken.kind)?r.getTypeAtLocation(i.left):r.getContextualType(e)}}(v,i,n,l),ee=Z(Y&&(Y.isUnion()?Y.types:[Y]),(e=>!e.isLiteral()||1024&e.flags?void 0:e.value)),te=v&&Y&&function(e,t,n){return A(t&&(t.isUnion()?t.types:[t]),(t=>{const r=t&&t.symbol;return r&&424&r.flags&&!Ux(r)?Tre(r,e,n):void 0}))}(v,Y,l);return{kind:0,symbols:V,completionKind:J,isInSnippetScope:g,propertyAccessToConvert:x,isNewIdentifierLocation:L,location:I,keywordFilters:O,literals:ee,symbolToOriginInfoMap:Q,recommendedCompletion:te,previousToken:v,contextToken:b,isJsxInitializer:N,insideJsDocTagTypeExpression:m,symbolToSortTextMap:K,isTypeOnlyLocation:$,isJsxIdentifierExpected:F,isRightOfOpenTag:D,isRightOfDotOrQuestionDot:C||w,importStatementCompletion:k,hasUnresolvedAutoImports:q,flags:M};function ne(e,t,n){L=!!e.getStringIndexType(),w&&_e(e.getCallSignatures())&&(L=!0);const r=202===S.kind?S:S.parent;if(u)for(const t of e.getApparentProperties())l.isValidPropertyAccessForCompletions(r,e,t)&&re(t,!1,n);else V.push(...z(Rre(e,l),(t=>l.isValidPropertyAccessForCompletions(r,e,t))));if(t&&o.includeCompletionsWithInsertText){const t=l.getPromisedTypeOfPromise(e);if(t)for(const e of t.getApparentProperties())l.isValidPropertyAccessForCompletions(r,t,e)&&re(e,!0,n)}}function re(t,r,a){var c;const _=A(t.declarations,(e=>xt(qc(e),Jw)));if(_){const r=ie(_.expression),a=r&&l.getSymbolAtLocation(r),f=a&&Tre(a,b,l);if(f&&$x(W,VB(f))){const t=V.length;V.push(f);const r=f.parent;if(r&&iG(r)&&l.tryGetMemberInModuleExportsAndProperties(f.name,r)===f){const a=Xs(cv(r.name))?null==(c=Dp(r))?void 0:c.fileName:void 0,{moduleSpecifier:_}=(j||(j=Ine.createImportSpecifierResolver(n,e,s,o))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:a,isFromPackageJson:!1,moduleSymbol:r,symbol:f,targetFlags:Ix(f,l).flags}],i,fT(I))||{};if(_){const e={kind:p(6),moduleSymbol:r,isDefaultExport:!1,symbolName:f.name,exportName:f.name,fileName:a,moduleSpecifier:_};Q[t]=e}}else Q[t]={kind:p(2)}}else o.includeCompletionsWithInsertText&&(d(t),u(t),V.push(t))}else d(t),u(t),V.push(t);function u(e){(function(e){return!!(e.valueDeclaration&&32&bb(e.valueDeclaration)&&Fl(e.valueDeclaration.parent))})(e)&&(K[VB(e)]=Mne.LocalDeclarationPriority)}function d(e){o.includeCompletionsWithInsertText&&(r&&$x(W,VB(e))?Q[V.length]={kind:p(8)}:a&&(Q[V.length]={kind:16}))}function p(e){return a?16|e:e}}function ie(e){return Tw(e)?e:ND(e)?ie(e.expression):void 0}function oe(){const t=function(){const e=function(e){if(!e)return;const t=e.parent;switch(e.kind){case 18:if(aD(t))return t;break;case 26:case 27:case 79:if(168===t.kind&&aD(t.parent))return t.parent}}(b);if(!e)return 0;const t=(pD(e.parent)?e.parent:void 0)||e,n=Bre(t,l);if(!n)return 0;const r=l.getTypeFromTypeNode(t),i=Rre(n,l),o=Rre(r,l),a=new Set;return o.forEach((e=>a.add(e.escapedName))),V=ue(V,z(i,(e=>!a.has(e.escapedName)))),J=0,L=!0,1}()||function(){const t=V.length,n=function(e){if(e){const{parent:t}=e;switch(e.kind){case 18:case 27:if(ED(t)||CD(t))return t;break;case 41:return Ww(t)?xt(t.parent,ED):void 0;case 79:return"async"===e.text&&bN(e.parent)?e.parent.parent:void 0}}}(b);if(!n)return 0;let i,a;if(J=0,207===n.kind){const e=function(e,t){const n=t.getContextualType(e);if(n)return n;const r=Qh(e.parent);return QD(r)&&63===r.operatorToken.kind&&e===r.left?t.getTypeAtLocation(r):_u(r)?t.getContextualType(r):void 0}(n,l);if(void 0===e)return 33554432&n.flags?2:(U=!0,0);const t=l.getContextualType(n,4),r=(t||e).getStringIndexType(),o=(t||e).getNumberIndexType();if(L=!!r||!!o,i=Lre(e,t,n,l),a=n.properties,0===i.length&&!o)return U=!0,0}else{In.assert(203===n.kind),L=!1;const e=qy(n.parent);if(!Sm(e))return In.fail("Root declaration is not variable-like.");let t=$u(e)||!!Kv(e)||247===e.parent.parent.kind;if(t||166!==e.kind||(_u(e.parent)?t=!!l.getContextualType(e.parent):171!==e.parent.kind&&175!==e.parent.kind||(t=_u(e.parent.parent)&&!!l.getContextualType(e.parent.parent))),t){const e=l.getTypeAtLocation(n);if(!e)return 2;i=l.getPropertiesOfType(e).filter((t=>l.isPropertyAccessible(n,!1,!1,e,t))),a=n.elements}}if(i&&i.length>0){const l=function(e,t){if(0===t.length)return e;const n=new Set,r=new Set;for(const e of t){if(299!==e.kind&&300!==e.kind&&205!==e.kind&&171!==e.kind&&174!==e.kind&&175!==e.kind&&301!==e.kind)continue;if(ge(e))continue;let t;if(xN(e))pe(e,n);else if(wD(e)&&e.propertyName)79===e.propertyName.kind&&(t=e.propertyName.escapedText);else{const n=qc(e);t=n&&Ey(n)?Fy(n):void 0}void 0!==t&&r.add(t)}const i=e.filter((e=>!r.has(e.escapedName)));return me(n,i),i}(i,In.checkDefined(a));V=ue(V,l),fe(),207===n.kind&&o.includeCompletionsWithObjectLiteralMethodSnippets&&o.includeCompletionsWithInsertText&&(function(e){var t;for(let n=e;n{if(!(8196&t.flags))return;const n=Dre(t,Rk(r),void 0,0,!1);if(!n)return;const{name:i}=n,a=function(e,t,n,r,i,o,a,s){const c=a.includeCompletionsWithSnippetText||void 0;let _=t;const l=n.getSourceFile(),u=function(e,t,n,r,i,o){const a=e.getDeclarations();if(!a||!a.length)return;const s=r.getTypeChecker(),c=a[0],_=gX(qc(c),!1),l=s.getWidenedType(s.getTypeOfSymbolAtLocation(e,t)),u=33554432|(0===bG(n,o)?268435456:0);switch(c.kind){case 168:case 169:case 170:case 171:{let e=1048576&l.flags&&l.types.length<10?s.getUnionType(l.types,2):l;if(1048576&e.flags){const t=z(e.types,(e=>s.getSignaturesOfType(e,0).length>0));if(1!==t.length)return;e=t[0]}if(1!==s.getSignaturesOfType(e,0).length)return;const n=s.typeToTypeNode(e,t,u,Ine.getNoopSymbolTrackerWithResolver({program:r,host:i}));if(!n||!rD(n))return;let a;if(o.includeCompletionsWithSnippetText){const e=dC.createEmptyStatement();a=dC.createBlock([e],!0),lA(e,{kind:0,order:0})}else a=dC.createBlock([],!0);const c=n.parameters.map((e=>dC.createParameterDeclaration(void 0,e.dotDotDotToken,e.name,void 0,void 0,e.initializer)));return dC.createMethodDeclaration(void 0,void 0,_,void 0,void 0,c,void 0,a)}default:return}}(e,n,l,r,i,a);if(!u)return;const d=ure({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!1,newLine:CY(nX(i,null==s?void 0:s.options))});_=s?d.printAndFormatSnippetList(80,dC.createNodeArray([u],!0),l,s):d.printSnippetList(80,dC.createNodeArray([u],!0),l);const p=hU({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!0}),f=dC.createMethodSignature(void 0,"",u.questionToken,u.typeParameters,u.parameters,u.type);return{isSnippet:c,insertText:_,labelDetails:{detail:p.printNode(4,f,l)}}}(t,i,u,e,s,r,o,c);if(!a)return;const _={kind:128,...a};M|=32,Q[V.length]=_,V.push(t)})))}var _,u;return 1}()||(k?(L=!0,ae(),1):0)||function(){if(!b)return 0;const e=18===b.kind||27===b.kind?xt(b.parent,tk):rG(b)?xt(b.parent.parent,tk):void 0;if(!e)return 0;rG(b)||(O=8);const{moduleSpecifier:t}=272===e.kind?e.parent.parent:e.parent;if(!t)return L=!0,272===e.kind?2:0;const n=l.getSymbolAtLocation(t);if(!n)return L=!0,2;J=3,L=!1;const r=l.getExportsAndPropertiesOfModule(n),i=new Set(e.elements.filter((e=>!ge(e))).map((e=>(e.propertyName||e.name).escapedText))),o=r.filter((e=>"default"!==e.escapedName&&!i.has(e.escapedName)));return V=ue(V,o),o.length||(O=0),1}()||function(){var e;const t=!b||18!==b.kind&&27!==b.kind?void 0:xt(b.parent,GE);if(!t)return 0;const n=Ec(t,vn(TN,OE));return J=5,L=!1,null==(e=n.locals)||e.forEach(((e,t)=>{var r,i;V.push(e),(null==(i=null==(r=n.symbol)?void 0:r.exports)?void 0:i.has(t))&&(K[VB(e)]=Mne.OptionalMember)})),1}()||(function(e){if(e){const t=e.parent;switch(e.kind){case 20:case 27:return $w(e.parent)?e.parent:void 0;default:if(ce(e))return t.parent}}}(b)?(J=5,L=!0,O=4,1):0)||function(){const e=function(e,t,n,r){var i;switch(n.kind){case 354:return xt(n.parent,Gx);case 1:const t=xt(Be(kt(n.parent,TN).statements),Gx);if(t&&!YH(t,19,e))return t;break;case 79:if(Lc(n))return;if(Qw(n.parent)&&n.parent.initializer===n)return;if(jre(n))return Ec(n,Gx)}if(t){if(135===n.kind||Tw(t)&&Qw(t.parent)&&Fl(n))return Ec(t,Fl);switch(t.kind){case 63:return;case 26:case 19:return jre(n)&&n.parent.name===n?n.parent.parent:xt(n,Gx);case 18:case 27:return xt(t.parent,Gx);default:if(Gx(n)){if(ys(e,t.getEnd()).line!==ys(e,r).line)return n;const o=Fl(t.parent.parent)?Pre:Fre;return o(t.kind)||41===t.kind||Tw(t)&&o(null!=(i=Lc(t))?i:0)?t.parent.parent:void 0}return}}}(n,b,I,i);if(!e)return 0;if(J=3,L=!0,O=41===b.kind?0:Fl(e)?2:3,!Fl(e))return 1;const t=26===b.kind?b.parent.parent:b.parent;let r=Nl(t)?bb(t):0;if(79===b.kind&&!ge(b))switch(b.getText()){case"private":r|=8;break;case"static":r|=32;break;case"override":r|=16384}if(Hw(t)&&(r|=32),!(8&r)){const t=H(Fl(e)&&16384&r?kn(sy(e)):ly(e),(t=>{const n=l.getTypeAtLocation(t);return 32&r?(null==n?void 0:n.symbol)&&l.getPropertiesOfType(l.getTypeOfSymbolAtLocation(n.symbol,e)):n&&l.getPropertiesOfType(n)}));V=ue(V,function(e,t,n){const r=new Set;for(const e of t){if(169!==e.kind&&171!==e.kind&&174!==e.kind&&175!==e.kind)continue;if(ge(e))continue;if(sb(e,8))continue;if(_b(e)!==!!(32&n))continue;const t=Dy(e.name);t&&r.add(t)}return e.filter((e=>!(r.has(e.escapedName)||!e.declarations||8&Px(e)||e.valueDeclaration&&fl(e.valueDeclaration))))}(t,e.members,r)),T(V,((e,t)=>{const n=null==e?void 0:e.valueDeclaration;if(n&&Nl(n)&&n.name&&Jw(n.name)){const n={kind:512,symbolName:l.symbolToString(e)};Q[t]=n}}))}return 1}()||function(){const e=function(e){if(e){const t=e.parent;switch(e.kind){case 31:case 30:case 43:case 79:case 208:case 289:case 288:case 290:if(t&&(282===t.kind||283===t.kind)){if(31===e.kind){const r=g$(e.pos,n,void 0);if(!t.typeArguments||r&&43===r.kind)break}return t}if(288===t.kind)return t.parent.parent;break;case 10:if(t&&(288===t.kind||290===t.kind))return t.parent.parent;break;case 19:if(t&&291===t.kind&&t.parent&&288===t.parent.kind)return t.parent.parent.parent;if(t&&290===t.kind)return t.parent.parent}}}(b),t=e&&l.getContextualType(e.attributes);if(!t)return 0;const r=e&&l.getContextualType(e.attributes,4);return V=ue(V,function(e,t){const n=new Set,r=new Set;for(const e of t)ge(e)||(288===e.kind?n.add(e.name.escapedText):pN(e)&&pe(e,r));const i=e.filter((e=>!n.has(e.escapedName)));return me(r,i),i}(Lre(t,r,e.attributes,l),e.attributes.properties)),fe(),J=3,L=!1,1}()||(function(){O=function(e){if(e){let t;const n=Ec(e.parent,(e=>Fl(e)?"quit":!(!Cl(e)||t!==e.body)||(t=e,!1)));return n&&n}}(b)?5:1,J=1,L=se(),v!==b&&In.assert(!!v,"Expected 'contextToken' to be defined when different from 'previousToken'.");const e=v!==b?v.getStart():i,t=function(e,t,n){let r=e;for(;r&&!WH(r,t,n);)r=r.parent;return r}(b,e,n)||n;g=function(e){switch(e.kind){case 308:case 225:case 291:case 238:return!0;default:return Iu(e)}}(t);const r=2887656|($?0:111551),a=v&&!fT(v);V=ue(V,l.getSymbolsInScope(t,r)),In.assertEachIsDefined(V,"getSymbolsInScope() should all be defined");for(let e=0;ee.getSourceFile()===n))||(K[VB(t)]=Mne.GlobalsOrKeywords),a&&!(111551&t.flags)){const n=t.declarations&&P(t.declarations,sl);if(n){const t={kind:64,declaration:n};Q[e]=t}}}if(o.includeCompletionsWithInsertText&&308!==t.kind){const e=l.tryGetThisTypeAt(t,!1,Fl(t.parent)?t:void 0);if(e&&!function(e,t,n){const r=n.resolveName("self",void 0,111551,!1);if(r&&n.getTypeOfSymbolAtLocation(r,t)===e)return!0;const i=n.resolveName("global",void 0,111551,!1);if(i&&n.getTypeOfSymbolAtLocation(i,t)===e)return!0;const o=n.resolveName("globalThis",void 0,111551,!1);return!(!o||n.getTypeOfSymbolAtLocation(o,t)!==e)}(e,n,l))for(const t of Rre(e,l))Q[V.length]={kind:1},V.push(t),K[VB(t)]=Mne.SuggestedClassMembers}ae(),$&&(O=b&&lu(b.parent)?6:7)}(),1);return 1===t}function ae(){var t,r;if(!(k||!U&&o.includeCompletionsForModuleExports&&(n.externalModuleIndicator||n.commonJsModuleIndicator||dG(e.getCompilerOptions())||lG(e))))return;if(In.assert(!(null==a?void 0:a.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),a&&!a.source)return;M|=1;const c=v===b&&k?"":v&&Tw(v)?v.text.toLowerCase():"",l=null==(t=s.getModuleSpecifierCache)?void 0:t.call(s),u=BY(n,s,e,o,_),d=null==(r=s.getPackageJsonAutoImportProvider)?void 0:r.call(s),p=a?void 0:iY(n,o,s);function f(t){const r=xt(t.moduleSymbol.valueDeclaration,TN);if(!r){const r=cv(t.moduleSymbol.name);return(!cW.nodeCoreModules.has(r)||fn(r,"node:")===TY(n,e))&&(!p||p.allowsImportingAmbientModule(t.moduleSymbol,X(t.isFromPackageJson)))}return LY(t.isFromPackageJson?d:e,n,r,o,p,X(t.isFromPackageJson),l)}$ne("collectAutoImports",s,j||(j=Ine.createImportSpecifierResolver(n,e,s,o)),e,i,o,!!k,fT(I),(e=>{u.search(n.path,D,((e,t)=>{if(!Us(e,Rk(s.getCompilationSettings())))return!1;if(!a&&yy(e))return!1;if(!($||k||111551&t))return!1;if($&&!(790504&t))return!1;const n=e.charCodeAt(0);return(!D||!(n<65||n>90))&&(!!a||$re(e,c))}),((t,n,r,i)=>{if(a&&!_e(t,(e=>a.source===cv(e.moduleSymbol.name))))return;if(!(t=z(t,f)).length)return;const o=e.tryResolve(t,r)||{};if("failed"===o)return;let s,c=t[0];"skipped"!==o&&({exportInfo:c=t[0],moduleSpecifier:s}=o);const _=1===c.exportKind;!function(e,t){const n=VB(e);K[n]!==Mne.GlobalsOrKeywords&&(Q[V.length]=t,K[n]=k?Mne.LocationPriority:Mne.AutoImportSuggestions,V.push(e))}(_&&Yb(c.symbol)||c.symbol,{kind:s?32:4,moduleSpecifier:s,symbolName:n,exportMapKey:i,exportName:2===c.exportKind?"export=":c.symbol.name,fileName:c.moduleFileName,isDefaultExport:_,moduleSymbol:c.moduleSymbol,isFromPackageJson:c.isFromPackageJson})})),q=e.skippedAny(),M|=e.resolvedAny()?8:0,M|=e.resolvedBeyondLimit()?16:0}))}function se(){if(b){const e=b.parent.kind,t=Ore(b);switch(t){case 27:return 210===e||173===e||211===e||206===e||223===e||181===e||207===e;case 20:return 210===e||173===e||211===e||214===e||193===e;case 22:return 206===e||178===e||164===e;case 142:case 143:case 100:return!0;case 24:return 264===e;case 18:return 260===e||207===e;case 63:return 257===e||223===e;case 15:return 225===e;case 16:return 236===e;case 132:return 171===e||300===e;case 41:return 171===e}if(Pre(t))return!0}return!1}function ce(e){return!!e.parent&&Uw(e.parent)&&$w(e.parent.parent)&&(hl(e.kind)||Xh(e))}function le(e,t){return 63!==e.kind&&(26===e.kind||!kx(e.end,t,n))}function de(e){return Dl(e)&&173!==e}function pe(e,t){const n=e.expression,r=l.getSymbolAtLocation(n),i=r&&l.getTypeOfSymbolAtLocation(r,n),o=i&&i.properties;o&&o.forEach((e=>{t.add(e.name)}))}function fe(){V.forEach((e=>{var t;if(16777216&e.flags){const n=VB(e);K[n]=null!=(t=K[n])?t:Mne.OptionalMember}}))}function me(e,t){if(0!==e.size)for(const n of t)e.has(n.name)&&(K[VB(n)]=Mne.MemberDeclaredBySpreadAssignment)}function ge(e){return e.getStart(n)<=i&&i<=e.getEnd()}}function Are(e,t){const n=g$(e,t);return n&&e<=n.end&&(F_(n)||fy(n.kind))?{contextToken:g$(n.getFullStart(),t,void 0),previousToken:n}:{contextToken:n,previousToken:n}}function wre(e,t,n,r){const i=t.isPackageJsonImport?r.getPackageJsonAutoImportProvider():n,o=i.getTypeChecker(),a=t.ambientModuleName?o.tryFindAmbientModule(t.ambientModuleName):t.fileName?o.getMergedSymbol(In.checkDefined(i.getSourceFile(t.fileName)).symbol):void 0;if(!a)return;let s="export="===t.exportName?o.resolveExternalModuleSymbol(a):o.tryGetMemberInModuleExportsAndProperties(t.exportName,a);return s?(s="default"===t.exportName&&Yb(s)||s,{symbol:s,origin:pre(t,e,a)}):void 0}function Dre(e,t,n,r,i){if(function(e){return!!(e&&256&e.kind)}(n))return;const o=function(e){return qne(e)||Vne(e)||Hne(e)}(n)?n.symbolName:e.name;if(void 0===o||1536&e.flags&&Og(o.charCodeAt(0))||Oy(e))return;const a={name:o,needsConvertPropertyAccess:!1};if(Us(o,t,i?1:0)||e.valueDeclaration&&fl(e.valueDeclaration))return a;switch(r){case 3:return Hne(n)?{name:n.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return 32===o.charCodeAt(0)?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return a;default:In.assertNever(r)}}function Ere(e,t){if(!t)return Nre(e);const n=e+8+1;return Jne[n]||(Jne[n]=Nre(e).filter((e=>!function(e){switch(e){case 126:case 131:case 160:case 134:case 136:case 92:case 159:case 117:case 138:case 118:case 140:case 141:case 142:case 143:case 144:case 148:case 149:case 161:case 121:case 122:case 123:case 146:case 152:case 153:case 154:case 156:case 157:return!0;default:return!1}}(ls(e.name)))))}function Nre(e){return Jne[e]||(Jne[e]=zne().filter((t=>{const n=ls(t.name);switch(e){case 0:return!1;case 1:return Ire(n)||136===n||142===n||154===n||143===n||126===n||tG(n)&&155!==n;case 5:return Ire(n);case 2:return Pre(n);case 3:return Fre(n);case 4:return hl(n);case 6:return tG(n)||85===n;case 7:return tG(n);case 8:return 154===n;default:return In.assertNever(e)}})))}function Fre(e){return 146===e}function Pre(e){switch(e){case 126:case 127:case 135:case 137:case 151:case 132:case 136:case 161:return!0;default:return yl(e)}}function Ire(e){return 132===e||133===e||128===e||150===e||154===e||!my(e)&&!Pre(e)}function Ore(e){var t;return Tw(e)?null!=(t=Lc(e))?t:0:e.kind}function Lre(e,t,n,r){const i=t&&t!==e,o=!i||3&t.flags?e:r.getUnionType([e,t]),a=function(e,t,n){return e.isUnion()?n.getAllPossiblePropertiesOfTypes(z(e.types,(e=>!(134348796&e.flags||n.isArrayLikeType(e)||n.isTypeInvalidDueToUnionDiscriminant(e,t)||n.typeHasCallOrConstructSignatures(e)||e.isClass()&&Mre(e.getApparentProperties()))))):e.getApparentProperties()}(o,n,r);return o.isClass()&&Mre(a)?[]:i?z(a,(function(e){return!S(e.declarations)||_e(e.declarations,(e=>e.parent!==n))})):a}function Mre(e){return _e(e,(e=>!!(24&Px(e))))}function Rre(e,t){return e.isUnion()?In.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):In.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function Bre(e,t){if(!e)return;if(Jl(e)&&Yu(e.parent))return t.getTypeArgumentConstraint(e);const n=Bre(e.parent,t);if(n)switch(e.kind){case 168:return t.getTypeOfPropertyOfContextualType(n,e.symbol.escapedName);case 190:case 184:case 189:return n}}function jre(e){return e.parent&&Bl(e.parent)&&Gx(e.parent.parent)}function Jre({left:e}){return Lp(e)}function zre(e){var t,n,r;let i,o=!1;const a=function(){const t=e.parent;if(BE(t))return i=154===e.kind?void 0:154,Kre(t.moduleReference)?t:void 0;if(Vre(t,e)&&Qre(t.parent))return t;if(!KE(t)&&!VE(t))return Rw(e)&&TN(t)?(i=154,e):Rw(e)&&jE(t)?(i=154,Kre(t.moduleSpecifier)?t:void 0):void 0;if(t.parent.isTypeOnly||18!==e.kind&&100!==e.kind&&27!==e.kind||(i=154),Qre(t)){if(19!==e.kind&&79!==e.kind)return t.parent.parent;o=!0,i=158}}();return{isKeywordOnlyCompletion:o,keywordCompletion:i,isNewIdentifierLocation:!(!a&&154!==i),isTopLevelTypeOnly:!!(null==(n=null==(t=xt(a,jE))?void 0:t.importClause)?void 0:n.isTypeOnly)||!!(null==(r=xt(a,BE))?void 0:r.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!a&&Vre(a,e),replacementSpan:Ure(a)}}function Ure(e){var t,n,r;if(!e)return;const i=null!=(t=Ec(e,vn(jE,BE)))?t:e,o=i.getSourceFile();if(fx(i,o))return H$(i,o);In.assert(100!==i.kind&&273!==i.kind);const a=269===i.kind?null!=(r=qre(null==(n=i.importClause)?void 0:n.namedBindings))?r:i.moduleSpecifier:i.moduleReference,s={pos:i.getFirstToken().getStart(),end:a.pos};return fx(s,o)?X$(s):void 0}function qre(e){var t;return P(null==(t=xt(e,KE))?void 0:t.elements,(t=>{var n;return!t.propertyName&&yy(t.name.text)&&27!==(null==(n=g$(t.name.pos,e.getSourceFile(),e))?void 0:n.kind)}))}function Vre(e,t){return WE(e)&&(e.isTypeOnly||t===e.name&&rG(t))}function Qre(e){if(!Kre(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(KE(e)){const t=qre(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Kre(e){var t;return!!Lp(e)||!(null==(t=xt(rN(e)?e.expression:e,ed))?void 0:t.text)}function Wre(e,t,n=new Map){return r(e)||r(Ix(e.exportSymbol||e,t));function r(e){return!!(788968&e.flags)||t.isUnknownSymbol(e)||!!(1536&e.flags)&&$x(n,VB(e))&&t.getExportsOfModule(e).some((e=>Wre(e,t,n)))}}function Hre(e,t){const n=Ix(e,t).declarations;return!!S(n)&&F(n,SY)}function $re(e,t){if(0===t.length)return!0;let n,r=!1,i=0;const o=e.length;for(let s=0;s"z"+e,ObjectLiteralProperty:(e,t)=>`${e}\0${t}\0`,SortBelow:e=>e+"1"},Rne=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e))(Rne||{}),Bne=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(Bne||{}),jne=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(jne||{}),Jne=[],zne=Ft((()=>{const e=[];for(let t=81;t<=162;t++)e.push({name:_s(t),kind:"keyword",kindModifiers:"",sortText:Mne.GlobalsOrKeywords});return e}))}});function eie(){const e=new Map;return{add:function(t){const n=e.get(t.name);(!n||Gre[n.kind]t>=e.pos&&t<=e.end));if(!a)return;const s=e.text.slice(a.pos,t),c=Xre.exec(s);if(!c)return;const[,_,l,u]=c,d=sa(e.path),p="path"===l?mie(u,d,pie(n,0,e),r,!0,e.path):"types"===l?Tie(r,n,d,bie(u),pie(n,1,e)):In.fail();return uie(u,a.pos+_.length,Ze(p.values()))}(e,t,r,i);return n&&rie(n)}if(b$(e,t,n)){if(!n||!ed(n))return;return function(e,t,n,r,i,o,a,s,c,_){if(void 0===e)return;const l=$$(t);switch(e.kind){case 0:return rie(e.paths);case 1:{const u=[];return hre(e.symbols,u,t,t,n,c,n,r,i,99,o,4,s,a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,_),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:l,entries:u}}case 2:{const n=e.types.map((e=>({name:e.value,kindModifiers:"",kind:"string",sortText:Mne.LocationPriority,replacementSpan:W$(t)})));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:l,entries:n}}default:return In.assertNever(e)}}(oie(e,n,t,o.getTypeChecker(),r,i,s),n,e,i,o,a,r,s,t,c)}}function nie(e,t,n,r,i,o,a,s,c){if(!r||!ed(r))return;const _=oie(t,r,n,i,o,a,c);return _&&function(e,t,n,r,i,o){switch(n.kind){case 0:{const t=P(n.paths,(t=>t.name===e));return t&&kre(e,iie(t.extension),t.kind,[$G(e)])}case 1:{const a=P(n.symbols,(t=>t.name===e));return a&&xre(a,a.name,i,r,t,o)}case 2:return P(n.types,(t=>t.value===e))?kre(e,"","string",[$G(e)]):void 0;default:return In.assertNever(n)}}(e,r,_,t,i,s)}function rie(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map((({name:e,kind:t,span:n,extension:r})=>({name:e,kind:t,kindModifiers:iie(r),sortText:Mne.LocationPriority,replacementSpan:n})))}}function iie(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return In.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return In.assertNever(e)}}function oie(e,t,n,r,i,o,a){const s=aie(t.parent);switch(s.kind){case 198:{const _=aie(s.parent);switch(_.kind){case 230:case 180:{const e=Ec(s,(e=>e.parent===_));return e?{kind:2,types:cie(r.getTypeArgumentConstraint(e)),isNewIdentifier:!1}:void 0}case 196:const{indexType:l,objectType:u}=_;if(!JH(l,n))return;return sie(r.getTypeFromTypeNode(u));case 202:return{kind:0,paths:die(e,t,i,o,r,a)};case 189:{if(!nD(_.parent))return;const e=(c=s,Z(_.types,(e=>e!==c&&xD(e)&&sw(e.literal)?e.literal.text:void 0)));return{kind:2,types:cie(r.getTypeArgumentConstraint(_)).filter((t=>!R(e,t.value))),isNewIdentifier:!1}}default:return}}case 299:return ED(s.parent)&&s.name===t?function(e,t){const n=e.getContextualType(t);if(!n)return;return{kind:1,symbols:Lre(n,e.getContextualType(t,4),t,e),hasIndexSignature:jX(n)}}(r,s.parent):_()||_(0);case 209:{const{expression:e,argumentExpression:n}=s;return t===Hh(n)?sie(r.getTypeAtLocation(e)):void 0}case 210:case 211:case 288:if(!function(e){return PD(e.parent)&&Oe(e.parent.arguments)===e&&Tw(e.parent.expression)&&"require"===e.parent.expression.escapedText}(t)&&!sm(s)){const i=nue.getArgumentInfoForCompletions(288===s.kind?s.parent:t,n,e);return i&&function(e,t,n,r){let i=!1;const o=new Map,a=[],s=Ju(e)?In.checkDefined(Ec(t.parent,uN)):t;r.getResolvedSignatureForStringLiteralCompletions(e,s,a);const c=H(a,(t=>{if(!XB(t)&&n.argumentCount>t.parameters.length)return;let a=t.getTypeParameterAtPosition(n.argumentIndex);if(Ju(e)){const e=r.getTypeOfPropertyOfType(a,s.name.text);e&&(a=e)}return i=i||!!(4&a.flags),cie(a,o)}));return S(c)?{kind:2,types:c,isNewIdentifier:i}:void 0}(i.invocation,t,i,r)||_()}case 269:case 275:case 280:return{kind:0,paths:die(e,t,i,o,r,a)};case 292:const l=NY(r,s.parent.clauses),u=_();if(!u)return;return{kind:2,types:u.types.filter((e=>!l.hasValue(e.value))),isNewIdentifier:!1};default:return _()||_(0)}var c;function _(e=4){const n=cie(LX(t,r,e));if(n.length)return{kind:2,types:n,isNewIdentifier:!1}}}function aie(e){switch(e.kind){case 193:return Vh(e);case 214:return Qh(e);default:return e}}function sie(e){return e&&{kind:1,symbols:z(e.getApparentProperties(),(e=>!(e.valueDeclaration&&fl(e.valueDeclaration)))),hasIndexSignature:jX(e)}}function cie(e,t=new Map){return e?(e=cG(e)).isUnion()?H(e.types,(e=>cie(e,t))):!e.isStringLiteral()||1024&e.flags||!$x(t,e.value)?r:[e]:r}function _ie(e,t,n){return{name:e,kind:t,extension:n}}function lie(e){return _ie(e,"directory",void 0)}function uie(e,t,n){const r=function(e,t){const n=Math.max(e.lastIndexOf(zo),e.lastIndexOf(Uo)),r=-1!==n?n+1:0,i=e.length-r;return 0===i||Us(e.substr(r,i),99)?void 0:dc(t+r,i)}(e,t),i=0===e.length?void 0:dc(t,e.length);return n.map((({name:e,kind:t,extension:n})=>-1!==Math.max(e.indexOf(zo),e.indexOf(Uo))?{name:e,kind:t,extension:n,span:i}:{name:e,kind:t,extension:n,span:r}))}function die(e,t,n,i,o,a){return uie(t.text,t.getStart(e)+1,function(e,t,n,i,o,a){const s=pa(t.text),c=ed(t)?gq(e,t):void 0,_=e.path,l=sa(_),u=pie(n,1,e,o,a,c);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){const t=e.length>=3&&46===e.charCodeAt(1)?2:1,n=e.charCodeAt(t);return 47===n||92===n}return!1}(s)||!n.baseUrl&&($o(s)||Ho(s))?function(e,t,n,r,i,o){return n.rootDirs?function(e,t,n,r,i,o,a){return H(function(e,t,n,r){const i=A(e=e.map((e=>va($o(e)?e:ma(t,e)))),(e=>Na(e,n,t,r)?n.substr(e.length):void 0));return fe([...e.map((e=>ma(e,i))),n],Bt,Qt)}(e,i.project||o.getCurrentDirectory(),n,!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames())),(e=>Ze(mie(t,e,r,o,!0,a).values())))}(n.rootDirs,e,t,o,n,r,i):Ze(mie(e,t,o,r,!1,i).values())}(s,l,n,i,_,u):function(e,t,n,i,o,a,s){const{baseUrl:c,paths:_}=i,l=eie(),u=Jk(i);if(c){const t=va(ma(i.project||o.getCurrentDirectory(),c));mie(e,t,a,o,!1,void 0,l),_&&hie(l,e,t,a,o,_)}const d=bie(e);for(const t of function(e,t,n){const r=n.getAmbientModules().map((e=>cv(e.name))).filter((t=>fn(t,e)&&t.indexOf("*")<0));if(void 0!==t){const e=Sa(t);return r.map((t=>mn(t,e)))}return r}(e,d,s))l.add(_ie(t,"external module name",void 0));if(Tie(o,i,t,d,a,l),mG(u)){let s=!1;if(void 0===d)for(const e of function(e,t){if(!e.readFile||!e.fileExists)return r;const n=[];for(const r of eY(t,e)){const t=ix(r,e);for(const e of Yre){const r=t[e];if(r)for(const e in r)We(r,e)&&!fn(e,"@types/")&&n.push(e)}}return n}(o,t)){const t=_ie(e,"external module name",void 0);l.has(t.name)||(s=!0,l.add(t))}if(!s){let r=t=>{const n=ma(t,"node_modules");XX(o,n)&&mie(e,n,a,o,!1,void 0,l)};if(d&&Yk(i)){const t=r;r=r=>{const i=ua(e);i.shift();let s=i.shift();if(!s)return t(r);if(fn(s,"@")){const e=i.shift();if(!e)return t(r);s=ma(s,e)}const c=ma(r,"node_modules",s),_=ma(c,"package.json");if(GX(o,_)){const t=ix(_,o).exports;if(t){if("object"!=typeof t||null===t)return;const r=$e(t),s=i.join("/")+(i.length&&ra(e)?"/":""),_=99===n?["node","import","types"]:["node","require","types"];return void yie(l,s,c,a,o,r,(e=>kn(vie(t[e],_))),gR)}}return t(r)}}Ra(t,r)}}return Ze(l.values())}(s,l,c,n,i,u,o)}(e,t,n,i,o,a))}function pie(e,t,n,r,i,o){return{extensionsToSearch:W(fie(e,r)),referenceKind:t,importingSourceFile:n,endingPreference:null==i?void 0:i.importModuleSpecifierEnding,resolutionMode:o}}function fie(e,t){const n=t?Z(t.getAmbientModules(),(e=>{const t=e.name.slice(1,-1);if(t.startsWith("*.")&&!t.includes("/"))return t.slice(1)})):[],r=[...IS(e),n];return mG(Jk(e))?OS(e,r):r}function mie(e,t,n,r,i,o,a=eie()){var s;void 0===e&&(e=""),ra(e=pa(e))||(e=sa(e)),""===e&&(e="."+zo);const c=ga(t,e=Sa(e)),_=ra(c)?c:sa(c);if(!i){const e=tY(_,r);if(e){const t=ix(e,r).typesVersions;if("object"==typeof t){const i=null==(s=yM(t))?void 0:s.paths;if(i){const t=sa(e);if(hie(a,c.slice(Sa(t).length),t,n,r,i))return a}}}}const l=!(r.useCaseSensitiveFileNames&&r.useCaseSensitiveFileNames());if(!XX(r,_))return a;const u=$X(r,_,n.extensionsToSearch,void 0,["./*"]);if(u)for(let e of u){if(e=va(e),o&&0===Ea(e,o,t,l))continue;const{name:i,extension:s}=gie(ca(e),r.getCompilationSettings(),n);a.add(_ie(i,"script",s))}const d=HX(r,_);if(d)for(const e of d){const t=ca(va(e));"@types"!==t&&a.add(lie(t))}return a}function gie(e,t,n){const r=CB.tryGetRealFileNameForNonJsDeclarationFileName(e);if(r)return{name:r,extension:ZS(r)};if(0===n.referenceKind)return{name:e,extension:ZS(e)};const i=BS(n.endingPreference,n.resolutionMode,t,n.importingSourceFile);if(3===i){if(na(e,Xd))return{name:e,extension:ZS(e)};const n=CB.tryGetJSExtensionForFile(e,t);return n?{name:QS(e,n),extension:n}:{name:e,extension:ZS(e)}}if((0===i||1===i)&&na(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:US(e),extension:ZS(e)};const o=CB.tryGetJSExtensionForFile(e,t);return o?{name:QS(e,o),extension:o}:{name:e,extension:ZS(e)}}function hie(e,t,n,r,i,o){return yie(e,t,n,r,i,$e(o),(e=>o[e]),((e,t)=>{const n=KS(e),r=KS(t),i="object"==typeof n?n.prefix.length:e.length;return Jt("object"==typeof r?r.prefix.length:t.length,i)}))}function yie(e,t,n,r,i,o,a,s){let c,_=[];for(const e of o){if("."===e)continue;const o=e.replace(/^\.\//,""),l=a(e);if(l){const a=KS(o);if(!a)continue;const u="object"==typeof a&&hn(a,t);u&&(void 0===c||-1===s(e,c))&&(c=e,_=_.filter((e=>!e.matchedPattern))),"string"!=typeof a&&void 0!==c&&1===s(e,c)||_.push({matchedPattern:u,results:xie(o,l,t,n,r,i).map((({name:e,kind:t,extension:n})=>_ie(e,t,n)))})}}return _.forEach((t=>t.results.forEach((t=>e.add(t))))),void 0!==c}function vie(e,t){if("string"==typeof e)return e;if(e&&"object"==typeof e&&!ht(e))for(const n in e)if("default"===n||t.indexOf(n)>-1||vR(t,n))return vie(e[n],t)}function bie(e){return Cie(e)?ra(e)?e:sa(e):void 0}function xie(e,t,n,i,o,a){if(!en(e,"*"))return rn(e,"*")?r:_(e,"script");const s=e.slice(0,e.length-1),c=gn(n,s);return void 0===c?"/"===e[e.length-2]?_(s,"directory"):H(t,(e=>{var t;return null==(t=kie("",i,e,o,a))?void 0:t.map((({name:e,...t})=>({name:s+e,...t})))})):H(t,(e=>kie(c,i,e,o,a)));function _(e,t){return fn(e,n)?[{name:ka(e),kind:t,extension:void 0}]:r}}function kie(e,t,n,i,o){if(!o.readDirectory)return;const a=KS(n);if(void 0===a||vt(a))return;const s=ga(a.prefix),c=ra(a.prefix)?s:sa(s),_=ra(a.prefix)?"":ca(s),l=Cie(e),u=l?ra(e)?e:sa(e):void 0,d=l?ma(c,_+u):c,p=va(a.suffix),f=va(ma(t,d)),m=l?f:Sa(f)+_,g=p?"**/*"+p:"./*";return[...Z($X(o,f,i.extensionsToSearch,void 0,[g]),(e=>{const t=function(e){const t=(n=va(e),i=p,fn(n,r=m)&&en(n,i)?n.slice(r.length,n.length-i.length):void 0);var n,r,i;return void 0===t?void 0:Sie(t)}(e);if(t){if(Cie(t))return lie(ua(Sie(t))[1]);const{name:e,extension:n}=gie(t,o.getCompilationSettings(),i);return _ie(e,"script",n)}})),...p?r:Z(HX(o,f),(e=>"node_modules"===e?void 0:lie(e)))]}function Sie(e){return e[0]===zo?e.slice(1):e}function Tie(e,t,n,i,o,a=eie()){const s=new Map,c=YX((()=>vM(t,e)))||r;for(const e of c)_(e);for(const t of eY(n,e))_(ma(sa(t),"node_modules/@types"));return a;function _(n){if(XX(e,n))for(const r of HX(e,n)){const c=DR(r);if(!t.types||R(t.types,c))if(void 0===i)s.has(c)||(a.add(_ie(c,"external module name",void 0)),s.set(c,!0));else{const t=ma(n,r),s=hS(i,c,gv(e));void 0!==s&&mie(s,t,o,e,!1,void 0,a)}}}}function Cie(e){return rn(e,zo)}var Aie=b({"src/services/stringCompletions.ts"(){lfe(),Pie(),Gre={directory:0,script:1,"external module name":2},Xre=/^(\/\/\/\s*nie,getStringLiteralCompletions:()=>tie});var Die=b({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){Aie()}}),Eie={};x(Eie,{CompletionKind:()=>jne,CompletionSource:()=>Rne,SortText:()=>Mne,StringCompletions:()=>wie,SymbolOriginInfoKind:()=>Bne,createCompletionDetails:()=>kre,createCompletionDetailsForSymbol:()=>xre,getCompletionEntriesFromSymbols:()=>hre,getCompletionEntryDetails:()=>vre,getCompletionEntrySymbol:()=>Sre,getCompletionsAtPosition:()=>Gne,getPropertiesForObjectExpression:()=>Lre,moduleSpecifierResolutionCacheAttemptLimit:()=>Lne,moduleSpecifierResolutionLimit:()=>One});var Nie,Fie,Pie=b({"src/services/_namespaces/ts.Completions.ts"(){Zre(),Die()}});function Iie(e,t,n,r){const i=function(e,t,n){const r=new Map;for(const i of e)n&&n.throwIfCancellationRequested(),Rie(i,((e,n)=>{const i=t.getSymbolAtLocation(n);if(i){const t=VB(i).toString();let n=r.get(t);n||r.set(t,n=[]),n.push(e)}}));return r}(e,n,r);return(o,a,s)=>{const{directImports:c,indirectUsers:_}=function(e,t,n,{exportingModuleSymbol:r,exportKind:i},o,a){const s=oG(),c=oG(),_=[],l=!!r.globalExports,u=l?void 0:[];return function e(t){const n=m(t);if(n)for(const t of n)if(s(t))switch(a&&a.throwIfCancellationRequested(),t.kind){case 210:if(sm(t)){f(Ec(r=t,Uie)||r.getSourceFile(),!!d(r,!0));break}if(!l){const e=t.parent;if(2===i&&257===e.kind){const{name:t}=e;if(79===t.kind){_.push(t);break}}}break;case 79:break;case 268:p(t,t.name,cb(t,1),!1);break;case 269:_.push(t);const n=t.importClause&&t.importClause.namedBindings;n&&271===n.kind?p(t,n.name,!1,!0):!l&&mh(t)&&f(zie(t));break;case 275:t.exportClause?277===t.exportClause.kind?f(zie(t),!0):_.push(t):e(Jie(t,o));break;case 202:!l&&t.isTypeOf&&!t.qualifier&&d(t)&&f(t.getSourceFile(),!0),_.push(t);break;default:In.failBadSyntaxKind(t,"Unexpected import kind.")}var r}(r),{directImports:_,indirectUsers:function(){if(l)return e;if(r.declarations)for(const e of r.declarations)vf(e)&&t.has(e.getSourceFile().fileName)&&f(e);return u.map(wp)}()};function d(e,t=!1){return Ec(e,(e=>t&&Uie(e)?"quit":LP(e)&&_e(e.modifiers,Aw)))}function p(e,t,n,r){if(2===i)r||_.push(e);else if(!l){const r=zie(e);In.assert(308===r.kind||264===r.kind),n||function(e,t,n){const r=n.getSymbolAtLocation(t);return!!Mie(e,(e=>{if(!$E(e))return;const{exportClause:t,moduleSpecifier:i}=e;return!i&&t&&GE(t)&&t.elements.some((e=>n.getExportSpecifierLocalTargetSymbol(e)===r))}))}(r,t,o)?f(r,!0):f(r)}}function f(e,t=!1){if(In.assert(!l),!c(e))return;if(u.push(e),!t)return;const n=o.getMergedSymbol(e.symbol);if(!n)return;In.assert(!!(1536&n.flags));const r=m(n);if(r)for(const e of r)kD(e)||f(zie(e),!0)}function m(e){return n.get(VB(e).toString())}}(e,t,i,a,n,r);return{indirectUsers:_,...Oie(c,o,a.exportKind,n,s)}}}function Oie(e,t,n,r,i){const o=[],a=[];function s(e,t){o.push([e,t])}if(e)for(const t of e)c(t);return{importSearches:o,singleReferences:a};function c(e){if(268===e.kind)return void(qie(e)&&_(e.name));if(79===e.kind)return void _(e);if(202===e.kind){if(e.qualifier){const n=Ub(e.qualifier);n.escapedText===Mc(t)&&a.push(n)}else 2===n&&a.push(e.argument.literal);return}if(10!==e.moduleSpecifier.kind)return;if(275===e.kind)return void(e.exportClause&&GE(e.exportClause)&&l(e.exportClause));const{name:o,namedBindings:c}=e.importClause||{name:void 0,namedBindings:void 0};if(c)switch(c.kind){case 271:_(c.name);break;case 272:0!==n&&1!==n||l(c);break;default:In.assertNever(c)}!o||1!==n&&2!==n||i&&o.escapedText!==SG(t)||s(o,r.getSymbolAtLocation(o))}function _(e){2!==n||i&&!u(e.escapedText)||s(e,r.getSymbolAtLocation(e))}function l(e){if(e)for(const n of e.elements){const{name:e,propertyName:o}=n;u((o||e).escapedText)&&(o?(a.push(o),i&&e.escapedText!==t.escapedName||s(e,r.getSymbolAtLocation(e))):s(e,278===n.kind&&n.propertyName?r.getExportSpecifierLocalTargetSymbol(n):r.getSymbolAtLocation(e)))}}function u(e){return e===t.escapedName||0!==n&&"default"===e}}function Lie(e,t,n){var r;const i=[],o=e.getTypeChecker();for(const a of t){const t=n.valueDeclaration;if(308===(null==t?void 0:t.kind)){for(const n of a.referencedFiles)e.getSourceFileFromReference(a,n)===t&&i.push({kind:"reference",referencingFile:a,ref:n});for(const n of a.typeReferenceDirectives){const o=null==(r=e.getResolvedTypeReferenceDirectives().get(n.fileName,n.resolutionMode||a.impliedNodeFormat))?void 0:r.resolvedTypeReferenceDirective;void 0!==o&&o.resolvedFileName===t.fileName&&i.push({kind:"reference",referencingFile:a,ref:n})}}Rie(a,((e,t)=>{o.getSymbolAtLocation(t)===n&&i.push({kind:"import",literal:t})}))}return i}function Mie(e,t){return T(308===e.kind?e.statements:e.body.statements,(e=>t(e)||Uie(e)&&T(e.body&&e.body.statements,t)))}function Rie(e,t){if(e.externalModuleIndicator||void 0!==e.imports)for(const n of e.imports)t(uh(n),n);else Mie(e,(e=>{switch(e.kind){case 275:case 269:{const n=e;n.moduleSpecifier&&sw(n.moduleSpecifier)&&t(n,n.moduleSpecifier);break}case 268:{const n=e;qie(n)&&t(n,n.moduleReference.expression);break}}}))}function Bie(e,t,n,r){return r?i():i()||function(){if(!function(e){const{parent:t}=e;switch(t.kind){case 268:return t.name===e&&qie(t);case 273:return!t.propertyName;case 270:case 271:return In.assert(t.name===e),!0;case 205:return Sg(e)&&Ng(t.parent.parent);default:return!1}}(e))return;let r=n.getImmediateAliasedSymbol(t);if(!r)return;if(r=function(e,t){if(e.declarations)for(const n of e.declarations){if(XE(n)&&!n.propertyName&&!n.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(n)||e;if(ND(n)&&Wg(n.expression)&&!Cw(n.name))return t.getSymbolAtLocation(n);if(bN(n)&&QD(n.parent.parent)&&2===Hg(n.parent.parent))return t.getExportSpecifierLocalTargetSymbol(n.name)}return e}(r,n),"export="===r.escapedName&&(r=function(e,t){var n,r;if(2097152&e.flags)return t.getImmediateAliasedSymbol(e);const i=In.checkDefined(e.valueDeclaration);return HE(i)?null==(n=xt(i.expression,Au))?void 0:n.symbol:QD(i)?null==(r=xt(i.right,Au))?void 0:r.symbol:TN(i)?i.symbol:void 0}(r,n),void 0===r))return;const i=SG(r);return void 0===i||"default"===i||i===t.escapedName?{kind:0,symbol:r}:void 0}();function i(){var i;const{parent:s}=e,c=s.parent;if(t.exportSymbol)return 208===s.kind?(null==(i=t.declarations)?void 0:i.some((e=>e===s)))&&QD(c)?l(c,!1):void 0:o(t.exportSymbol,a(s));{const i=function(e,t){const n=wE(e)?e:wD(e)?kc(e):void 0;return n?e.name!==t||yN(n.parent)?void 0:_E(n.parent.parent)?n.parent.parent:void 0:e}(s,e);if(i&&cb(i,1)){if(BE(i)&&i.moduleReference===e){if(r)return;return{kind:0,symbol:n.getSymbolAtLocation(i.name)}}return o(t,a(i))}if(QE(s))return o(t,0);if(HE(s))return _(s);if(HE(c))return _(c);if(QD(s))return l(s,!0);if(QD(c))return l(c,!0);if(cF(s)||WN(s))return o(t,0)}function _(e){if(!e.symbol.parent)return;const n=e.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:e.symbol.parent,exportKind:n}}}function l(e,r){let i;switch(Hg(e)){case 1:i=0;break;case 2:i=2;break;default:return}const a=r?n.getSymbolAtLocation(Zx(kt(e.left,Yx))):t;return a&&o(a,i)}}function o(e,t){const r=jie(e,t,n);return r&&{kind:1,symbol:e,exportInfo:r}}function a(e){return cb(e,1024)?1:0}}function jie(e,t,n){const r=e.parent;if(!r)return;const i=n.getMergedSymbol(r);return iG(i)?{exportingModuleSymbol:i,exportKind:t}:void 0}function Jie(e,t){return t.getMergedSymbol(zie(e).symbol)}function zie(e){if(210===e.kind)return e.getSourceFile();const{parent:t}=e;return 308===t.kind?t:(In.assert(265===t.kind),kt(t.parent,Uie))}function Uie(e){return 264===e.kind&&10===e.name.kind}function qie(e){return 280===e.moduleReference.kind&&10===e.moduleReference.expression.kind}var Vie,Qie,Kie,Wie,Hie=b({"src/services/importTracker.ts"(){lfe(),Nie=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(Nie||{}),Fie=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(Fie||{})}});function $ie(e,t=1){return{kind:t,node:e.name||e,context:Xie(e)}}function Gie(e){return e&&void 0===e.kind}function Xie(e){if(Nu(e))return Yie(e);if(e.parent){if(!Nu(e.parent)&&!HE(e.parent)){if(Sg(e)){const t=QD(e.parent)?e.parent:Yx(e.parent)&&QD(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(t&&0!==Hg(t))return Yie(t)}if(aN(e.parent)||sN(e.parent))return e.parent.parent;if(oN(e.parent)||SE(e.parent)||V_(e.parent))return e.parent;if(ed(e)){const t=dh(e);if(t){const e=Ec(t,(e=>Nu(e)||Iu(e)||Vu(e)));return Nu(e)?Yie(e):e}}const t=Ec(e,Jw);return t?Yie(t.parent):void 0}return e.parent.name===e||$w(e.parent)||HE(e.parent)||(al(e.parent)||wD(e.parent))&&e.parent.propertyName===e||88===e.kind&&cb(e.parent,1025)?Yie(e.parent):void 0}}function Yie(e){if(e)switch(e.kind){case 257:return DE(e.parent)&&1===e.parent.declarations.length?_E(e.parent.parent)?e.parent.parent:hu(e.parent.parent)?Yie(e.parent.parent):e.parent:e;case 205:return Yie(e.parent.parent);case 273:return e.parent.parent.parent;case 278:case 271:return e.parent.parent;case 270:case 277:return e.parent;case 223:return uE(e.parent)?e.parent:e;case 247:case 246:return{start:e.initializer,end:e.expression};case 299:case 300:return q$(e.parent)?Yie(Ec(e.parent,(e=>QD(e)||hu(e)))):e;default:return e}}function Zie(e,t,n){if(!n)return;const r=Gie(n)?foe(n.start,t,n.end):foe(n,t);return r.start!==e.start||r.length!==e.length?{contextSpan:r}:void 0}function eoe(e,t,n,r,i){const o=_$(r,i),a={use:1},s=Wie.getReferencedSymbolsForNode(i,o,e,n,t,a),c=e.getTypeChecker(),_=Wie.getAdjustedNode(o,a),l=function(e){return 88===e.kind||!!Yh(e)||Zh(e)||135===e.kind&&$w(e.parent)}(_)?c.getSymbolAtLocation(_):void 0;return s&&s.length?Z(s,(({definition:e,references:n})=>e&&{definition:c.runWithCancellationToken(t,(t=>function(e,t,n){const r=(()=>{switch(e.type){case 0:{const{symbol:r}=e,{displayParts:i,kind:o}=soe(r,t,n),a=i.map((e=>e.text)).join(""),s=r.declarations&&Oe(r.declarations);return{...aoe(s?qc(s)||s:n),name:a,kind:o,displayParts:i,context:Yie(s)}}case 1:{const{node:t}=e;return{...aoe(t),name:t.text,kind:"label",displayParts:[zG(t.text,17)]}}case 2:{const{node:t}=e,n=_s(t.kind);return{...aoe(t),name:n,kind:"keyword",displayParts:[{text:n,kind:"keyword"}]}}case 3:{const{node:n}=e,r=t.getSymbolAtLocation(n),i=r&&Cue.getSymbolDisplayPartsDocumentationAndSymbolKind(t,r,n.getSourceFile(),OH(n),n).displayParts||[$G("this")];return{...aoe(n),name:"this",kind:"var",displayParts:i}}case 4:{const{node:t}=e;return{...aoe(t),name:t.text,kind:"var",displayParts:[zG(ef(t),8)]}}case 5:return{textSpan:X$(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[zG(`"${e.reference.fileName}"`,8)]};default:return In.assertNever(e)}})(),{sourceFile:i,textSpan:o,name:a,kind:s,displayParts:c,context:_}=r;return{containerKind:"",containerName:"",fileName:i.fileName,kind:s,name:a,textSpan:o,displayParts:c,...Zie(o,i,_)}}(e,t,o))),references:n.map((e=>function(e,t){const n=_oe(e);return t?{...n,isDefinition:0!==e.kind&&hoe(e.node,t)}:n}(e,l)))})):void 0}function toe(e,t,n,r,i){const o=_$(r,i);let a;const s=noe(e,t,n,o,i);if(208===o.parent.kind||205===o.parent.kind||209===o.parent.kind||106===o.kind)a=s&&[...s];else if(s){const r=mt(s),i=new Map;for(;!r.isEmpty();){const o=r.dequeue();if(!$x(i,qB(o.node)))continue;a=Se(a,o);const s=noe(e,t,n,o.node,o.node.pos);s&&r.enqueue(...s)}}const c=e.getTypeChecker();return V(a,(e=>function(e,t){const n=loe(e);if(0!==e.kind){const{node:r}=e;return{...n,...doe(r,t)}}return{...n,kind:"",displayParts:[]}}(e,c)))}function noe(e,t,n,r,i){if(308===r.kind)return;const o=e.getTypeChecker();if(300===r.parent.kind){const e=[];return Wie.getReferenceEntriesForShorthandPropertyAssignment(r,o,(t=>e.push($ie(t)))),e}if(106===r.kind||Zm(r.parent)){const e=o.getSymbolAtLocation(r);return e.valueDeclaration&&[$ie(e.valueDeclaration)]}return ioe(i,r,e,n,t,{implementations:!0,use:1})}function roe(e,t,n,r,i,o,a){return V(ooe(Wie.getReferencedSymbolsForNode(i,r,e,n,t,o)),(t=>a(t,r,e.getTypeChecker())))}function ioe(e,t,n,r,i,o={},a=new Set(r.map((e=>e.fileName)))){return ooe(Wie.getReferencedSymbolsForNode(e,t,n,r,i,o,a))}function ooe(e){return e&&H(e,(e=>e.references))}function aoe(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:foe(Jw(e)?e.expression:e,t)}}function soe(e,t,n){const r=Wie.getIntersectingMeaningFromDeclarations(n,e),i=e.declarations&&Oe(e.declarations)||n,{displayParts:o,symbolKind:a}=Cue.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,i.getSourceFile(),i,i,r);return{displayParts:o,kind:a}}function coe(e,t,n,r){return{...loe(e),...r&&uoe(e,t,n)}}function _oe(e){const t=loe(e);if(0===e.kind)return{...t,isWriteAccess:!1};const{kind:n,node:r}=e;return{...t,isWriteAccess:goe(r),isInString:2===n||void 0}}function loe(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),n=foe(e.node,t);return{textSpan:n,fileName:t.fileName,...Zie(n,t,e.context)}}}function uoe(e,t,n){if(0!==e.kind&&Tw(t)){const{node:r,kind:i}=e,o=r.parent,a=t.text,s=bN(o);if(s||CG(o)&&o.name===r&&void 0===o.dotDotDotToken){const e={prefixText:a+": "},t={suffixText:": "+a};if(3===i)return e;if(4===i)return t;if(s){const n=o.parent;return ED(n)&&QD(n.parent)&&Wg(n.parent.left)?e:t}return e}if(WE(o)&&!o.propertyName)return R((XE(t.parent)?n.getExportSpecifierLocalTargetSymbol(t.parent):n.getSymbolAtLocation(t)).declarations,o)?{prefixText:a+" as "}:DW;if(XE(o)&&!o.propertyName)return t===e.node||n.getSymbolAtLocation(t)===n.getSymbolAtLocation(e.node)?{prefixText:a+" as "}:{suffixText:" as "+a}}return DW}function doe(e,t){const n=t.getSymbolAtLocation(Nu(e)&&e.name?e.name:e);return n?soe(n,t,e):207===e.kind?{kind:"interface",displayParts:[VG(20),$G("object literal"),VG(21)]}:228===e.kind?{kind:"local class",displayParts:[VG(20),$G("anonymous local class"),VG(21)]}:{kind:LH(e),displayParts:[]}}function poe(e){const t=loe(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const n=goe(e.node),r={textSpan:t.textSpan,kind:n?"writtenReference":"reference",isInString:2===e.kind||void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:r}}function foe(e,t,n){let r=e.getStart(t),i=(n||e).getEnd();return ed(e)&&i-r>2&&(In.assert(void 0===n),r+=1,i-=1),pc(r,i)}function moe(e){return 0===e.kind?e.textSpan:foe(e.node,e.node.getSourceFile())}function goe(e){const t=Yh(e);return!!t&&function(e){if(16777216&e.flags)return!0;switch(e.kind){case 223:case 205:case 260:case 228:case 88:case 263:case 302:case 278:case 270:case 268:case 273:case 261:case 341:case 349:case 288:case 264:case 267:case 271:case 277:case 166:case 300:case 262:case 165:return!0;case 299:return!q$(e.parent);case 259:case 215:case 173:case 171:case 174:case 175:return!!e.body;case 257:case 169:return!!e.initializer||yN(e.parent);case 170:case 168:case 351:case 344:return!1;default:return In.failBadSyntaxKind(e)}}(t)||88===e.kind||Mx(e)}function hoe(e,t){var n;if(!t)return!1;const r=Yh(e)||(88===e.kind?e.parent:Zh(e)||135===e.kind&&$w(e.parent)?e.parent.parent:void 0),i=r&&QD(r)?r.left:void 0;return!(!r||!(null==(n=t.declarations)?void 0:n.some((e=>e===r||e===i))))}var yoe=b({"src/services/findAllReferences.ts"(){lfe(),boe(),Vie=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(Vie||{}),Qie=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(Qie||{}),Kie=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(Kie||{}),(e=>{function t(e,t){return 1===t.use?e=s$(e):2===t.use&&(e=c$(e)),e}function n(e,t,n){let i;const o=t.get(e.path)||r;for(const e of o)if(Cq(e)){const t=n.getSourceFileByPath(e.file),r=wq(n.getSourceFileByPath,e);Aq(r)&&(i=Se(i,{kind:0,fileName:t.fileName,textSpan:X$(r)}))}return i}function i(e,t,n){if(e.parent&&RE(e.parent)){const e=n.getAliasedSymbol(t),r=n.getMergedSymbol(e);if(e!==r)return r}}function o(e,t,n,r,i,o){const s=1536&e.flags&&e.declarations&&P(e.declarations,TN);if(!s)return;const _=e.exports.get("export="),u=c(t,e,!!_,n,o);if(!_||!o.has(s.fileName))return u;const d=t.getTypeChecker();return a(t,u,l(e=Ix(_,d),void 0,n,o,d,r,i))}function a(e,...t){let n;for(const r of t)if(r&&r.length)if(n)for(const t of r){if(!t.definition||0!==t.definition.type){n.push(t);continue}const r=t.definition.symbol,i=O(n,(e=>!!e.definition&&0===e.definition.type&&e.definition.symbol===r));if(-1===i){n.push(t);continue}const o=n[i];n[i]={definition:o.definition,references:o.references.concat(t.references).sort(((t,n)=>{const r=s(e,t),i=s(e,n);if(r!==i)return Jt(r,i);const o=moe(t),a=moe(n);return o.start!==a.start?Jt(o.start,a.start):Jt(o.length,a.length)}))}}else n=r;return n}function s(e,t){const n=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(n)}function c(e,t,n,i,o){In.assert(!!t.valueDeclaration);const a=Z(Lie(e,i,t),(e=>{if("import"===e.kind){const t=e.literal.parent;if(xD(t)){const e=kt(t.parent,kD);if(n&&!e.qualifier)return}return $ie(e.literal)}return{kind:0,fileName:e.referencingFile.fileName,textSpan:X$(e.ref)}}));if(t.declarations)for(const e of t.declarations)switch(e.kind){case 308:break;case 264:o.has(e.getSourceFile().fileName)&&a.push($ie(e.name));break;default:In.assert(!!(33554432&t.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const s=t.exports.get("export=");if(null==s?void 0:s.declarations)for(const e of s.declarations){const t=e.getSourceFile();if(o.has(t.fileName)){const n=QD(e)&&ND(e.left)?e.left.expression:HE(e)?In.checkDefined(YH(e,93,t)):qc(e)||e;a.push($ie(n))}}return a.length?[{definition:{type:0,symbol:t},references:a}]:r}function _(e){return 146===e.kind&&yD(e.parent)&&146===e.parent.operator}function l(e,t,n,r,i,o,a){const s=t&&function(e,t,n,r){const{parent:i}=t;return XE(i)&&r?N(t,e,i,n):A(e.declarations,(r=>{if(!r.parent){if(33554432&e.flags)return;In.fail(`Unexpected symbol at ${In.formatSyntaxKind(t.kind)}: ${In.formatSymbol(e)}`)}return aD(r.parent)&&dD(r.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(r.parent.parent),e.name):void 0}))}(e,t,i,!W(a))||e,c=t?V(t,s):7,_=[],l=new m(n,r,t?function(e){switch(e.kind){case 173:case 135:return 1;case 79:if(Fl(e.parent))return In.assert(e.parent.name===e),2;default:return 0}}(t):0,i,o,c,a,_),d=W(a)&&s.declarations?P(s.declarations,XE):void 0;if(d)E(d.name,s,d,l.createSearch(t,e,void 0),l,!0,!0);else if(t&&88===t.kind&&"default"===s.escapedName&&s.parent)F(t,s,l),g(t,s,{exportingModuleSymbol:s.parent,exportKind:1},l);else{const e=l.createSearch(t,s,void 0,{allSearchSymbols:t?J(s,t,i,2===a.use,!!a.providePrefixAndSuffixTextForRename,!!a.implementations):[s]});u(s,l,e)}return _}function u(e,t,n){const r=function(e){const{declarations:t,flags:n,parent:r,valueDeclaration:i}=e;if(i&&(215===i.kind||228===i.kind))return i;if(!t)return;if(8196&n){const e=P(t,(e=>sb(e,8)||fl(e)));return e?py(e,260):void 0}if(t.some(CG))return;const o=r&&!(262144&e.flags);if(o&&(!iG(r)||r.globalExports))return;let a;for(const e of t){const t=OH(e);if(a&&a!==t)return;if(!t||308===t.kind&&!em(t))return;if(a=t,RD(a)){let e;for(;e=Nh(a);)a=e}}return o?a.getSourceFile():a}(e);if(r)C(r,r.getSourceFile(),n,t,!(TN(r)&&!R(t.sourceFiles,r)));else for(const e of t.sourceFiles)t.cancellationToken.throwIfCancellationRequested(),v(e,n,t)}let d;var p;function f(e){if(!(33555968&e.flags))return;const t=e.declarations&&P(e.declarations,(e=>!TN(e)&&!OE(e)));return t&&t.symbol}e.getReferencedSymbolsForNode=function(e,s,u,d,p,f={},m=new Set(d.map((e=>e.fileName)))){var g,h,y;if(TN(s=t(s,f))){const t=Loe.getReferenceAtPosition(s,e,u);if(!(null==t?void 0:t.file))return;const i=u.getTypeChecker().getMergedSymbol(t.file.symbol);if(i)return c(u,i,!1,d,m);const o=u.getFileIncludeReasons();if(!o)return;return[{definition:{type:5,reference:t.reference,file:s},references:n(t.file,o,u)||r}]}if(!f.implementations){const e=function(e,t,n){if(tG(e.kind)){if(114===e.kind&&zD(e.parent))return;if(146===e.kind&&!_(e))return;return function(e,t,n,r){const i=H(e,(e=>(n.throwIfCancellationRequested(),Z(x(e,_s(t),e),(e=>{if(e.kind===t&&(!r||r(e)))return $ie(e)})))));return i.length?[{definition:{type:2,node:i[0].node},references:i}]:void 0}(t,e.kind,n,146===e.kind?_:void 0)}if(cm(e.parent)&&e.parent.name===e)return function(e,t){const n=H(e,(e=>(t.throwIfCancellationRequested(),Z(x(e,"meta",e),(e=>{const t=e.parent;if(cm(t))return $ie(t)})))));return n.length?[{definition:{type:2,node:n[0].node},references:n}]:void 0}(t,n);if(Pw(e)&&Hw(e.parent))return[{definition:{type:2,node:e},references:[$ie(e)]}];if(SH(e)){const t=xH(e.parent,e.text);return t&&S(t.parent,t)}return TH(e)?S(e.parent,e):MH(e)?function(e,t,n){let r=Km(e,!1,!1),i=32;switch(r.kind){case 171:case 170:if(Pm(r)){i&=kb(r),r=r.parent;break}case 169:case 168:case 173:case 174:case 175:i&=kb(r),r=r.parent;break;case 308:if(wI(r)||j(e))return;case 259:case 215:break;default:return}const o=H(308===r.kind?t:[r.getSourceFile()],(e=>(n.throwIfCancellationRequested(),x(e,"this",TN(r)?e:r).filter((e=>{if(!MH(e))return!1;const t=Km(e,!1,!1);if(!Au(t))return!1;switch(r.kind){case 215:case 259:return r.symbol===t.symbol;case 171:case 170:return Pm(r)&&r.symbol===t.symbol;case 228:case 260:case 207:return t.parent&&Au(t.parent)&&r.symbol===t.parent.symbol&&_b(t)===!!i;case 308:return 308===t.kind&&!wI(t)&&!j(e)}}))))).map((e=>$ie(e)));return[{definition:{type:3,node:A(o,(e=>Uw(e.node.parent)?e.node:void 0))||e},references:o}]}(e,t,n):106===e.kind?function(e){let t=Gm(e,!1);if(!t)return;let n=32;switch(t.kind){case 169:case 168:case 171:case 170:case 173:case 174:case 175:n&=kb(t),t=t.parent;break;default:return}const r=Z(x(t.getSourceFile(),"super",t),(e=>{if(106!==e.kind)return;const r=Gm(e,!1);return r&&_b(r)===!!n&&r.parent.symbol===t.symbol?$ie(e):void 0}));return[{definition:{type:0,symbol:t.symbol},references:r}]}(e):void 0}(s,d,p);if(e)return e}const v=u.getTypeChecker(),b=v.getSymbolAtLocation($w(s)&&s.parent.name||s);if(!b){if(!f.implementations&&ed(s)){if(TG(s)){const e=u.getFileIncludeReasons(),t=null==(y=null==(h=null==(g=s.getSourceFile().resolvedModules)?void 0:g.get(s.text,gq(s.getSourceFile(),s)))?void 0:h.resolvedModule)?void 0:y.resolvedFileName,i=t?u.getSourceFile(t):void 0;if(i)return[{definition:{type:4,node:s},references:n(i,e,u)||r}]}return function(e,t,n,r){const i=r$(e,n),o=H(t,(t=>(r.throwIfCancellationRequested(),Z(x(t,e.text),(r=>{if(ed(r)&&r.text===e.text){if(!i)return lw(r)&&!fx(r,t)?void 0:$ie(r,2);{const e=r$(r,n);if(i!==n.getStringType()&&i===e)return $ie(r,2)}}})))));return[{definition:{type:4,node:e},references:o}]}(s,d,v,p)}return}if("export="===b.escapedName)return c(u,b.parent,!1,d,m);const k=o(b,u,d,p,f,m);if(k&&!(33554432&b.flags))return k;const T=i(s,b,v),C=T&&o(T,u,d,p,f,m);return a(u,k,l(b,s,d,m,v,p,f),C)},e.getAdjustedNode=t,e.getReferencesForFileName=function(e,t,i,o=new Set(i.map((e=>e.fileName)))){var a,s;const _=null==(a=t.getSourceFile(e))?void 0:a.symbol;if(_)return(null==(s=c(t,_,!1,i,o)[0])?void 0:s.references)||r;const l=t.getFileIncludeReasons(),u=t.getSourceFile(e);return u&&l&&n(u,l,t)||r},(p=d||(d={}))[p.None=0]="None",p[p.Constructor=1]="Constructor",p[p.Class=2]="Class";class m{constructor(e,t,n,r,i,o,a,s){this.sourceFiles=e,this.sourceFilesSet=t,this.specialSearchKind=n,this.checker=r,this.cancellationToken=i,this.searchMeaning=o,this.options=a,this.result=s,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=oG(),this.markSeenReExportRHS=oG(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(e){return this.sourceFilesSet.has(e.fileName)}getImportSearches(e,t){return this.importTracker||(this.importTracker=Iie(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,t,2===this.options.use)}createSearch(e,t,n,r={}){const{text:i=cv(Mc(Yb(t)||f(t)||t)),allSearchSymbols:o=[t]}=r,a=Pc(i),s=this.options.implementations&&e?function(e,t,n){const r=DH(e)?e.parent:void 0,i=r&&n.getTypeAtLocation(r.expression),o=Z(i&&(i.isUnionOrIntersection()?i.types:i.symbol===t.parent?void 0:[i]),(e=>e.symbol&&96&e.symbol.flags?e.symbol:void 0));return 0===o.length?void 0:o}(e,t,this.checker):void 0;return{symbol:t,comingFrom:n,text:i,escapedText:a,parents:s,allSearchSymbols:o,includes:e=>R(o,e)}}referenceAdder(e){const t=VB(e);let n=this.symbolIdToReferences[t];return n||(n=this.symbolIdToReferences[t]=[],this.result.push({definition:{type:0,symbol:e},references:n})),(e,t)=>n.push($ie(e,t))}addStringOrCommentReference(e,t){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:t}]})}markSearchedSymbols(e,t){const n=qB(e),r=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=new Set);let i=!1;for(const e of t)i=oe(r,VB(e))||i;return i}}function g(e,t,n,r){const{importSearches:i,singleReferences:o,indirectUsers:a}=r.getImportSearches(t,n);if(o.length){const e=r.referenceAdder(t);for(const t of o)h(t,r)&&e(t)}for(const[e,t]of i)T(e.getSourceFile(),r.createSearch(e,t,1),r);if(a.length){let i;switch(n.exportKind){case 0:i=r.createSearch(e,t,1);break;case 1:i=2===r.options.use?void 0:r.createSearch(e,t,1,{text:"default"})}if(i)for(const e of a)v(e,i,r)}}function h(e,t){return!(!w(e,t)||2===t.options.use&&(!Tw(e)||al(e.parent)&&"default"===e.escapedText))}function y(e,t){if(e.declarations)for(const n of e.declarations){const r=n.getSourceFile();T(r,t.createSearch(n,e,0),t,t.includesSourceFile(r))}}function v(e,t,n){void 0!==s2(e).get(t.escapedText)&&T(e,t,n)}function b(e,t,n,r,i=n){const o=vc(e.parent,e.parent.parent)?Me(t.getSymbolsOfParameterPropertyDeclaration(e.parent,e.text)):t.getSymbolAtLocation(e);if(o)for(const a of x(n,o.name,i)){if(!Tw(a)||a===e||a.escapedText!==e.escapedText)continue;const n=t.getSymbolAtLocation(a);if(n===o||t.getShorthandAssignmentValueSymbol(a.parent)===o||XE(a.parent)&&N(a,n,a.parent,t)===o){const e=r(a);if(e)return e}}}function x(e,t,n=e){return k(e,t,n).map((t=>_$(e,t)))}function k(e,t,n=e){const r=[];if(!t||!t.length)return r;const i=e.text,o=i.length,a=t.length;let s=i.indexOf(t,n.pos);for(;s>=0&&!(s>n.end);){const e=s+a;0!==s&&zs(i.charCodeAt(s-1),99)||e!==o&&zs(i.charCodeAt(e),99)||r.push(s),s=i.indexOf(t,s+a+1)}return r}function S(e,t){const n=e.getSourceFile(),r=t.text,i=Z(x(n,r,e),(e=>e===t||SH(e)&&xH(e,r)===t?$ie(e):void 0));return[{definition:{type:1,node:t},references:i}]}function T(e,t,n,r=!0){return n.cancellationToken.throwIfCancellationRequested(),C(e,e,t,n,r)}function C(e,t,n,r,i){if(r.markSearchedSymbols(t,n.allSearchSymbols))for(const o of k(t,n.text,e))D(t,o,n,r,i)}function w(e,t){return!!(sH(e)&t.searchMeaning)}function D(e,t,n,r,i){const o=_$(e,t);if(!function(e,t){switch(e.kind){case 80:if(EN(e.parent))return!0;case 79:return e.text.length===t.length;case 14:case 10:{const n=e;return(PH(n)||NH(e)||IH(e)||PD(e.parent)&&$g(e.parent)&&e.parent.arguments[1]===e)&&n.text.length===t.length}case 8:return PH(e)&&e.text.length===t.length;case 88:return 7===t.length;default:return!1}}(o,n.text))return void(!r.options.implementations&&(r.options.findInStrings&&b$(e,t)||r.options.findInComments&&Q$(e,t))&&r.addStringOrCommentReference(e.fileName,dc(t,n.text.length)));if(!w(o,r))return;let a=r.checker.getSymbolAtLocation(o);if(!a)return;const s=o.parent;if(WE(s)&&s.propertyName===o)return;if(XE(s))return In.assert(79===o.kind),void E(o,a,s,n,r,i);const c=function(e,t,n,r){const{checker:i}=r;return U(t,n,i,!1,2!==r.options.use||!!r.options.providePrefixAndSuffixTextForRename,((n,r,i,o)=>(i&&q(t)!==q(i)&&(i=void 0),e.includes(i||r||n)?{symbol:!r||6&Fx(n)?n:r,kind:o}:void 0)),(t=>!(e.parents&&!e.parents.some((e=>B(t.parent,e,r.inheritsFromCache,i))))))}(n,a,o,r);if(c){switch(r.specialSearchKind){case 0:i&&F(o,c,r);break;case 1:!function(e,t,n,r){lH(e)&&F(e,n.symbol,r);const i=()=>r.referenceAdder(n.symbol);if(Fl(e.parent))In.assert(88===e.kind||e.parent.name===e),function(e,t,n){const r=I(e);if(r&&r.declarations)for(const e of r.declarations){const r=YH(e,135,t);In.assert(173===e.kind&&!!r),n(r)}e.exports&&e.exports.forEach((e=>{const t=e.valueDeclaration;if(t&&171===t.kind){const e=t.body;e&&K(e,108,(e=>{lH(e)&&n(e)}))}}))}(n.symbol,t,i());else{const t=Lb(vH(e).parent);t&&(function(e,t){const n=I(e.symbol);if(n&&n.declarations)for(const e of n.declarations){In.assert(173===e.kind);const n=e.body;n&&K(n,106,(e=>{_H(e)&&t(e)}))}}(t,i()),function(e,t){if(function(e){return!!I(e.symbol)}(e))return;const n=e.symbol,r=t.createSearch(void 0,n,void 0);u(n,t,r)}(t,r))}}(o,e,n,r);break;case 2:!function(e,t,n){F(e,t.symbol,n);const r=e.parent;if(2===n.options.use||!Fl(r))return;In.assert(r.name===e);const i=n.referenceAdder(t.symbol);for(const e of r.members)Ol(e)&&_b(e)&&e.body&&e.body.forEachChild((function e(t){108===t.kind?i(t):Sl(t)||Fl(t)||t.forEachChild(e)}))}(o,n,r);break;default:In.assertNever(r.specialSearchKind)}Sg(o)&&wD(o.parent)&&Ng(o.parent.parent.parent)&&(a=o.parent.symbol,!a)||function(e,t,n,r){const i=Bie(e,t,r.checker,1===n.comingFrom);if(!i)return;const{symbol:o}=i;0===i.kind?W(r.options)||y(o,r):g(e,o,i.exportInfo,r)}(o,a,n,r)}else!function({flags:e,valueDeclaration:t},n,r){const i=r.checker.getShorthandAssignmentValueSymbol(t),o=t&&qc(t);33554432&e||!o||!n.includes(i)||F(o,i,r)}(a,n,r)}function E(e,t,n,r,i,o,a){In.assert(!a||!!i.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:s,propertyName:c,name:_}=n,l=s.parent,u=N(e,t,n,i.checker);if(a||r.includes(u)){if(c?e===c?(l.moduleSpecifier||d(),o&&2!==i.options.use&&i.markSeenReExportRHS(_)&&F(_,In.checkDefined(n.symbol),i)):i.markSeenReExportRHS(e)&&d():2===i.options.use&&"default"===_.escapedText||d(),!W(i.options)||a){const t="default"===e.escapedText||"default"===n.name.escapedText?1:0,r=In.checkDefined(n.symbol),o=jie(r,t,i.checker);o&&g(e,r,o,i)}if(1!==r.comingFrom&&l.moduleSpecifier&&!c&&!W(i.options)){const e=i.checker.getExportSpecifierLocalTargetSymbol(n);e&&y(e,i)}}function d(){o&&F(e,u,i)}}function N(e,t,n,r){return function(e,t){const{parent:n,propertyName:r,name:i}=t;return In.assert(r===e||i===e),r?r===e:!n.parent.moduleSpecifier}(e,n)&&r.getExportSpecifierLocalTargetSymbol(n)||t}function F(e,t,n){const{kind:r,symbol:i}="kind"in t?t:{kind:void 0,symbol:t};if(2===n.options.use&&88===e.kind)return;const o=n.referenceAdder(i);n.options.implementations?function(e,t,n){if(Xh(e)&&(16777216&(r=e.parent).flags?!FE(r)&&!PE(r):Sm(r)?$u(r):Cl(r)?r.body:Fl(r)||Cu(r)))return void t(e);var r;if(79!==e.kind)return;300===e.parent.kind&&Q(e,n.checker,t);const i=L(e);if(i)return void t(i);const o=Ec(e,(e=>!jw(e.parent)&&!Jl(e.parent)&&!Rl(e.parent))),a=o.parent;if(Hu(a)&&a.type===o&&n.markSeenContainingTypeReference(a))if($u(a))s(a.initializer);else if(Sl(a)&&a.body){const e=a.body;238===e.kind?vm(e,(e=>{e.expression&&s(e.expression)})):s(e)}else lu(a)&&s(a.expression);function s(e){M(e)&&t(e)}}(e,o,n):o(e,r)}function I(e){return e.members&&e.members.get("__constructor")}function L(e){return Tw(e)||ND(e)?L(e.parent):YD(e)?xt(e.parent.parent,Fl):void 0}function M(e){switch(e.kind){case 214:return M(e.expression);case 216:case 215:case 207:case 228:case 206:return!0;default:return!1}}function B(e,t,n,r){if(e===t)return!0;const i=VB(e)+","+VB(t),o=n.get(i);if(void 0!==o)return o;n.set(i,!1);const a=!!e.declarations&&e.declarations.some((e=>ly(e).some((e=>{const i=r.getTypeAtLocation(e);return!!i&&!!i.symbol&&B(i.symbol,t,n,r)}))));return n.set(i,a),a}function j(e){return 79===e.kind&&166===e.parent.kind&&e.parent.name===e}function J(e,t,n,r,i,o){const a=[];return U(e,t,n,r,!(r&&i),((t,n,r)=>{r&&q(e)!==q(r)&&(r=void 0),a.push(r||n||t)}),(()=>!o)),a}function U(e,t,n,r,o,a,s){const c=c2(t);if(c){const e=n.getShorthandAssignmentValueSymbol(t.parent);if(e&&r)return a(e,void 0,void 0,3);const i=n.getContextualType(c.parent),o=i&&A(_2(c,n,i,!0),(e=>d(e,4)));if(o)return o;const s=function(e,t){return q$(e.parent.parent)?t.getPropertySymbolOfDestructuringAssignment(e):void 0}(t,n),_=s&&a(s,void 0,void 0,4);if(_)return _;const l=e&&a(e,void 0,void 0,3);if(l)return l}const _=i(t,e,n);if(_){const e=a(_,void 0,void 0,1);if(e)return e}const l=d(e);if(l)return l;if(e.valueDeclaration&&vc(e.valueDeclaration,e.valueDeclaration.parent)){const t=n.getSymbolsOfParameterPropertyDeclaration(kt(e.valueDeclaration,Uw),e.name);return In.assert(2===t.length&&!!(1&t[0].flags)&&!!(4&t[1].flags)),d(1&e.flags?t[1]:t[0])}const u=np(e,278);if(!r||u&&!u.propertyName){const e=u&&n.getExportSpecifierLocalTargetSymbol(u);if(e){const t=a(e,void 0,void 0,1);if(t)return t}}if(!r){let r;return r=o?CG(t.parent)?AG(n,t.parent):void 0:p(e,n),r&&d(r,4)}if(In.assert(r),o){const t=p(e,n);return t&&d(t,4)}function d(e,t){return A(n.getRootSymbols(e),(r=>a(e,r,void 0,t)||(r.parent&&96&r.parent.flags&&s(r)?function(e,t,n,r){const i=new Map;return function e(o){if(96&o.flags&&$x(i,VB(o)))return A(o.declarations,(i=>A(ly(i),(i=>{const o=n.getTypeAtLocation(i),a=o&&o.symbol&&n.getPropertyOfType(o,t);return o&&a&&(A(n.getRootSymbols(a),r)||e(o.symbol))}))))}(e)}(r.parent,r.name,n,(n=>a(e,r,n,t))):void 0)))}function p(e,t){const n=np(e,205);if(n&&CG(n))return AG(t,n)}}function q(e){return!!e.valueDeclaration&&!!(32&bb(e.valueDeclaration))}function V(e,t){let n=sH(e);const{declarations:r}=t;if(r){let e;do{e=n;for(const e of r){const t=aH(e);t&n&&(n|=t)}}while(n!==e)}return n}function Q(e,t,n){const r=t.getSymbolAtLocation(e),i=t.getShorthandAssignmentValueSymbol(r.valueDeclaration);if(i)for(const e of i.getDeclarations())1&aH(e)&&n(e)}function K(e,t,n){bI(e,(e=>{e.kind===t&&n(e),K(e,t,n)}))}function W(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}e.eachExportReference=function(e,t,n,r,i,o,a,s){const c=Iie(e,new Set(e.map((e=>e.fileName))),t,n),{importSearches:_,indirectUsers:l,singleReferences:u}=c(r,{exportKind:a?1:0,exportingModuleSymbol:i},!1);for(const[e]of _)s(e);for(const e of u)Tw(e)&&kD(e.parent)&&s(e);for(const e of l)for(const n of x(e,a?"default":o)){const e=t.getSymbolAtLocation(n),i=_e(null==e?void 0:e.declarations,(e=>!!xt(e,HE)));!Tw(n)||al(n.parent)||e!==r&&!i||s(n)}},e.isSymbolReferencedInFile=function(e,t,n,r=n){return b(e,t,n,(()=>!0),r)||!1},e.eachSymbolReferenceInFile=b,e.getTopMostDeclarationNamesInFile=function(e,t){return z(x(t,e),(e=>!!Yh(e))).reduce(((e,t)=>{const n=function(e){let t=0;for(;e;)e=OH(e),t++;return t}(t);return _e(e.declarationNames)&&n!==e.depth?ne===i))&&r(t,a))return!0}return!1},e.getIntersectingMeaningFromDeclarations=V,e.getReferenceEntriesForShorthandPropertyAssignment=Q})(Wie||(Wie={}))}}),voe={};x(voe,{Core:()=>Wie,DefinitionKind:()=>Vie,EntryKind:()=>Qie,ExportKind:()=>Nie,FindReferencesUse:()=>Kie,ImportExport:()=>Fie,createImportTracker:()=>Iie,findModuleReferences:()=>Lie,findReferenceOrRenameEntries:()=>roe,findReferencedSymbols:()=>eoe,getContextNode:()=>Yie,getExportInfo:()=>jie,getImplementationsAtPosition:()=>toe,getImportOrExportSymbol:()=>Bie,getReferenceEntriesForNode:()=>ioe,getTextSpanOfEntry:()=>moe,isContextWithStartAndEndNode:()=>Gie,isDeclarationOfSymbol:()=>hoe,nodeEntry:()=>$ie,toContextSpan:()=>Zie,toHighlightSpan:()=>poe,toReferenceEntry:()=>_oe,toRenameLocation:()=>coe});var boe=b({"src/services/_namespaces/ts.FindAllReferences.ts"(){Hie(),yoe()}});function xoe(e,t,n,i,o){var a,s;const c=Soe(t,n,e),_=c&&[(l=c.reference.fileName,u=c.fileName,d=c.unverified,{fileName:u,textSpan:pc(0,0),kind:"script",name:l,containerName:void 0,containerKind:void 0,unverified:d})]||r;var l,u,d;if(null==c?void 0:c.file)return _;const p=_$(t,n);if(p===t)return;const{parent:f}=p,m=e.getTypeChecker();if(161===p.kind||Tw(p)&&YN(f)&&f.tagName===p)return function(e,t){const n=Ec(t,Nl);if(!n||!n.name)return;const r=Ec(n,Fl);if(!r)return;const i=sy(r);if(!i)return;const o=Hh(i.expression),a=GD(o)?o.symbol:e.getSymbolAtLocation(o);if(!a)return;const s=Ic(jf(n.name)),c=lb(n)?e.getPropertyOfType(e.getTypeOfSymbol(a),s):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(a),s);return c?Doe(e,c,t):void 0}(m,p)||r;if(SH(p)){const e=xH(p.parent,p.text);return e?[Noe(m,e,"label",p.text,void 0)]:void 0}if(105===p.kind){const e=Ec(p.parent,(e=>Hw(e)?"quit":Cl(e)));return e?[Poe(m,e)]:void 0}if(133===p.kind){const e=Ec(p,(e=>Cl(e)));return e&&_e(e.modifiers,(e=>132===e.kind))?[Poe(m,e)]:void 0}if(125===p.kind){const e=Ec(p,(e=>Cl(e)));return e&&e.asteriskToken?[Poe(m,e)]:void 0}if(Pw(p)&&Hw(p.parent)){const e=p.parent.parent,{symbol:t,failedAliasResolution:n}=woe(e,m,o),r=z(e.members,Hw),i=t?m.symbolToString(t,e):"",a=p.getSourceFile();return V(r,(e=>{let{pos:t}=ux(e);return t=As(a.text,t),Noe(m,e,"constructor","static {}",i,!1,n,{start:t,length:6})}))}let{symbol:g,failedAliasResolution:h}=woe(p,m,o),y=p;if(i&&h){const e=T([p,...(null==g?void 0:g.declarations)||r],(e=>Ec(e,Ef))),t=e&&lh(e);t&&(({symbol:g,failedAliasResolution:h}=woe(t,m,o)),y=t)}if(!g&&TG(y)){const e=null==(s=null==(a=t.resolvedModules)?void 0:a.get(y.text,gq(t,y)))?void 0:s.resolvedModule;if(e)return[{name:y.text,fileName:e.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:dc(0,0),failedAliasResolution:h,isAmbient:FI(e.resolvedFileName),unverified:y!==p}]}if(!g)return ue(_,function(e,t){return Z(t.getIndexInfosAtLocation(e),(e=>e.declaration&&Poe(t,e.declaration)))}(p,m));if(i&&F(g.declarations,(e=>e.getSourceFile().fileName===t.fileName)))return;const v=function(e,t){const n=function(e){const t=Ec(e,(e=>!DH(e))),n=null==t?void 0:t.parent;return n&&eu(n)&&ig(n)===t?n:void 0}(t),r=n&&e.getResolvedSignature(n);return xt(r&&r.declaration,(e=>Sl(e)&&!rD(e)))}(m,p);if(v&&(!Ju(p.parent)||!function(e){switch(e.kind){case 173:case 182:case 177:return!0;default:return!1}}(v))){const e=Poe(m,v,h);if(m.getRootSymbols(g).some((e=>function(e,t){var n;return e===t.symbol||e===t.symbol.parent||Rb(t.parent)||!eu(t.parent)&&e===(null==(n=xt(t.parent,Au))?void 0:n.symbol)}(e,v))))return[e];{const t=Doe(m,g,p,h,v)||r;return 106===p.kind?[e,...t]:[...t,e]}}if(300===p.parent.kind){const e=m.getShorthandAssignmentValueSymbol(g.valueDeclaration);return ue((null==e?void 0:e.declarations)?e.declarations.map((t=>Eoe(t,m,e,p,!1,h))):r,koe(m,p)||r)}if(xl(p)&&wD(f)&&CD(f.parent)&&p===(f.propertyName||f.name)){const e=_G(p),t=m.getTypeAtLocation(f.parent);return void 0===e?r:H(t.isUnion()?t.types:[t],(t=>{const n=t.getProperty(e);return n&&Doe(m,n,p)}))}return ue(_,koe(m,p)||Doe(m,g,p,h))}function koe(e,t){const n=c2(t);if(n){const r=n&&e.getContextualType(n.parent);if(r)return H(_2(n,e,r,!1),(n=>Doe(e,n,t)))}}function Soe(e,t,n){var r,i,o,a;const s=Ioe(e.referencedFiles,t);if(s){const t=n.getSourceFileFromReference(e,s);return t&&{reference:s,fileName:t.fileName,file:t,unverified:!1}}const c=Ioe(e.typeReferenceDirectives,t);if(c){const t=null==(r=n.getResolvedTypeReferenceDirectives().get(c.fileName,c.resolutionMode||e.impliedNodeFormat))?void 0:r.resolvedTypeReferenceDirective,i=t&&n.getSourceFile(t.resolvedFileName);return i&&{reference:c,fileName:i.fileName,file:i,unverified:!1}}const _=Ioe(e.libReferenceDirectives,t);if(_){const e=n.getLibFileFromReference(_);return e&&{reference:_,fileName:e.fileName,file:e,unverified:!1}}if(null==(i=e.resolvedModules)?void 0:i.size()){const r=l$(e,t);if(TG(r)&&Xs(r.text)&&e.resolvedModules.has(r.text,gq(e,r))){const t=null==(a=null==(o=e.resolvedModules.get(r.text,gq(e,r)))?void 0:o.resolvedModule)?void 0:a.resolvedFileName,i=t||ga(sa(e.fileName),r.text);return{file:n.getSourceFile(i),fileName:i,reference:{pos:r.getStart(),end:r.getEnd(),fileName:r.text},unverified:!t}}}}function Toe(e,t,n){const r=_$(t,n);if(r===t)return;if(cm(r.parent)&&r.parent.name===r)return Coe(e.getTypeAtLocation(r.parent),e,r.parent,!1);const{symbol:i,failedAliasResolution:o}=woe(r,e,!1);if(!i)return;const a=e.getTypeOfSymbolAtLocation(i,r),s=function(e,t,n){if(t.symbol===e||e.valueDeclaration&&t.symbol&&wE(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const e=t.getCallSignatures();if(1===e.length)return n.getReturnTypeOfSignature(Me(e))}}(i,a,e),c=s&&Coe(s,e,r,o),_=c&&0!==c.length?c:Coe(a,e,r,o);return _.length?_:!(111551&i.flags)&&788968&i.flags?Doe(e,Ix(i,e),r,o):void 0}function Coe(e,t,n,r){return H(!e.isUnion()||32&e.flags?[e]:e.types,(e=>e.symbol&&Doe(t,e.symbol,n,r)))}function Aoe(e,t,n){const r=xoe(e,t,n);if(!r||0===r.length)return;const i=Ioe(t.referencedFiles,n)||Ioe(t.typeReferenceDirectives,n)||Ioe(t.libReferenceDirectives,n);if(i)return{definitions:r,textSpan:X$(i)};const o=_$(t,n);return{definitions:r,textSpan:dc(o.getStart(),o.getWidth())}}function woe(e,t,n){const r=t.getSymbolAtLocation(e);let i=!1;if((null==r?void 0:r.declarations)&&2097152&r.flags&&!n&&function(e,t){return 79===e.kind&&(e.parent===t||271!==t.kind)}(e,r.declarations[0])){const e=t.getAliasedSymbol(r);if(e.declarations)return{symbol:e};i=!0}return{symbol:r,failedAliasResolution:i}}function Doe(e,t,n,r,i){const o=z(t.declarations,(e=>e!==i)),a=z(o,(e=>!function(e){if(!Mg(e))return!1;const t=Ec(e,(e=>!!Rb(e)||!Mg(e)&&"quit"));return!!t&&5===Hg(t)}(e))),s=_e(a)?a:o;return function(){if(32&t.flags&&!(19&t.flags)&&(lH(n)||135===n.kind))return c((P(o,Fl)||In.fail("Expected declaration to have at least one class-like declaration")).members,!0)}()||(uH(n)||FH(n)?c(o,!1):void 0)||V(s,(i=>Eoe(i,e,t,n,!1,r)));function c(i,o){if(!i)return;const a=i.filter(o?$w:Sl),s=a.filter((e=>!!e.body));return a.length?0!==s.length?s.map((r=>Eoe(r,e,t,n))):[Eoe(je(a),e,t,n,!1,r)]:void 0}}function Eoe(e,t,n,r,i,o){const a=t.symbolToString(n),s=Cue.getSymbolKind(t,n,r),c=n.parent?t.symbolToString(n.parent,r):"";return Noe(t,e,s,a,c,i,o)}function Noe(e,t,n,r,i,o,a,s){const c=t.getSourceFile();return s||(s=H$(qc(t)||t,c)),{fileName:c.fileName,textSpan:s,kind:n,name:r,containerKind:void 0,containerName:i,...voe.toContextSpan(s,c,voe.getContextNode(t)),isLocal:!Foe(e,t),isAmbient:!!(16777216&t.flags),unverified:o,failedAliasResolution:a}}function Foe(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if($u(t.parent)&&t.parent.initializer===t)return Foe(e,t.parent);switch(t.kind){case 169:case 174:case 175:case 171:if(sb(t,8))return!1;case 173:case 299:case 300:case 207:case 228:case 216:case 215:return Foe(e,t.parent);default:return!1}}function Poe(e,t,n){return Eoe(t,e,t.symbol,t,!1,n)}function Ioe(e,t){return P(e,(e=>rc(e,t)))}var Ooe=b({"src/services/goToDefinition.ts"(){lfe()}}),Loe={};x(Loe,{createDefinitionInfo:()=>Eoe,findReferenceInPosition:()=>Ioe,getDefinitionAndBoundSpan:()=>Aoe,getDefinitionAtPosition:()=>xoe,getReferenceAtPosition:()=>Soe,getTypeDefinitionAtPosition:()=>Toe});var Moe,Roe,Boe=b({"src/services/_namespaces/ts.GoToDefinition.ts"(){Ooe()}});function joe(e){return"literals"===e.includeInlayParameterNameHints}function Joe(e){const{file:t,program:n,span:r,cancellationToken:i,preferences:o}=e,a=t.text,s=n.getCompilerOptions(),c=n.getTypeChecker(),_=[];return function e(n){if(n&&0!==n.getFullWidth()){switch(n.kind){case 264:case 260:case 261:case 259:case 228:case 215:case 171:case 216:i.throwIfCancellationRequested()}if(cc(r,n.pos,n.getFullWidth())&&(!Jl(n)||YD(n)))return o.includeInlayVariableTypeHints&&wE(n)||o.includeInlayPropertyDeclarationTypeHints&&Qw(n)?function(e){if(!e.initializer||Ul(e.name)||wE(e)&&!v(e))return;if(Kv(e))return;const t=c.getTypeAtLocation(e);if(d(t))return;const n=y(t);if(n){if(!1===o.includeInlayVariableTypeHintsWhenTypeMatchesName&&Rt(e.name.getText(),n))return;u(n,e.name.end)}}(n):o.includeInlayEnumMemberValueHints&&kN(n)?function(e){if(e.initializer)return;const t=c.getConstantValue(e);var n,r;void 0!==t&&(n=t.toString(),r=e.end,_.push({text:"= "+h(n,Moe),position:r,kind:"Enum",whitespaceBefore:!0}))}(n):function(e){return"literals"===e.includeInlayParameterNameHints||"all"===e.includeInlayParameterNameHints}(o)&&(PD(n)||ID(n))?function(e){const t=e.arguments;if(!t||!t.length)return;const n=[],r=c.getResolvedSignatureForSignatureHelp(e,n);if(r&&n.length)for(let e=0;ei.test(a.substring(e.pos,e.end))))}function m(e){switch(e.kind){case 221:{const t=e.operand;return tl(t)||Tw(t)&&FT(t.escapedText)}case 110:case 95:case 104:case 14:case 225:return!0;case 79:{const t=e.escapedText;return function(e){return"undefined"===e}(t)||FT(t)}}return tl(e)}function g(e){const t=e.valueDeclaration;if(!t||!Uw(t))return;const n=c.getTypeOfSymbolAtLocation(e,t);return d(n)?void 0:y(n)}function h(e,t){return e.length>t?e.substr(0,t-3)+"...":e}function y(e){const n=Vz();return fp((r=>{const i=c.typeToTypeNode(e,void 0,71286784);In.assertIsDefined(i,"should always get typenode"),n.writeNode(4,i,t,r)}))}function v(e){if((Uy(e)||wE(e)&&im(e))&&e.initializer){const t=Hh(e.initializer);return!(m(t)||ID(t)||ED(t)||lu(t))}return!0}}var zoe=b({"src/services/inlayHints.ts"(){lfe(),Moe=30,Roe=e=>RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),Uoe={};x(Uoe,{provideInlayHints:()=>Joe});var qoe,Voe,Qoe,Koe,Woe=b({"src/services/_namespaces/ts.InlayHints.ts"(){zoe()}});function Hoe(e,t){const n=[];return OG(e,(e=>{for(const r of function(e){switch(e.kind){case 344:case 351:return[e];case 341:case 349:return[e,e.parent];default:return wh(e)}}(e)){const i=zN(r)&&r.tags&&P(r.tags,(e=>330===e.kind&&("inheritDoc"===e.tagName.escapedText||"inheritdoc"===e.tagName.escapedText)));if(void 0===r.comment&&!i||zN(r)&&349!==e.kind&&341!==e.kind&&r.tags&&r.tags.some((e=>349===e.kind||341===e.kind))&&!r.tags.some((e=>344===e.kind||345===e.kind)))continue;let o=r.comment?Xoe(r.comment,t):[];i&&i.comment&&(o=o.concat(Xoe(i.comment,t))),R(n,o,$oe)||n.push(o)}})),W(N(n,[rX()]))}function $oe(e,t){return B(e,t,((e,t)=>e.kind===t.kind&&e.text===t.text))}function Goe(e,t){const n=[];return OG(e,(e=>{const r=S_(e);if(!r.some((e=>349===e.kind||341===e.kind))||r.some((e=>344===e.kind||345===e.kind)))for(const e of r)n.push({name:e.tagName.text,text:Yoe(e,t)})})),n}function Xoe(e,t){return"string"==typeof e?[$G(e)]:H(e,(e=>324===e.kind?[$G(e.text)]:tX(e,t)))}function Yoe(e,t){const{comment:n,kind:r}=e,i=function(e){switch(e){case 344:return KG;case 351:return WG;case 348:return XG;case 349:case 341:return GG;default:return $G}}(r);switch(r){case 352:const r=e.typeExpression;return r?o(r):void 0===n?void 0:Xoe(n,t);case 332:case 331:return o(e.class);case 348:const a=e,s=[];if(a.constraint&&s.push($G(a.constraint.getText())),S(a.typeParameters)){S(s)&&s.push(UG());const e=a.typeParameters[a.typeParameters.length-1];T(a.typeParameters,(t=>{s.push(i(t.getText())),e!==t&&s.push(VG(27),UG())}))}return n&&s.push(UG(),...Xoe(n,t)),s;case 347:case 353:return o(e.typeExpression);case 349:case 341:case 351:case 344:case 350:const{name:c}=e;return c?o(c):void 0===n?void 0:Xoe(n,t);default:return void 0===n?void 0:Xoe(n,t)}function o(e){return r=e.getText(),n?r.match(/^https?$/)?[$G(r),...Xoe(n,t)]:[i(r),UG(),...Xoe(n,t)]:[$G(r)];var r}}function Zoe(){return Voe||(Voe=V(qoe,(e=>({name:e,kind:"keyword",kindModifiers:"",sortText:Eie.SortText.LocationPriority}))))}function eae(){return Qoe||(Qoe=V(qoe,(e=>({name:"@"+e,kind:"keyword",kindModifiers:"",sortText:Eie.SortText.LocationPriority}))))}function tae(e){return{name:e,kind:"",kindModifiers:"",displayParts:[$G(e)],documentation:r,tags:void 0,codeActions:void 0}}function nae(e){if(!Tw(e.name))return r;const t=e.name.text,n=e.parent,i=n.parent;return Sl(i)?Z(i.parameters,(r=>{if(!Tw(r.name))return;const i=r.name.text;return n.tags.some((t=>t!==e&&rF(t)&&Tw(t.name)&&t.name.escapedText===i))||void 0!==t&&!fn(i,t)?void 0:{name:i,kind:"parameter",kindModifiers:"",sortText:Eie.SortText.LocationPriority}})):[]}function rae(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[$G(e)],documentation:r,tags:void 0,codeActions:void 0}}function iae(e,t,n,r){const i=u$(t,n),o=Ec(i,zN);if(o&&(void 0!==o.comment||S(o.tags)))return;const a=i.getStart(t);if(!o&&aoae(e,t)))}(i,r);if(!s)return;const{commentOwner:c,parameters:_,hasReturn:l}=s,u=Wu(c)&&c.jsDoc?c.jsDoc:void 0,d=Be(u);if(c.getStart(t){const a=79===e.kind?e.text:"param"+o;return`${n} * @param ${t?i?"{...any} ":"{any} ":""}${a}${r}`})).join("")}(_||[],f,p,e):"")+(l?function(e,t){return`${e} * @returns${t}`}(p,e):""),g=(u||[]).some((e=>!!e.tags));if(m&&!g){const t="/**"+e+p+" * ";return{newText:t+e+m+p+" */"+(a===n?e+p:""),caretOffset:t.length}}return{newText:"/** */",caretOffset:3}}function oae(e,t){switch(e.kind){case 259:case 215:case 171:case 173:case 170:case 216:const n=e;return{commentOwner:e,parameters:n.parameters,hasReturn:aae(n,t)};case 299:return oae(e.initializer,t);case 260:case 261:case 263:case 302:case 262:return{commentOwner:e};case 168:{const n=e;return n.type&&rD(n.type)?{commentOwner:e,parameters:n.type.parameters,hasReturn:aae(n.type,t)}:{commentOwner:e}}case 240:{const n=e.declarationList.declarations,r=1===n.length&&n[0].initializer?function(e){for(;214===e.kind;)e=e.expression;switch(e.kind){case 215:case 216:return e;case 228:return P(e.members,$w)}}(n[0].initializer):void 0;return r?{commentOwner:e,parameters:r.parameters,hasReturn:aae(r,t)}:{commentOwner:e}}case 308:return"quit";case 264:return 264===e.parent.kind?void 0:{commentOwner:e};case 241:return oae(e.expression,t);case 223:{const n=e;return 0===Hg(n)?"quit":Sl(n.right)?{commentOwner:e,parameters:n.right.parameters,hasReturn:aae(n.right,t)}:{commentOwner:e}}case 169:const r=e.initializer;if(r&&(RD(r)||BD(r)))return{commentOwner:e,parameters:r.parameters,hasReturn:aae(r,t)}}}function aae(e,t){return!!(null==t?void 0:t.generateReturnInDocTemplate)&&(rD(e)||BD(e)&&_u(e.body)||Cl(e)&&e.body&&cE(e.body)&&!!vm(e.body,(e=>e)))}var sae=b({"src/services/jsDoc.ts"(){lfe(),qoe=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],Koe=tae}}),cae={};x(cae,{getDocCommentTemplateAtPosition:()=>iae,getJSDocParameterNameCompletionDetails:()=>rae,getJSDocParameterNameCompletions:()=>nae,getJSDocTagCompletionDetails:()=>tae,getJSDocTagCompletions:()=>eae,getJSDocTagNameCompletionDetails:()=>Koe,getJSDocTagNameCompletions:()=>Zoe,getJsDocCommentsFromDeclarations:()=>Hoe,getJsDocTagsFromDeclarations:()=>Goe});var _ae,lae=b({"src/services/_namespaces/ts.JsDoc.ts"(){sae()}});function uae(e,t,n,r,i,o){const a=rde.ChangeTracker.fromContext({host:n,formatContext:t,preferences:i}),s="SortAndCombine"===o||"All"===o,c=s,_="RemoveUnused"===o||"All"===o,l=dae(e,e.statements.filter(jE)),u=function(e,t){var n;return Lae(e,"boolean"==typeof e.organizeImportsIgnoreCase?e.organizeImportsIgnoreCase:null!=(n=null==t?void 0:t())&&n)}(i,s?()=>2===wae(l,i):void 0),d=t=>(_&&(t=function(e,t,n){const r=n.getTypeChecker(),i=n.getCompilerOptions(),o=r.getJsxNamespace(t),a=r.getJsxFragmentFactory(t),s=!!(2&t.transformFlags),c=[];for(const n of e){const{importClause:e,moduleSpecifier:r}=n;if(!e){c.push(n);continue}let{name:i,namedBindings:o}=e;if(i&&!_(i)&&(i=void 0),o)if(VE(o))_(o.name)||(o=void 0);else{const e=o.elements.filter((e=>_(e.name)));e.lengthFae(e,t,u)))),t);l.forEach((e=>p(e,d))),"RemoveUnused"!==o&&p(e.statements.filter($E),(e=>vae(e,u)));for(const t of e.statements.filter(df))t.body&&(dae(e,t.body.statements.filter(jE)).forEach((e=>p(e,d))),"RemoveUnused"!==o&&p(t.body.statements.filter($E),(e=>vae(e,u))));return a.getChanges();function p(r,i){if(0===S(r))return;kX(r[0]);const o=c?ot(r,(e=>mae(e.moduleSpecifier))):[r],_=H(s?Pe(o,((e,t)=>Tae(e[0].moduleSpecifier,t[0].moduleSpecifier,u))):o,(e=>mae(e[0].moduleSpecifier)?i(e):e));if(0===_.length)a.deleteNodes(e,r,{leadingTriviaOption:rde.LeadingTriviaOption.Exclude,trailingTriviaOption:rde.TrailingTriviaOption.Include},!0);else{const i={leadingTriviaOption:rde.LeadingTriviaOption.Exclude,trailingTriviaOption:rde.TrailingTriviaOption.Include,suffix:nX(n,t.options)};a.replaceNodeWithNodes(e,r[0],_,i);const o=a.nodeHasTrailingComment(e,r[0],i);a.deleteNodes(e,r.slice(1),{trailingTriviaOption:rde.TrailingTriviaOption.Include},o)}}}function dae(e,t){const n=qs(e.languageVersion,!1,e.languageVariant),r=[];let i=0;for(const o of t)r[i]&&pae(e,o,n)&&i++,r[i]||(r[i]=[]),r[i].push(o);return r}function pae(e,t,n){const r=t.getFullStart(),i=t.getStart();n.setText(e.text,r,i-r);let o=0;for(;n.getTokenPos()=2))return!0;return!1}function fae(e,t){const n=sw(t)&&t.text;return vt(n)&&_e(e.moduleAugmentations,(e=>sw(e)&&e.text===n))}function mae(e){return void 0!==e&&ed(e)?e.text:void 0}function gae(e,t,n){return hae(e,Oae(t),n)}function hae(e,t,n){if(0===e.length)return e;const{importWithoutClause:i,typeOnlyImports:o,regularImports:a}=function(e){let t;const n={defaultImports:[],namespaceImports:[],namedImports:[]},r={defaultImports:[],namespaceImports:[],namedImports:[]};for(const i of e){if(void 0===i.importClause){t=t||i;continue}const e=i.importClause.isTypeOnly?n:r,{name:o,namedBindings:a}=i.importClause;o&&e.defaultImports.push(i),a&&(VE(a)?e.namespaceImports.push(i):e.namedImports.push(i))}return{importWithoutClause:t,typeOnlyImports:n,regularImports:r}}(e),s=[];i&&s.push(i);for(const e of[a,o]){const i=e===o,{defaultImports:a,namespaceImports:c,namedImports:_}=e;if(!i&&1===a.length&&1===c.length&&0===_.length){const e=a[0];s.push(bae(e,e.importClause.name,c[0].importClause.namedBindings));continue}const l=Pe(c,((e,n)=>t(e.importClause.namedBindings.name.text,n.importClause.namedBindings.name.text)));for(const e of l)s.push(bae(e,void 0,e.importClause.namedBindings));const u=Oe(a),d=Oe(_),p=null!=u?u:d;if(!p)continue;let f;const m=[];if(1===a.length)f=a[0].importClause.name;else for(const e of a)m.push(dC.createImportSpecifier(!1,dC.createIdentifier("default"),e.importClause.name));m.push(...Iae(_));const g=dC.createNodeArray(xae(m,t),null==d?void 0:d.importClause.namedBindings.elements.hasTrailingComma),h=0===g.length?f?void 0:dC.createNamedImports(r):d?dC.updateNamedImports(d.importClause.namedBindings,g):dC.createNamedImports(g);n&&h&&(null==d?void 0:d.importClause.namedBindings)&&!fx(d.importClause.namedBindings,n)&&RC(h,2),i&&f&&h?(s.push(bae(p,f,void 0)),s.push(bae(null!=d?d:p,void 0,h))):s.push(bae(p,f,h))}return s}function yae(e,t){return vae(e,Oae(t))}function vae(e,t){if(0===e.length)return e;const{exportWithoutClause:n,namedExports:i,typeOnlyExports:o}=function(e){let t;const n=[],r=[];for(const i of e)void 0===i.exportClause?t=t||i:i.isTypeOnly?r.push(i):n.push(i);return{exportWithoutClause:t,namedExports:n,typeOnlyExports:r}}(e),a=[];n&&a.push(n);for(const e of[i,o]){if(0===e.length)continue;const n=[];n.push(...H(e,(e=>e.exportClause&&GE(e.exportClause)?e.exportClause.elements:r)));const i=xae(n,t),o=e[0];a.push(dC.updateExportDeclaration(o,o.modifiers,o.isTypeOnly,o.exportClause&&(GE(o.exportClause)?dC.updateNamedExports(o.exportClause,i):dC.updateNamespaceExport(o.exportClause,o.exportClause.name)),o.moduleSpecifier,o.assertClause))}return a}function bae(e,t,n){return dC.updateImportDeclaration(e,e.modifiers,dC.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,n),e.moduleSpecifier,e.assertClause)}function xae(e,t){return Pe(e,((e,n)=>kae(e,n,t)))}function kae(e,t,n){return Xt(e.isTypeOnly,t.isTypeOnly)||n(e.name.text,t.name.text)}function Sae(e,t,n){return Tae(e,t,Oae(!!n))}function Tae(e,t,n){const r=void 0===e?void 0:mae(e),i=void 0===t?void 0:mae(t);return Xt(void 0===r,void 0===i)||Xt(Xs(r),Xs(i))||n(r,i)}function Cae(e){var t;switch(e.kind){case 268:return null==(t=xt(e.moduleReference,rN))?void 0:t.expression;case 269:return e.moduleSpecifier;case 240:return e.declarationList.declarations[0].initializer.arguments[0]}}function Aae(e,t){return wae(dae(e,e.statements.filter(jE)),t)}function wae(e,t){const n=Lae(t,!1),r=Lae(t,!0);let i=3,o=!1;for(const a of e){if(a.length>1){const e=ve(a,(e=>{var t,n;return null!=(n=null==(t=xt(e.moduleSpecifier,sw))?void 0:t.text)?n:""}),n,r);if(e&&(i&=e,o=!0),!i)return i}const e=P(a,(e=>{var t,n;return(null==(n=xt(null==(t=e.importClause)?void 0:t.namedBindings,KE))?void 0:n.elements.length)>1}));if(e){const n=_ae(e.importClause.namedBindings.elements,t);if(n&&(i&=n,o=!0),!i)return i}if(3!==i)return i}return o?0:i}function Dae(e,t){return ve(e,(e=>mae(Cae(e))||""),Lae(t,!1),Lae(t,!0))}function Eae(e,t,n){const r=Ve(e,t,wt,((e,t)=>Fae(e,t,n)));return r<0?~r:r}function Nae(e,t,n){const r=Ve(e,t,wt,((e,t)=>kae(e,t,n)));return r<0?~r:r}function Fae(e,t,n){return Tae(Cae(e),Cae(t),n)||function(e,t){return Jt(Pae(e),Pae(t))}(e,t)}function Pae(e){var t;switch(e.kind){case 269:return e.importClause?e.importClause.isTypeOnly?1:271===(null==(t=e.importClause.namedBindings)?void 0:t.kind)?2:e.importClause.name?3:4:0;case 268:return 5;case 240:return 6}}function Iae(e){return H(e,(e=>V(function(e){var t;return(null==(t=e.importClause)?void 0:t.namedBindings)&&KE(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}(e),(e=>e.name&&e.propertyName&&e.name.escapedText===e.propertyName.escapedText?dC.updateImportSpecifier(e,e.isTypeOnly,void 0,e.name):e))))}function Oae(e){return e?Vt:Qt}function Lae(e,t){var n;return"unicode"===(null!=(n=e.organizeImportsCollation)?n:"ordinal")?function(e,t){var n,r,i;const o=function(e){let t=e.organizeImportsLocale;"auto"===t&&(t=Wt()),void 0===t&&(t="en");const n=Intl.Collator.supportedLocalesOf(t);return n.length?n[0]:"en"}(t),a=null!=(n=t.organizeImportsCaseFirst)&&n,s=null!=(r=t.organizeImportsNumericCollation)&&r,c=null==(i=t.organizeImportsAccentCollation)||i,_=e?c?"accent":"base":c?"variant":"case";return new Intl.Collator(o,{usage:"sort",caseFirst:a||"false",sensitivity:_,numeric:s}).compare}(t,e):Oae(t)}var Mae=b({"src/services/organizeImports.ts"(){lfe(),_ae=Ot(((e,t)=>ye(e,((e,t)=>Xt(e.isTypeOnly,t.isTypeOnly)))?ve(e,(e=>e.name.text),Lae(t,!1),Lae(t,!0)):0),new class{has([e,t]){return!(this._lastPreferences!==t||!this._cache)&&this._cache.has(e)}get([e,t]){if(this._lastPreferences===t&&this._cache)return this._cache.get(e)}set([e,t],n){this._lastPreferences!==t&&(this._lastPreferences=t,this._cache=void 0),null!=this._cache||(this._cache=new WeakMap),this._cache.set(e,n)}})}}),Rae={};x(Rae,{coalesceExports:()=>yae,coalesceImports:()=>gae,compareImportOrExportSpecifiers:()=>kae,compareImportsOrRequireStatements:()=>Fae,compareModuleSpecifiers:()=>Sae,detectImportDeclarationSorting:()=>Dae,detectImportSpecifierSorting:()=>_ae,detectSorting:()=>Aae,getImportDeclarationInsertionIndex:()=>Eae,getImportSpecifierInsertionIndex:()=>Nae,getOrganizeImportsComparer:()=>Lae,organizeImports:()=>uae});var Bae,jae=b({"src/services/_namespaces/ts.OrganizeImports.ts"(){Mae()}});function Jae(e,t){const n=[];return function(e,t,n){let r=40,i=0;const o=[...e.statements,e.endOfFileToken],a=o.length;for(;i...")}(e);case 285:return function(e){const n=pc(e.openingFragment.getStart(t),e.closingFragment.getEnd());return Kae(n,"code",n,!1,"<>...")}(e);case 282:case 283:return function(e){if(0!==e.properties.length)return Vae(e.getStart(t),e.getEnd(),"code")}(e.attributes);case 225:case 14:return function(e){if(14!==e.kind||0!==e.text.length)return Vae(e.getStart(t),e.getEnd(),"code")}(e);case 204:return i(e,!1,!wD(e.parent),22);case 216:return function(e){if(!(cE(e.body)||MD(e.body)||kx(e.body.getFullStart(),e.body.getEnd(),t)))return Kae(pc(e.body.getFullStart(),e.body.getEnd()),"code",H$(e))}(e);case 210:return function(e){if(!e.arguments.length)return;const n=YH(e,20,t),r=YH(e,21,t);return n&&r&&!kx(n.pos,r.pos,t)?Qae(n,r,e,t,!1,!0):void 0}(e);case 214:return function(e){if(!kx(e.getStart(),e.getEnd(),t))return Kae(pc(e.getStart(),e.getEnd()),"code",H$(e))}(e);case 272:case 276:case 296:return function(e){if(!e.elements.length)return;const n=YH(e,18,t),r=YH(e,19,t);return n&&r&&!kx(n.pos,r.pos,t)?Qae(n,r,e,t,!1,!1):void 0}(e)}var n;function r(e,t=18){return i(e,!1,!DD(e.parent)&&!PD(e.parent),t)}function i(n,r=!1,i=!0,o=18,a=(18===o?19:23)){const s=YH(e,o,t),c=YH(e,a,t);return s&&c&&Qae(s,c,n,t,r,i)}}(i,e);a&&n.push(a),r--,PD(i)?(r++,s(i.expression),r--,i.arguments.forEach(s),null==(o=i.typeArguments)||o.forEach(s)):dE(i)&&i.elseStatement&&dE(i.elseStatement)?(s(i.expression),s(i.thenStatement),r++,s(i.elseStatement),r--):i.forEachChild(s),r++}}(e,t,n),function(e,t){const n=[],r=e.getLineStarts();for(const i of r){const r=e.getLineEndOfPosition(i),o=zae(e.text.substring(i,r));if(o&&!F$(e,i))if(o[1]){const e=n.pop();e&&(e.textSpan.length=r-e.textSpan.start,e.hintSpan.length=r-e.textSpan.start,t.push(e))}else{const t=pc(e.text.indexOf("//",i),r);n.push(Kae(t,"region",t,!1,o[2]||"#region"))}}}(e,n),n.sort(((e,t)=>e.textSpan.start-t.textSpan.start))}function zae(e){return fn(e=h(e),"//")?(e=m(e.slice(2)),Bae.exec(e)):null}function Uae(e,t,n,r){const i=Rs(t.text,e);if(!i)return;let o=-1,a=-1,s=0;const c=t.getFullText();for(const{kind:e,pos:t,end:l}of i)switch(n.throwIfCancellationRequested(),e){case 2:if(zae(c.slice(t,l))){_(),s=0;break}0===s&&(o=t),a=l,s++;break;case 3:_(),r.push(Vae(t,l,"comment")),s=0;break;default:In.assertNever(e)}function _(){s>1&&r.push(Vae(o,a,"comment"))}_()}function qae(e,t,n,r){cw(e)||Uae(e.pos,t,n,r)}function Vae(e,t,n){return Kae(pc(e,t),n)}function Qae(e,t,n,r,i=!1,o=!0){return Kae(pc(o?e.getFullStart():e.getStart(r),t.getEnd()),"code",H$(n,r),i)}function Kae(e,t,n=e,r=!1,i="..."){return{textSpan:e,kind:t,hintSpan:n,bannerText:i,autoCollapse:r}}var Wae=b({"src/services/outliningElementsCollector.ts"(){lfe(),Bae=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),Hae={};x(Hae,{collectElements:()=>Jae});var $ae,Gae=b({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){Wae()}});function Xae(e,t){$ae.set(e,t)}function Yae(e){return Ze(G($ae.values(),(t=>{var n;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!(null==(n=t.kinds)?void 0:n.some((t=>Cse(t,e.kind))))?void 0:t.getAvailableActions(e)})))}function Zae(e,t,n){const r=$ae.get(t);return r&&r.getEditsForAction(e,n)}var ese,tse,nse,rse=b({"src/services/refactorProvider.ts"(){lfe(),Sle(),$ae=new Map}});function ise(e,t=!0){const{file:n,program:r}=e,i=lY(e),o=u$(n,i.start),a=o.parent&&1&kb(o.parent)&&t?o.parent:wG(o,n,i);if(!a||!(TN(a.parent)||LE(a.parent)&&df(a.parent.parent)))return{error:hk(ja.Could_not_find_export_statement)};const s=r.getTypeChecker(),c=function(e,t){if(TN(e))return e.symbol;const n=e.parent.symbol;return n.valueDeclaration&&vf(n.valueDeclaration)?t.getMergedSymbol(n):n}(a.parent,s),_=kb(a)||(HE(a)&&!a.isExportEquals?1025:0),l=!!(1024&_);if(!(1&_)||!l&&c.exports.has("default"))return{error:hk(ja.This_file_already_has_a_default_export)};const u=e=>Tw(e)&&s.getSymbolAtLocation(e)?void 0:{error:hk(ja.Can_only_convert_named_export)};switch(a.kind){case 259:case 260:case 261:case 263:case 262:case 264:{const e=a;if(!e.name)return;return u(e.name)||{exportNode:e,exportName:e.name,wasDefault:l,exportingModuleSymbol:c}}case 240:{const e=a;if(!(2&e.declarationList.flags)||1!==e.declarationList.declarations.length)return;const t=Me(e.declarationList.declarations);if(!t.initializer)return;return In.assert(!l,"Can't have a default flag here"),u(t.name)||{exportNode:e,exportName:t.name,wasDefault:l,exportingModuleSymbol:c}}case 274:{const e=a;if(e.isExportEquals)return;return u(e.expression)||{exportNode:e,exportName:e.expression,wasDefault:l,exportingModuleSymbol:c}}default:return}}function ose(e,t){return dC.createImportSpecifier(!1,e===t?void 0:dC.createIdentifier(e),dC.createIdentifier(t))}function ase(e,t){return dC.createExportSpecifier(!1,e===t?void 0:dC.createIdentifier(e),dC.createIdentifier(t))}var sse,cse,_se=b({"src/services/refactors/convertExport.ts"(){lfe(),Sle(),ese="Convert export",tse={name:"Convert default export to named export",description:ja.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},nse={name:"Convert named export to default export",description:ja.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"},Xae(ese,{kinds:[tse.kind,nse.kind],getAvailableActions:function(e){const t=ise(e,"invoked"===e.triggerReason);if(!t)return r;if(!Tse(t)){const e=t.wasDefault?tse:nse;return[{name:ese,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:ese,description:ja.Convert_default_export_to_named_export.message,actions:[{...tse,notApplicableReason:t.error},{...nse,notApplicableReason:t.error}]}]:r},getEditsForAction:function(e,t){In.assert(t===tse.name||t===nse.name,"Unexpected action name");const n=ise(e);return In.assert(n&&!Tse(n),"Expected applicable refactor info"),{edits:rde.ChangeTracker.with(e,(t=>function(e,t,n,r,i){!function(e,{wasDefault:t,exportNode:n,exportName:r},i,o){if(t)if(HE(n)&&!n.isExportEquals){const t=n.expression,r=ase(t.text,t.text);i.replaceNode(e,n,dC.createExportDeclaration(void 0,!1,dC.createNamedExports([r])))}else i.delete(e,In.checkDefined(EG(n,88),"Should find a default keyword in modifier list"));else{const t=In.checkDefined(EG(n,93),"Should find an export keyword in modifier list");switch(n.kind){case 259:case 260:case 261:i.insertNodeAfter(e,t,dC.createToken(88));break;case 240:const a=Me(n.declarationList.declarations);if(!voe.Core.isSymbolReferencedInFile(r,o,e)&&!a.type){i.replaceNode(e,n,dC.createExportDefault(In.checkDefined(a.initializer,"Initializer was previously known to be present")));break}case 263:case 262:case 264:i.deleteModifier(e,t),i.insertNodeAfter(e,n,dC.createExportDefault(dC.createIdentifier(r.text)));break;default:In.fail("Unexpected exportNode kind "+n.kind)}}}(e,n,r,t.getTypeChecker()),function(e,{wasDefault:t,exportName:n,exportingModuleSymbol:r},i,o){const a=e.getTypeChecker(),s=In.checkDefined(a.getSymbolAtLocation(n),"Export name should resolve to a symbol");voe.Core.eachExportReference(e.getSourceFiles(),a,o,s,r,n.text,t,(e=>{if(n===e)return;const r=e.getSourceFile();t?function(e,t,n,r){const{parent:i}=t;switch(i.kind){case 208:n.replaceNode(e,t,dC.createIdentifier(r));break;case 273:case 278:{const t=i;n.replaceNode(e,t,ose(r,t.name.text));break}case 270:{const o=i;In.assert(o.name===t,"Import clause name should match provided ref");const a=ose(r,t.text),{namedBindings:s}=o;if(s)if(271===s.kind){n.deleteRange(e,{pos:t.getStart(e),end:s.getStart(e)});const i=sw(o.parent.moduleSpecifier)?vG(o.parent.moduleSpecifier,e):1,a=hG(void 0,[ose(r,t.text)],o.parent.moduleSpecifier,i);n.insertNodeAfter(e,o.parent,a)}else n.delete(e,t),n.insertNodeAtEndOfList(e,s.elements,a);else n.replaceNode(e,t,dC.createNamedImports([a]));break}case 202:const o=i;n.replaceNode(e,i,dC.createImportTypeNode(o.argument,o.assertions,dC.createIdentifier(r),o.typeArguments,o.isTypeOf));break;default:In.failBadSyntaxKind(i)}}(r,e,i,n.text):function(e,t,n){const r=t.parent;switch(r.kind){case 208:n.replaceNode(e,t,dC.createIdentifier("default"));break;case 273:{const t=dC.createIdentifier(r.name.text);1===r.parent.elements.length?n.replaceNode(e,r.parent,t):(n.delete(e,r),n.insertNodeBefore(e,r.parent,t));break}case 278:n.replaceNode(e,r,ase("default",r.name.text));break;default:In.assertNever(r,"Unexpected parent kind "+r.kind)}}(r,e,i)}))}(t,n,r,i)}(e.file,e.program,n,t,e.cancellationToken))),renameFilename:void 0,renameLocation:void 0}}})}});function lse(e,t=!0){const{file:n}=e,r=lY(e),i=u$(n,r.start),o=t?Ec(i,jE):wG(i,n,r);if(!o||!jE(o))return{error:"Selection is not an import declaration."};const a=r.start+r.length,s=m$(o,o.parent,n);if(s&&a>s.getStart())return;const{importClause:c}=o;return c?c.namedBindings?271===c.namedBindings.kind?{convertTo:0,import:c.namedBindings}:use(e.program,c)?{convertTo:1,import:c.namedBindings}:{convertTo:2,import:c.namedBindings}:{error:hk(ja.Could_not_find_namespace_import_or_named_imports)}:{error:hk(ja.Could_not_find_import_clause)}}function use(e,t){return $k(e.getCompilerOptions())&&function(e,t){const n=t.resolveExternalModuleName(e);if(!n)return!1;return n!==t.resolveExternalModuleSymbol(n)}(t.parent.moduleSpecifier,e.getTypeChecker())}function dse(e){return ND(e)?e.name:e.right}function pse(e,t,n,r,i=use(t,r.parent)){const o=t.getTypeChecker(),a=r.parent.parent,{moduleSpecifier:s}=a,c=new Set;r.elements.forEach((e=>{const t=o.getSymbolAtLocation(e.name);t&&c.add(t)}));const _=s&&sw(s)?Ine.moduleSpecifierToValidIdentifier(s.text,99):"module",l=r.elements.some((function(t){return!!voe.Core.eachSymbolReferenceInFile(t.name,o,e,(e=>{const t=o.resolveName(_,e,67108863,!0);return!!t&&(!c.has(t)||XE(e.parent))}))}))?wX(_,e):_,u=new Set;for(const t of r.elements){const r=(t.propertyName||t.name).text;voe.Core.eachSymbolReferenceInFile(t.name,o,e,(i=>{const o=dC.createPropertyAccessExpression(dC.createIdentifier(l),r);bN(i.parent)?n.replaceNode(e,i.parent,dC.createPropertyAssignment(i.text,o)):XE(i.parent)?u.add(t):n.replaceNode(e,i,o)}))}if(n.replaceNode(e,r,i?dC.createIdentifier(l):dC.createNamespaceImport(dC.createIdentifier(l))),u.size){const t=Ze(u.values(),(e=>dC.createImportSpecifier(e.isTypeOnly,e.propertyName&&dC.createIdentifier(e.propertyName.text),dC.createIdentifier(e.name.text))));n.insertNodeAfter(e,r.parent.parent,fse(a,void 0,t))}}function fse(e,t,n){return dC.createImportDeclaration(void 0,dC.createImportClause(!1,t,n&&n.length?dC.createNamedImports(n):void 0),e.moduleSpecifier,void 0)}var mse,gse,hse,yse,vse=b({"src/services/refactors/convertImport.ts"(){lfe(),Sle(),sse="Convert import",cse={0:{name:"Convert namespace import to named imports",description:ja.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:ja.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:ja.Convert_named_imports_to_default_import.message,kind:"refactor.rewrite.import.default"}},Xae(sse,{kinds:Xe(cse).map((e=>e.kind)),getAvailableActions:function(e){const t=lse(e,"invoked"===e.triggerReason);if(!t)return r;if(!Tse(t)){const e=cse[t.convertTo];return[{name:sse,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?Xe(cse).map((e=>({name:sse,description:e.description,actions:[{...e,notApplicableReason:t.error}]}))):r},getEditsForAction:function(e,t){In.assert(_e(Xe(cse),(e=>e.name===t)),"Unexpected action name");const n=lse(e);return In.assert(n&&!Tse(n),"Expected applicable refactor info"),{edits:rde.ChangeTracker.with(e,(t=>function(e,t,n,r){const i=t.getTypeChecker();0===r.convertTo?function(e,t,n,r,i){let o=!1;const a=[],s=new Map;voe.Core.eachSymbolReferenceInFile(r.name,t,e,(e=>{if(Zl(e.parent)){const r=dse(e.parent).text;t.resolveName(r,e,67108863,!0)&&s.set(r,!0),In.assert((ND(n=e.parent)?n.expression:n.left)===e,"Parent expression should match id"),a.push(e.parent)}else o=!0;var n}));const c=new Map;for(const t of a){const r=dse(t).text;let i=c.get(r);void 0===i&&c.set(r,i=s.has(r)?wX(r,e):r),n.replaceNode(e,t,dC.createIdentifier(i))}const _=[];c.forEach(((e,t)=>{_.push(dC.createImportSpecifier(!1,e===t?void 0:dC.createIdentifier(t),dC.createIdentifier(e)))}));const l=r.parent.parent;o&&!i?n.insertNodeAfter(e,l,fse(l,void 0,_)):n.replaceNode(e,l,fse(l,o?dC.createIdentifier(r.name.text):void 0,_))}(e,i,n,r.import,$k(t.getCompilerOptions())):pse(e,t,n,r.import,1===r.convertTo)}(e.file,e.program,t,n))),renameFilename:void 0,renameLocation:void 0}}})}});function bse(e,t=!0){const{file:n,startPosition:i}=e,o=xg(n),a=u$(n,i),s=Y$(lY(e)),c=s.pos===s.end&&t,_=Ec(a,(e=>e.parent&&Jl(e)&&!kse(s,e.parent,n)&&(c||QH(a,n,s.pos,s.end))));if(!_||!Jl(_))return{error:hk(ja.Selection_is_not_a_valid_type_node)};const l=e.program.getTypeChecker(),u=function(e,t){return Ec(e,Iu)||(t?Ec(e,zN):void 0)}(_,o);if(void 0===u)return{error:hk(ja.No_type_could_be_extracted_from_this_type_node)};const d=function(e,t,n,i){const o=[];return function a(s){if(nD(s)){if(Tw(s.typeName)){const a=s.typeName,c=e.resolveName(a.text,a,262144,!0);for(const e of(null==c?void 0:c.declarations)||r)if(zw(e)&&e.getSourceFile()===i){if(e.name.escapedText===a.escapedText&&kse(e,t,i))return!0;if(kse(n,e,i)&&!kse(t,e,i)){we(o,e);break}}}}else if(mD(s)){const e=Ec(s,(e=>fD(e)&&kse(e.extendsType,s,i)));if(!e||!kse(t,e,i))return!0}else if(tD(s)||hD(s)){const e=Ec(s.parent,Sl);if(e&&e.type&&kse(e.type,s,i)&&!kse(t,e,i))return!0}else if(oD(s))if(Tw(s.exprName)){const r=e.resolveName(s.exprName.text,s.exprName,111551,!1);if((null==r?void 0:r.valueDeclaration)&&kse(n,r.valueDeclaration,i)&&!kse(t,r.valueDeclaration,i))return!0}else if(Uv(s.exprName.left)&&!kse(t,s.parent,i))return!0;return i&&cD(s)&&ys(i,s.pos).line===ys(i,s.end).line&&RC(s,1),bI(s,a)}(t)?void 0:o}(l,_,u,n);return d?{isJS:o,selection:_,enclosingNode:u,typeParameters:d,typeElements:xse(l,_)}:{error:hk(ja.No_type_could_be_extracted_from_this_type_node)}}function xse(e,t){if(t){if(pD(t)){const n=[],r=new Map;for(const i of t.types){const t=xse(e,i);if(!t||!t.every((e=>e.name&&$x(r,_G(e.name)))))return;Ae(n,t)}return n}return gD(t)?xse(e,t.type):aD(t)?t.members:void 0}}function kse(e,t,n){return qH(e,As(n.text,t.pos),t.end)}var Sse=b({"src/services/refactors/extractType.ts"(){lfe(),Sle(),mse="Extract type",gse={name:"Extract to type alias",description:hk(ja.Extract_to_type_alias),kind:"refactor.extract.type"},hse={name:"Extract to interface",description:hk(ja.Extract_to_interface),kind:"refactor.extract.interface"},yse={name:"Extract to typedef",description:hk(ja.Extract_to_typedef),kind:"refactor.extract.typedef"},Xae(mse,{kinds:[gse.kind,hse.kind,yse.kind],getAvailableActions:function(e){const t=bse(e,"invoked"===e.triggerReason);return t?Tse(t)?e.preferences.provideRefactorNotApplicableReason?[{name:mse,description:hk(ja.Extract_type),actions:[{...yse,notApplicableReason:t.error},{...gse,notApplicableReason:t.error},{...hse,notApplicableReason:t.error}]}]:r:[{name:mse,description:hk(ja.Extract_type),actions:t.isJS?[yse]:Se([gse],t.typeElements&&hse)}]:r},getEditsForAction:function(e,t){const{file:n}=e,r=bse(e);In.assert(r&&!Tse(r),"Expected to find a range to extract");const i=wX("NewType",n),o=rde.ChangeTracker.with(e,(o=>{switch(t){case gse.name:return In.assert(!r.isJS,"Invalid actionName/JS combo"),function(e,t,n,r){const{enclosingNode:i,selection:o,typeParameters:a}=r,s=dC.createTypeAliasDeclaration(void 0,n,a.map((e=>dC.updateTypeParameterDeclaration(e,e.modifiers,e.name,e.constraint,void 0))),o);e.insertNodeBefore(t,i,uA(s),!0),e.replaceNode(t,o,dC.createTypeReferenceNode(n,a.map((e=>dC.createTypeReferenceNode(e.name,void 0)))),{leadingTriviaOption:rde.LeadingTriviaOption.Exclude,trailingTriviaOption:rde.TrailingTriviaOption.ExcludeWhitespace})}(o,n,i,r);case yse.name:return In.assert(r.isJS,"Invalid actionName/JS combo"),function(e,t,n,r,i){var o;const{enclosingNode:a,selection:s,typeParameters:c}=i;RC(s,7168);const _=dC.createJSDocTypedefTag(dC.createIdentifier("typedef"),dC.createJSDocTypeExpression(s),dC.createIdentifier(r)),l=[];T(c,(e=>{const t=N_(e),n=dC.createTypeParameterDeclaration(void 0,e.name),r=dC.createJSDocTemplateTag(dC.createIdentifier("template"),t&&kt(t,wN),[n]);l.push(r)}));const u=dC.createJSDocComment(void 0,dC.createNodeArray(ue(l,[_])));if(zN(a)){const r=a.getStart(n),i=nX(t.host,null==(o=t.formatContext)?void 0:o.options);e.insertNodeAt(n,a.getStart(n),u,{suffix:i+i+n.text.slice(mX(n.text,r-1),r)})}else e.insertNodeBefore(n,a,u,!0);e.replaceNode(n,s,dC.createTypeReferenceNode(r,c.map((e=>dC.createTypeReferenceNode(e.name,void 0)))))}(o,e,n,i,r);case hse.name:return In.assert(!r.isJS&&!!r.typeElements,"Invalid actionName/JS combo"),function(e,t,n,r){var i;const{enclosingNode:o,selection:a,typeParameters:s,typeElements:c}=r,_=dC.createInterfaceDeclaration(void 0,n,s,void 0,c);OP(_,null==(i=c[0])?void 0:i.parent),e.insertNodeBefore(t,o,uA(_),!0),e.replaceNode(t,a,dC.createTypeReferenceNode(n,s.map((e=>dC.createTypeReferenceNode(e.name,void 0)))),{leadingTriviaOption:rde.LeadingTriviaOption.Exclude,trailingTriviaOption:rde.TrailingTriviaOption.ExcludeWhitespace})}(o,n,i,r);default:In.fail("Unexpected action name")}})),a=n.fileName;return{edits:o,renameFilename:a,renameLocation:DX(o,a,i,!1)}}})}});function Tse(e){return void 0!==e.error}function Cse(e,t){return!t||e.substr(0,t.length)===t}var Ase,wse,Dse,Ese,Nse=b({"src/services/refactors/helpers.ts"(){}});function Fse(e){const t=function(e){const{file:t}=e,n=Y$(lY(e)),{statements:r}=t,i=O(r,(e=>e.end>n.pos));if(-1===i)return;const o=r[i];if(zc(o)&&o.name&&BH(o.name,n))return{toMove:[r[i]],afterLast:r[i+1]};if(n.pos>o.getStart(t))return;const a=O(r,(e=>e.end>n.end),i);return-1!==a&&(0===a||r[a].getStart(t){for(let r=e;r!!e.initializer&&Dg(e.initializer,!0)));default:return!1}}(e)&&!lm(e)}function Ise(e,t,n){for(const{first:r,afterLast:i}of t)n.deleteNodeRangeExcludingEnd(e,r,i)}function Ose(e){switch(e.kind){case 269:return e.importClause&&e.importClause.namedBindings&&271===e.importClause.namedBindings.kind?e.importClause.namedBindings.name:void 0;case 268:return e.name;case 257:return xt(e.name,Tw);default:return In.assertNever(e,"Unexpected node kind "+e.kind)}}function Lse(e,t,n,r,i,o,a){const s=Ine.moduleSpecifierToValidIdentifier(i,99);let c=!1;const _=[];if(voe.Core.eachSymbolReferenceInFile(o,n,t,(e=>{ND(e.parent)&&(c=c||!!n.resolveName(s,e,67108863,!0),r.has(n.getSymbolAtLocation(e.parent.name))&&_.push(e))})),_.length){const n=c?wX(s,t):s;for(const r of _)e.replaceNode(t,r,dC.createIdentifier(n));e.insertNodeAfter(t,a,function(e,t,n){const r=dC.createIdentifier(t),i=dC.createStringLiteral(n);switch(e.kind){case 269:return dC.createImportDeclaration(void 0,dC.createImportClause(!1,void 0,dC.createNamespaceImport(r)),i,void 0);case 268:return dC.createImportEqualsDeclaration(void 0,!1,r,dC.createExternalModuleReference(i));case 257:return dC.createVariableDeclaration(r,void 0,void 0,Jse(i));default:return In.assertNever(e,"Unexpected node kind "+e.kind)}}(a,s,i))}}function Mse(e){return 269===e.kind?e.moduleSpecifier:268===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function Rse(e,t){if(jE(e))sw(e.moduleSpecifier)&&t(e);else if(BE(e))rN(e.moduleReference)&&ed(e.moduleReference.expression)&&t(e);else if(_E(e))for(const n of e.declarationList.declarations)n.initializer&&Dg(n.initializer,!0)&&t(n)}function Bse(e,t,n,r,i,o,a,s){const c=ga(sa(e.path),r),_=ZR(i.getCompilerOptions(),e,e.path,c,pG(i,o));if(a)return gG(t,n.map((e=>dC.createImportSpecifier(!1,void 0,dC.createIdentifier(e)))),_,s);{In.assert(!t,"No default import should exist");const e=n.map((e=>dC.createBindingElement(void 0,void 0,e)));return e.length?jse(dC.createObjectBindingPattern(e),void 0,Jse(dC.createStringLiteral(_))):void 0}}function jse(e,t,n,r=2){return dC.createVariableStatement(void 0,dC.createVariableDeclarationList([dC.createVariableDeclaration(e,void 0,t,n)],r))}function Jse(e){return dC.createCallExpression(dC.createIdentifier("require"),void 0,[e])}function zse(e,t,n,r){switch(t.kind){case 269:!function(e,t,n,r){if(!t.importClause)return;const{name:i,namedBindings:o}=t.importClause,a=!i||r(i),s=!o||(271===o.kind?r(o.name):0!==o.elements.length&&o.elements.every((e=>r(e.name))));if(a&&s)n.delete(e,t);else if(i&&a&&n.delete(e,i),o)if(s)n.replaceNode(e,t.importClause,dC.updateImportClause(t.importClause,t.importClause.isTypeOnly,i,void 0));else if(272===o.kind)for(const t of o.elements)r(t.name)&&n.delete(e,t)}(e,t,n,r);break;case 268:r(t.name)&&n.delete(e,t);break;case 257:!function(e,t,n,r){const{name:i}=t;switch(i.kind){case 79:r(i)&&(t.initializer&&Dg(t.initializer,!0)?n.delete(e,DE(t.parent)&&1===S(t.parent.declarations)?t.parent.parent:t):n.delete(e,i));break;case 204:break;case 203:if(i.elements.every((e=>Tw(e.name)&&r(e.name))))n.delete(e,DE(t.parent)&&1===t.parent.declarations.length?t.parent.parent:t);else for(const t of i.elements)Tw(t.name)&&r(t.name)&&n.delete(e,t.name)}}(e,t,n,r);break;default:In.assertNever(t,"Unexpected import decl kind "+t.kind)}}function Use(e){switch(e.kind){case 268:case 273:case 270:case 271:return!0;case 257:return qse(e);case 205:return wE(e.parent.parent)&&qse(e.parent.parent);default:return!1}}function qse(e){return TN(e.parent.parent.parent)&&!!e.initializer&&Dg(e.initializer,!0)}function Vse(e,t,n){switch(e.kind){case 269:{const r=e.importClause;if(!r)return;const i=r.name&&n(r.name)?r.name:void 0,o=r.namedBindings&&function(e,t){if(271===e.kind)return t(e.name)?e:void 0;{const n=e.elements.filter((e=>t(e.name)));return n.length?dC.createNamedImports(n):void 0}}(r.namedBindings,n);return i||o?dC.createImportDeclaration(void 0,dC.createImportClause(r.isTypeOnly,i,o),t,void 0):void 0}case 268:return n(e.name)?e:void 0;case 257:{const r=function(e,t){switch(e.kind){case 79:return t(e)?e:void 0;case 204:return e;case 203:{const n=e.elements.filter((e=>e.propertyName||!Tw(e.name)||t(e.name)));return n.length?dC.createObjectBindingPattern(n):void 0}}}(e.name,n);return r?jse(r,e.type,Jse(t),e.parent.flags):void 0}default:return In.assertNever(e,"Unexpected import kind "+e.kind)}}function Qse(e,t,n){e.forEachChild((function e(r){if(Tw(r)&&!Xh(r)){const e=t.getSymbolAtLocation(r);e&&n(e)}else r.forEachChild(e)}))}function Kse(e){return Wse(e)&&TN(e.parent)||wE(e)&&TN(e.parent.parent.parent)}function Wse(e){switch(e.kind){case 259:case 260:case 264:case 263:case 262:case 261:case 268:return!0;default:return!1}}function Hse(e,t){switch(e.kind){case 259:case 260:case 264:case 263:case 262:case 261:case 268:return t(e);case 240:return A(e.declarationList.declarations,(e=>$se(e.name,t)));case 241:{const{expression:n}=e;return QD(n)&&1===Hg(n)?t(e):void 0}}}function $se(e,t){switch(e.kind){case 79:return t(kt(e.parent,(e=>wE(e)||wD(e))));case 204:case 203:return A(e.elements,(e=>XD(e)?void 0:$se(e.name,t)));default:return In.assertNever(e,"Unexpected name kind "+e.kind)}}function Gse(e){switch(e.kind){case 257:return e.parent.parent;case 205:return Gse(kt(e.parent.parent,(e=>wE(e)||wD(e))));default:return e}}function Xse(e,t,n,r,i){if(!Yse(e,t,i,n))if(i)uE(t)||r.insertExportModifier(e,t);else{const n=ece(t);0!==n.length&&r.insertNodesAfter(e,t,n.map(tce))}}function Yse(e,t,n,r){var i;return n?!uE(t)&&cb(t,1)||!(!r||!(null==(i=e.symbol.exports)?void 0:i.has(r.escapedText))):!!e.symbol&&!!e.symbol.exports&&ece(t).some((t=>e.symbol.exports.has(Pc(t))))}function Zse(e){const t=LP(e)?ue([dC.createModifier(93)],Kc(e)):void 0;switch(e.kind){case 259:return dC.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 260:const n=MP(e)?Qc(e):void 0;return dC.updateClassDeclaration(e,ue(n,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 240:return dC.updateVariableStatement(e,t,e.declarationList);case 264:return dC.updateModuleDeclaration(e,t,e.name,e.body);case 263:return dC.updateEnumDeclaration(e,t,e.name,e.members);case 262:return dC.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 261:return dC.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 268:return dC.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 241:return In.fail();default:return In.assertNever(e,"Unexpected declaration kind "+e.kind)}}function ece(e){switch(e.kind){case 259:case 260:return[e.name.text];case 240:return Z(e.declarationList.declarations,(e=>Tw(e.name)?e.name.text:void 0));case 264:case 263:case 262:case 261:case 268:return r;case 241:return In.fail("Can't export an ExpressionStatement");default:return In.assertNever(e,"Unexpected decl kind "+e.kind)}}function tce(e){return dC.createExpressionStatement(dC.createBinaryExpression(dC.createPropertyAccessExpression(dC.createIdentifier("exports"),dC.createIdentifier(e)),63,dC.createIdentifier(e)))}var nce,rce,ice,oce=b({"src/services/refactors/moveToNewFile.ts"(){TB(),lfe(),Sle(),Ase="Move to a new file",wse=hk(ja.Move_to_a_new_file),Xae(Ase,{kinds:[(Dse={name:Ase,description:wse,kind:"refactor.move.newFile"}).kind],getAvailableActions:function(e){const t=Fse(e);return e.preferences.allowTextChangesInNewFiles&&t?[{name:Ase,description:wse,actions:[Dse]}]:e.preferences.provideRefactorNotApplicableReason?[{name:Ase,description:wse,actions:[{...Dse,notApplicableReason:hk(ja.Selection_is_not_a_valid_statement_or_statements)}]}]:r},getEditsForAction:function(e,t){In.assert(t===Ase,"Wrong refactor invoked");const n=In.checkDefined(Fse(e));return{edits:rde.ChangeTracker.with(e,(t=>function(e,t,n,r,i,o){const a=t.getTypeChecker(),s=function(e,t,n){const r=new Ese,i=new Ese,o=new Ese,a=function(e){if(void 0===e)return;const t=n.getJsxNamespace(e),r=n.resolveName(t,e,1920,!0);return r&&_e(r.declarations,Use)?r:void 0}(P(t,(e=>!!(2&e.transformFlags))));a&&i.add(a);for(const e of t)Hse(e,(e=>{r.add(In.checkDefined(uE(e)?n.getSymbolAtLocation(e.expression.left):e.symbol,"Need a symbol here"))}));for(const a of t)Qse(a,n,(t=>{if(t.declarations)for(const a of t.declarations)Use(a)?i.add(t):Kse(a)&&(wE(n=a)?n.parent.parent.parent:n.parent)===e&&!r.has(t)&&o.add(t);var n}));const s=i.clone(),c=new Ese;for(const i of e.statements)R(t,i)||(a&&2&i.transformFlags&&s.delete(a),Qse(i,n,(e=>{r.has(e)&&c.add(e),s.delete(e)})));return{movedSymbols:r,newFileImportsFromOldFile:o,oldFileImportsFromNewFile:c,oldImportsNeededByNewFile:i,unusedImportsFromOldFile:s}}(e,n.all,a),c=sa(e.fileName),_=XS(e.fileName),l=ma(c,function(e,t,n,r){let i=e;for(let o=1;;o++){const a=ma(n,i+t);if(!r.fileExists(a))return i;i=`${e}.${o}`}}((u=s.oldFileImportsFromNewFile,d=s.movedSymbols,u.forEachEntry(kG)||d.forEachEntry(kG)||"newFile"),_,c,i))+_;var u,d;r.createNewFile(e,l,function(e,t,n,r,i,o,a,s){const c=i.getTypeChecker(),_=Dn(e.statements,lm);if(void 0===e.externalModuleIndicator&&void 0===e.commonJsModuleIndicator&&0===t.oldImportsNeededByNewFile.size())return Ise(e,r.ranges,n),[..._,...r.all];const l=!!e.externalModuleIndicator,u=bG(e,s),d=function(e,t,n,r,i,o,a){let s;const c=[];return t.forEach((e=>{"default"===e.escapedName?s=dC.createIdentifier(kG(e)):c.push(e.name)})),Bse(e,s,c,n,r,i,o,a)}(e,t.oldFileImportsFromNewFile,a,i,o,l,u);d&&NG(n,e,d,!0,s),function(e,t,n,r,i){for(const o of e.statements)R(t,o)||Rse(o,(t=>zse(e,t,n,(e=>r.has(i.getSymbolAtLocation(e))))))}(e,r.all,n,t.unusedImportsFromOldFile,c),Ise(e,r.ranges,n),function(e,t,n,r,i,o){const a=t.getTypeChecker();for(const s of t.getSourceFiles())if(s!==r)for(const c of s.statements)Rse(c,(_=>{if(a.getSymbolAtLocation(Mse(_))!==r.symbol)return;const l=e=>{const t=wD(e.parent)?AG(a,e.parent):Ix(a.getSymbolAtLocation(e),a);return!!t&&i.has(t)};zse(s,_,e,l);const u=ga(sa(r.path),o),d=ZR(t.getCompilerOptions(),s,s.path,u,pG(t,n)),p=Vse(_,dC.createStringLiteral(d),l);p&&e.insertNodeAfter(s,c,p);const f=Ose(_);f&&Lse(e,s,a,i,d,f,_)}))}(n,i,o,e,t.movedSymbols,a);const p=function(e,t,n,r,i,o,a,s,c){const _=[];for(const n of e.statements)Rse(n,(e=>{Se(_,Vse(e,Mse(e),(e=>t.has(i.getSymbolAtLocation(e)))))}));let l;const u=[],d=oG();return n.forEach((t=>{if(t.declarations)for(const i of t.declarations){if(!Kse(i))continue;const t=uE(n=i)?xt(n.expression.left.name,Tw):xt(n.name,Tw);if(!t)continue;const o=Gse(i);d(o)&&Xse(e,o,t,r,s),cb(i,1024)?l=t:u.push(t.text)}var n})),Se(_,Bse(e,l,u,ca(e.fileName),o,a,s,c)),_}(e,t.oldImportsNeededByNewFile,t.newFileImportsFromOldFile,n,c,i,o,l,u),f=function(e,t,n,r){return H(t,(t=>{if(i=t,In.assert(TN(i.parent),"Node parent should be a SourceFile"),(Wse(i)||_E(i))&&!Yse(e,t,r)&&Hse(t,(e=>{var t;return n.has(In.checkDefined(null==(t=xt(e,Au))?void 0:t.symbol))}))){const e=function(e,t){return t?[Zse(e)]:function(e){return[e,...ece(e).map(tce)]}(e)}(t,r);if(e)return e}var i;return t}))}(e,r.all,t.oldFileImportsFromNewFile,l);return p.length&&f.length?[..._,...p,4,...f]:[..._,...p,...f]}(e,s,r,n,t,i,l,o)),function(e,t,n,r,i){const o=e.getCompilerOptions().configFile;if(!o)return;const a=va(ma(n,"..",r)),s=La(o.fileName,a,i),c=o.statements[0]&&xt(o.statements[0].expression,ED),_=c&&P(c.properties,(e=>vN(e)&&sw(e.name)&&"files"===e.name.text));_&&DD(_.initializer)&&t.insertNodeInListAfter(o,je(_.initializer.elements),dC.createStringLiteral(s),_.initializer.elements)}(t,r,e.fileName,l,gv(i))}(e.file,e.program,n,t,e.host,e.preferences))),renameFilename:void 0,renameLocation:void 0}}}),Ese=class{constructor(){this.map=new Map}add(e){this.map.set(VB(e)+"",e)}has(e){return this.map.has(VB(e)+"")}delete(e){this.map.delete(VB(e)+"")}forEach(e){this.map.forEach(e)}forEachEntry(e){return up(this.map,e)}clone(){const e=new Ese;return pp(this.map,e.map),e}size(){return this.map.size}}}});function ace(e){const{file:t,startPosition:n,program:i}=e;return _ce(t,n,i)?[{name:nce,description:rce,actions:[ice]}]:r}function sce(e){const{file:t,startPosition:n,program:r}=e,i=_ce(t,n,r);if(!i)return;const o=r.getTypeChecker(),a=i[i.length-1];let s=a;switch(a.kind){case 170:s=dC.updateMethodSignature(a,a.modifiers,a.name,a.questionToken,a.typeParameters,c(i),a.type);break;case 171:s=dC.updateMethodDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.questionToken,a.typeParameters,c(i),a.type,a.body);break;case 176:s=dC.updateCallSignature(a,a.typeParameters,c(i),a.type);break;case 173:s=dC.updateConstructorDeclaration(a,a.modifiers,c(i),a.body);break;case 177:s=dC.updateConstructSignature(a,a.typeParameters,c(i),a.type);break;case 259:s=dC.updateFunctionDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.typeParameters,c(i),a.type,a.body);break;default:return In.failBadSyntaxKind(a,"Unhandled signature kind in overload list conversion refactoring")}if(s!==a)return{renameFilename:void 0,renameLocation:void 0,edits:rde.ChangeTracker.with(e,(e=>{e.replaceNodeRange(t,i[0],i[i.length-1],s)}))};function c(e){const t=e[e.length-1];return Cl(t)&&t.body&&(e=e.slice(0,e.length-1)),dC.createNodeArray([dC.createParameterDeclaration(void 0,dC.createToken(25),"args",void 0,dC.createUnionTypeNode(V(e,_)))])}function _(e){const t=V(e.parameters,l);return RC(dC.createTupleTypeNode(t),_e(t,(e=>!!S($C(e))))?0:1)}function l(e){In.assert(Tw(e.name));const t=OP(dC.createNamedTupleMember(e.dotDotDotToken,e.name,e.questionToken,e.type||dC.createKeywordTypeNode(131)),e),n=e.symbol&&e.symbol.getDocumentationComment(o);if(n){const e=e2(n);e.length&&GC(t,[{text:`*\n${e.split("\n").map((e=>" * "+e)).join("\n")}\n `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return t}}function cce(e){switch(e.kind){case 170:case 171:case 176:case 173:case 177:case 259:return!0}return!1}function _ce(e,t,n){const r=Ec(u$(e,t),cce);if(!r)return;if(Cl(r)&&r.body&&JH(r.body,t))return;const i=n.getTypeChecker(),o=r.symbol;if(!o)return;const a=o.declarations;if(S(a)<=1)return;if(!F(a,(t=>wp(t)===e)))return;if(!cce(a[0]))return;const s=a[0].kind;if(!F(a,(e=>e.kind===s)))return;const c=a;if(_e(c,(e=>!!e.typeParameters||_e(e.parameters,(e=>!!e.modifiers||!Tw(e.name))))))return;const _=Z(c,(e=>i.getSignatureFromDeclaration(e)));if(S(_)!==S(a))return;const l=i.getReturnTypeOfSignature(_[0]);return F(_,(e=>i.getReturnTypeOfSignature(e)===l))?c:void 0}var lce,uce,dce,pce,fce=b({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){lfe(),Sle(),nce="Convert overload list to single signature",rce=ja.Convert_overload_list_to_single_signature.message,Xae(nce,{kinds:[(ice={name:nce,description:rce,kind:"refactor.rewrite.function.overloadList"}).kind],getEditsForAction:sce,getAvailableActions:ace})}});function mce(e){const{file:t,startPosition:n,triggerReason:i}=e,o=hce(t,n,"invoked"===i);return o?Tse(o)?e.preferences.provideRefactorNotApplicableReason?[{name:lce,description:uce,actions:[{...dce,notApplicableReason:o.error},{...pce,notApplicableReason:o.error}]}]:r:[{name:lce,description:uce,actions:[o.addBraces?dce:pce]}]:r}function gce(e,t){const{file:n,startPosition:r}=e,i=hce(n,r);In.assert(i&&!Tse(i),"Expected applicable refactor info");const{expression:o,returnStatement:a,func:s}=i;let c;if(t===dce.name){const e=dC.createReturnStatement(o);c=dC.createBlock([e],!0),EX(o,e,n,3,!0)}else if(t===pce.name&&a){const e=o||dC.createVoidZero();c=OX(e)?dC.createParenthesizedExpression(e):e,FX(a,c,n,3,!1),EX(a,c,n,3,!1),NX(a,c,n,3,!1)}else In.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:rde.ChangeTracker.with(e,(e=>{e.replaceNode(n,s.body,c)}))}}function hce(e,t,n=!0,r){const i=u$(e,t),o=zm(i);if(!o)return{error:hk(ja.Could_not_find_a_containing_arrow_function)};if(!BD(o))return{error:hk(ja.Containing_function_is_not_an_arrow_function)};if(BH(o,i)&&(!BH(o.body,i)||n)){if(Cse(dce.kind,r)&&_u(o.body))return{func:o,addBraces:!0,expression:o.body};if(Cse(pce.kind,r)&&cE(o.body)&&1===o.body.statements.length){const e=Me(o.body.statements);if(bE(e))return{func:o,addBraces:!1,expression:e.expression,returnStatement:e}}}}var yce,vce,bce,xce,kce,Sce=b({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){lfe(),Sle(),lce="Add or remove braces in an arrow function",uce=ja.Add_or_remove_braces_in_an_arrow_function.message,dce={name:"Add braces to arrow function",description:ja.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},pce={name:"Remove braces from arrow function",description:ja.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"},Xae(lce,{kinds:[pce.kind],getEditsForAction:gce,getAvailableActions:mce})}}),Tce={},Cce=b({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){fce(),Sce()}});function Ace(e){const{file:t,startPosition:n,program:i,kind:o}=e,a=Ece(t,n,i);if(!a)return r;const{selectedVariableDeclaration:s,func:c}=a,_=[],l=[];if(Cse(xce.kind,o)){const e=s||BD(c)&&wE(c.parent)?void 0:hk(ja.Could_not_convert_to_named_function);e?l.push({...xce,notApplicableReason:e}):_.push(xce)}if(Cse(bce.kind,o)){const e=!s&&BD(c)?void 0:hk(ja.Could_not_convert_to_anonymous_function);e?l.push({...bce,notApplicableReason:e}):_.push(bce)}if(Cse(kce.kind,o)){const e=RD(c)?void 0:hk(ja.Could_not_convert_to_arrow_function);e?l.push({...kce,notApplicableReason:e}):_.push(kce)}return[{name:yce,description:vce,actions:0===_.length&&e.preferences.provideRefactorNotApplicableReason?l:_}]}function wce(e,t){const{file:n,startPosition:r,program:i}=e,o=Ece(n,r,i);if(!o)return;const{func:a}=o,s=[];switch(t){case bce.name:s.push(...function(e,t){const{file:n}=e,r=Nce(t.body),i=dC.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,r);return rde.ChangeTracker.with(e,(e=>e.replaceNode(n,t,i)))}(e,a));break;case xce.name:const t=function(e){const t=e.parent;if(!wE(t)||!Cm(t))return;const n=t.parent,r=n.parent;return DE(n)&&_E(r)&&Tw(t.name)?{variableDeclaration:t,variableDeclarationList:n,statement:r,name:t.name}:void 0}(a);if(!t)return;s.push(...function(e,t,n){const{file:r}=e,i=Nce(t.body),{variableDeclaration:o,variableDeclarationList:a,statement:s,name:c}=n;kX(s);const _=1&Tc(o)|bb(t),l=dC.createModifiersFromModifierFlags(_),u=dC.createFunctionDeclaration(S(l)?l:void 0,t.asteriskToken,c,t.typeParameters,t.parameters,t.type,i);return 1===a.declarations.length?rde.ChangeTracker.with(e,(e=>e.replaceNode(r,s,u))):rde.ChangeTracker.with(e,(e=>{e.delete(r,o),e.insertNodeAfter(r,s,u)}))}(e,a,t));break;case kce.name:if(!RD(a))return;s.push(...function(e,t){const{file:n}=e,r=t.body.statements[0];let i;!function(e,t){return 1===e.statements.length&&bE(t)&&!!t.expression}(t.body,r)?i=t.body:(i=r.expression,xX(i),TX(r,i));const o=dC.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,dC.createToken(38),i);return rde.ChangeTracker.with(e,(e=>e.replaceNode(n,t,o)))}(e,a));break;default:return In.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:s}}function Dce(e){let t=!1;return e.forEachChild((function e(n){MH(n)?t=!0:Fl(n)||EE(n)||RD(n)||bI(n,e)})),t}function Ece(e,t,n){const r=u$(e,t),i=n.getTypeChecker(),o=function(e,t,n){if(!function(e){return wE(e)||DE(e)&&1===e.declarations.length}(n))return;const r=(wE(n)?n:Me(n.declarations)).initializer;return r&&(BD(r)||RD(r)&&!Fce(e,t,r))?r:void 0}(e,i,r.parent);if(o&&!Dce(o.body)&&!i.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};const a=zm(r);if(a&&(RD(a)||BD(a))&&!BH(a.body,r)&&!Dce(a.body)&&!i.containsArgumentsReference(a)){if(RD(a)&&Fce(e,i,a))return;return{selectedVariableDeclaration:!1,func:a}}}function Nce(e){if(_u(e)){const t=dC.createReturnStatement(e),n=e.getSourceFile();return OP(t,e),xX(t),FX(e,t,n,void 0,!0),dC.createBlock([t],!0)}return e}function Fce(e,t,n){return!!n.name&&voe.Core.isSymbolReferencedInFile(n.name,t,e)}var Pce,Ice,Oce,Lce,Mce=b({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){lfe(),Sle(),yce="Convert arrow function or function expression",vce=hk(ja.Convert_arrow_function_or_function_expression),bce={name:"Convert to anonymous function",description:hk(ja.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},xce={name:"Convert to named function",description:hk(ja.Convert_to_named_function),kind:"refactor.rewrite.function.named"},kce={name:"Convert to arrow function",description:hk(ja.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},Xae(yce,{kinds:[bce.kind,xce.kind,kce.kind],getEditsForAction:wce,getAvailableActions:Ace})}}),Rce={},Bce=b({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){Mce()}});function jce(e){const{file:t,startPosition:n}=e;return xg(t)?r:Wce(t,n,e.program.getTypeChecker())?[{name:Pce,description:Oce,actions:[Lce]}]:r}function Jce(e,t){In.assert(t===Pce,"Unexpected action name");const{file:n,startPosition:r,program:i,cancellationToken:o,host:a}=e,s=Wce(n,r,i.getTypeChecker());if(!s||!o)return;const c=function(e,t,n){const r=function(e){switch(e.kind){case 259:return e.name?[e.name]:[In.checkDefined(EG(e,88),"Nameless function declaration should be a default export")];case 171:return[e.name];case 173:const t=In.checkDefined(YH(e,135,e.getSourceFile()),"Constructor declaration should have constructor keyword");return 228===e.parent.kind?[e.parent.parent.name,t]:[t];case 216:return[e.parent.name];case 215:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return In.assertNever(e,"Unexpected function declaration kind "+e.kind)}}(e),i=$w(e)?function(e){switch(e.parent.kind){case 260:const t=e.parent;return t.name?[t.name]:[In.checkDefined(EG(t,88),"Nameless class declaration should be a default export")];case 228:const n=e.parent,r=e.parent.parent,i=n.name;return i?[i,r.name]:[r.name]}}(e):[],o=fe([...r,...i],Mt),a=t.getTypeChecker(),s=function(t){const n={accessExpressions:[],typeUsages:[]},o={functionCalls:[],declarations:[],classReferences:n,valid:!0},s=V(r,c),_=V(i,c),l=$w(e),u=V(r,(e=>zce(e,a)));for(const r of t){if(r.kind===voe.EntryKind.Span){o.valid=!1;continue}if(R(u,c(r.node))){if(Kw(d=r.node.parent)&&(FE(d.parent)||aD(d.parent))){o.signature=r.node.parent;continue}const e=Vce(r);if(e){o.functionCalls.push(e);continue}}const t=zce(r.node,a);if(t&&R(u,t)){const e=qce(r);if(e){o.declarations.push(e);continue}}if(R(s,c(r.node))||lH(r.node)){if(Uce(r))continue;const e=qce(r);if(e){o.declarations.push(e);continue}const t=Vce(r);if(t){o.functionCalls.push(t);continue}}if(l&&R(_,c(r.node))){if(Uce(r))continue;const t=qce(r);if(t){o.declarations.push(t);continue}const i=Qce(r);if(i){n.accessExpressions.push(i);continue}if(NE(e.parent)){const e=Kce(r);if(e){n.typeUsages.push(e);continue}}}o.valid=!1}var d;return o}(H(o,(e=>voe.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n))));return F(s.declarations,(e=>R(o,e)))||(s.valid=!1),s;function c(e){const t=a.getSymbolAtLocation(e);return t&&uX(t,a)}}(s,i,o);if(c.valid){const t=rde.ChangeTracker.with(e,(e=>function(e,t,n,r,i,o){const a=o.signature,s=V(e_e(i,t,n),(e=>gX(e)));a&&_(a,V(e_e(a,t,n),(e=>gX(e)))),_(i,s);const c=he(o.functionCalls,((e,t)=>Jt(e.pos,t.pos)));for(const e of c)if(e.arguments&&e.arguments.length){const t=gX(Zce(i,e.arguments),!0);r.replaceNodeRange(wp(e),Me(e.arguments),je(e.arguments),t,{leadingTriviaOption:rde.LeadingTriviaOption.IncludeAll,trailingTriviaOption:rde.TrailingTriviaOption.Include})}function _(t,n){r.replaceNodeRangeWithNodes(e,Me(t.parameters),je(t.parameters),n,{joiner:", ",indentation:0,leadingTriviaOption:rde.LeadingTriviaOption.IncludeAll,trailingTriviaOption:rde.TrailingTriviaOption.Include})}}(n,i,a,e,s,c)));return{renameFilename:void 0,renameLocation:void 0,edits:t}}return{edits:[]}}function zce(e,t){const n=c2(e);if(n){const e=t.getContextualTypeForObjectLiteralElement(n),r=null==e?void 0:e.getSymbol();if(r&&!(6&Fx(r)))return r}}function Uce(e){const t=e.node;return WE(t.parent)||JE(t.parent)||BE(t.parent)||VE(t.parent)||XE(t.parent)||HE(t.parent)?t:void 0}function qce(e){if(Nu(e.node.parent))return e.node}function Vce(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 210:case 211:const e=xt(n,tu);if(e&&e.expression===t)return e;break;case 208:const r=xt(n,ND);if(r&&r.parent&&r.name===t){const e=xt(r.parent,tu);if(e&&e.expression===r)return e}break;case 209:const i=xt(n,FD);if(i&&i.parent&&i.argumentExpression===t){const e=xt(i.parent,tu);if(e&&e.expression===i)return e}}}}function Qce(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 208:const e=xt(n,ND);if(e&&e.expression===t)return e;break;case 209:const r=xt(n,FD);if(r&&r.expression===t)return r}}}function Kce(e){const t=e.node;if(2===sH(t)||Jb(t.parent))return t}function Wce(e,t,n){const r=l$(e,t),i=Um(r);if(!function(e){const t=Ec(e,Uu);if(t){const e=Ec(t,(e=>!Uu(e)));return!!e&&Cl(e)}return!1}(r))return!(i&&function(e,t){var n;if(!function(e,t){return function(e){return Xce(e)?e.length-1:e.length}(e)>=Ice&&F(e,(e=>function(e,t){if(rd(e)){const n=t.getTypeAtLocation(e);if(!t.isArrayType(n)&&!t.isTupleType(n))return!1}return!e.modifiers&&Tw(e.name)}(e,t)))}(e.parameters,t))return!1;switch(e.kind){case 259:return $ce(e)&&Hce(e,t);case 171:if(ED(e.parent)){const r=zce(e.name,t);return 1===(null==(n=null==r?void 0:r.declarations)?void 0:n.length)&&Hce(e,t)}return Hce(e,t);case 173:return NE(e.parent)?$ce(e.parent)&&Hce(e,t):Gce(e.parent.parent)&&Hce(e,t);case 215:case 216:return Gce(e.parent)}return!1}(i,n)&&BH(i,r))||i.body&&BH(i.body,r)?void 0:i}function Hce(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function $ce(e){return!!e.name||!!EG(e,88)}function Gce(e){return wE(e)&&im(e)&&Tw(e.name)&&!e.type}function Xce(e){return e.length>0&&MH(e[0].name)}function Yce(e){return Xce(e)&&(e=dC.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function Zce(e,t){const n=Yce(e.parameters),r=rd(je(n)),i=V(r?t.slice(0,n.length-1):t,((e,t)=>{const r=(i=t_e(n[t]),Tw(o=e)&&Ny(o)===i?dC.createShorthandPropertyAssignment(i):dC.createPropertyAssignment(i,o));var i,o;return xX(r.name),vN(r)&&xX(r.initializer),TX(e,r),r}));if(r&&t.length>=n.length){const e=t.slice(n.length-1),r=dC.createPropertyAssignment(t_e(je(n)),dC.createArrayLiteralExpression(e));i.push(r)}return dC.createObjectLiteralExpression(i,!1)}function e_e(e,t,n){const r=t.getTypeChecker(),i=Yce(e.parameters),o=V(i,(function(e){const t=dC.createBindingElement(void 0,void 0,t_e(e),rd(e)&&u(e)?dC.createArrayLiteralExpression():e.initializer);return xX(t),e.initializer&&t.initializer&&TX(e.initializer,t.initializer),t})),a=dC.createObjectBindingPattern(o),s=function(e){const t=V(e,l);return BC(dC.createTypeLiteralNode(t),1)}(i);let c;F(i,u)&&(c=dC.createObjectLiteralExpression());const _=dC.createParameterDeclaration(void 0,void 0,a,void 0,s,c);if(Xce(e.parameters)){const t=e.parameters[0],n=dC.createParameterDeclaration(void 0,void 0,t.name,void 0,t.type);return xX(n.name),TX(t.name,n.name),t.type&&(xX(n.type),TX(t.type,n.type)),dC.createNodeArray([n,_])}return dC.createNodeArray([_]);function l(e){let i=e.type;var o;i||!e.initializer&&!rd(e)||(o=e,i=zX(r.getTypeAtLocation(o),o,t,n));const a=dC.createPropertySignature(void 0,t_e(e),u(e)?dC.createToken(57):e.questionToken,i);return xX(a),TX(e.name,a.name),e.type&&a.type&&TX(e.type,a.type),a}function u(e){if(rd(e)){const t=r.getTypeAtLocation(e);return!r.isTupleType(t)}return r.isOptionalParameter(e)}}function t_e(e){return Ny(e.name)}var n_e,r_e,i_e,o_e,a_e,s_e=b({"src/services/refactors/convertParamsToDestructuredObject.ts"(){lfe(),Sle(),Pce="Convert parameters to destructured object",Ice=1,Oce=hk(ja.Convert_parameters_to_destructured_object),Xae(Pce,{kinds:[(Lce={name:Pce,description:Oce,kind:"refactor.rewrite.parameters.toDestructured"}).kind],getEditsForAction:Jce,getAvailableActions:jce})}}),c_e={},__e=b({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){s_e()}});function l_e(e){const{file:t,startPosition:n}=e,i=f_e(u_e(t,n)),o={name:n_e,description:r_e,actions:[]};return QD(i)&&m_e(i).isValidConcatenation?(o.actions.push(i_e),[o]):e.preferences.provideRefactorNotApplicableReason?(o.actions.push({...i_e,notApplicableReason:hk(ja.Can_only_convert_string_concatenation)}),[o]):r}function u_e(e,t){const n=u$(e,t),r=f_e(n);return!m_e(r).isValidConcatenation&&MD(r.parent)&&QD(r.parent.parent)?r.parent.parent:n}function d_e(e,t){const{file:n,startPosition:r}=e,i=u_e(n,r);return t===r_e?{edits:p_e(e,i)}:In.fail("invalid action")}function p_e(e,t){const n=f_e(t),r=e.file,i=function({nodes:e,operators:t},n){const r=o_e(t,n),i=a_e(e,n,r),[o,a,s,c]=h_e(0,e);if(o===e.length){const e=dC.createNoSubstitutionTemplateLiteral(a,s);return i(c,e),e}const _=[],l=dC.createTemplateHead(a,s);i(c,l);for(let t=o;t{y_e(e);const r=t===n.templateSpans.length-1,i=e.literal.text+(r?a:""),o=g_e(e.literal)+(r?s:"");return dC.createTemplateSpan(e.expression,l&&r?dC.createTemplateTail(i,o):dC.createTemplateMiddle(i,o))}));_.push(...e)}else{const e=l?dC.createTemplateTail(a,s):dC.createTemplateMiddle(a,s);i(c,e),_.push(dC.createTemplateSpan(n,e))}}return dC.createTemplateExpression(l,_)}(m_e(n),r),o=Bs(r.text,n.end);if(o){const t=o[o.length-1],a={pos:o[0].pos,end:t.end};return rde.ChangeTracker.with(e,(e=>{e.deleteRange(r,a),e.replaceNode(r,n,i)}))}return rde.ChangeTracker.with(e,(e=>e.replaceNode(r,n,i)))}function f_e(e){return Ec(e.parent,(e=>{switch(e.kind){case 208:case 209:return!1;case 225:case 223:return!(QD(e.parent)&&(t=e.parent,63!==t.operatorToken.kind));default:return"quit"}var t}))||e}function m_e(e){const t=e=>{if(!QD(e))return{nodes:[e],operators:[],validOperators:!0,hasString:sw(e)||lw(e)};const{nodes:n,operators:r,hasString:i,validOperators:o}=t(e.left);if(!(i||sw(e.right)||WD(e.right)))return{nodes:[e],operators:[],hasString:!1,validOperators:!0};const a=39===e.operatorToken.kind,s=o&&a;return n.push(e.right),r.push(e.operatorToken),{nodes:n,operators:r,hasString:!0,validOperators:s}},{nodes:n,operators:r,validOperators:i,hasString:o}=t(e);return{nodes:n,operators:r,isValidConcatenation:i&&o}}function g_e(e){const t=uw(e)||dw(e)?-2:-1;return ef(e).slice(1,t)}function h_e(e,t){const n=[];let r="",i="";for(;e"\\"===e[0]?e:"\\"+e)),n.push(e),e++}return[e,r,i,n]}function y_e(e){const t=e.getSourceFile();NX(e,e.expression,t,3,!1),FX(e.expression,e.expression,t,3,!1)}function v_e(e){return MD(e)&&(y_e(e),e=e.expression),e}var b_e,x_e,k_e,S_e=b({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){lfe(),Sle(),n_e="Convert to template string",r_e=hk(ja.Convert_to_template_string),Xae(n_e,{kinds:[(i_e={name:n_e,description:r_e,kind:"refactor.rewrite.string"}).kind],getEditsForAction:d_e,getAvailableActions:l_e}),o_e=(e,t)=>(n,r)=>{n(r,i)=>{for(;r.length>0;){const o=r.shift();NX(e[o],i,t,3,!1),n(o,i)}}}}),T_e={},C_e=b({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){S_e()}});function A_e(e){const t=N_e(e,"invoked"===e.triggerReason);return t?Tse(t)?e.preferences.provideRefactorNotApplicableReason?[{name:b_e,description:x_e,actions:[{...k_e,notApplicableReason:t.error}]}]:r:[{name:b_e,description:x_e,actions:[k_e]}]:r}function w_e(e,t){const n=N_e(e);In.assert(n&&!Tse(n),"Expected applicable refactor info");const r=rde.ChangeTracker.with(e,(t=>function(e,t,n,r,i){const{finalExpression:o,occurrences:a,expression:s}=r,c=a[a.length-1],_=L_e(t,o,a);_&&(ND(_)||FD(_)||PD(_))&&(QD(s)?n.replaceNodeRange(e,c,o,_):KD(s)&&n.replaceNode(e,s,dC.createBinaryExpression(_,dC.createToken(60),s.whenFalse)))}(e.file,e.program.getTypeChecker(),t,n)));return{edits:r,renameFilename:void 0,renameLocation:void 0}}function D_e(e){return QD(e)||KD(e)}function E_e(e){return D_e(e)||function(e){return uE(e)||bE(e)||_E(e)}(e)}function N_e(e,t=!0){const{file:n,program:r}=e,i=lY(e),o=0===i.length;if(o&&!t)return;const a=u$(n,i.start),s=f$(n,i.start+i.length),c=pc(a.pos,s&&s.end>=a.pos?s.getEnd():a.getEnd()),_=o?function(e){for(;e.parent;){if(E_e(e)&&!E_e(e.parent))return e;e=e.parent}}(a):function(e,t){for(;e.parent;){if(E_e(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}}(a,c),l=_&&E_e(_)?function(e){if(D_e(e))return e;if(_E(e)){const t=Sh(e),n=null==t?void 0:t.initializer;return n&&D_e(n)?n:void 0}return e.expression&&D_e(e.expression)?e.expression:void 0}(_):void 0;if(!l)return{error:hk(ja.Could_not_find_convertible_access_expression)};const u=r.getTypeChecker();return KD(l)?function(e,t){const n=e.condition,r=O_e(e.whenTrue);if(!r||t.isNullableType(t.getTypeAtLocation(r)))return{error:hk(ja.Could_not_find_convertible_access_expression)};if((ND(n)||Tw(n))&&P_e(n,r.expression))return{finalExpression:r,occurrences:[n],expression:e};if(QD(n)){const t=F_e(r.expression,n);return t?{finalExpression:r,occurrences:t,expression:e}:{error:hk(ja.Could_not_find_matching_access_expressions)}}}(l,u):function(e){if(55!==e.operatorToken.kind)return{error:hk(ja.Can_only_convert_logical_AND_access_chains)};const t=O_e(e.right);if(!t)return{error:hk(ja.Could_not_find_convertible_access_expression)};const n=F_e(t.expression,e.left);return n?{finalExpression:t,occurrences:n,expression:e}:{error:hk(ja.Could_not_find_matching_access_expressions)}}(l)}function F_e(e,t){const n=[];for(;QD(t)&&55===t.operatorToken.kind;){const r=P_e(Hh(e),Hh(t.right));if(!r)break;n.push(r),e=r,t=t.left}const r=P_e(e,t);return r&&n.push(r),n.length>0?n:void 0}function P_e(e,t){if(Tw(t)||ND(t)||FD(t))return function(e,t){for(;(PD(e)||ND(e)||FD(e))&&I_e(e)!==I_e(t);)e=e.expression;for(;ND(e)&&ND(t)||FD(e)&&FD(t);){if(I_e(e)!==I_e(t))return!1;e=e.expression,t=t.expression}return Tw(e)&&Tw(t)&&e.getText()===t.getText()}(e,t)?t:void 0}function I_e(e){return Tw(e)||Ty(e)?e.getText():ND(e)?I_e(e.name):FD(e)?I_e(e.argumentExpression):void 0}function O_e(e){return QD(e=Hh(e))?O_e(e.left):(ND(e)||FD(e)||PD(e))&&!M_(e)?e:void 0}function L_e(e,t,n){if(ND(t)||FD(t)||PD(t)){const r=L_e(e,t.expression,n),i=n.length>0?n[n.length-1]:void 0,o=(null==i?void 0:i.getText())===t.expression.getText();if(o&&n.pop(),PD(t))return o?dC.createCallChain(r,dC.createToken(28),t.typeArguments,t.arguments):dC.createCallChain(r,t.questionDotToken,t.typeArguments,t.arguments);if(ND(t))return o?dC.createPropertyAccessChain(r,dC.createToken(28),t.name):dC.createPropertyAccessChain(r,t.questionDotToken,t.name);if(FD(t))return o?dC.createElementAccessChain(r,dC.createToken(28),t.argumentExpression):dC.createElementAccessChain(r,t.questionDotToken,t.argumentExpression)}return t}var M_e,R_e,B_e,j_e,J_e,z_e=b({"src/services/refactors/convertToOptionalChainExpression.ts"(){lfe(),Sle(),b_e="Convert to optional chain expression",x_e=hk(ja.Convert_to_optional_chain_expression),Xae(b_e,{kinds:[(k_e={name:b_e,description:x_e,kind:"refactor.rewrite.expression.optionalChain"}).kind],getEditsForAction:w_e,getAvailableActions:A_e})}}),U_e={},q_e=b({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){z_e()}});function V_e(e){const t=e.kind,n=K_e(e.file,lY(e),"invoked"===e.triggerReason),i=n.targetRange;if(void 0===i){if(!n.errors||0===n.errors.length||!e.preferences.provideRefactorNotApplicableReason)return r;const i=[];return Cse(B_e.kind,t)&&i.push({name:M_e,description:B_e.description,actions:[{...B_e,notApplicableReason:f(n.errors)}]}),Cse(R_e.kind,t)&&i.push({name:M_e,description:R_e.description,actions:[{...R_e,notApplicableReason:f(n.errors)}]}),i}const o=function(e,t){const{scopes:n,readsAndWrites:{functionErrorsPerScope:r,constantErrorsPerScope:i}}=$_e(e,t),o=n.map(((e,t)=>{const n=function(e){return Cl(e)?"inner function":Fl(e)?"method":"function"}(e),o=function(e){return Fl(e)?"readonly field":"constant"}(e),a=Cl(e)?function(e){switch(e.kind){case 173:return"constructor";case 215:case 259:return e.name?`function '${e.name.text}'`:rH;case 216:return"arrow function";case 171:return`method '${e.name.getText()}'`;case 174:return`'get ${e.name.getText()}'`;case 175:return`'set ${e.name.getText()}'`;default:throw In.assertNever(e,"Unexpected scope kind "+e.kind)}}(e):Fl(e)?function(e){return 260===e.kind?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}(e):function(e){return 265===e.kind?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}(e);let s,c;return 1===a?(s=fk(hk(ja.Extract_to_0_in_1_scope),[n,"global"]),c=fk(hk(ja.Extract_to_0_in_1_scope),[o,"global"])):0===a?(s=fk(hk(ja.Extract_to_0_in_1_scope),[n,"module"]),c=fk(hk(ja.Extract_to_0_in_1_scope),[o,"module"])):(s=fk(hk(ja.Extract_to_0_in_1),[n,a]),c=fk(hk(ja.Extract_to_0_in_1),[o,a])),0!==t||Fl(e)||(c=fk(hk(ja.Extract_to_0_in_enclosing_scope),[o])),{functionExtraction:{description:s,errors:r[t]},constantExtraction:{description:c,errors:i[t]}}}));return o}(i,e);if(void 0===o)return r;const a=[],s=new Map;let c;const _=[],l=new Map;let u,d=0;for(const{functionExtraction:e,constantExtraction:n}of o){if(Cse(B_e.kind,t)){const t=e.description;0===e.errors.length?s.has(t)||(s.set(t,!0),a.push({description:t,name:"function_scope_"+d,kind:B_e.kind})):c||(c={description:t,name:"function_scope_"+d,notApplicableReason:f(e.errors),kind:B_e.kind})}if(Cse(R_e.kind,t)){const e=n.description;0===n.errors.length?l.has(e)||(l.set(e,!0),_.push({description:e,name:"constant_scope_"+d,kind:R_e.kind})):u||(u={description:e,name:"constant_scope_"+d,notApplicableReason:f(n.errors),kind:R_e.kind})}d++}const p=[];return a.length?p.push({name:M_e,description:hk(ja.Extract_function),actions:a}):e.preferences.provideRefactorNotApplicableReason&&c&&p.push({name:M_e,description:hk(ja.Extract_function),actions:[c]}),_.length?p.push({name:M_e,description:hk(ja.Extract_constant),actions:_}):e.preferences.provideRefactorNotApplicableReason&&u&&p.push({name:M_e,description:hk(ja.Extract_constant),actions:[u]}),p.length?p:r;function f(e){let t=e[0].messageText;return"string"!=typeof t&&(t=t.messageText),t}}function Q_e(e,t){const n=K_e(e.file,lY(e)).targetRange,i=/^function_scope_(\d+)$/.exec(t);if(i){const t=+i[1];return In.assert(isFinite(t),"Expected to parse a finite number from the function scope index"),function(e,t,n){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:a,functionErrorsPerScope:s,exposedVariableDeclarations:c}}=$_e(e,t);return In.assert(!s[n].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),function(e,t,{usages:n,typeParameterUsages:i,substitutions:o},a,s,c){const _=c.program.getTypeChecker(),l=Rk(c.program.getCompilerOptions()),u=Ine.createImportAdder(c.file,c.program,c.preferences,c.host),d=t.getSourceFile(),p=wX(Fl(t)?"newMethod":"newFunction",d),f=Sg(t),m=dC.createIdentifier(p);let g;const h=[],y=[];let v;n.forEach(((e,n)=>{let r;if(!f){let n=_.getTypeOfSymbolAtLocation(e.symbol,e.node);n=_.getBaseTypeOfLiteralType(n),r=Ine.typeToAutoImportableTypeNode(_,u,n,t,l,1)}const i=dC.createParameterDeclaration(void 0,void 0,n,void 0,r);h.push(i),2===e.usage&&(v||(v=[])).push(e),y.push(dC.createIdentifier(n))}));const b=Ze(i.values(),(e=>({type:e,declaration:G_e(e)}))).sort(X_e),x=0===b.length?void 0:b.map((e=>e.declaration)),k=void 0!==x?x.map((e=>dC.createTypeReferenceNode(e.name,void 0))):void 0;if(_u(e)&&!f){const n=_.getContextualType(e);g=_.typeToTypeNode(n,t,1)}const{body:S,returnValueProperty:T}=function(e,t,n,r,i){const o=void 0!==n||t.length>0;if(cE(e)&&!o&&0===r.size)return{body:dC.createBlock(e.statements,!0),returnValueProperty:void 0};let a,s=!1;const c=dC.createNodeArray(cE(e)?e.statements.slice(0):[Iu(e)?e:dC.createReturnStatement(Hh(e))]);if(o||r.size){const _=nj(c,(function e(i){if(!s&&bE(i)&&o){const r=Y_e(t,n);return i.expression&&(a||(a="__return"),r.unshift(dC.createPropertyAssignment(a,tj(i.expression,e,_u)))),1===r.length?dC.createReturnStatement(r[0].name):dC.createReturnStatement(dC.createObjectLiteralExpression(r))}{const t=s;s=s||Cl(i)||Fl(i);const n=r.get(qB(i).toString()),o=n?gX(n):uj(i,e,Nz);return s=t,o}}),Iu).slice();if(o&&!i&&Iu(e)){const e=Y_e(t,n);1===e.length?_.push(dC.createReturnStatement(e[0].name)):_.push(dC.createReturnStatement(dC.createObjectLiteralExpression(e)))}return{body:dC.createBlock(_,!0),returnValueProperty:a}}return{body:dC.createBlock(c,!0),returnValueProperty:void 0}}(e,a,v,o,!!(1&s.facts));let C;xX(S);const A=!!(16&s.facts);if(Fl(t)){const e=f?[]:[dC.createModifier(121)];32&s.facts&&e.push(dC.createModifier(124)),4&s.facts&&e.push(dC.createModifier(132)),C=dC.createMethodDeclaration(e.length?e:void 0,2&s.facts?dC.createToken(41):void 0,m,void 0,x,h,g,S)}else A&&h.unshift(dC.createParameterDeclaration(void 0,void 0,"this",void 0,_.typeToTypeNode(_.getTypeAtLocation(s.thisNode),t,1),void 0)),C=dC.createFunctionDeclaration(4&s.facts?[dC.createToken(132)]:void 0,2&s.facts?dC.createToken(41):void 0,m,x,h,g,S);const w=rde.ChangeTracker.fromContext(c),D=function(e,t){return P(function(e){if(Cl(e)){const t=e.body;if(cE(t))return t.statements}else{if(LE(e)||TN(e))return e.statements;if(Fl(e))return e.members}return r}(t),(t=>t.pos>=e&&Cl(t)&&!$w(t)))}((Z_e(s.range)?je(s.range):s.range).end,t);D?w.insertNodeBefore(c.file,D,C,!0):w.insertNodeAtEndOfScope(c.file,t,C),u.writeFixes(w);const E=[],N=function(e,t,n){const r=dC.createIdentifier(n);if(Fl(e)){const n=32&t.facts?dC.createIdentifier(e.name.text):dC.createThis();return dC.createPropertyAccessExpression(n,r)}return r}(t,s,p);A&&y.unshift(dC.createIdentifier("this"));let F=dC.createCallExpression(A?dC.createPropertyAccessExpression(N,"call"):N,k,y);if(2&s.facts&&(F=dC.createYieldExpression(dC.createToken(41),F)),4&s.facts&&(F=dC.createAwaitExpression(F)),nle(e)&&(F=dC.createJsxExpression(void 0,F)),a.length&&!v)if(In.assert(!T,"Expected no returnValueProperty"),In.assert(!(1&s.facts),"Expected RangeFacts.HasReturn flag to be unset"),1===a.length){const e=a[0];E.push(dC.createVariableStatement(void 0,dC.createVariableDeclarationList([dC.createVariableDeclaration(gX(e.name),void 0,gX(e.type),F)],e.parent.flags)))}else{const e=[],n=[];let r=a[0].parent.flags,i=!1;for(const o of a){e.push(dC.createBindingElement(void 0,void 0,gX(o.name)));const a=_.typeToTypeNode(_.getBaseTypeOfLiteralType(_.getTypeAtLocation(o)),t,1);n.push(dC.createPropertySignature(void 0,o.symbol.name,void 0,a)),i=i||void 0!==o.type,r&=o.parent.flags}const o=i?dC.createTypeLiteralNode(n):void 0;o&&RC(o,1),E.push(dC.createVariableStatement(void 0,dC.createVariableDeclarationList([dC.createVariableDeclaration(dC.createObjectBindingPattern(e),void 0,o,F)],r)))}else if(a.length||v){if(a.length)for(const e of a){let t=e.parent.flags;2&t&&(t=-3&t|1),E.push(dC.createVariableStatement(void 0,dC.createVariableDeclarationList([dC.createVariableDeclaration(e.symbol.name,void 0,L(e.type))],t)))}T&&E.push(dC.createVariableStatement(void 0,dC.createVariableDeclarationList([dC.createVariableDeclaration(T,void 0,L(g))],1)));const e=Y_e(a,v);T&&e.unshift(dC.createShorthandPropertyAssignment(T)),1===e.length?(In.assert(!T,"Shouldn't have returnValueProperty here"),E.push(dC.createExpressionStatement(dC.createAssignment(e[0].name,F))),1&s.facts&&E.push(dC.createReturnStatement())):(E.push(dC.createExpressionStatement(dC.createAssignment(dC.createObjectLiteralExpression(e),F))),T&&E.push(dC.createReturnStatement(dC.createIdentifier(T))))}else 1&s.facts?E.push(dC.createReturnStatement(F)):Z_e(s.range)?E.push(dC.createExpressionStatement(F)):E.push(F);Z_e(s.range)?w.replaceNodeRangeWithNodes(c.file,Me(s.range),je(s.range),E):w.replaceNodeWithNodes(c.file,s.range,E);const I=w.getChanges(),O=(Z_e(s.range)?Me(s.range):s.range).getSourceFile().fileName;return{renameFilename:O,renameLocation:DX(I,O,p,!1),edits:I};function L(e){if(void 0===e)return;const t=gX(e);let n=t;for(;gD(n);)n=n.type;return dD(n)&&P(n.types,(e=>155===e.kind))?t:dC.createUnionTypeNode([t,dC.createKeywordTypeNode(155)])}}(o,i[n],a[n],c,e,t)}(n,e,t)}const o=/^constant_scope_(\d+)$/.exec(t);if(o){const t=+o[1];return In.assert(isFinite(t),"Expected to parse a finite number from the constant scope index"),function(e,t,n){const{scopes:r,readsAndWrites:{target:i,usagesPerScope:o,constantErrorsPerScope:a,exposedVariableDeclarations:s}}=$_e(e,t);return In.assert(!a[n].length,"The extraction went missing? How?"),In.assert(0===s.length,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested(),function(e,t,{substitutions:n},r,i){const o=i.program.getTypeChecker(),a=t.getSourceFile(),s=!ND(e)||Fl(t)||o.resolveName(e.name.text,e,111551,!1)||Cw(e.name)||Lc(e.name)?wX(Fl(t)?"newProperty":"newLocal",a):e.name.text,c=Sg(t);let _=c||!o.isContextSensitive(e)?void 0:o.typeToTypeNode(o.getContextualType(e),t,1),l=function(e,t){return t.size?function e(n){const r=t.get(qB(n).toString());return r?gX(r):uj(n,e,Nz)}(e):e}(Hh(e),n);({variableType:_,initializer:l}=function(n,r){if(void 0===n)return{variableType:n,initializer:r};if(!RD(r)&&!BD(r)||r.typeParameters)return{variableType:n,initializer:r};const i=o.getTypeAtLocation(e),a=Je(o.getSignaturesOfType(i,0));if(!a)return{variableType:n,initializer:r};if(a.getTypeParameters())return{variableType:n,initializer:r};const s=[];let c=!1;for(const e of r.parameters)if(e.type)s.push(e);else{const n=o.getTypeAtLocation(e);n===o.getAnyType()&&(c=!0),s.push(dC.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type||o.typeToTypeNode(n,t,1),e.initializer))}if(c)return{variableType:n,initializer:r};if(n=void 0,BD(r))r=dC.updateArrowFunction(r,LP(e)?Kc(e):void 0,r.typeParameters,s,r.type||o.typeToTypeNode(a.getReturnType(),t,1),r.equalsGreaterThanToken,r.body);else{if(a&&a.thisParameter){const n=Oe(s);if(!n||Tw(n.name)&&"this"!==n.name.escapedText){const n=o.getTypeOfSymbolAtLocation(a.thisParameter,e);s.splice(0,0,dC.createParameterDeclaration(void 0,void 0,"this",void 0,o.typeToTypeNode(n,t,1)))}}r=dC.updateFunctionExpression(r,LP(e)?Kc(e):void 0,r.asteriskToken,r.name,r.typeParameters,s,r.type||o.typeToTypeNode(a.getReturnType(),t,1),r.body)}return{variableType:n,initializer:r}}(_,l)),xX(l);const u=rde.ChangeTracker.fromContext(i);if(Fl(t)){In.assert(!c,"Cannot extract to a JS class");const n=[];n.push(dC.createModifier(121)),32&r&&n.push(dC.createModifier(124)),n.push(dC.createModifier(146));const o=dC.createPropertyDeclaration(n,s,void 0,_,l);let a=dC.createPropertyAccessExpression(32&r?dC.createIdentifier(t.name.getText()):dC.createThis(),dC.createIdentifier(s));nle(e)&&(a=dC.createJsxExpression(void 0,a));const d=function(e,t){const n=t.members;let r;In.assert(n.length>0,"Found no members");let i=!0;for(const t of n){if(t.pos>e)return r||n[0];if(i&&!Qw(t)){if(void 0!==r)return t;i=!1}r=t}return void 0===r?In.fail():r}(e.pos,t);u.insertNodeBefore(i.file,d,o,!0),u.replaceNode(i.file,e,a)}else{const n=dC.createVariableDeclaration(s,void 0,_,l),r=function(e,t){let n;for(;void 0!==e&&e!==t;){if(wE(e)&&e.initializer===n&&DE(e.parent)&&e.parent.declarations.length>1)return e;n=e,e=e.parent}}(e,t);if(r){u.insertNodeBefore(i.file,r,n);const t=dC.createIdentifier(s);u.replaceNode(i.file,e,t)}else if(241===e.parent.kind&&t===Ec(e,H_e)){const t=dC.createVariableStatement(void 0,dC.createVariableDeclarationList([n],2));u.replaceNode(i.file,e.parent,t)}else{const r=dC.createVariableStatement(void 0,dC.createVariableDeclarationList([n],2)),o=function(e,t){let n;In.assert(!Fl(t));for(let r=e;r!==t;r=r.parent)H_e(r)&&(n=r);for(let r=(n||e).parent;;r=r.parent){if(tle(r)){let t;for(const n of r.statements){if(n.pos>e.pos)break;t=n}return!t&&mN(r)?(In.assert(kE(r.parent.parent),"Grandparent isn't a switch statement"),r.parent.parent):In.checkDefined(t,"prevStatement failed to get set")}In.assert(r!==t,"Didn't encounter a block-like before encountering scope")}}(e,t);if(0===o.pos?u.insertNodeAtTopOfFile(i.file,r,!1):u.insertNodeBefore(i.file,o,r,!1),241===e.parent.kind)u.delete(i.file,e.parent);else{let t=dC.createIdentifier(s);nle(e)&&(t=dC.createJsxExpression(void 0,t)),u.replaceNode(i.file,e,t)}}}const d=u.getChanges(),p=e.getSourceFile().fileName;return{renameFilename:p,renameLocation:DX(d,p,s,!0),edits:d}}(_u(i)?i:i.statements[0].expression,r[n],o[n],e.facts,t)}(n,e,t)}In.fail("Unrecognized action name")}function K_e(e,t,n=!0){const{length:r}=t;if(0===r&&!n)return{errors:[kk(e,t.start,r,j_e.cannotExtractEmpty)]};const i=0===r&&n,o=p$(e,t.start),a=f$(e,ec(t)),s=o&&a&&n?function(e,t,n){const r=e.getStart(n);let i=t.getEnd();return 59===n.text.charCodeAt(i)&&i++,{start:r,length:i-r}}(o,a,e):t,c=i?function(e){return Ec(e,(e=>e.parent&&ele(e)&&!QD(e.parent)))}(o):wG(o,e,s),_=i?c:wG(a,e,s);let l,u=0;if(!c||!_)return{errors:[kk(e,t.start,r,j_e.cannotExtractRange)]};if(8388608&c.flags)return{errors:[kk(e,t.start,r,j_e.cannotExtractJSDoc)]};if(c.parent!==_.parent)return{errors:[kk(e,t.start,r,j_e.cannotExtractRange)]};if(c!==_){if(!tle(c.parent))return{errors:[kk(e,t.start,r,j_e.cannotExtractRange)]};const n=[];for(const e of c.parent.statements){if(e===c||n.length){const t=f(e);if(t)return{errors:t};n.push(e)}if(e===_)break}return n.length?{targetRange:{range:n,facts:u,thisNode:l}}:{errors:[kk(e,t.start,r,j_e.cannotExtractRange)]}}if(bE(c)&&!c.expression)return{errors:[kk(e,t.start,r,j_e.cannotExtractRange)]};const d=function(e){if(bE(e)){if(e.expression)return e.expression}else if(_E(e)||DE(e)){const t=_E(e)?e.declarationList.declarations:e.declarations;let n,r=0;for(const e of t)e.initializer&&(r++,n=e.initializer);if(1===r)return n}else if(wE(e)&&e.initializer)return e.initializer;return e}(c),p=function(e){if(Tw(uE(e)?e.expression:e))return[zf(e,j_e.cannotExtractIdentifier)]}(d)||f(d);return p?{errors:p}:{targetRange:{range:W_e(d),facts:u,thisNode:l}};function f(e){let n;var r;if((r=n||(n={}))[r.None=0]="None",r[r.Break=1]="Break",r[r.Continue=2]="Continue",r[r.Return=4]="Return",In.assert(e.pos<=e.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),In.assert(!HS(e.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!(Iu(e)||pg(e)&&ele(e)||rle(e)))return[zf(e,j_e.statementOrExpressionExpected)];if(16777216&e.flags)return[zf(e,j_e.cannotExtractAmbientBlock)];const i=qm(e);let o;i&&function(e,t){let n=e;for(;n!==t;){if(169===n.kind){_b(n)&&(u|=32);break}if(166===n.kind){173===zm(n).kind&&(u|=32);break}171===n.kind&&_b(n)&&(u|=32),n=n.parent}}(e,i);let a,s=4;if(function e(n){if(o)return!0;if(Nu(n)&&cb(257===n.kind?n.parent.parent:n,1))return(o||(o=[])).push(zf(n,j_e.cannotExtractExportedEntity)),!0;switch(n.kind){case 269:return(o||(o=[])).push(zf(n,j_e.cannotExtractImport)),!0;case 274:return(o||(o=[])).push(zf(n,j_e.cannotExtractExportedEntity)),!0;case 106:if(210===n.parent.kind){const e=qm(n);if(void 0===e||e.pos=t.start+t.length)return(o||(o=[])).push(zf(n,j_e.cannotExtractSuper)),!0}else u|=8,l=n;break;case 216:bI(n,(function e(t){if(MH(t))u|=8,l=n;else{if(Fl(t)||Sl(t)&&!BD(t))return!1;bI(t,e)}}));case 260:case 259:TN(n.parent)&&void 0===n.parent.externalModuleIndicator&&(o||(o=[])).push(zf(n,j_e.functionWillNotBeVisibleInTheNewScope));case 228:case 215:case 171:case 173:case 174:case 175:return!1}const r=s;switch(n.kind){case 242:s&=-5;break;case 255:s=0;break;case 238:n.parent&&255===n.parent.kind&&n.parent.finallyBlock===n&&(s=4);break;case 293:case 292:s|=1;break;default:du(n,!1)&&(s|=3)}switch(n.kind){case 194:case 108:u|=8,l=n;break;case 253:{const t=n.label;(a||(a=[])).push(t.escapedText),bI(n,e),a.pop();break}case 249:case 248:{const e=n.label;e?R(a,e.escapedText)||(o||(o=[])).push(zf(n,j_e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):s&(249===n.kind?1:2)||(o||(o=[])).push(zf(n,j_e.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 220:u|=4;break;case 226:u|=2;break;case 250:4&s?u|=1:(o||(o=[])).push(zf(n,j_e.cannotExtractRangeContainingConditionalReturnStatement));break;default:bI(n,e)}s=r}(e),8&u){const t=Km(e,!1,!1);(259===t.kind||171===t.kind&&207===t.parent.kind||215===t.kind)&&(u|=16)}return o}}function W_e(e){return Iu(e)?[e]:pg(e)?uE(e.parent)?[e.parent]:e:rle(e)?e:void 0}function H_e(e){return BD(e)?vu(e.body):Cl(e)||TN(e)||LE(e)||Fl(e)}function $_e(e,t){const{file:n}=t,r=function(e){let t=Z_e(e.range)?Me(e.range):e.range;if(8&e.facts&&!(16&e.facts)){const e=qm(t);if(e){const n=Ec(t,Cl);return n?[n,e]:[e]}}const n=[];for(;;)if(t=t.parent,166===t.kind&&(t=Ec(t,(e=>Cl(e))).parent),H_e(t)&&(n.push(t),308===t.kind))return n}(e),i=function(e,t){return Z_e(e.range)?{pos:Me(e.range).getStart(t),end:je(e.range).getEnd()}:e.range}(e,n),o=function(e,t,n,r,i,o){const a=new Map,s=[],c=[],_=[],l=[],u=[],d=new Map,p=[];let f;const m=Z_e(e.range)?1===e.range.length&&uE(e.range[0])?e.range[0].expression:void 0:e.range;let g;if(void 0===m){const t=e.range,n=Me(t).getStart(),i=je(t).end;g=kk(r,n,i-n,j_e.expressionExpected)}else 147456&i.getTypeAtLocation(m).flags&&(g=zf(m,j_e.uselessConstantType));for(const e of t){s.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),c.push(new Map),_.push([]);const t=[];g&&t.push(g),Fl(e)&&Sg(e)&&t.push(zf(e,j_e.cannotExtractToJSClass)),BD(e)&&!cE(e.body)&&t.push(zf(e,j_e.cannotExtractToExpressionArrowFunction)),l.push(t)}const h=new Map,y=Z_e(e.range)?dC.createBlock(e.range):e.range,v=Z_e(e.range)?Me(e.range):e.range,b=!!Ec(v,(e=>Af(e)&&0!==E_(e).length));if(function o(a,d=1){if(b&&x(i.getTypeAtLocation(a)),Nu(a)&&a.symbol&&u.push(a),Rb(a))o(a.left,2),o(a.right);else if(su(a))o(a.operand,2);else if(ND(a)||FD(a))bI(a,o);else if(Tw(a)){if(!a.parent)return;if(jw(a.parent)&&a!==a.parent.left)return;if(ND(a.parent)&&a!==a.parent.expression)return;!function(o,a,u){const d=function(o,a,u){const d=k(o);if(!d)return;const p=VB(d).toString(),f=h.get(p);if(f&&f>=a)return p;if(h.set(p,a),f){for(const e of s)e.usages.get(o.text)&&e.usages.set(o.text,{usage:a,symbol:d,node:o});return p}const m=d.getDeclarations(),g=m&&P(m,(e=>e.getSourceFile()===r));if(g&&!qH(n,g.getStart(),g.end)){if(2&e.facts&&2===a){const e=zf(o,j_e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const t of _)t.push(e);for(const t of l)t.push(e)}for(let e=0;e0){const e=new Map;let n=0;for(let r=v;void 0!==r&&n{s[n].typeParameterUsages.set(t,e)})),n++),Af(r))for(const t of E_(r)){const n=i.getTypeAtLocation(t);a.has(n.id.toString())&&e.set(n.id.toString(),n)}In.assert(n===t.length,"Should have iterated all scopes")}u.length&&bI(Cf(t[0],t[0].parent)?t[0]:If(t[0]),(function t(n){if(n===e.range||Z_e(e.range)&&e.range.indexOf(n)>=0)return;const r=Tw(n)?k(n):i.getSymbolAtLocation(n);if(r){const e=P(u,(e=>e.symbol===r));if(e)if(wE(e)){const t=e.symbol.id.toString();d.has(t)||(p.push(e),d.set(t,!0))}else f=f||e}bI(n,t)}));for(let n=0;n0&&(r.usages.size>0||r.typeParameterUsages.size>0)){const t=Z_e(e.range)?e.range[0]:e.range;l[n].push(zf(t,j_e.cannotAccessVariablesFromNestedScopes))}16&e.facts&&Fl(t[n])&&_[n].push(zf(e.thisNode,j_e.cannotExtractFunctionsContainingThisToMethod));let i,o=!1;if(s[n].usages.forEach((e=>{2===e.usage&&(o=!0,106500&e.symbol.flags&&e.symbol.valueDeclaration&&sb(e.symbol.valueDeclaration,64)&&(i=e.symbol.valueDeclaration))})),In.assert(Z_e(e.range)||0===p.length,"No variable declarations expected if something was extracted"),o&&!Z_e(e.range)){const t=zf(e.range,j_e.cannotWriteInExpression);_[n].push(t),l[n].push(t)}else if(i&&n>0){const e=zf(i,j_e.cannotExtractReadonlyPropertyInitializerOutsideConstructor);_[n].push(e),l[n].push(e)}else if(f){const e=zf(f,j_e.cannotExtractExportedEntity);_[n].push(e),l[n].push(e)}}return{target:y,usagesPerScope:s,functionErrorsPerScope:_,constantErrorsPerScope:l,exposedVariableDeclarations:p};function x(e){const t=i.getSymbolWalker((()=>(o.throwIfCancellationRequested(),!0))),{visitedTypes:n}=t.walkType(e);for(const e of n)e.isTypeParameter()&&a.set(e.id.toString(),e)}function k(e){return e.parent&&bN(e.parent)&&e.parent.name===e?i.getShorthandAssignmentValueSymbol(e.parent):i.getSymbolAtLocation(e)}function S(e,t,n){if(!e)return;const r=e.getDeclarations();if(r&&r.some((e=>e.parent===t)))return dC.createIdentifier(e.name);const i=S(e.parent,t,n);return void 0!==i?n?dC.createQualifiedName(i,dC.createIdentifier(e.name)):dC.createPropertyAccessExpression(i,e.name):void 0}}(e,r,i,n,t.program.getTypeChecker(),t.cancellationToken);return{scopes:r,readsAndWrites:o}}function G_e(e){let t;const n=e.symbol;if(n&&n.declarations)for(const e of n.declarations)(void 0===t||e.posdC.createShorthandPropertyAssignment(e.symbol.name))),r=V(t,(e=>dC.createShorthandPropertyAssignment(e.symbol.name)));return void 0===n?r:void 0===r?n:n.concat(r)}function Z_e(e){return ht(e)}function ele(e){const{parent:t}=e;if(302===t.kind)return!1;switch(e.kind){case 10:return 269!==t.kind&&273!==t.kind;case 227:case 203:case 205:return!1;case 79:return 205!==t.kind&&273!==t.kind&&278!==t.kind}return!0}function tle(e){switch(e.kind){case 238:case 308:case 265:case 292:return!0;default:return!1}}function nle(e){return rle(e)||(iN(e)||oN(e)||cN(e))&&(iN(e.parent)||cN(e.parent))}function rle(e){return sw(e)&&e.parent&&uN(e.parent)}var ile=b({"src/services/refactors/extractSymbol.ts"(){lfe(),Sle(),M_e="Extract Symbol",R_e={name:"Extract Constant",description:hk(ja.Extract_constant),kind:"refactor.extract.constant"},B_e={name:"Extract Function",description:hk(ja.Extract_function),kind:"refactor.extract.function"},Xae(M_e,{kinds:[R_e.kind,B_e.kind],getEditsForAction:Q_e,getAvailableActions:V_e}),(e=>{function t(e){return{message:e,code:0,category:3,key:e}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(j_e||(j_e={})),J_e=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(J_e||{})}}),ole={};x(ole,{Messages:()=>j_e,RangeFacts:()=>J_e,getRangeToExtract:()=>K_e,getRefactorActionsToExtractSymbol:()=>V_e,getRefactorEditsToExtractSymbol:()=>Q_e});var ale,sle,cle,_le,lle,ule,dle=b({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){ile()}}),ple=b({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){lfe(),Sle(),ale="Generate 'get' and 'set' accessors",sle=ja.Generate_get_and_set_accessors.message,Xae(ale,{kinds:[(cle={name:ale,description:sle,kind:"refactor.rewrite.property.generateAccessors"}).kind],getEditsForAction:function(e,t){if(!e.endPosition)return;const n=Ine.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition);In.assert(n&&!Tse(n),"Expected applicable refactor info");const r=Ine.generateAccessorFromProperty(e.file,e.program,e.startPosition,e.endPosition,e,t);if(!r)return;const i=e.file.fileName,o=n.renameAccessor?n.accessorName:n.fieldName;return{renameFilename:i,renameLocation:(Tw(o)?0:-1)+DX(r,i,o.text,Uw(n.declaration)),edits:r}},getAvailableActions(e){if(!e.endPosition)return r;const t=Ine.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,"invoked"===e.triggerReason);return t?Tse(t)?e.preferences.provideRefactorNotApplicableReason?[{name:ale,description:sle,actions:[{...cle,notApplicableReason:t.error}]}]:r:[{name:ale,description:sle,actions:[cle]}]:r}})}}),fle={},mle=b({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){ple()}});function gle(e){const t=yle(e);if(t&&!Tse(t))return{renameFilename:void 0,renameLocation:void 0,edits:rde.ChangeTracker.with(e,(n=>function(e,t,n,r){const i=YH(n,21,e),o=BD(n)&&void 0===i,a=o?Me(n.parameters):i;a&&(o&&(t.insertNodeBefore(e,a,dC.createToken(20)),t.insertNodeAfter(e,a,dC.createToken(21))),t.insertNodeAt(e,a.end,r,{prefix:": "}))}(e.file,n,t.declaration,t.returnTypeNode)))}}function hle(e){const t=yle(e);return t?Tse(t)?e.preferences.provideRefactorNotApplicableReason?[{name:_le,description:lle,actions:[{...ule,notApplicableReason:t.error}]}]:r:[{name:_le,description:lle,actions:[ule]}]:r}function yle(e){if(Sg(e.file)||!Cse(ule.kind,e.kind))return;const t=Ec(u$(e.file,e.startPosition),(e=>cE(e)||e.parent&&BD(e.parent)&&(38===e.kind||e.parent.body===e)?"quit":function(e){switch(e.kind){case 259:case 215:case 216:case 171:return!0;default:return!1}}(e)));if(!t||!t.body||t.type)return{error:hk(ja.Return_type_must_be_inferred_from_a_function)};const n=e.program.getTypeChecker(),r=function(e,t){if(e.isImplementationOfOverload(t)){const n=e.getTypeAtLocation(t).getCallSignatures();if(n.length>1)return e.getUnionType(Z(n,(e=>e.getReturnType())))}const n=e.getSignatureFromDeclaration(t);if(n)return e.getReturnTypeOfSignature(n)}(n,t);if(!r)return{error:hk(ja.Could_not_determine_function_return_type)};const i=n.typeToTypeNode(r,t,1);return i?{declaration:t,returnTypeNode:i}:void 0}var vle=b({"src/services/refactors/inferFunctionReturnType.ts"(){lfe(),Sle(),_le="Infer function return type",lle=ja.Infer_function_return_type.message,Xae(_le,{kinds:[(ule={name:_le,description:lle,kind:"refactor.rewrite.function.returnType"}).kind],getEditsForAction:gle,getAvailableActions:hle})}}),ble={},xle=b({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){vle()}}),kle={};x(kle,{addOrRemoveBracesToArrowFunction:()=>Tce,convertArrowFunctionOrFunctionExpression:()=>Rce,convertParamsToDestructuredObject:()=>c_e,convertStringOrTemplateLiteral:()=>T_e,convertToOptionalChainExpression:()=>U_e,doChangeNamedToNamespaceOrDefault:()=>pse,extractSymbol:()=>ole,generateGetAccessorAndSetAccessor:()=>fle,getApplicableRefactors:()=>Yae,getEditsForRefactor:()=>Zae,inferFunctionReturnType:()=>ble,isRefactorErrorInfo:()=>Tse,refactorKindBeginsWith:()=>Cse,registerRefactor:()=>Xae});var Sle=b({"src/services/_namespaces/ts.refactor.ts"(){rse(),_se(),vse(),Sse(),Nse(),oce(),Cce(),Bce(),__e(),C_e(),q_e(),dle(),mle(),xle()}});function Tle(e,t,n,r){const i=c$(_$(t,n));if(Ele(i)){const n=function(e,t,n,r,i){const o=t.getSymbolAtLocation(e);if(!o){if(ed(e)){const r=r$(e,t);if(r&&(128&r.flags||1048576&r.flags&&F(r.types,(e=>!!(128&e.flags)))))return Ale(e.text,e.text,"string","",e,n)}else if(CH(e)){const t=ef(e);return Ale(t,t,"label","",e,n)}return}const{declarations:a}=o;if(!a||0===a.length)return;if(a.some((e=>function(e,t){const n=t.getSourceFile();return e.isSourceFileDefaultLibrary(n)&&ta(n.fileName,".d.ts")}(r,e))))return wle(ja.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(Tw(e)&&"default"===e.escapedText&&o.parent&&1536&o.parent.flags)return;if(ed(e)&&dh(e))return i.allowRenameOfImportPath?function(e,t,n){if(!Xs(e.text))return wle(ja.You_cannot_rename_a_module_via_a_global_import);const r=n.declarations&&P(n.declarations,TN);if(!r)return;const i=en(e.text,"/index")||en(e.text,"/index.js")?void 0:nn(US(r.fileName),"/index"),o=void 0===i?r.fileName:i,a=void 0===i?"module":"directory",s=e.text.lastIndexOf("/")+1;return{canRename:!0,fileToRename:o,kind:a,displayName:o,fullDisplayName:o,kindModifiers:"",triggerSpan:dc(e.getStart(t)+1+s,e.text.length-s)}}(e,n,o):void 0;const s=function(e,t,n,r){if(!r.providePrefixAndSuffixTextForRename&&2097152&t.flags){const e=t.declarations&&P(t.declarations,(e=>WE(e)));e&&!e.propertyName&&(t=n.getAliasedSymbol(t))}const{declarations:i}=t;if(!i)return;const o=Cle(e.path);if(void 0===o)return _e(i,(e=>aY(e.getSourceFile().path)))?ja.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const e of i){const t=Cle(e.getSourceFile().path);if(t){const e=Math.min(o.length,t.length);for(let n=0;n<=e;n++)if(0!==Qt(o[n],t[n]))return ja.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}(n,o,t,i);if(s)return wle(s);const c=Cue.getSymbolKind(t,o,e),_=_X(e)||Ty(e)&&164===e.parent.kind?cv(Ny(e)):void 0;return Ale(_||t.symbolToString(o),_||t.getFullyQualifiedName(o),c,Cue.getSymbolModifiers(t,o),e,n)}(i,e.getTypeChecker(),t,e,r);if(n)return n}return wle(ja.You_cannot_rename_this_element)}function Cle(e){const t=ua(e),n=t.lastIndexOf("node_modules");if(-1!==n)return t.slice(0,n+2)}function Ale(e,t,n,r,i,o){return{canRename:!0,fileToRename:void 0,kind:n,displayName:e,fullDisplayName:t,kindModifiers:r,triggerSpan:Dle(i,o)}}function wle(e){return{canRename:!1,localizedErrorMessage:hk(e)}}function Dle(e,t){let n=e.getStart(t),r=e.getWidth(t);return ed(e)&&(n+=1,r-=2),dc(n,r)}function Ele(e){switch(e.kind){case 79:case 80:case 10:case 14:case 108:return!0;case 8:return PH(e);default:return!1}}var Nle=b({"src/services/rename.ts"(){lfe()}}),Fle={};x(Fle,{getRenameInfo:()=>Tle,nodeIsEligibleForRename:()=>Ele});var Ple,Ile,Ole=b({"src/services/_namespaces/ts.Rename.ts"(){Nle()}});function Lle(e,t,n,r,i){const o=e.getTypeChecker(),a=f$(t,n);if(!a)return;const s=!!r&&"characterTyped"===r.kind;if(s&&(b$(t,n,a)||F$(t,n)))return;const c=!!r&&"invoked"===r.kind,_=function(e,t,n,r,i){for(let o=e;!TN(o)&&(i||!cE(o));o=o.parent){In.assert(BH(o.parent,o),"Not a subspan",(()=>`Child: ${In.formatSyntaxKind(o.kind)}, parent: ${In.formatSyntaxKind(o.parent.kind)}`));const e=Jle(o,t,n,r);if(e)return e}}(a,n,t,o,c);if(!_)return;i.throwIfCancellationRequested();const l=function({invocation:e,argumentCount:t},n,r,i,o){switch(e.kind){case 0:{if(o&&!function(e,t,n){if(!tu(t))return!1;const r=t.getChildren(n);switch(e.kind){case 20:return R(r,e);case 27:{const t=ZH(e);return!!t&&R(r,t)}case 29:return Mle(e,n,t.expression);default:return!1}}(i,e.node,r))return;const a=[],s=n.getResolvedSignatureForSignatureHelp(e.node,a,t);return 0===a.length?void 0:{kind:0,candidates:a,resolvedSignature:s}}case 1:{const{called:a}=e;if(o&&!Mle(i,r,Tw(a)?a.parent:a))return;const s=E$(a,t,n);if(0!==s.length)return{kind:0,candidates:s,resolvedSignature:Me(s)};const c=n.getSymbolAtLocation(a);return c&&{kind:1,symbol:c}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return In.assertNever(e)}}(_,o,t,a,s);return i.throwIfCancellationRequested(),l?o.runWithCancellationToken(i,(e=>0===l.kind?$le(l.candidates,l.resolvedSignature,_,t,e):function(e,{argumentCount:t,argumentsSpan:n,invocation:r,argumentIndex:i},o,a){const s=a.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);if(s)return{items:[Gle(e,s,a,Hle(r),o)],applicableSpan:n,selectedItemIndex:0,argumentIndex:i,argumentCount:t}}(l.symbol,_,t,e))):xg(t)?function(e,t,n){if(2===e.invocation.kind)return;const r=Wle(e.invocation),i=ND(r)?r.name.text:void 0,o=t.getTypeChecker();return void 0===i?void 0:A(t.getSourceFiles(),(t=>A(t.getNamedDeclarations().get(i),(r=>{const i=r.symbol&&o.getTypeOfSymbolAtLocation(r.symbol,r),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,(n=>$le(a,a[0],e,t,n,!0)))}))))}(_,e,i):void 0}function Mle(e,t,n){const r=e.getFullStart();let i=e.parent;for(;i;){const e=g$(r,t,i,!0);if(e)return BH(n,e);i=i.parent}return In.fail("Could not find preceding token")}function Rle(e,t,n){const r=jle(e,t,n);return!r||r.isTypeParameterList||0!==r.invocation.kind?void 0:{invocation:r.invocation.node,argumentCount:r.argumentCount,argumentIndex:r.argumentIndex}}function Ble(e,t,n){const r=function(e,t){if(29===e.kind||20===e.kind)return{list:Kle(e.parent,e,t),argumentIndex:0};{const t=ZH(e);return t&&{list:t,argumentIndex:qle(t,e)}}}(e,n);if(!r)return;const{list:i,argumentIndex:o}=r,a=function(e,t){const n=e.getChildren();let r=J(n,(e=>27!==e.kind));return!t&&n.length>0&&27===je(n).kind&&r++,r}(i,b$(n,t,e));0!==o&&In.assertLessThan(o,a);const s=function(e,t){const n=e.getFullStart();return dc(n,As(t.text,e.getEnd(),!1)-n)}(i,n);return{list:i,argumentIndex:o,argumentCount:a,argumentsSpan:s}}function jle(e,t,n){const{parent:r}=e;if(tu(r)){const i=r,o=Ble(e,t,n);if(!o)return;const{list:a,argumentIndex:s,argumentCount:c,argumentsSpan:_}=o;return{isTypeParameterList:!!r.typeArguments&&r.typeArguments.pos===a.pos,invocation:{kind:0,node:i},argumentsSpan:_,argumentIndex:s,argumentCount:c}}if(lw(e)&&OD(r))return J$(e,t,n)?Vle(r,0,n):void 0;if(uw(e)&&212===r.parent.kind){const i=r,o=i.parent;return In.assert(225===i.kind),Vle(o,J$(e,t,n)?0:1,n)}if(aE(r)&&OD(r.parent.parent)){const i=r,o=r.parent.parent;if(pw(e)&&!J$(e,t,n))return;const a=function(e,t,n,r){return In.assert(n>=t.getStart(),"Assumed 'position' could not occur before node."),il(t)?J$(t,n,r)?0:e+2:e+1}(i.parent.templateSpans.indexOf(i),e,t,n);return Vle(o,a,n)}if(Ju(r)){const e=r.attributes.pos;return{isTypeParameterList:!1,invocation:{kind:0,node:r},argumentsSpan:dc(e,As(n.text,r.attributes.end,!1)-e),argumentIndex:0,argumentCount:1}}{const t=N$(e,n);if(t){const{called:r,nTypeArguments:i}=t;return{isTypeParameterList:!0,invocation:{kind:1,called:r},argumentsSpan:pc(r.getStart(n),e.end),argumentIndex:i,argumentCount:i+1}}return}}function Jle(e,t,n,r){return function(e,t,n,r){const i=function(e,t,n,r){if(20!==e.kind&&27!==e.kind)return;const{parent:i}=e;switch(i.kind){case 214:case 171:case 215:case 216:const o=Ble(e,n,t);if(!o)return;const{argumentIndex:a,argumentCount:s,argumentsSpan:c}=o,_=Ww(i)?r.getContextualTypeForObjectLiteralElement(i):r.getContextualType(i);return _&&{contextualType:_,argumentIndex:a,argumentCount:s,argumentsSpan:c};case 223:{const t=zle(i),n=r.getContextualType(t),o=20===e.kind?0:Ule(i)-1,a=Ule(t);return n&&{contextualType:n,argumentIndex:o,argumentCount:a,argumentsSpan:H$(i)}}default:return}}(e,n,t,r);if(!i)return;const{contextualType:o,argumentIndex:a,argumentCount:s,argumentsSpan:c}=i,_=o.getNonNullableType(),l=_.symbol;if(void 0===l)return;const u=Be(_.getCallSignatures());return void 0!==u?{isTypeParameterList:!1,invocation:{kind:2,signature:u,node:e,symbol:(d=l,"__type"===d.name&&A(d.declarations,(e=>{var t;return rD(e)?null==(t=xt(e.parent,Au))?void 0:t.symbol:void 0}))||d)},argumentsSpan:c,argumentIndex:a,argumentCount:s}:void 0;var d}(e,t,n,r)||jle(e,t,n)}function zle(e){return QD(e.parent)?zle(e.parent):e}function Ule(e){return QD(e.left)?Ule(e.left)+1:2}function qle(e,t){let n=0;for(const r of e.getChildren()){if(r===t)break;27!==r.kind&&n++}return n}function Vle(e,t,n){const r=lw(e.template)?1:e.template.templateSpans.length+1;return 0!==t&&In.assertLessThan(t,r),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:Qle(e,n),argumentIndex:t,argumentCount:r}}function Qle(e,t){const n=e.template,r=n.getStart();let i=n.getEnd();return 225===n.kind&&0===je(n.templateSpans).literal.getFullWidth()&&(i=As(t.text,i,!1)),dc(r,i-r)}function Kle(e,t,n){const r=e.getChildren(n),i=r.indexOf(t);return In.assert(i>=0&&r.length>i+1),r[i+1]}function Wle(e){return 0===e.kind?ig(e.node):e.called}function Hle(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}function $le(e,t,{isTypeParameterList:n,argumentCount:i,argumentsSpan:o,invocation:a,argumentIndex:s},c,_,l){var u;const d=Hle(a),p=2===a.kind?a.symbol:_.getSymbolAtLocation(Wle(a))||l&&(null==(u=t.declaration)?void 0:u.symbol),f=p?aX(_,p,l?c:void 0,void 0):r,m=V(e,(e=>function(e,t,n,r,i,o){return V((n?Yle:Zle)(e,r,i,o),(({isVariadic:n,parameters:o,prefix:a,suffix:s})=>{const c=[...t,...a],_=[...s,...Xle(e,i,r)],l=e.getDocumentationComment(r),u=e.getJsDocTags();return{isVariadic:n,prefixDisplayParts:c,suffixDisplayParts:_,separatorDisplayParts:Ile,parameters:o,documentation:l,tags:u}}))}(e,f,n,_,d,c)));0!==s&&In.assertLessThan(s,i);let g=0,h=0;for(let n=0;n1)){let e=0;for(const t of r){if(t.isVariadic||t.parameters.length>=i){g=h+e;break}e++}}h+=r.length}In.assert(-1!==g);const y={items:$(m,wt),applicableSpan:o,selectedItemIndex:g,argumentIndex:s,argumentCount:i},v=y.items[g];if(v.isVariadic){const e=O(v.parameters,(e=>!!e.isRest));-1eue(e,n,r,i,a))),c=e.getDocumentationComment(n),_=e.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:[...o,VG(29)],suffixDisplayParts:[VG(31)],separatorDisplayParts:Ile,parameters:s,documentation:c,tags:_}}function Xle(e,t,n){return iX((r=>{r.writePunctuation(":"),r.writeSpace(" ");const i=n.getTypePredicateOfSignature(e);i?n.writeTypePredicate(i,t,void 0,r):n.writeType(n.getReturnTypeOfSignature(e),t,void 0,r)}))}function Yle(e,t,n,i){const o=(e.target||e).typeParameters,a=Vz(),s=(o||r).map((e=>eue(e,t,n,i,a))),c=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,n,Ple)]:[];return t.getExpandedParameters(e).map((e=>{const r=dC.createNodeArray([...c,...V(e,(e=>t.symbolToParameterDeclaration(e,n,Ple)))]),o=iX((e=>{a.writeList(2576,r,i,e)}));return{isVariadic:!1,parameters:s,prefix:[VG(29)],suffix:[VG(31),...o]}}))}function Zle(e,t,n,r){const i=Vz(),o=iX((o=>{if(e.typeParameters&&e.typeParameters.length){const a=dC.createNodeArray(e.typeParameters.map((e=>t.typeParameterToDeclaration(e,n,Ple))));i.writeList(53776,a,r,o)}})),a=t.getExpandedParameters(e),s=t.hasEffectiveRestParameter(e)?1===a.length?e=>!0:e=>{var t;return!!(e.length&&32768&(null==(t=xt(e[e.length-1],op))?void 0:t.links.checkFlags))}:e=>!1;return a.map((e=>({isVariadic:s(e),parameters:e.map((e=>function(e,t,n,r,i){const o=iX((o=>{const a=t.symbolToParameterDeclaration(e,n,Ple);i.writeNode(4,a,r,o)})),a=t.isOptionalParameter(e.valueDeclaration),s=op(e)&&!!(32768&e.links.checkFlags);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:o,isOptional:a,isRest:s}}(e,t,n,r,i))),prefix:[...o,VG(20)],suffix:[VG(21)]})))}function eue(e,t,n,r,i){const o=iX((o=>{const a=t.typeParameterToDeclaration(e,n,Ple);i.writeNode(4,a,r,o)}));return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1,isRest:!1}}var tue=b({"src/services/signatureHelp.ts"(){lfe(),Ple=70246400,Ile=[VG(27),UG()]}}),nue={};x(nue,{getArgumentInfoForCompletions:()=>Rle,getSignatureHelpItems:()=>Lle});var rue,iue=b({"src/services/_namespaces/ts.SignatureHelp.ts"(){tue()}});function oue(e,t){var n,r;let i={textSpan:pc(t.getFullStart(),t.getEnd())},o=t;e:for(;;){const i=sue(o);if(!i.length)break;for(let c=0;ce)break e;const d=Je(Bs(t.text,l.end));if(d&&2===d.kind&&s(d.pos,d.end),aue(t,e,l)){if(vu(l)&&Cl(o)&&!kx(l.getStart(t),l.getEnd(),t)&&a(l.getStart(t),l.getEnd()),cE(l)||aE(l)||uw(l)||pw(l)||_&&uw(_)||DE(l)&&_E(o)||fF(l)&&DE(o)||wE(l)&&fF(o)&&1===i.length||wN(l)||qN(l)||UN(l)){o=l;break}aE(o)&&u&&ol(u)&&a(l.getFullStart()-2,u.getStart()+1);const e=fF(l)&&uue(_)&&due(u)&&!kx(_.getStart(),u.getStart(),t);let s=e?_.getEnd():l.getStart();const c=e?u.getStart():pue(t,l);if(Wu(l)&&(null==(n=l.jsDoc)?void 0:n.length)&&a(Me(l.jsDoc).getStart(),c),fF(l)){const e=l.getChildren()[0];e&&Wu(e)&&(null==(r=e.jsDoc)?void 0:r.length)&&e.getStart()!==l.pos&&(s=Math.min(s,Me(e.jsDoc).getStart()))}a(s,c),(sw(l)||nu(l))&&a(s+1,c-1),o=l;break}if(c===i.length-1)break e}}return i;function a(t,n){if(t!==n){const r=pc(t,n);(!i||!PG(r,i.textSpan)&&lc(r,e))&&(i={textSpan:r,...i&&{parent:i}})}}function s(e,n){a(e,n);let r=e;for(;47===t.text.charCodeAt(r);)r++;a(r,n)}}function aue(e,t,n){return In.assert(n.pos<=t),tt===e.readonlyToken||146===t.kind||t===e.questionToken||57===t.kind));return[t,lue(_ue(cue(i,(({kind:e})=>22===e||165===e||23===e)),(({kind:e})=>58===e))),r]}if(Vw(e)){const n=cue(e.getChildren(),(t=>t===e.name||R(e.modifiers,t))),r=323===(null==(t=n[0])?void 0:t.kind)?n[0]:void 0,i=_ue(r?n.slice(1):n,(({kind:e})=>58===e));return r?[r,lue(i)]:i}if(Uw(e)){const t=cue(e.getChildren(),(t=>t===e.dotDotDotToken||t===e.name));return _ue(cue(t,(n=>n===t[0]||n===e.questionToken)),(({kind:e})=>63===e))}return wD(e)?_ue(e.getChildren(),(({kind:e})=>63===e)):e.getChildren()}function cue(e,t){const n=[];let r;for(const i of e)t(i)?(r=r||[],r.push(i)):(r&&(n.push(lue(r)),r=void 0),n.push(i));return r&&n.push(lue(r)),n}function _ue(e,t,n=!0){if(e.length<2)return e;const r=O(e,t);if(-1===r)return e;const i=e.slice(0,r),o=e[r],a=je(e),s=n&&26===a.kind,c=e.slice(r+1,s?e.length-1:void 0),_=xe([i.length?lue(i):void 0,o,c.length?lue(c):void 0]);return s?_.concat(a):_}function lue(e){return In.assertGreaterThanOrEqual(e.length,1),vT(qP.createSyntaxList(e),e[0].pos,je(e).end)}function uue(e){const t=e&&e.kind;return 18===t||22===t||20===t||283===t}function due(e){const t=e&&e.kind;return 19===t||23===t||21===t||284===t}function pue(e,t){switch(t.kind){case 344:case 341:case 351:case 349:case 346:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var fue=b({"src/services/smartSelection.ts"(){lfe(),rue=vn(jE,BE)}}),mue={};x(mue,{getSmartSelectionRange:()=>oue});var gue,hue=b({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){fue()}});function yue(e,t,n){const r=vue(e,t,n);if(""!==r)return r;const i=Ox(t);return 32&i?np(t,228)?"local class":"class":384&i?"enum":524288&i?"type":64&i?"interface":262144&i?"type parameter":8&i?"enum member":2097152&i?"alias":1536&i?"module":r}function vue(e,t,n){const r=e.getRootSymbols(t);if(1===r.length&&8192&Me(r).flags&&0!==e.getTypeOfSymbolAtLocation(t,n).getNonNullableType().getCallSignatures().length)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(108===n.kind&&_u(n)||qv(n))return"parameter";const i=Ox(t);if(3&i)return jG(t)?"parameter":t.valueDeclaration&&im(t.valueDeclaration)?"const":T(t.declarations,om)?"let":Sue(t)?"local var":"var";if(16&i)return Sue(t)?"local function":"function";if(32768&i)return"getter";if(65536&i)return"setter";if(8192&i)return"method";if(16384&i)return"constructor";if(131072&i)return"index";if(4&i){if(33554432&i&&6&t.links.checkFlags){return T(e.getRootSymbols(t),(e=>{if(98311&e.getFlags())return"property"}))||(e.getTypeOfSymbolAtLocation(t,n).getCallSignatures().length?"method":"property")}return"property"}return""}function bue(e){if(e.declarations&&e.declarations.length){const[t,...n]=e.declarations,r=O$(t,S(n)&&SY(t)&&_e(n,(e=>!SY(e)))?8192:0);if(r)return r.split(",")}return[]}function xue(e,t){if(!t)return"";const n=new Set(bue(t));if(2097152&t.flags){const r=e.getAliasedSymbol(t);r!==t&&T(bue(r),(e=>{n.add(e)}))}return 16777216&t.flags&&n.add("optional"),n.size>0?Ze(n.values()).join(","):""}function kue(e,t,n,i,o,a=sH(o),s){var c;const _=[];let l=[],u=[];const d=Ox(t);let p=1&a?vue(e,t,o):"",f=!1;const m=108===o.kind&&fg(o)||qv(o);let g,h,y,v=!1;if(108===o.kind&&!m)return{displayParts:[qG(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==p||32&d||2097152&d){if("getter"===p||"setter"===p){const e=P(t.declarations,(e=>e.name===o));if(e)switch(e.kind){case 174:p="getter";break;case 175:p="setter";break;case 169:p="accessor";break;default:In.assertNever(e)}else p="property"}let n,r;if(g=m?e.getTypeAtLocation(o):e.getTypeOfSymbolAtLocation(t,o),o.parent&&208===o.parent.kind){const e=o.parent.name;(e===o||e&&0===e.getFullWidth())&&(o=o.parent)}if(tu(o)?r=o:(_H(o)||lH(o)||o.parent&&(Ju(o.parent)||OD(o.parent))&&Sl(t.valueDeclaration))&&(r=o.parent),r){n=e.getResolvedSignature(r);const o=211===r.kind||PD(r)&&106===r.expression.kind,a=o?g.getConstructSignatures():g.getCallSignatures();if(!n||R(a,n.target)||R(a,n)||(n=a.length?a[0]:void 0),n){switch(o&&32&d?(p="constructor",w(g.symbol,p)):2097152&d?(p="alias",D(p),_.push(UG()),o&&(4&n.flags&&(_.push(qG(126)),_.push(UG())),_.push(qG(103)),_.push(UG())),C(t)):w(t,p),p){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":_.push(VG(58)),_.push(UG()),16&Vx(g)||!g.symbol||(Ae(_,aX(e,g.symbol,i,void 0,5)),_.push(rX())),o&&(4&n.flags&&(_.push(qG(126)),_.push(UG())),_.push(qG(103)),_.push(UG())),E(n,a,262144);break;default:E(n,a)}f=!0,v=a.length>1}}else if(FH(o)&&!(98304&d)||135===o.kind&&173===o.parent.kind){const r=o.parent;if(t.declarations&&P(t.declarations,(e=>e===(135===o.kind?r.parent:r)))){const i=173===r.kind?g.getNonNullableType().getConstructSignatures():g.getNonNullableType().getCallSignatures();n=e.isImplementationOfOverload(r)?i[0]:e.getSignatureFromDeclaration(r),173===r.kind?(p="constructor",w(g.symbol,p)):w(176!==r.kind||2048&g.symbol.flags||4096&g.symbol.flags?t:g.symbol,p),n&&E(n,i),f=!0,v=i.length>1}}}if(32&d&&!f&&!m&&(k(),np(t,228)?D("local class"):_.push(qG(84)),_.push(UG()),C(t),N(t,n)),64&d&&2&a&&(x(),_.push(qG(118)),_.push(UG()),C(t),N(t,n)),524288&d&&2&a&&(x(),_.push(qG(154)),_.push(UG()),C(t),N(t,n),_.push(UG()),_.push(QG(63)),_.push(UG()),Ae(_,oX(e,z_(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),384&d&&(x(),_e(t.declarations,(e=>IE(e)&&nm(e)))&&(_.push(qG(85)),_.push(UG())),_.push(qG(92)),_.push(UG()),C(t)),1536&d&&!m){x();const e=np(t,264),n=e&&e.name&&79===e.name.kind;_.push(qG(n?143:142)),_.push(UG()),C(t)}if(262144&d&&2&a)if(x(),_.push(VG(20)),_.push($G("type parameter")),_.push(VG(21)),_.push(UG()),C(t),t.parent)S(),C(t.parent,i),N(t.parent,i);else{const r=np(t,165);if(void 0===r)return In.fail();const i=r.parent;if(i)if(Sl(i)){S();const t=e.getSignatureFromDeclaration(i);177===i.kind?(_.push(qG(103)),_.push(UG())):176!==i.kind&&i.name&&C(i.symbol),Ae(_,sX(e,t,n,32))}else PE(i)&&(S(),_.push(qG(154)),_.push(UG()),C(i.symbol),N(i.symbol,n))}if(8&d){p="enum member",w(t,"enum member");const n=null==(c=t.declarations)?void 0:c[0];if(302===(null==n?void 0:n.kind)){const t=e.getConstantValue(n);void 0!==t&&(_.push(UG()),_.push(QG(63)),_.push(UG()),_.push(zG(cf(t),"number"==typeof t?7:8)))}}if(2097152&t.flags){if(x(),!f){const n=e.getAliasedSymbol(t);if(n!==t&&n.declarations&&n.declarations.length>0){const r=n.declarations[0],i=qc(r);if(i){const o=pf(r)&&cb(r,2),s="default"!==t.name&&!o,c=kue(e,n,wp(r),r,i,a,s?t:n);_.push(...c.displayParts),_.push(rX()),h=c.documentation,y=c.tags}else h=n.getContextualDocumentationComment(r,e),y=n.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 267:_.push(qG(93)),_.push(UG()),_.push(qG(143));break;case 274:_.push(qG(93)),_.push(UG()),_.push(qG(t.declarations[0].isExportEquals?63:88));break;case 278:_.push(qG(93));break;default:_.push(qG(100))}_.push(UG()),C(t),T(t.declarations,(t=>{if(268===t.kind){const n=t;if(hg(n))_.push(UG()),_.push(QG(63)),_.push(UG()),_.push(qG(147)),_.push(VG(20)),_.push(zG(ef(yg(n)),8)),_.push(VG(21));else{const t=e.getSymbolAtLocation(n.moduleReference);t&&(_.push(UG()),_.push(QG(63)),_.push(UG()),C(t,i))}return!0}}))}if(!f)if(""!==p){if(g)if(m?(x(),_.push(qG(108))):w(t,p),"property"===p||"accessor"===p||"getter"===p||"setter"===p||"JSX attribute"===p||3&d||"local var"===p||"index"===p||m){if(_.push(VG(58)),_.push(UG()),g.symbol&&262144&g.symbol.flags&&"index"!==p){const t=iX((t=>{const n=e.typeParameterToDeclaration(g,i,gue);b().writeNode(4,n,wp(Fc(i)),t)}));Ae(_,t)}else Ae(_,oX(e,g,i));if(op(t)&&t.links.target&&op(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const e=t.links.target.links.tupleLabelDeclaration;In.assertNode(e.name,Tw),_.push(UG()),_.push(VG(20)),_.push($G(Oc(e.name))),_.push(VG(21))}}else if(16&d||8192&d||16384&d||131072&d||98304&d||"method"===p){const e=g.getNonNullableType().getCallSignatures();e.length&&(E(e[0],e),v=e.length>1)}}else p=yue(e,t,o);if(0!==l.length||v||(l=t.getContextualDocumentationComment(i,e)),0===l.length&&4&d&&t.parent&&t.declarations&&T(t.parent.declarations,(e=>308===e.kind)))for(const n of t.declarations){if(!n.parent||223!==n.parent.kind)continue;const t=e.getSymbolAtLocation(n.parent.right);if(t&&(l=t.getDocumentationComment(e),u=t.getJsDocTags(e),l.length>0))break}if(0===l.length&&Tw(o)&&t.valueDeclaration&&wD(t.valueDeclaration)){const n=t.valueDeclaration,i=n.parent;if(Tw(n.name)&&CD(i)){const t=Ny(n.name),o=e.getTypeAtLocation(i);l=A(o.isUnion()?o.types:[o],(n=>{const r=n.getProperty(t);return r?r.getDocumentationComment(e):void 0}))||r}}return 0!==u.length||v||(u=t.getContextualJsDocTags(i,e)),0===l.length&&h&&(l=h),0===u.length&&y&&(u=y),{displayParts:_,documentation:l,symbolKind:p,tags:0===u.length?void 0:u};function b(){return Vz()}function x(){_.length&&_.push(rX()),k()}function k(){s&&(D("alias"),_.push(UG()))}function S(){_.push(UG()),_.push(qG(101)),_.push(UG())}function C(r,i){let o;s&&r===t&&(r=s),"index"===p&&(o=e.getIndexInfosOfIndexSymbol(r));let a=[];131072&r.flags&&o?(r.parent&&(a=aX(e,r.parent)),a.push(VG(22)),o.forEach(((t,n)=>{a.push(...oX(e,t.keyType)),n!==o.length-1&&(a.push(UG()),a.push(VG(51)),a.push(UG()))})),a.push(VG(23))):a=aX(e,r,i||n,void 0,7),Ae(_,a),16777216&t.flags&&_.push(VG(57))}function w(e,t){x(),t&&(D(t),e&&!_e(e.declarations,(e=>BD(e)||(RD(e)||GD(e))&&!e.name))&&(_.push(UG()),C(e)))}function D(e){switch(e){case"var":case"function":case"let":case"const":case"constructor":return void _.push(HG(e));default:return _.push(VG(20)),_.push(HG(e)),void _.push(VG(21))}}function E(t,n,r=0){Ae(_,sX(e,t,i,32|r)),n.length>1&&(_.push(UG()),_.push(VG(20)),_.push(QG(39)),_.push(zG(""+(n.length-1),7)),_.push(UG()),_.push($G(2===n.length?"overload":"overloads")),_.push(VG(21))),l=t.getDocumentationComment(e),u=t.getJsDocTags(),n.length>1&&0===l.length&&0===u.length&&(l=n[0].getDocumentationComment(e),u=n[0].getJsDocTags().filter((e=>"deprecated"!==e.name)))}function N(t,n){const r=iX((r=>{const i=e.symbolToTypeParameterDeclarations(t,n,gue);b().writeList(53776,i,wp(Fc(n)),r)}));Ae(_,r)}}function Sue(e){return!e.parent&&T(e.declarations,(e=>{if(215===e.kind)return!0;if(257!==e.kind&&259!==e.kind)return!1;for(let t=e.parent;!Fm(t);t=t.parent)if(308===t.kind||265===t.kind)return!1;return!0}))}var Tue=b({"src/services/symbolDisplay.ts"(){lfe(),gue=70246400}}),Cue={};x(Cue,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>kue,getSymbolKind:()=>yue,getSymbolModifiers:()=>xue});var Aue,wue,Due,Eue,Nue,Fue,Pue,Iue=b({"src/services/_namespaces/ts.SymbolDisplay.ts"(){Tue()}});function Oue(e){const t=e.__pos;return In.assert("number"==typeof t),t}function Lue(e,t){In.assert("number"==typeof t),e.__pos=t}function Mue(e){const t=e.__end;return In.assert("number"==typeof t),t}function Rue(e,t){In.assert("number"==typeof t),e.__end=t}function Bue(e,t){return As(e,t,!1,!0)}function jue(e,t,n,r){return{pos:Jue(e,t,r),end:Uue(e,n,r)}}function Jue(e,t,n,r=!1){var i,o;const{leadingTriviaOption:a}=n;if(0===a)return t.getStart(e);if(3===a){const n=t.getStart(e),r=RH(n,e);return JH(t,r)?r:n}if(2===a){const n=gm(t,e.text);if(null==n?void 0:n.length)return RH(n[0].pos,e)}const s=t.getFullStart(),c=t.getStart(e);if(s===c)return c;const _=RH(s,e);if(RH(c,e)===_)return 1===a?s:c;if(r){const t=(null==(i=Rs(e.text,s))?void 0:i[0])||(null==(o=Bs(e.text,s))?void 0:o[0]);if(t)return As(e.text,t.end,!0,!0)}const l=s>0?1:0;let u=Fp(Lv(e,_)+l,e);return u=Bue(e.text,u),Fp(Lv(e,u),e)}function zue(e,t,n){const{end:r}=t,{trailingTriviaOption:i}=n;if(2===i){const n=Bs(e.text,r);if(n){const r=Lv(e,t.end);for(const t of n){if(2===t.kind||Lv(e,t.pos)>r)break;if(Lv(e,t.end)>r)return As(e.text,t.end,!0,!0)}}}}function Uue(e,t,n){var r;const{end:i}=t,{trailingTriviaOption:o}=n;if(0===o)return i;if(1===o){const t=ue(Bs(e.text,i),Rs(e.text,i));return(null==(r=null==t?void 0:t[t.length-1])?void 0:r.end)||i}const a=zue(e,t,n);if(a)return a;const s=As(e.text,i,!0);return s===i||2!==o&&!xs(e.text.charCodeAt(s-1))?i:s}function que(e,t){return!!t&&!!e.parent&&(27===t.kind||26===t.kind&&207===e.parent.kind)}function Vue(e){return RD(e)||EE(e)}function Que(e,t){return As(e.text,Jue(e,t,{leadingTriviaOption:1}),!1,!0)}function Kue(e,t,n,r){const i=Que(e,r);if(void 0===n||kx(Uue(e,t,{}),i,e))return i;const o=g$(r.getStart(e),e);if(que(t,o)){const r=g$(t.getStart(e),e);if(que(n,r)){const t=As(e.text,o.getEnd(),!0,!0);if(kx(r.getStart(e),o.getStart(e),e))return xs(e.text.charCodeAt(t-1))?t-1:t;if(xs(e.text.charCodeAt(t)))return t}}return i}function Wue(e){return ED(e)?e.properties:e.members}function Hue(e,t,n,r){return Nue.newFileChangesWorker(void 0,t,e,n,r)}function $ue(e,t){for(let n=t.length-1;n>=0;n--){const{span:r,newText:i}=t[n];e=`${e.substring(0,r.start)}${i}${e.substring(ec(r))}`}return e}function Gue(e){const t=uj(e,Gue,Fue,Xue,Gue),n=Qy(t)?t:Object.create(t);return vT(n,Oue(e),Mue(e)),n}function Xue(e,t,n,r,i){const o=nj(e,t,n,r,i);if(!o)return o;In.assert(e);const a=o===e?dC.createNodeArray(o.slice(0)):o;return vT(a,Oue(e),Mue(e)),a}function Yue(e){let t=0;const n=pv(e);function r(e,r){if(r||!function(e){return As(e,0)===e.length}(e)){t=n.getTextPos();let r=0;for(;vs(e.charCodeAt(e.length-r-1));)r++;t-=r}}return{onBeforeEmitNode:e=>{e&&Lue(e,t)},onAfterEmitNode:e=>{e&&Rue(e,t)},onBeforeEmitNodeArray:e=>{e&&Lue(e,t)},onAfterEmitNodeArray:e=>{e&&Rue(e,t)},onBeforeEmitToken:e=>{e&&Lue(e,t)},onAfterEmitToken:e=>{e&&Rue(e,t)},write:function(e){n.write(e),r(e,!1)},writeComment:function(e){n.writeComment(e)},writeKeyword:function(e){n.writeKeyword(e),r(e,!1)},writeOperator:function(e){n.writeOperator(e),r(e,!1)},writePunctuation:function(e){n.writePunctuation(e),r(e,!1)},writeTrailingSemicolon:function(e){n.writeTrailingSemicolon(e),r(e,!1)},writeParameter:function(e){n.writeParameter(e),r(e,!1)},writeProperty:function(e){n.writeProperty(e),r(e,!1)},writeSpace:function(e){n.writeSpace(e),r(e,!1)},writeStringLiteral:function(e){n.writeStringLiteral(e),r(e,!1)},writeSymbol:function(e,t){n.writeSymbol(e,t),r(e,!1)},writeLine:function(e){n.writeLine(e)},increaseIndent:function(){n.increaseIndent()},decreaseIndent:function(){n.decreaseIndent()},getText:function(){return n.getText()},rawWrite:function(e){n.rawWrite(e),r(e,!1)},writeLiteral:function(e){n.writeLiteral(e),r(e,!0)},getTextPos:function(){return n.getTextPos()},getLine:function(){return n.getLine()},getColumn:function(){return n.getColumn()},getIndent:function(){return n.getIndent()},isAtStartOfLine:function(){return n.isAtStartOfLine()},hasTrailingComment:()=>n.hasTrailingComment(),hasTrailingWhitespace:()=>n.hasTrailingWhitespace(),clear:function(){n.clear(),t=0}}}function Zue(e,t){return!(F$(e,t)||b$(e,t)||S$(e,t)||T$(e,t))}function ede(e,t,n,r={leadingTriviaOption:1}){const i=Jue(t,n,r),o=Uue(t,n,r);e.deleteRange(t,{pos:i,end:o})}function tde(e,t,n,r){const i=In.checkDefined(afe.SmartIndenter.getContainingList(r,n)),o=nf(i,r);In.assert(-1!==o),1!==i.length?(In.assert(!t.has(r),"Deleting a node twice"),t.add(r),e.deleteRange(n,{pos:Que(n,r),end:o===i.length-1?Uue(n,r,{}):Kue(n,r,i[o-1],i[o+1])})):ede(e,n,r)}var nde=b({"src/services/textChanges.ts"(){lfe(),Aue=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(Aue||{}),wue=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(wue||{}),Due={leadingTriviaOption:0,trailingTriviaOption:0},Eue=class{constructor(e,t){this.newLineCharacter=e,this.formatContext=t,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(e){return new Eue(nX(e.host,e.formatContext.options),e.formatContext)}static with(e,t){const n=Eue.fromContext(e);return t(n),n.getChanges()}pushRaw(e,t){In.assertEqual(e.fileName,t.fileName);for(const n of t.textChanges)this.changes.push({kind:3,sourceFile:e,text:n.newText,range:Y$(n.span)})}deleteRange(e,t){this.changes.push({kind:0,sourceFile:e,range:t})}delete(e,t){this.deletedNodes.push({sourceFile:e,node:t})}deleteNode(e,t,n={leadingTriviaOption:1}){this.deleteRange(e,jue(e,t,t,n))}deleteNodes(e,t,n={leadingTriviaOption:1},r){for(const i of t){const t=Jue(e,i,n,r),o=Uue(e,i,n);this.deleteRange(e,{pos:t,end:o}),r=!!zue(e,i,n)}}deleteModifier(e,t){this.deleteRange(e,{pos:t.getStart(e),end:As(e.text,t.end,!0)})}deleteNodeRange(e,t,n,r={leadingTriviaOption:1}){const i=Jue(e,t,r),o=Uue(e,n,r);this.deleteRange(e,{pos:i,end:o})}deleteNodeRangeExcludingEnd(e,t,n,r={leadingTriviaOption:1}){const i=Jue(e,t,r),o=void 0===n?e.text.length:Jue(e,n,r);this.deleteRange(e,{pos:i,end:o})}replaceRange(e,t,n,r={}){this.changes.push({kind:1,sourceFile:e,range:t,options:r,node:n})}replaceNode(e,t,n,r=Due){this.replaceRange(e,jue(e,t,t,r),n,r)}replaceNodeRange(e,t,n,r,i=Due){this.replaceRange(e,jue(e,t,n,i),r,i)}replaceRangeWithNodes(e,t,n,r={}){this.changes.push({kind:2,sourceFile:e,range:t,options:r,nodes:n})}replaceNodeWithNodes(e,t,n,r=Due){this.replaceRangeWithNodes(e,jue(e,t,t,r),n,r)}replaceNodeWithText(e,t,n){this.replaceRangeWithText(e,jue(e,t,t,Due),n)}replaceNodeRangeWithNodes(e,t,n,r,i=Due){this.replaceRangeWithNodes(e,jue(e,t,n,i),r,i)}nodeHasTrailingComment(e,t,n=Due){return!!zue(e,t,n)}nextCommaToken(e,t){const n=m$(t,t.parent,e);return n&&27===n.kind?n:void 0}replacePropertyAssignment(e,t,n){const r=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,n,{suffix:r})}insertNodeAt(e,t,n,r={}){this.replaceRange(e,sx(t),n,r)}insertNodesAt(e,t,n,r={}){this.replaceRangeWithNodes(e,sx(t),n,r)}insertNodeAtTopOfFile(e,t,n){this.insertAtTopOfFile(e,t,n)}insertNodesAtTopOfFile(e,t,n){this.insertAtTopOfFile(e,t,n)}insertAtTopOfFile(e,t,n){const r=function(e){let t;for(const n of e.statements){if(!lm(n))break;t=n}let n=0;const r=e.text;if(t)return n=t.end,c(),n;const i=js(r);void 0!==i&&(n=i.length,c());const o=Rs(r,n);if(!o)return n;let a,s;for(const t of o){if(3===t.kind){if(Wp(r,t.pos)){a={range:t,pinnedOrTripleSlash:!0};continue}}else if(Kp(r,t.pos,t.end)){a={range:t,pinnedOrTripleSlash:!0};continue}if(a){if(a.pinnedOrTripleSlash)break;if(e.getLineAndCharacterOfPosition(t.pos).line>=e.getLineAndCharacterOfPosition(a.range.end).line+2)break}if(e.statements.length&&(void 0===s&&(s=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line),svt(e.comment)?dC.createJSDocText(e.comment):e.comment)),r=Je(t.jsDoc);return r&&kx(r.pos,r.end,e)&&0===S(n)?void 0:dC.createNodeArray(N(n,dC.createJSDocText("\n")))}replaceJSDocComment(e,t,n){this.insertJsdocCommentBefore(e,function(e){if(216!==e.kind)return e;const t=169===e.parent.kind?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}(t),dC.createJSDocComment(this.createJSDocText(e,t),dC.createNodeArray(n)))}addJSDocTags(e,t,n){const r=$(t.jsDoc,(e=>e.tags)),i=n.filter((e=>!r.some(((t,n)=>{const i=function(e,t){if(e.kind===t.kind)switch(e.kind){case 344:{const n=e,r=t;return Tw(n.name)&&Tw(r.name)&&n.name.escapedText===r.name.escapedText?dC.createJSDocParameterTag(void 0,r.name,!1,r.typeExpression,r.isNameFirst,n.comment):void 0}case 345:return dC.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 347:return dC.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}(t,e);return i&&(r[n]=i),!!i}))));this.replaceJSDocComment(e,t,[...r,...i])}filterJSDocTags(e,t,n){this.replaceJSDocComment(e,t,z($(t.jsDoc,(e=>e.tags)),n))}replaceRangeWithText(e,t,n){this.changes.push({kind:3,sourceFile:e,range:t,text:n})}insertText(e,t,n){this.replaceRangeWithText(e,sx(t),n)}tryInsertTypeAnnotation(e,t,n){var r;let i;if(Sl(t)){if(i=YH(t,21,e),!i){if(!BD(t))return!1;i=Me(t.parameters)}}else i=null!=(r=257===t.kind?t.exclamationToken:t.questionToken)?r:t.name;return this.insertNodeAt(e,i.end,n,{prefix:": "}),!0}tryInsertThisTypeAnnotation(e,t,n){const r=YH(t,20,e).getStart(e)+1,i=t.parameters.length?", ":"";this.insertNodeAt(e,r,n,{prefix:"this: ",suffix:i})}insertTypeParameters(e,t,n){const r=(YH(t,20,e)||Me(t.parameters)).getStart(e);this.insertNodesAt(e,r,n,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(e,t,n){return Iu(e)||Nl(e)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:wE(e)?{suffix:", "}:Uw(e)?Uw(t)?{suffix:", "}:{}:sw(e)&&jE(e.parent)||KE(e)?{suffix:", "}:WE(e)?{suffix:","+(n?this.newLineCharacter:" ")}:In.failBadSyntaxKind(e)}insertNodeAtConstructorStart(e,t,n){const r=Oe(t.body.statements);r&&t.body.multiLine?this.insertNodeBefore(e,r,n):this.replaceConstructorBody(e,t,[n,...t.body.statements])}insertNodeAtConstructorStartAfterSuperCall(e,t,n){const r=P(t.body.statements,(e=>uE(e)&&am(e.expression)));r&&t.body.multiLine?this.insertNodeAfter(e,r,n):this.replaceConstructorBody(e,t,[...t.body.statements,n])}insertNodeAtConstructorEnd(e,t,n){const r=Be(t.body.statements);r&&t.body.multiLine?this.insertNodeAfter(e,r,n):this.replaceConstructorBody(e,t,[...t.body.statements,n])}replaceConstructorBody(e,t,n){this.replaceNode(e,t.body,dC.createBlock(n,!0))}insertNodeAtEndOfScope(e,t,n){const r=Jue(e,t.getLastToken(),{});this.insertNodeAt(e,r,n,{prefix:xs(e.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(e,t,n){this.insertNodeAtStartWorker(e,t,n)}insertNodeAtObjectStart(e,t,n){this.insertNodeAtStartWorker(e,t,n)}insertNodeAtStartWorker(e,t,n){var r;const i=null!=(r=this.guessIndentationFromExistingMembers(e,t))?r:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,Wue(t).pos,n,this.getInsertNodeAtStartInsertOptions(e,t,i))}guessIndentationFromExistingMembers(e,t){let n,r=t;for(const i of Wue(t)){if(mx(r,i,e))return;const t=i.getStart(e),o=afe.SmartIndenter.findFirstNonWhitespaceColumn(RH(t,e),t,e,this.formatContext.options);if(void 0===n)n=o;else if(o!==n)return;r=i}return n}computeIndentationForNewMember(e,t){var n;const r=t.getStart(e);return afe.SmartIndenter.findFirstNonWhitespaceColumn(RH(r,e),r,e,this.formatContext.options)+(null!=(n=this.formatContext.options.indentSize)?n:4)}getInsertNodeAtStartInsertOptions(e,t,n){const r=0===Wue(t).length,i=$x(this.classesWithNodesInsertedAtStart,qB(t),{node:t,sourceFile:e}),o=ED(t)&&(!tm(e)||!r);return{indentation:n,prefix:(ED(t)&&tm(e)&&r&&!i?",":"")+this.newLineCharacter,suffix:o?",":FE(t)&&r?";":""}}insertNodeAfterComma(e,t,n){const r=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfter(e,t,n){const r=this.insertNodeAfterWorker(e,t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAtEndOfList(e,t,n){this.insertNodeAt(e,t.end,n,{prefix:", "})}insertNodesAfter(e,t,n){const r=this.insertNodeAfterWorker(e,t,Me(n));this.insertNodesAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfterWorker(e,t,n){var r,i;return i=n,((Vw(r=t)||Qw(r))&&Bl(i)&&164===i.name.kind||Pu(r)&&Pu(i))&&59!==e.text.charCodeAt(t.end-1)&&this.replaceRange(e,sx(t.end),dC.createToken(26)),Uue(e,t,{})}getInsertNodeAfterOptions(e,t){const n=this.getInsertNodeAfterOptionsWorker(t);return{...n,prefix:t.end===e.end&&Iu(t)?n.prefix?"\n"+n.prefix:"\n":n.prefix}}getInsertNodeAfterOptionsWorker(e){switch(e.kind){case 260:case 264:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 257:case 10:case 79:return{prefix:", "};case 299:return{suffix:","+this.newLineCharacter};case 93:return{prefix:" "};case 166:return{};default:return In.assert(Iu(e)||Bl(e)),{suffix:this.newLineCharacter}}}insertName(e,t,n){if(In.assert(!t.name),216===t.kind){const r=YH(t,38,e),i=YH(t,20,e);i?(this.insertNodesAt(e,i.getStart(e),[dC.createToken(98),dC.createIdentifier(n)],{joiner:" "}),ede(this,e,r)):(this.insertText(e,Me(t.parameters).getStart(e),`function ${n}(`),this.replaceRange(e,r,dC.createToken(21))),238!==t.body.kind&&(this.insertNodesAt(e,t.body.getStart(e),[dC.createToken(18),dC.createToken(105)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,t.body.end,[dC.createToken(26),dC.createToken(19)],{joiner:" "}))}else{const r=YH(t,215===t.kind?98:84,e).end;this.insertNodeAt(e,r,dC.createIdentifier(n),{prefix:" "})}}insertExportModifier(e,t){this.insertText(e,t.getStart(e),"export ")}insertImportSpecifierAtIndex(e,t,n,r){const i=n.elements[r-1];i?this.insertNodeInListAfter(e,i,t):this.insertNodeBefore(e,n.elements[0],t,!kx(n.elements[0].getStart(),n.parent.parent.getStart(),e))}insertNodeInListAfter(e,t,n,r=afe.SmartIndenter.getContainingList(t,e)){if(!r)return void In.fail("node is not a list element");const i=nf(r,t);if(i<0)return;const o=t.getEnd();if(i!==r.length-1){const o=u$(e,t.end);if(o&&que(t,o)){const t=r[i+1],a=Bue(e.text,t.getFullStart()),s=`${_s(o.kind)}${e.text.substring(o.end,a)}`;this.insertNodesAt(e,a,[n],{suffix:s})}}else{const a=t.getStart(e),s=RH(a,e);let c,_=!1;if(1===r.length)c=27;else{const n=g$(t.pos,e);c=que(t,n)?n.kind:27,_=RH(r[i-1].getStart(e),e)!==s}if(function(e,t){let n=t;for(;n{const[n,r]=function(e,t){const n=YH(e,18,t),r=YH(e,19,t);return[null==n?void 0:n.end,null==r?void 0:r.end]}(e,t);if(void 0!==n&&void 0!==r){const i=0===Wue(e).length,o=kx(n,r,t);i&&o&&n!==r-1&&this.deleteRange(t,sx(n,r-1)),o&&this.insertText(t,r-1,this.newLineCharacter)}}))}finishDeleteDeclarations(){const e=new Set;for(const{sourceFile:t,node:n}of this.deletedNodes)this.deletedNodes.some((e=>e.sourceFile===t&&jH(e.node,n)))||(ht(n)?this.deleteRange(t,aT(t,n)):Pue.deleteDeclaration(this,e,t,n));e.forEach((t=>{const n=t.getSourceFile(),r=afe.SmartIndenter.getContainingList(t,n);if(t!==je(r))return;const i=L(r,(t=>!e.has(t)),r.length-2);-1!==i&&this.deleteRange(n,{pos:r[i].end,end:Que(n,r[i+1])})}))}getChanges(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const t=Nue.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e);for(const{oldFile:e,fileName:n,statements:r}of this.newFiles)t.push(Nue.newFileChanges(e,n,r,this.newLineCharacter,this.formatContext));return t}createNewFile(e,t,n){this.newFiles.push({oldFile:e,fileName:t,statements:n})}},(e=>{function t(e,t,r,i,o){const a=r.map((t=>4===t?"":n(t,e,i).text)).join(i),s=TI("any file name",a,99,!0,t);return $ue(a,afe.formatDocument(s,o))+i}function n(e,t,n){const r=Yue(n);return hU({newLine:CY(n),neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},r).writeNode(4,e,t,r),{text:r.getText(),node:Gue(e)}}e.getTextChangesFromChanges=function(e,t,r,i){return Z(ot(e,(e=>e.sourceFile.path)),(e=>{const o=e[0].sourceFile,a=Pe(e,((e,t)=>e.range.pos-t.range.pos||e.range.end-t.range.end));for(let e=0;e`${JSON.stringify(a[e].range)} and ${JSON.stringify(a[e+1].range)}`));const s=Z(a,(e=>{const a=X$(e.range),s=function(e,t,r,i,o){var a;if(0===e.kind)return"";if(3===e.kind)return e.text;const{options:s={},range:{pos:c}}=e,_=e=>function(e,t,r,{indentation:i,prefix:o,delta:a},s,c,_){const{node:l,text:u}=n(e,t,s);_&&_(l,u);const d=wY(c,t),p=void 0!==i?i:afe.SmartIndenter.getIndentation(r,t,d,o===s||RH(r,t)===r);void 0===a&&(a=afe.SmartIndenter.shouldIndentChildNode(d,e)&&d.indentSize||0);const f={text:u,getLineAndCharacterOfPosition(e){return ys(this,e)}};return $ue(u,afe.formatNodeGivenIndentation(l,f,t.languageVariant,p,a,{...c,options:d}))}(e,t,c,s,r,i,o),l=2===e.kind?e.nodes.map((e=>tn(_(e),r))).join((null==(a=e.options)?void 0:a.joiner)||r):_(e.node),u=void 0!==s.indentation||RH(c,t)===c?l:l.replace(/^\s+/,"");return(s.prefix||"")+u+(!s.suffix||en(u,s.suffix)?"":s.suffix)}(e,o,t,r,i);if(a.length!==s.length||!vY(o.text,s,a.start))return eG(a,s)}));return s.length>0?{fileName:o.fileName,textChanges:s}:void 0}))},e.newFileChanges=function(e,n,r,i,o){const a=t(e,PS(n),r,i,o);return{fileName:n,textChanges:[eG(dc(0,0),a)],isNewFile:!0}},e.newFileChangesWorker=t,e.getNonformattedText=n})(Nue||(Nue={})),Fue={...Nz,factory:gC(1|Nz.factory.flags,Nz.factory.baseFactory)},(e=>{function t(e,t,n){if(n.parent.name){const r=In.checkDefined(u$(t,n.pos-1));e.deleteRange(t,{pos:r.getStart(t),end:n.end})}else ede(e,t,py(n,269))}e.deleteDeclaration=function(e,n,r,i){switch(i.kind){case 166:{const t=i.parent;BD(t)&&1===t.parameters.length&&!YH(t,20,r)?e.replaceNodeWithText(r,i,"()"):tde(e,n,r,i);break}case 269:case 268:ede(e,r,i,{leadingTriviaOption:r.imports.length&&i===Me(r.imports).parent||i===P(r.statements,Df)?0:Wu(i)?2:3});break;case 205:const o=i.parent;204===o.kind&&i!==je(o.elements)?ede(e,r,i):tde(e,n,r,i);break;case 257:!function(e,t,n,r){const{parent:i}=r;if(295===i.kind)return void e.deleteNodeRange(n,YH(i,20,n),YH(i,21,n));if(1!==i.declarations.length)return void tde(e,t,n,r);const o=i.parent;switch(o.kind){case 247:case 246:e.replaceNode(n,r,dC.createObjectLiteralExpression());break;case 245:ede(e,n,i);break;case 240:ede(e,n,o,{leadingTriviaOption:Wu(o)?2:3});break;default:In.assertNever(o)}}(e,n,r,i);break;case 165:tde(e,n,r,i);break;case 273:const a=i.parent;1===a.elements.length?t(e,r,a):tde(e,n,r,i);break;case 271:t(e,r,i);break;case 26:ede(e,r,i,{trailingTriviaOption:0});break;case 98:ede(e,r,i,{leadingTriviaOption:0});break;case 260:case 259:ede(e,r,i,{leadingTriviaOption:Wu(i)?2:3});break;default:i.parent?JE(i.parent)&&i.parent.name===i?function(e,t,n){if(n.namedBindings){const r=n.name.getStart(t),i=u$(t,n.name.end);if(i&&27===i.kind){const n=As(t.text,i.end,!1,!0);e.deleteRange(t,{pos:r,end:n})}else ede(e,t,n.name)}else ede(e,t,n.parent)}(e,r,i.parent):PD(i.parent)&&R(i.parent.arguments,i)?tde(e,n,r,i):ede(e,r,i):ede(e,r,i)}}})(Pue||(Pue={}))}}),rde={};x(rde,{ChangeTracker:()=>Eue,LeadingTriviaOption:()=>Aue,TrailingTriviaOption:()=>wue,applyChanges:()=>$ue,assignPositionsToNode:()=>Gue,createWriter:()=>Yue,deleteNode:()=>ede,getNewFileText:()=>Hue,isThisTypeAnnotatable:()=>Vue,isValidLocationToAddComment:()=>Zue});var ide,ode,ade,sde,cde=b({"src/services/_namespaces/ts.textChanges.ts"(){nde()}}),_de=b({"src/services/formatting/formattingContext.ts"(){lfe(),ide=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(ide||{}),ode=class{constructor(e,t,n){this.sourceFile=e,this.formattingRequestKind=t,this.options=n}updateContext(e,t,n,r,i){this.currentTokenSpan=In.checkDefined(e),this.currentTokenParent=In.checkDefined(t),this.nextTokenSpan=In.checkDefined(n),this.nextTokenParent=In.checkDefined(r),this.contextNode=In.checkDefined(i),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(void 0===this.tokensAreOnSameLine){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line}BlockIsOnOneLine(e){const t=YH(e,18,this.sourceFile),n=YH(e,19,this.sourceFile);return!(!t||!n)&&this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line}}}});function lde(e,t,n,r,i){const o=1===t?sde:ade;o.setText(e),o.setTextPos(n);let a,s,c,_,l,u=!0;const d=i({advance:function(){l=void 0,o.getStartPos()!==n?u=!!s&&4===je(s).kind:o.scan(),a=void 0,s=void 0;let e=o.getStartPos();for(;ea,lastTrailingTriviaWasNewLine:()=>u,skipToEndOf:function(e){o.setTextPos(e.end),c=o.getStartPos(),_=void 0,l=void 0,u=!1,a=void 0,s=void 0},skipToStartOf:function(e){o.setTextPos(e.pos),c=o.getStartPos(),_=void 0,l=void 0,u=!1,a=void 0,s=void 0},getStartPos:()=>{var e;return null!=(e=null==l?void 0:l.token.pos)?e:o.getTokenPos()}});return l=void 0,o.setText(void 0),d;function p(){const e=l?l.token.kind:o.getToken();return 1!==e&&!xy(e)}function f(){return 1===(l?l.token.kind:o.getToken())}function m(e,t){return Y_(t)&&e.token.kind!==t.kind&&(e.token.kind=t.kind),e}}var ude,dde,pde,fde=b({"src/services/formatting/formattingScanner.ts"(){lfe(),_fe(),ade=qs(99,!1,0),sde=qs(99,!1,1)}}),mde=b({"src/services/formatting/rule.ts"(){lfe(),ude=r,dde=(e=>(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(dde||{}),pde=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(pde||{})}});function gde(){const e=[];for(let t=0;t<=162;t++)1!==t&&e.push(t);function t(...t){return{tokens:e.filter((e=>!t.some((t=>t===e)))),isSpecific:!1}}const n={tokens:e,isSpecific:!1},r=yde([...e,3]),i=yde([...e,1]),o=bde(81,162),a=bde(29,78),s=[101,102,162,128,140,150],c=[79,...ZW],_=r,l=yde([79,3,84,93,100]),u=yde([21,3,90,111,96,91]);return[hde("IgnoreBeforeComment",n,[2,3],ude,1),hde("IgnoreAfterLineComment",2,n,ude,1),hde("NotSpaceBeforeColon",n,58,[tpe,Nde,Fde],16),hde("SpaceAfterColon",58,n,[tpe,Nde],4),hde("NoSpaceBeforeQuestionMark",n,57,[tpe,Nde,Fde],16),hde("SpaceAfterQuestionMarkInConditionalOperator",57,n,[tpe,Ide],4),hde("NoSpaceAfterQuestionMark",57,n,[tpe],16),hde("NoSpaceBeforeDot",n,[24,28],[tpe,Ape],16),hde("NoSpaceAfterDot",[24,28],n,[tpe],16),hde("NoSpaceBetweenImportParenInImportType",100,20,[tpe,epe],16),hde("NoSpaceAfterUnaryPrefixOperator",[45,46,54,53],[8,9,79,20,22,18,108,103],[tpe,Nde],16),hde("NoSpaceAfterUnaryPreincrementOperator",45,[79,20,108,103],[tpe],16),hde("NoSpaceAfterUnaryPredecrementOperator",46,[79,20,108,103],[tpe],16),hde("NoSpaceBeforeUnaryPostincrementOperator",[79,21,23,103],45,[tpe,Spe],16),hde("NoSpaceBeforeUnaryPostdecrementOperator",[79,21,23,103],46,[tpe,Spe],16),hde("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[tpe,Ede],4),hde("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[tpe,Ede],4),hde("SpaceAfterAddWhenFollowedByPreincrement",39,45,[tpe,Ede],4),hde("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[tpe,Ede],4),hde("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[tpe,Ede],4),hde("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[tpe,Ede],4),hde("NoSpaceAfterCloseBrace",19,[27,26],[tpe],16),hde("NewLineBeforeCloseBraceInBlockContext",r,19,[Rde],8),hde("SpaceAfterCloseBrace",19,t(21),[tpe,Kde],4),hde("SpaceBetweenCloseBraceAndElse",19,91,[tpe],4),hde("SpaceBetweenCloseBraceAndWhile",19,115,[tpe],4),hde("NoSpaceBetweenEmptyBraceBrackets",18,19,[tpe,Hde],16),hde("SpaceAfterConditionalClosingParen",21,22,[Wde],4),hde("NoSpaceBetweenFunctionKeywordAndStar",98,41,[qde],16),hde("SpaceAfterStarInGeneratorDeclaration",41,79,[qde],4),hde("SpaceAfterFunctionInFuncDecl",98,n,[zde],4),hde("NewLineAfterOpenBraceInBlockContext",18,n,[Rde],8),hde("SpaceAfterGetSetInMember",[137,151],79,[zde],4),hde("NoSpaceBetweenYieldKeywordAndStar",125,41,[tpe,xpe],16),hde("SpaceBetweenYieldOrYieldStarAndOperand",[125,41],n,[tpe,xpe],4),hde("NoSpaceBetweenReturnAndSemicolon",105,26,[tpe],16),hde("SpaceAfterCertainKeywords",[113,109,103,89,105,112,133],n,[tpe],4),hde("SpaceAfterLetConstInVariableDeclaration",[119,85],n,[tpe,upe],4),hde("NoSpaceBeforeOpenParenInFuncCall",n,20,[tpe,$de,Gde],16),hde("SpaceBeforeBinaryKeywordOperator",n,s,[tpe,Ede],4),hde("SpaceAfterBinaryKeywordOperator",s,n,[tpe,Ede],4),hde("SpaceAfterVoidOperator",114,n,[tpe,bpe],4),hde("SpaceBetweenAsyncAndOpenParen",132,20,[Zde,tpe],4),hde("SpaceBetweenAsyncAndFunctionKeyword",132,[98,79],[tpe],4),hde("NoSpaceBetweenTagAndTemplateString",[79,21],[14,15],[tpe],16),hde("SpaceBeforeJsxAttribute",n,79,[ope,tpe],4),hde("SpaceBeforeSlashInJsxOpeningElement",n,43,[spe,tpe],4),hde("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[spe,tpe],16),hde("NoSpaceBeforeEqualInJsxAttribute",n,63,[ape,tpe],16),hde("NoSpaceAfterEqualInJsxAttribute",63,n,[ape,tpe],16),hde("NoSpaceAfterModuleImport",[142,147],20,[tpe],16),hde("SpaceAfterCertainTypeScriptKeywords",[126,127,84,136,88,92,93,94,137,117,100,118,142,143,121,123,122,146,151,124,154,158,141,138],n,[tpe],4),hde("SpaceBeforeCertainTypeScriptKeywords",n,[94,117,158],[tpe],4),hde("SpaceAfterModuleName",10,18,[ppe],4),hde("SpaceBeforeArrow",n,38,[tpe],4),hde("SpaceAfterArrow",38,n,[tpe],4),hde("NoSpaceAfterEllipsis",25,79,[tpe],16),hde("NoSpaceAfterOptionalParameters",57,[21,27],[tpe,Nde],16),hde("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[tpe,fpe],16),hde("NoSpaceBeforeOpenAngularBracket",c,29,[tpe,hpe],16),hde("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[tpe,hpe],16),hde("NoSpaceAfterOpenAngularBracket",29,n,[tpe,hpe],16),hde("NoSpaceBeforeCloseAngularBracket",n,31,[tpe,hpe],16),hde("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[tpe,hpe,Ude,vpe],16),hde("SpaceBeforeAt",[21,79],59,[tpe],4),hde("NoSpaceAfterAt",59,n,[tpe],16),hde("SpaceAfterDecorator",n,[126,79,93,88,84,124,123,121,122,137,151,22,41],[_pe],4),hde("NoSpaceBeforeNonNullAssertionOperator",n,53,[tpe,kpe],16),hde("NoSpaceAfterNewKeywordOnConstructorSignature",103,20,[tpe,mpe],16),hde("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[tpe],4),hde("SpaceAfterConstructor",135,20,[kde("insertSpaceAfterConstructor"),tpe],4),hde("NoSpaceAfterConstructor",135,20,[Tde("insertSpaceAfterConstructor"),tpe],16),hde("SpaceAfterComma",27,n,[kde("insertSpaceAfterCommaDelimiter"),tpe,rpe,Xde,Yde],4),hde("NoSpaceAfterComma",27,n,[Tde("insertSpaceAfterCommaDelimiter"),tpe,rpe],16),hde("SpaceAfterAnonymousFunctionKeyword",[98,41],20,[kde("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),zde],4),hde("NoSpaceAfterAnonymousFunctionKeyword",[98,41],20,[Tde("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),zde],16),hde("SpaceAfterKeywordInControl",o,20,[kde("insertSpaceAfterKeywordsInControlFlowStatements"),Wde],4),hde("NoSpaceAfterKeywordInControl",o,20,[Tde("insertSpaceAfterKeywordsInControlFlowStatements"),Wde],16),hde("SpaceAfterOpenParen",20,n,[kde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),tpe],4),hde("SpaceBeforeCloseParen",n,21,[kde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),tpe],4),hde("SpaceBetweenOpenParens",20,20,[kde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),tpe],4),hde("NoSpaceBetweenParens",20,21,[tpe],16),hde("NoSpaceAfterOpenParen",20,n,[Tde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),tpe],16),hde("NoSpaceBeforeCloseParen",n,21,[Tde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),tpe],16),hde("SpaceAfterOpenBracket",22,n,[kde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),tpe],4),hde("SpaceBeforeCloseBracket",n,23,[kde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),tpe],4),hde("NoSpaceBetweenBrackets",22,23,[tpe],16),hde("NoSpaceAfterOpenBracket",22,n,[Tde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),tpe],16),hde("NoSpaceBeforeCloseBracket",n,23,[Tde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),tpe],16),hde("SpaceAfterOpenBrace",18,n,[Ade("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Lde],4),hde("SpaceBeforeCloseBrace",n,19,[Ade("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Lde],4),hde("NoSpaceBetweenEmptyBraceBrackets",18,19,[tpe,Hde],16),hde("NoSpaceAfterOpenBrace",18,n,[Sde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),tpe],16),hde("NoSpaceBeforeCloseBrace",n,19,[Sde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),tpe],16),hde("SpaceBetweenEmptyBraceBrackets",18,19,[kde("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),hde("NoSpaceBetweenEmptyBraceBrackets",18,19,[Sde("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),tpe],16),hde("SpaceAfterTemplateHeadAndMiddle",[15,16],n,[kde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),npe],4,1),hde("SpaceBeforeTemplateMiddleAndTail",n,[16,17],[kde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),tpe],4),hde("NoSpaceAfterTemplateHeadAndMiddle",[15,16],n,[Tde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),npe],16,1),hde("NoSpaceBeforeTemplateMiddleAndTail",n,[16,17],[Tde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),tpe],16),hde("SpaceAfterOpenBraceInJsxExpression",18,n,[kde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),tpe,ipe],4),hde("SpaceBeforeCloseBraceInJsxExpression",n,19,[kde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),tpe,ipe],4),hde("NoSpaceAfterOpenBraceInJsxExpression",18,n,[Tde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),tpe,ipe],16),hde("NoSpaceBeforeCloseBraceInJsxExpression",n,19,[Tde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),tpe,ipe],16),hde("SpaceAfterSemicolonInFor",26,n,[kde("insertSpaceAfterSemicolonInForStatements"),tpe,wde],4),hde("NoSpaceAfterSemicolonInFor",26,n,[Tde("insertSpaceAfterSemicolonInForStatements"),tpe,wde],16),hde("SpaceBeforeBinaryOperator",n,a,[kde("insertSpaceBeforeAndAfterBinaryOperators"),tpe,Ede],4),hde("SpaceAfterBinaryOperator",a,n,[kde("insertSpaceBeforeAndAfterBinaryOperators"),tpe,Ede],4),hde("NoSpaceBeforeBinaryOperator",n,a,[Tde("insertSpaceBeforeAndAfterBinaryOperators"),tpe,Ede],16),hde("NoSpaceAfterBinaryOperator",a,n,[Tde("insertSpaceBeforeAndAfterBinaryOperators"),tpe,Ede],16),hde("SpaceBeforeOpenParenInFuncDecl",n,20,[kde("insertSpaceBeforeFunctionParenthesis"),tpe,zde],4),hde("NoSpaceBeforeOpenParenInFuncDecl",n,20,[Tde("insertSpaceBeforeFunctionParenthesis"),tpe,zde],16),hde("NewLineBeforeOpenBraceInControl",u,18,[kde("placeOpenBraceOnNewLineForControlBlocks"),Wde,Mde],8,1),hde("NewLineBeforeOpenBraceInFunction",_,18,[kde("placeOpenBraceOnNewLineForFunctions"),zde,Mde],8,1),hde("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",l,18,[kde("placeOpenBraceOnNewLineForFunctions"),Vde,Mde],8,1),hde("SpaceAfterTypeAssertion",31,n,[kde("insertSpaceAfterTypeAssertion"),tpe,ype],4),hde("NoSpaceAfterTypeAssertion",31,n,[Tde("insertSpaceAfterTypeAssertion"),tpe,ype],16),hde("SpaceBeforeTypeAnnotation",n,[57,58],[kde("insertSpaceBeforeTypeAnnotation"),tpe,Pde],4),hde("NoSpaceBeforeTypeAnnotation",n,[57,58],[Tde("insertSpaceBeforeTypeAnnotation"),tpe,Pde],16),hde("NoOptionalSemicolon",26,i,[xde("semicolons","remove"),Tpe],32),hde("OptionalSemicolon",n,i,[xde("semicolons","insert"),Cpe],64),hde("NoSpaceBeforeSemicolon",n,26,[tpe],16),hde("SpaceBeforeOpenBraceInControl",u,18,[Cde("placeOpenBraceOnNewLineForControlBlocks"),Wde,dpe,Ode],4,1),hde("SpaceBeforeOpenBraceInFunction",_,18,[Cde("placeOpenBraceOnNewLineForFunctions"),zde,jde,dpe,Ode],4,1),hde("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",l,18,[Cde("placeOpenBraceOnNewLineForFunctions"),Vde,dpe,Ode],4,1),hde("NoSpaceBeforeComma",n,27,[tpe],16),hde("NoSpaceBeforeOpenBracket",t(132,82),22,[tpe],16),hde("NoSpaceAfterCloseBracket",23,n,[tpe,cpe],16),hde("SpaceAfterSemicolon",26,n,[tpe],4),hde("SpaceBetweenForAndAwaitKeyword",97,133,[tpe],4),hde("SpaceBetweenStatements",[21,90,91,82],n,[tpe,rpe,Dde],4),hde("SpaceAfterTryCatchFinally",[111,83,96],18,[tpe],4)]}function hde(e,t,n,r,i,o=0){return{leftTokenRange:vde(t),rightTokenRange:vde(n),rule:{debugName:e,context:r,action:i,flags:o}}}function yde(e){return{tokens:e,isSpecific:!0}}function vde(e){return"number"==typeof e?yde([e]):ht(e)?yde(e):e}function bde(e,t,n=[]){const r=[];for(let i=e;i<=t;i++)R(n,i)||r.push(i);return yde(r)}function xde(e,t){return n=>n.options&&n.options[e]===t}function kde(e){return t=>t.options&&We(t.options,e)&&!!t.options[e]}function Sde(e){return t=>t.options&&We(t.options,e)&&!t.options[e]}function Tde(e){return t=>!t.options||!We(t.options,e)||!t.options[e]}function Cde(e){return t=>!t.options||!We(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function Ade(e){return t=>!t.options||!We(t.options,e)||!!t.options[e]}function wde(e){return 245===e.contextNode.kind}function Dde(e){return!wde(e)}function Ede(e){switch(e.contextNode.kind){case 223:return 27!==e.contextNode.operatorToken.kind;case 224:case 191:case 231:case 278:case 273:case 179:case 189:case 190:case 235:return!0;case 205:case 262:case 268:case 274:case 257:case 166:case 302:case 169:case 168:return 63===e.currentTokenSpan.kind||63===e.nextTokenSpan.kind;case 246:case 165:return 101===e.currentTokenSpan.kind||101===e.nextTokenSpan.kind||63===e.currentTokenSpan.kind||63===e.nextTokenSpan.kind;case 247:return 162===e.currentTokenSpan.kind||162===e.nextTokenSpan.kind}return!1}function Nde(e){return!Ede(e)}function Fde(e){return!Pde(e)}function Pde(e){const t=e.contextNode.kind;return 169===t||168===t||166===t||257===t||Dl(t)}function Ide(e){return 224===e.contextNode.kind||191===e.contextNode.kind}function Ode(e){return e.TokensAreOnSameLine()||jde(e)}function Lde(e){return 203===e.contextNode.kind||197===e.contextNode.kind||function(e){return Bde(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function Mde(e){return jde(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function Rde(e){return Bde(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Bde(e){return Jde(e.contextNode)}function jde(e){return Jde(e.nextTokenParent)}function Jde(e){if(Qde(e))return!0;switch(e.kind){case 238:case 266:case 207:case 265:return!0}return!1}function zde(e){switch(e.contextNode.kind){case 259:case 171:case 170:case 174:case 175:case 176:case 215:case 173:case 216:case 261:return!0}return!1}function Ude(e){return!zde(e)}function qde(e){return 259===e.contextNode.kind||215===e.contextNode.kind}function Vde(e){return Qde(e.contextNode)}function Qde(e){switch(e.kind){case 260:case 228:case 261:case 263:case 184:case 264:case 275:case 276:case 269:case 272:return!0}return!1}function Kde(e){switch(e.currentTokenParent.kind){case 260:case 264:case 263:case 295:case 265:case 252:return!0;case 238:{const t=e.currentTokenParent.parent;if(!t||216!==t.kind&&215!==t.kind)return!0}}return!1}function Wde(e){switch(e.contextNode.kind){case 242:case 252:case 245:case 246:case 247:case 244:case 255:case 243:case 251:case 295:return!0;default:return!1}}function Hde(e){return 207===e.contextNode.kind}function $de(e){return function(e){return 210===e.contextNode.kind}(e)||function(e){return 211===e.contextNode.kind}(e)}function Gde(e){return 27!==e.currentTokenSpan.kind}function Xde(e){return 23!==e.nextTokenSpan.kind}function Yde(e){return 21!==e.nextTokenSpan.kind}function Zde(e){return 216===e.contextNode.kind}function epe(e){return 202===e.contextNode.kind}function tpe(e){return e.TokensAreOnSameLine()&&11!==e.contextNode.kind}function npe(e){return 11!==e.contextNode.kind}function rpe(e){return 281!==e.contextNode.kind&&285!==e.contextNode.kind}function ipe(e){return 291===e.contextNode.kind||290===e.contextNode.kind}function ope(e){return 288===e.nextTokenParent.kind}function ape(e){return 288===e.contextNode.kind}function spe(e){return 282===e.contextNode.kind}function cpe(e){return!zde(e)&&!jde(e)}function _pe(e){return e.TokensAreOnSameLine()&&gb(e.contextNode)&&lpe(e.currentTokenParent)&&!lpe(e.nextTokenParent)}function lpe(e){for(;e&&_u(e);)e=e.parent;return e&&167===e.kind}function upe(e){return 258===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function dpe(e){return 2!==e.formattingRequestKind}function ppe(e){return 264===e.contextNode.kind}function fpe(e){return 184===e.contextNode.kind}function mpe(e){return 177===e.contextNode.kind}function gpe(e,t){if(29!==e.kind&&31!==e.kind)return!1;switch(t.kind){case 180:case 213:case 262:case 260:case 228:case 261:case 259:case 215:case 216:case 171:case 170:case 176:case 177:case 210:case 211:case 230:return!0;default:return!1}}function hpe(e){return gpe(e.currentTokenSpan,e.currentTokenParent)||gpe(e.nextTokenSpan,e.nextTokenParent)}function ype(e){return 213===e.contextNode.kind}function vpe(e){return!ype(e)}function bpe(e){return 114===e.currentTokenSpan.kind&&219===e.currentTokenParent.kind}function xpe(e){return 226===e.contextNode.kind&&void 0!==e.contextNode.expression}function kpe(e){return 232===e.contextNode.kind}function Spe(e){return!function(e){switch(e.contextNode.kind){case 242:case 245:case 246:case 247:case 243:case 244:return!0;default:return!1}}(e)}function Tpe(e){let t=e.nextTokenSpan.kind,n=e.nextTokenSpan.pos;if(xy(t)){const r=e.nextTokenParent===e.currentTokenParent?m$(e.currentTokenParent,Ec(e.currentTokenParent,(e=>!e.parent)),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!r)return!0;t=r.kind,n=r.getStart(e.sourceFile)}return e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line===e.sourceFile.getLineAndCharacterOfPosition(n).line?19===t||1===t:237!==t&&26!==t&&(261===e.contextNode.kind||262===e.contextNode.kind?!Vw(e.currentTokenParent)||!!e.currentTokenParent.type||20!==t:Qw(e.currentTokenParent)?!e.currentTokenParent.initializer:245!==e.currentTokenParent.kind&&239!==e.currentTokenParent.kind&&237!==e.currentTokenParent.kind&&22!==t&&20!==t&&39!==t&&40!==t&&43!==t&&13!==t&&27!==t&&225!==t&&15!==t&&14!==t&&24!==t)}function Cpe(e){return KX(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function Ape(e){return!ND(e.contextNode)||!ow(e.contextNode.expression)||-1!==e.contextNode.expression.getText().indexOf(".")}var wpe,Dpe,Epe,Npe,Fpe,Ppe=b({"src/services/formatting/rules.ts"(){lfe(),_fe()}});function Ipe(e,t){return{options:e,getRules:(void 0===wpe&&(wpe=function(e){const t=function(e){const t=Array(Npe*Npe),n=Array(t.length);for(const r of e){const e=r.leftTokenRange.isSpecific&&r.rightTokenRange.isSpecific;for(const i of r.leftTokenRange.tokens)for(const o of r.rightTokenRange.tokens){const a=Lpe(i,o);let s=t[a];void 0===s&&(s=t[a]=[]),Mpe(s,r.rule,e,n,a)}}return t}(e);return e=>{const n=t[Lpe(e.currentTokenSpan.kind,e.nextTokenSpan.kind)];if(n){const t=[];let r=0;for(const i of n){const n=~Ope(r);i.action&n&&F(i.context,(t=>t(e)))&&(t.push(i),r|=i.action)}if(t.length)return t}}}(gde())),wpe),host:t}}function Ope(e){let t=0;return 1&e&&(t|=28),2&e&&(t|=96),28&e&&(t|=28),96&e&&(t|=96),t}function Lpe(e,t){return In.assert(e<=162&&t<=162,"Must compute formatting context from tokens"),e*Npe+t}function Mpe(e,t,n,r,i){const o=3&t.action?n?0:Fpe.StopRulesAny:t.context!==ude?n?Fpe.ContextRulesSpecific:Fpe.ContextRulesAny:n?Fpe.NoContextRulesSpecific:Fpe.NoContextRulesAny,a=r[i]||0;e.splice(function(e,t){let n=0;for(let r=0;r<=t;r+=Dpe)n+=e&Epe,e>>=Dpe;return n}(a,o),0,t),r[i]=function(e,t){const n=1+(e>>t&Epe);return In.assert((n&Epe)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(Epe<In.formatSyntaxKind(n)}),r}function Upe(e,t,n){const r=t.getLineAndCharacterOfPosition(e).line;if(0===r)return[];let i=Ip(r,t);for(;bs(t.text.charCodeAt(i));)i--;return xs(t.text.charCodeAt(i))&&i--,Zpe({pos:Fp(r-1,t),end:i+1},t,n,2)}function qpe(e,t,n){return Ype($pe(Hpe(e,26,t)),t,n,3)}function Vpe(e,t,n){const r=Hpe(e,18,t);return r?Zpe({pos:RH($pe(r.parent).getStart(t),t),end:e},t,n,4):[]}function Qpe(e,t,n){return Ype($pe(Hpe(e,19,t)),t,n,5)}function Kpe(e,t){return Zpe({pos:0,end:e.text.length},e,t,0)}function Wpe(e,t,n,r){return Zpe({pos:RH(e,n),end:t},n,r,1)}function Hpe(e,t,n){const r=g$(e,n);return r&&r.kind===t&&e===r.getEnd()?r:void 0}function $pe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!Gpe(t.parent,t);)t=t.parent;return t}function Gpe(e,t){switch(e.kind){case 260:case 261:return BH(e.members,t);case 264:const n=e.body;return!!n&&265===n.kind&&BH(n.statements,t);case 308:case 238:case 265:return BH(e.statements,t);case 295:return BH(e.block.statements,t)}return!1}function Xpe(e,t,n,r,i,o){const a={pos:e.pos,end:e.end};return lde(t.text,n,a.pos,a.end,(n=>efe(a,e,r,i,n,o,1,(e=>!1),t)))}function Ype(e,t,n,r){return e?Zpe({pos:RH(e.getStart(t),t),end:e.end},t,n,r):[]}function Zpe(e,t,n,r){const i=function(e,t){return function n(r){const i=bI(r,(n=>UH(n.getStart(t),n.end,e)&&n));if(i){const e=n(i);if(e)return e}return r}(t)}(e,t);return lde(t.text,t.languageVariant,function(e,t,n){const r=e.getStart(n);if(r===t.pos&&e.end===t.end)return r;const i=g$(t.pos,n);return i?i.end>=t.pos?e.pos:i.end:e.pos}(i,e,t),e.end,(o=>efe(e,i,rfe.getIndentationForNode(i,e,t,n.options),function(e,t,n){let r,i=-1;for(;e;){const o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==i&&o!==i)break;if(rfe.shouldIndentChildNode(t,e,r,n))return t.indentSize;i=o,r=e,e=e.parent}return 0}(i,n.options,t),o,n,r,function(e,t){if(!e.length)return i;const n=e.filter((e=>VH(t,e.start,e.start+e.length))).sort(((e,t)=>e.start-t.start));if(!n.length)return i;let r=0;return e=>{for(;;){if(r>=n.length)return!1;const t=n[r];if(e.end<=t.start)return!1;if(KH(e.pos,e.end,t.start,t.start+t.length))return!0;r++}};function i(){return!1}}(t.parseDiagnostics,e),t)))}function efe(e,t,n,r,i,{options:o,getRules:a,host:s},c,_,l){var u;const d=new ode(l,c,o);let p,f,m,g,h,y=-1;const v=[];if(i.advance(),i.isOnToken()){const a=l.getLineAndCharacterOfPosition(t.getStart(l)).line;let s=a;gb(t)&&(s=l.getLineAndCharacterOfPosition(Gp(t,l)).line),function t(n,r,a,s,c,u){if(!VH(e,n.getStart(l),n.getEnd()))return;const d=b(n,a,c,u);let m=r;for(bI(n,(e=>{g(e,-1,n,d,a,s,!1)}),(t=>{!function(t,r,a,s){In.assert(Z_(t)),In.assert(!Qy(t));const c=function(e,t){switch(e.kind){case 173:case 259:case 215:case 171:case 170:case 216:case 176:case 177:case 181:case 182:case 174:case 175:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 210:case 211:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 260:case 228:case 261:case 262:if(e.typeParameters===t)return 29;break;case 180:case 212:case 183:case 230:case 202:if(e.typeArguments===t)return 29;break;case 184:return 18}return 0}(r,t);let _=s,u=a;if(!VH(e,t.pos,t.end))return void(t.endt.pos)break;if(e.token.kind===c){let t;if(u=l.getLineAndCharacterOfPosition(e.token.pos).line,v(e,r,s,r),-1!==y)t=y;else{const n=RH(e.token.pos,l);t=rfe.findFirstNonWhitespaceColumn(n,e.token.pos,l,o)}_=b(r,a,t,o.indentSize)}else v(e,r,s,r)}let d=-1;for(let e=0;eMath.min(n.end,e.end))break;v(t,n,d,n)}function g(r,a,s,c,_,u,d,p){if(In.assert(!Qy(r)),Lp(r)||Rp(s,r))return a;const f=r.getStart(l),g=l.getLineAndCharacterOfPosition(f).line;let b=g;gb(r)&&(b=l.getLineAndCharacterOfPosition(Gp(r,l)).line);let x=-1;if(d&&BH(e,s)&&(x=function(e,t,n,r,i){if(VH(r,e,t)||qH(r,e,t)){if(-1!==i)return i}else{const t=l.getLineAndCharacterOfPosition(e).line,r=RH(e,l),i=rfe.findFirstNonWhitespaceColumn(r,e,l,o);if(t!==n||e===i){const e=rfe.getBaseIndentation(o);return e>i?e:i}}return-1}(f,r.end,_,e,a),-1!==x&&(a=x)),!VH(e,r.pos,r.end))return r.ende.end)return a;if(t.token.end>f){t.token.pos>f&&i.skipToStartOf(r);break}v(t,n,c,n)}if(!i.isOnToken()||i.getStartPos()>=e.end)return a;if(Y_(r)){const e=i.readTokenInfo(r);if(11!==r.kind)return In.assert(e.token.end===r.end,"Token end is child end"),v(e,n,c,r),a}const k=167===r.kind?g:u,S=function(e,t,n,r,i,a){const s=rfe.shouldIndentChildNode(o,e)?o.indentSize:0;return a===t?{indentation:t===h?y:i.getIndentation(),delta:Math.min(o.indentSize,i.getDelta(e)+s)}:-1===n?20===e.kind&&t===h?{indentation:y,delta:i.getDelta(e)}:rfe.childStartsOnTheSameLineWithElseInIfStatement(r,e,t,l)||rfe.childIsUnindentedBranchOfConditionalExpression(r,e,t,l)||rfe.argumentStartsOnSameLineAsPreviousArgument(r,e,t,l)?{indentation:i.getIndentation(),delta:s}:{indentation:i.getIndentation()+i.getDelta(e),delta:s}:{indentation:n,delta:s}}(r,g,x,n,c,k);return t(r,m,g,b,S.indentation,S.delta),m=n,p&&206===s.kind&&-1===a&&(a=S.indentation),a}function v(t,n,r,o,a){In.assert(BH(n,t.token));const s=i.lastTrailingTriviaWasNewLine();let c=!1;t.leadingTrivia&&k(t.leadingTrivia,n,m,r);let u=0;const d=BH(e,t.token),g=l.getLineAndCharacterOfPosition(t.token.pos);if(d){const e=_(t.token),i=f;if(u=S(t.token,g,n,m,r),!e)if(0===u){const e=i&&l.getLineAndCharacterOfPosition(i.end).line;c=s&&g.line!==e}else c=1===u}if(t.trailingTrivia&&(p=je(t.trailingTrivia).end,k(t.trailingTrivia,n,m,r)),c){const e=d&&!_(t.token)?r.getIndentationForToken(g.line,t.token.kind,o,!!a):-1;let n=!0;if(t.leadingTrivia){const i=r.getIndentationForComment(t.token.kind,e,o);n=x(t.leadingTrivia,i,n,(e=>A(e.pos,i,!1)))}-1!==e&&n&&(A(t.token.pos,e,1===u),h=g.line,y=e)}i.advance(),m=n}}(t,t,a,s,n,r)}if(!i.isOnToken()){const r=rfe.nodeWillIndentChild(o,t,void 0,l,!1)?n+o.indentSize:n,a=i.getCurrentLeadingTrivia();a&&(x(a,r,!1,(e=>S(e,l.getLineAndCharacterOfPosition(e.pos),t,t,void 0))),!1!==o.trimTrailingWhitespace&&function(t){let n=f?f.end:e.pos;for(const e of t)M$(e.kind)&&(n=e.end){const e=i.isOnEOF()?i.readEOFTokenRange():i.isOnToken()?i.readTokenInfo(t).token:void 0;if(e&&e.pos===p){const n=(null==(u=g$(e.end,l,t))?void 0:u.parent)||m;T(e,l.getLineAndCharacterOfPosition(e.pos).line,n,f,g,m,n,void 0)}}return v;function b(e,t,n,r){return{getIndentationForComment:(e,t,r)=>{switch(e){case 19:case 23:case 21:return n+i(r)}return-1!==t?t:n},getIndentationForToken:(r,o,a,s)=>!s&&function(n,r,i){switch(r){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(i.kind){case 283:case 284:case 282:return!1}break;case 22:case 23:if(197!==i.kind)return!1}return t!==n&&!(gb(e)&&r===function(e){if(LP(e)){const t=P(e.modifiers,vl,O(e.modifiers,qw));if(t)return t.kind}switch(e.kind){case 260:return 84;case 261:return 118;case 259:return 98;case 263:return 263;case 174:return 137;case 175:return 151;case 171:if(e.asteriskToken)return 41;case 169:case 166:const t=qc(e);if(t)return t.kind}}(e))}(r,o,a)?n+i(a):n,getIndentation:()=>n,getDelta:i,recomputeIndentation:(t,i)=>{rfe.shouldIndentChildNode(o,i,e,l)&&(n+=t?o.indentSize:-o.indentSize,r=rfe.shouldIndentChildNode(o,e)?o.indentSize:0)}};function i(t){return rfe.nodeWillIndentChild(o,e,t,l,!0)?r:0}}function x(t,n,r,i){for(const o of t){const t=BH(e,o);switch(o.kind){case 3:t&&w(o,n,!r),r=!1;break;case 2:r&&t&&i(o),r=!1;break;case 4:r=!0}}return r}function k(t,n,r,i){for(const o of t)M$(o.kind)&&BH(e,o)&&S(o,l.getLineAndCharacterOfPosition(o.pos),n,r,i)}function S(t,n,r,i,o){let a=0;return _(t)||(f?a=T(t,n.line,r,f,g,m,i,o):D(l.getLineAndCharacterOfPosition(e.pos).line,n.line)),f=t,p=t.end,m=r,g=n.line,a}function T(e,t,n,r,i,c,_,u){d.updateContext(r,c,e,n,_);const p=a(d);let f=!1!==d.options.trimTrailingWhitespace,m=0;return p?C(p,(a=>{if(m=function(e,t,n,r,i){const a=i!==n;switch(e.action){case 1:return 0;case 16:if(t.end!==r.pos)return F(t.end,r.pos-t.end),a?2:0;break;case 32:F(t.pos,t.end-t.pos);break;case 8:if(1!==e.flags&&n!==i)return 0;if(1!=i-n)return I(t.end,r.pos-t.end,nX(s,o)),a?0:1;break;case 4:if(1!==e.flags&&n!==i)return 0;if(1!=r.pos-t.end||32!==l.text.charCodeAt(t.end))return I(t.end,r.pos-t.end," "),a?2:0;break;case 64:c=t.end,";"&&v.push(Z$(c,0,";"))}var c;return 0}(a,r,i,e,t),u)switch(m){case 2:n.getStart(l)===e.pos&&u.recomputeIndentation(!1,_);break;case 1:n.getStart(l)===e.pos&&u.recomputeIndentation(!0,_);break;default:In.assert(0===m)}f=f&&!(16&a.action)&&1!==a.flags})):f=f&&1!==e.kind,t!==i&&f&&D(i,t,r),m}function A(e,t,n){const r=nfe(t,o);if(n)I(e,0,r);else{const n=l.getLineAndCharacterOfPosition(e),i=Fp(n.line,l);(t!==function(e,t){let n=0;for(let r=0;r0){const e=nfe(r,o);I(t,n.character,e)}else F(t,n.character)}}function D(e,t,n){for(let r=e;rt)continue;const i=E(e,t);-1!==i&&(In.assert(i===e||!bs(l.text.charCodeAt(i-1))),F(i,t+1-i))}}function E(e,t){let n=t;for(;n>=e&&bs(l.text.charCodeAt(n));)n--;return n!==t?n+1:-1}function N(e,t,n){D(l.getLineAndCharacterOfPosition(e).line,l.getLineAndCharacterOfPosition(t).line+1,n)}function F(e,t){t&&v.push(Z$(e,t,""))}function I(e,t,n){(t||n)&&v.push(Z$(e,t,n))}}function tfe(e,t,n,r=u$(e,t)){const i=Ec(r,zN);if(i&&(r=i.parent),r.getStart(e)<=t&&tzH(n,t)||t===n.end&&(2===n.kind||t===e.getFullWidth())))}function nfe(e,t){if((!Rpe||Rpe.tabSize!==t.tabSize||Rpe.indentSize!==t.indentSize)&&(Rpe={tabSize:t.tabSize,indentSize:t.indentSize},Bpe=jpe=void 0),t.convertTabsToSpaces){let n;const r=Math.floor(e/t.indentSize),i=e%t.indentSize;return jpe||(jpe=[]),void 0===jpe[r]?(n=sG(" ",t.indentSize*r),jpe[r]=n):n=jpe[r],i?n+sG(" ",i):n}{const n=Math.floor(e/t.tabSize),r=e-n*t.tabSize;let i;return Bpe||(Bpe=[]),void 0===Bpe[n]?Bpe[n]=i=sG("\t",n):i=Bpe[n],r?i+sG(" ",r):i}}var rfe,ife=b({"src/services/formatting/formatting.ts"(){lfe(),_fe()}}),ofe=b({"src/services/formatting/smartIndenter.ts"(){lfe(),_fe(),(e=>{let t;var n;function r(e){return e.baseIndentSize||0}function i(e,t,n,i,s,c,_){var f;let m=e.parent;for(;m;){let r=!0;if(n){const t=e.getStart(s);r=tn.end}const h=o(m,e,s),y=h.line===t.line||d(m,e,t.line,s);if(r){const n=null==(f=p(e,s))?void 0:f[0];let r=g(e,s,_,!!n&&l(n,s).line>h.line);if(-1!==r)return r+i;if(r=a(e,m,t,y,s,_),-1!==r)return r+i}k(_,m,e,s,c)&&!y&&(i+=_.indentSize);const v=u(m,e,t.line,s);m=(e=m).parent,t=v?s.getLineAndCharacterOfPosition(e.getStart(s)):h}return i+r(_)}function o(e,t,n){const r=p(t,n),i=r?r.pos:e.getStart(n);return n.getLineAndCharacterOfPosition(i)}function a(e,t,n,r,i,o){return!Nu(e)&&!Pu(e)||308!==t.kind&&r?-1:y(n,i,o)}let s;var c;function _(e,t,n,r){const i=m$(e,t,r);return i?18===i.kind?1:19===i.kind&&n===l(i,r).line?2:0:0}function l(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function u(e,t,n,r){return!(!PD(e)||!R(e.arguments,t))&&ys(r,e.expression.getEnd()).line===n}function d(e,t,n,r){if(242===e.kind&&e.elseStatement===t){const t=YH(e,91,r);return In.assert(void 0!==t),l(t,r).line===n}return!1}function p(e,t){return e.parent&&f(e.getStart(t),e.getEnd(),e.parent,t)}function f(e,t,n,r){switch(n.kind){case 180:return i(n.typeArguments);case 207:return i(n.properties);case 206:case 272:case 276:case 203:case 204:return i(n.elements);case 184:return i(n.members);case 259:case 215:case 216:case 171:case 170:case 176:case 173:case 182:case 177:return i(n.typeParameters)||i(n.parameters);case 174:return i(n.parameters);case 260:case 228:case 261:case 262:case 348:return i(n.typeParameters);case 211:case 210:return i(n.typeArguments)||i(n.arguments);case 258:return i(n.declarations)}function i(i){return i&&qH(function(e,t,n){const r=e.getChildren(n);for(let e=1;e=0&&t=0;o--)if(27!==e[o].kind){if(n.getLineAndCharacterOfPosition(e[o].end).line!==i.line)return y(i,n,r);i=l(e[o],n)}return-1}function y(e,t,n){const r=t.getPositionOfLineAndCharacter(e.line,0);return b(r,r+e.character,t,n)}function v(e,t,n,r){let i=0,o=0;for(let a=e;at.text.length)return r(n);if(0===n.indentStyle)return 0;const a=g$(e,t,void 0,!0),s=tfe(t,e,a||null);if(s&&3===s.kind)return function(e,t,n,r){const i=ys(e,t).line-1,o=ys(e,r.pos).line;if(In.assert(o>=0),i<=o)return b(Fp(o,e),t,e,n);const a=Fp(i,e),{column:s,character:c}=v(a,t,e,n);return 0===s?s:42===e.text.charCodeAt(a+c)?s-1:s}(t,e,n,s);if(!a)return r(n);if(R$(a.kind)&&a.getStart(t)<=e&&e0&&vs(e.text.charCodeAt(r));)r--;return b(RH(r,e),r,e,n)}(t,e,n);if(27===a.kind&&223!==a.parent.kind){const e=function(e,t,n){const r=GH(e);return r&&r.listItemIndex>0?h(r.list.getChildren(),r.listItemIndex-1,t,n):-1}(a,t,n);if(-1!==e)return e}const p=function(e,t,n){return t&&f(e,e,t,n)}(e,a.parent,t);if(p&&!BH(p,a)){const e=-1!==[215,216].indexOf(u.parent.kind)?0:n.indentSize;return m(p,t,n)+e}return function(e,t,n,o,a,s){let c,u=n;for(;u;){if(WH(u,t,e)&&k(s,u,c,e,!0)){const t=l(u,e),r=_(n,u,o,e);return i(u,t,void 0,0!==r?a&&2===r?s.indentSize:0:o!==t.line?s.indentSize:0,e,!0,s)}const r=g(u,e,s,!0);if(-1!==r)return r;c=u,u=u.parent}return r(s)}(t,e,a,c,o,n)},e.getIndentationForNode=function(e,t,n,r){const o=n.getLineAndCharacterOfPosition(e.getStart(n));return i(e,o,t,0,n,!1,r)},e.getBaseIndentation=r,(c=s||(s={}))[c.Unknown=0]="Unknown",c[c.OpenBrace=1]="OpenBrace",c[c.CloseBrace=2]="CloseBrace",e.isArgumentAndStartLineOverlapsExpressionBeingCalled=u,e.childStartsOnTheSameLineWithElseInIfStatement=d,e.childIsUnindentedBranchOfConditionalExpression=function(e,t,n,r){if(KD(e)&&(t===e.whenTrue||t===e.whenFalse)){const i=ys(r,e.condition.end).line;if(t===e.whenTrue)return n===i;{const t=l(e.whenTrue,r).line,o=ys(r,e.whenTrue.end).line;return i===t&&o===n}}return!1},e.argumentStartsOnSameLineAsPreviousArgument=function(e,t,n,r){if(tu(e)){if(!e.arguments)return!1;const i=P(e.arguments,(e=>e.pos===t.pos));if(!i)return!1;const o=e.arguments.indexOf(i);if(0===o)return!1;if(n===ys(r,e.arguments[o-1].getEnd()).line)return!0}return!1},e.getContainingList=p,e.findFirstNonWhitespaceCharacterAndColumn=v,e.findFirstNonWhitespaceColumn=b,e.nodeWillIndentChild=x,e.shouldIndentChildNode=k})(rfe||(rfe={}))}}),afe={};x(afe,{FormattingContext:()=>ode,FormattingRequestKind:()=>ide,RuleAction:()=>dde,RuleFlags:()=>pde,SmartIndenter:()=>rfe,anyContext:()=>ude,createTextRangeWithKind:()=>zpe,formatDocument:()=>Kpe,formatNodeGivenIndentation:()=>Xpe,formatOnClosingCurly:()=>Qpe,formatOnEnter:()=>Upe,formatOnOpeningCurly:()=>Vpe,formatOnSemicolon:()=>qpe,formatSelection:()=>Wpe,getAllRules:()=>gde,getFormatContext:()=>Ipe,getFormattingScanner:()=>lde,getIndentationString:()=>nfe,getRangeOfEnclosingComment:()=>tfe});var sfe,cfe,_fe=b({"src/services/_namespaces/ts.formatting.ts"(){_de(),fde(),mde(),Ppe(),Jpe(),ife(),ofe()}}),lfe=b({"src/services/_namespaces/ts.ts"(){XK(),HW(),oH(),IY(),qY(),iZ(),oZ(),uZ(),xZ(),KZ(),$Z(),e0(),f0(),y0(),u2(),k2(),D2(),P2(),t6(),p6(),Une(),Pie(),boe(),Boe(),Woe(),lae(),J0(),Q1(),jae(),Gae(),Sle(),Ole(),iue(),hue(),Iue(),cde(),_fe()}});function ufe(e,t,n,r,i){let o=t?"DeprecationError: ":"DeprecationWarning: ";return o+=`'${e}' `,o+=r?"has been deprecated since v"+r:"is deprecated",o+=t?" and can no longer be used.":n?` and will no longer be usable after v${n}.`:".",o+=i?" "+fk(i,[e],0):"",o}function dfe(e,n){var r;return function(e,t){return function(){return e(),t.apply(this,arguments)}}(function(e,n={}){var r,i;const o="string"==typeof n.typeScriptVersion?new zn(n.typeScriptVersion):null!=(r=n.typeScriptVersion)?r:null!=cfe?cfe:cfe=new zn(t),a="string"==typeof n.errorAfter?new zn(n.errorAfter):n.errorAfter,s="string"==typeof n.warnAfter?new zn(n.warnAfter):n.warnAfter,c="string"==typeof n.since?new zn(n.since):null!=(i=n.since)?i:s,_=n.error||a&&o.compareTo(a)>=0,l=!s||o.compareTo(s)>=0;return _?function(e,t,n,r){const i=ufe(e,!0,t,n,r);return()=>{throw new TypeError(i)}}(e,a,c,n.message):l?function(e,t,n,r){let i=!1;return()=>{sfe&&!i&&(In.log.warn(ufe(e,!1,t,n,r)),i=!0)}}(e,a,c,n.message):St}(null!=(r=null==n?void 0:n.name)?r:In.getFunctionName(e),n),e)}var pfe=b({"src/deprecatedCompat/deprecate.ts"(){yfe(),sfe=!0}});function ffe(e,t,n,r){if(Object.defineProperty(o,"name",{...Object.getOwnPropertyDescriptor(o,"name"),value:e}),r)for(const n of Object.keys(r)){const i=+n;!isNaN(i)&&We(t,""+i)&&(t[i]=dfe(t[i],{...r[i],name:e}))}const i=function(e,t){return n=>{for(let r=0;We(e,""+r)&&We(t,""+r);r++)if((0,t[r])(n))return r}}(t,n);return o;function o(...e){const n=i(e),r=void 0!==n?t[n]:void 0;if("function"==typeof r)return r(...e);throw new TypeError("Invalid arguments")}}function mfe(e){return{overload:t=>({bind:n=>({finish:()=>ffe(e,t,n),deprecate:r=>({finish:()=>ffe(e,t,n,r)})})})}}var gfe=b({"src/deprecatedCompat/deprecations.ts"(){yfe(),pfe()}}),hfe=b({"src/deprecatedCompat/5.0/identifierProperties.ts"(){yfe(),pfe(),dk((e=>{const t=e.getIdentifierConstructor();We(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:dfe((function(){return Lc(this)}),{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),We(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:dfe((function(){return!!(2048&this.flags)||void 0}),{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})}))}}),yfe=b({"src/deprecatedCompat/_namespaces/ts.ts"(){XK(),gfe(),hfe()}}),vfe={};x(vfe,{ANONYMOUS:()=>rH,AccessFlags:()=>Ai,AssertionLevel:()=>u,AssignmentDeclarationKind:()=>Li,AssignmentKind:()=>fd,Associativity:()=>gd,BreakpointResolver:()=>F2,BuilderFileEmit:()=>Qq,BuilderProgramKind:()=>Kq,BuilderState:()=>zq,BundleFileSectionKind:()=>ao,CallHierarchy:()=>G2,CharacterCodes:()=>Gi,CheckFlags:()=>vi,CheckMode:()=>OB,ClassificationType:()=>KW,ClassificationTypeNames:()=>QW,CommentDirectiveType:()=>ei,Comparison:()=>n,CompletionInfoFlags:()=>BW,CompletionTriggerKind:()=>FW,Completions:()=>Eie,ConfigFileProgramReloadLevel:()=>xU,ContextFlags:()=>_i,CoreServicesShimHostAdapter:()=>g2,Debug:()=>In,DiagnosticCategory:()=>Mi,Diagnostics:()=>ja,DocumentHighlights:()=>rZ,ElementFlags:()=>Ci,EmitFlags:()=>eo,EmitHint:()=>ro,EmitOnly:()=>ii,EndOfLineState:()=>zW,EnumKind:()=>yi,ExitStatus:()=>ai,ExportKind:()=>PY,Extension:()=>Xi,ExternalEmitHelpers:()=>no,FileIncludeKind:()=>ni,FilePreprocessingDiagnosticsKind:()=>ri,FileSystemEntryKind:()=>ko,FileWatcherEventKind:()=>fo,FindAllReferences:()=>voe,FlattenLevel:()=>lJ,FlowFlags:()=>Zr,ForegroundColorEscapeSequences:()=>MU,FunctionFlags:()=>md,GeneratedIdentifierFlags:()=>Xr,GetLiteralTextFlags:()=>_d,GoToDefinition:()=>Loe,HighlightSpanKind:()=>IW,ImportKind:()=>FY,ImportsNotUsedAsValues:()=>Vi,IndentStyle:()=>OW,IndexKind:()=>Ni,InferenceFlags:()=>Ii,InferencePriority:()=>Pi,InlayHintKind:()=>PW,InlayHints:()=>Uoe,InternalEmitFlags:()=>to,InternalSymbolName:()=>bi,InvalidatedProjectKind:()=>DQ,JsDoc:()=>cae,JsTyping:()=>cW,JsxEmit:()=>qi,JsxFlags:()=>$r,JsxReferenceKind:()=>wi,LanguageServiceMode:()=>wW,LanguageServiceShimHostAdapter:()=>m2,LanguageVariant:()=>Hi,LexicalEnvironmentFlags:()=>oo,ListFormat:()=>so,LogLevel:()=>Pn,MemberOverrideStatus:()=>si,ModifierFlags:()=>Hr,ModuleDetectionKind:()=>Bi,ModuleInstanceState:()=>LR,ModuleKind:()=>Ui,ModuleResolutionKind:()=>Ri,ModuleSpecifierEnding:()=>Yd,NavigateTo:()=>E0,NavigationBar:()=>w1,NewLineKind:()=>Qi,NodeBuilderFlags:()=>li,NodeCheckFlags:()=>xi,NodeFactoryFlags:()=>sC,NodeFlags:()=>Wr,NodeResolutionFeatures:()=>tM,ObjectFlags:()=>Si,OperationCanceledException:()=>ti,OperatorPrecedence:()=>hd,OrganizeImports:()=>Rae,OrganizeImportsMode:()=>NW,OuterExpressionKinds:()=>io,OutliningElementsCollector:()=>Hae,OutliningSpanKind:()=>jW,OutputFileType:()=>JW,PackageJsonAutoImportPreference:()=>AW,PackageJsonDependencyGroup:()=>CW,PatternMatchKind:()=>bZ,PollingInterval:()=>mo,PollingWatchKind:()=>zi,PragmaKindFlags:()=>co,PrivateIdentifierKind:()=>bA,ProcessLevel:()=>xJ,QuotePreference:()=>eH,RelationComparisonResult:()=>Gr,Rename:()=>Fle,ScriptElementKind:()=>qW,ScriptElementKindModifier:()=>VW,ScriptKind:()=>Ki,ScriptSnapshot:()=>TW,ScriptTarget:()=>Wi,SemanticClassificationFormat:()=>EW,SemanticMeaning:()=>XW,SemicolonPreference:()=>LW,SignatureCheckMode:()=>LB,SignatureFlags:()=>Ei,SignatureHelp:()=>nue,SignatureKind:()=>Di,SmartSelectionRange:()=>mue,SnippetKind:()=>Zi,SortKind:()=>a,StructureIsReused:()=>oi,SymbolAccessibility:()=>pi,SymbolDisplay:()=>Cue,SymbolDisplayPartKind:()=>RW,SymbolFlags:()=>hi,SymbolFormatFlags:()=>di,SyntaxKind:()=>Kr,SyntheticSymbolKind:()=>fi,Ternary:()=>Oi,ThrottledCancellationToken:()=>U1,TokenClass:()=>UW,TokenFlags:()=>Yr,TransformFlags:()=>Yi,TypeFacts:()=>PB,TypeFlags:()=>ki,TypeFormatFlags:()=>ui,TypeMapKind:()=>Fi,TypePredicateKind:()=>mi,TypeReferenceSerializationKind:()=>gi,TypeScriptServicesFactory:()=>x2,UnionReduction:()=>ci,UpToDateStatusType:()=>SQ,VarianceFlags:()=>Ti,Version:()=>zn,VersionRange:()=>Un,WatchDirectoryFlags:()=>$i,WatchDirectoryKind:()=>Ji,WatchFileKind:()=>ji,WatchLogLevel:()=>kU,WatchType:()=>BV,accessPrivateIdentifier:()=>_J,addEmitFlags:()=>BC,addEmitHelper:()=>iA,addEmitHelpers:()=>oA,addInternalEmitFlags:()=>JC,addNodeFactoryPatcher:()=>mC,addObjectAllocatorPatcher:()=>dk,addRange:()=>Ae,addRelatedInfo:()=>rT,addSyntheticLeadingComment:()=>XC,addSyntheticTrailingComment:()=>eA,addToSeen:()=>$x,advancedAsyncSuperHelper:()=>XA,affectsDeclarationPathOptionDeclarations:()=>YI,affectsEmitOptionDeclarations:()=>XI,allKeysStartWithDot:()=>fR,altDirectorySeparator:()=>Uo,and:()=>yn,append:()=>Se,appendIfUnique:()=>De,arrayFrom:()=>Ze,arrayIsEqualTo:()=>be,arrayIsHomogeneous:()=>gT,arrayIsSorted:()=>ye,arrayOf:()=>Ye,arrayReverseIterator:()=>Fe,arrayToMap:()=>nt,arrayToMultiMap:()=>it,arrayToNumericMap:()=>rt,arraysEqual:()=>B,assertType:()=>xn,assign:()=>et,assignHelper:()=>AA,asyncDelegator:()=>EA,asyncGeneratorHelper:()=>DA,asyncSuperHelper:()=>GA,asyncValues:()=>NA,attachFileToDiagnostics:()=>xk,awaitHelper:()=>wA,awaiterHelper:()=>PA,base64decode:()=>nx,base64encode:()=>tx,binarySearch:()=>Ve,binarySearchKey:()=>Qe,bindSourceFile:()=>UR,breakIntoCharacterSpans:()=>RZ,breakIntoWordSpans:()=>BZ,buildLinkParts:()=>tX,buildOpts:()=>iO,buildOverload:()=>mfe,bundlerModuleNameResolver:()=>UM,canBeConvertedToAsync:()=>u0,canHaveDecorators:()=>MP,canHaveExportModifier:()=>UT,canHaveFlowNode:()=>Ch,canHaveIllegalDecorators:()=>_P,canHaveIllegalModifiers:()=>lP,canHaveIllegalType:()=>sP,canHaveIllegalTypeParameters:()=>cP,canHaveJSDoc:()=>Ah,canHaveLocals:()=>wu,canHaveModifiers:()=>LP,canHaveSymbol:()=>Au,canJsonReportNoInputFiles:()=>kL,canProduceDiagnostics:()=>yz,canUsePropertyAccess:()=>VT,canWatchDirectoryOrFile:()=>FV,cartesianProduct:()=>Tn,cast:()=>kt,chainBundle:()=>Rj,chainDiagnosticMessages:()=>Ak,changeAnyExtension:()=>Ca,changeCompilerHostLikeToUseCache:()=>rq,changeExtension:()=>QS,changesAffectModuleResolution:()=>ap,changesAffectingProgramStructure:()=>cp,childIsDecorated:()=>cg,classElementOrClassElementParameterIsDecorated:()=>lg,classOrConstructorParameterIsDecorated:()=>_g,classPrivateFieldGetHelper:()=>KA,classPrivateFieldInHelper:()=>HA,classPrivateFieldSetHelper:()=>WA,classicNameResolver:()=>NR,classifier:()=>l6,cleanExtendedConfigCache:()=>wU,clear:()=>q,clearMap:()=>jx,clearSharedExtendedConfigFileWatcher:()=>AU,climbPastPropertyAccess:()=>vH,climbPastPropertyOrElementAccess:()=>bH,clone:()=>st,cloneCompilerOptions:()=>U$,closeFileWatcher:()=>Nx,closeFileWatcherOf:()=>LU,codefix:()=>Ine,collapseTextChangeRangesAcrossMultipleVersions:()=>hc,collectExternalModuleInfo:()=>zj,combine:()=>Te,combinePaths:()=>ma,commentPragmas:()=>_o,commonOptionsWithBuild:()=>QI,commonPackageFolders:()=>Md,compact:()=>xe,compareBooleans:()=>Xt,compareDataObjects:()=>Bx,compareDiagnostics:()=>Ek,compareDiagnosticsSkipRelatedInformation:()=>Nk,compareEmitHelpers:()=>ew,compareNumberOfDirectorySeparators:()=>zS,comparePaths:()=>Ea,comparePathsCaseInsensitive:()=>Da,comparePathsCaseSensitive:()=>wa,comparePatternKeys:()=>gR,compareProperties:()=>Gt,compareStringsCaseInsensitive:()=>qt,compareStringsCaseInsensitiveEslintCompatible:()=>Vt,compareStringsCaseSensitive:()=>Qt,compareStringsCaseSensitiveUI:()=>$t,compareTextSpans:()=>zt,compareValues:()=>Jt,compileOnSaveCommandLineOption:()=>BI,compilerOptionsAffectDeclarationPath:()=>_S,compilerOptionsAffectEmit:()=>cS,compilerOptionsAffectSemanticDiagnostics:()=>sS,compilerOptionsDidYouMeanDiagnostics:()=>_O,compilerOptionsIndicateEsModules:()=>dG,compose:()=>Lt,computeCommonSourceDirectoryOfFilenames:()=>YU,computeLineAndCharacterOfPosition:()=>ms,computeLineOfPosition:()=>gs,computeLineStarts:()=>us,computePositionOfLineAndCharacter:()=>ps,computeSignature:()=>gV,computeSignatureWithDiagnostics:()=>mV,computeSuggestionDiagnostics:()=>t0,concatenate:()=>ue,concatenateDiagnosticMessageChains:()=>wk,consumesNodeCoreModules:()=>oY,contains:()=>R,containsIgnoredPath:()=>DT,containsObjectRestOrSpread:()=>PP,containsParseError:()=>Ap,containsPath:()=>Na,convertCompilerOptionsForTelemetry:()=>GL,convertCompilerOptionsFromJson:()=>AL,convertJsonOption:()=>IL,convertToBase64:()=>ex,convertToObject:()=>YO,convertToObjectWorker:()=>ZO,convertToOptionsWithAbsolutePaths:()=>dL,convertToRelativePath:()=>Oa,convertToTSConfig:()=>nL,convertTypeAcquisitionFromJson:()=>wL,copyComments:()=>TX,copyEntries:()=>pp,copyLeadingComments:()=>EX,copyProperties:()=>_t,copyTrailingAsLeadingComments:()=>FX,copyTrailingComments:()=>NX,couldStartTrivia:()=>Cs,countWhere:()=>J,createAbstractBuilder:()=>DV,createAccessorPropertyBackingField:()=>AP,createAccessorPropertyGetRedirector:()=>wP,createAccessorPropertySetRedirector:()=>DP,createBaseNodeFactory:()=>ZT,createBinaryExpressionTrampoline:()=>yP,createBindingHelper:()=>zA,createBuildInfo:()=>pU,createBuilderProgram:()=>hV,createBuilderProgramUsingProgramBuildInfo:()=>kV,createBuilderStatusReporter:()=>OQ,createCacheWithRedirects:()=>DM,createCacheableExportInfoMap:()=>OY,createCachedDirectoryStructureHost:()=>TU,createClassifier:()=>VY,createCommentDirectivesMap:()=>Hp,createCompilerDiagnostic:()=>Tk,createCompilerDiagnosticForInvalidCustomType:()=>wO,createCompilerDiagnosticFromMessageChain:()=>Ck,createCompilerHost:()=>ZU,createCompilerHostFromProgramHost:()=>cQ,createCompilerHostWorker:()=>nq,createDetachedDiagnostic:()=>yk,createDiagnosticCollection:()=>ev,createDiagnosticForFileFromMessageChain:()=>Hf,createDiagnosticForNode:()=>zf,createDiagnosticForNodeArray:()=>Uf,createDiagnosticForNodeArrayFromMessageChain:()=>Qf,createDiagnosticForNodeFromMessageChain:()=>Vf,createDiagnosticForNodeInSourceFile:()=>qf,createDiagnosticForRange:()=>Gf,createDiagnosticMessageChainFromDiagnostic:()=>$f,createDiagnosticReporter:()=>JV,createDocumentPositionMapper:()=>Ij,createDocumentRegistry:()=>sZ,createDocumentRegistryInternal:()=>cZ,createEmitAndSemanticDiagnosticsBuilderProgram:()=>wV,createEmitHelperFactory:()=>ZA,createEmptyExports:()=>yF,createExpressionForJsxElement:()=>SF,createExpressionForJsxFragment:()=>TF,createExpressionForObjectLiteralElementLike:()=>EF,createExpressionForPropertyName:()=>DF,createExpressionFromEntityName:()=>wF,createExternalHelpersImportDeclarationIfNeeded:()=>HF,createFileDiagnostic:()=>kk,createFileDiagnosticFromMessageChain:()=>Wf,createForOfBindingStatement:()=>CF,createGetCanonicalFileName:()=>ln,createGetSourceFile:()=>eq,createGetSymbolAccessibilityDiagnosticForNode:()=>bz,createGetSymbolAccessibilityDiagnosticForNodeName:()=>vz,createGetSymbolWalker:()=>$R,createIncrementalCompilerHost:()=>vQ,createIncrementalProgram:()=>bQ,createInputFiles:()=>DC,createInputFilesWithFilePaths:()=>EC,createInputFilesWithFileTexts:()=>NC,createJsxFactoryExpression:()=>kF,createLanguageService:()=>a2,createLanguageServiceSourceFile:()=>i2,createMemberAccessForPropertyName:()=>vF,createModeAwareCache:()=>FM,createModeAwareCacheKey:()=>NM,createModuleResolutionCache:()=>MM,createModuleResolutionLoader:()=>vq,createModuleSpecifierResolutionHost:()=>pG,createMultiMap:()=>ut,createNodeConverters:()=>oC,createNodeFactory:()=>gC,createOptionNameMap:()=>CO,createOverload:()=>ffe,createPackageJsonImportFilter:()=>iY,createPackageJsonInfo:()=>rY,createParenthesizerRules:()=>nC,createPatternMatcher:()=>SZ,createPrependNodes:()=>Mq,createPrinter:()=>hU,createPrinterWithDefaults:()=>qz,createPrinterWithRemoveComments:()=>Vz,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>Qz,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Kz,createProgram:()=>Pq,createProgramHost:()=>uQ,createPropertyNameNodeForIdentifierOrLiteral:()=>RT,createQueue:()=>mt,createRange:()=>sx,createRedirectedBuilderProgram:()=>TV,createResolutionCache:()=>PV,createRuntimeTypeSerializer:()=>PJ,createScanner:()=>qs,createSemanticDiagnosticsBuilderProgram:()=>AV,createSet:()=>gt,createSolutionBuilder:()=>BQ,createSolutionBuilderHost:()=>MQ,createSolutionBuilderWithWatch:()=>jQ,createSolutionBuilderWithWatchHost:()=>RQ,createSortedArray:()=>me,createSourceFile:()=>TI,createSourceMapGenerator:()=>yj,createSourceMapSource:()=>FC,createSuperAccessVariableStatement:()=>jJ,createSymbolTable:()=>ip,createSymlinkCache:()=>mS,createSystemWatchFunctions:()=>Bo,createTextChange:()=>eG,createTextChangeFromStartLength:()=>Z$,createTextChangeRange:()=>gc,createTextRangeFromNode:()=>G$,createTextRangeFromSpan:()=>Y$,createTextSpan:()=>dc,createTextSpanFromBounds:()=>pc,createTextSpanFromNode:()=>H$,createTextSpanFromRange:()=>X$,createTextSpanFromStringLiteralLikeContent:()=>$$,createTextWriter:()=>pv,createTokenRange:()=>px,createTypeChecker:()=>KB,createTypeReferenceDirectiveResolutionCache:()=>RM,createTypeReferenceResolutionLoader:()=>xq,createUnderscoreEscapedMultiMap:()=>ft,createUnparsedSourceFile:()=>wC,createWatchCompilerHost:()=>xQ,createWatchCompilerHostOfConfigFile:()=>fQ,createWatchCompilerHostOfFilesAndCompilerOptions:()=>mQ,createWatchFactory:()=>sQ,createWatchHost:()=>aQ,createWatchProgram:()=>kQ,createWatchStatusReporter:()=>qV,createWriteFileMeasuringIO:()=>tq,declarationNameToString:()=>Lf,decodeMappings:()=>Tj,decodedTextSpanIntersectsWith:()=>_c,decorateHelper:()=>xA,deduplicate:()=>fe,defaultIncludeSpec:()=>xO,defaultInitCompilerOptions:()=>cO,defaultMaximumTruncationLength:()=>ad,detectSortCaseSensitivity:()=>ve,diagnosticCategoryName:()=>po,diagnosticToString:()=>AY,directoryProbablyExists:()=>ox,directorySeparator:()=>zo,displayPart:()=>zG,displayPartsToString:()=>e2,disposeEmitNodes:()=>LC,documentSpansEqual:()=>IG,dumpTracingLegend:()=>Qr,elementAt:()=>s,elideNodes:()=>kP,emitComments:()=>eb,emitDetachedComments:()=>tb,emitFiles:()=>dU,emitFilesAndReportErrors:()=>iQ,emitFilesAndReportErrorsAndGetExitStatus:()=>oQ,emitModuleKindIsNonNodeESM:()=>jk,emitNewLineBeforeLeadingCommentOfPosition:()=>Zv,emitNewLineBeforeLeadingComments:()=>Xv,emitNewLineBeforeLeadingCommentsOfPosition:()=>Yv,emitSkippedWithNoDiagnostics:()=>HU,emitUsingBuildInfo:()=>gU,emptyArray:()=>r,emptyFileSystemEntries:()=>ep,emptyMap:()=>i,emptyOptions:()=>DW,emptySet:()=>o,endsWith:()=>en,ensurePathIsNonModuleName:()=>Ta,ensureScriptKind:()=>FS,ensureTrailingDirectorySeparator:()=>Sa,entityNameToString:()=>Jf,enumerateInsertsAndDeletes:()=>Sn,equalOwnProperties:()=>tt,equateStringsCaseInsensitive:()=>Rt,equateStringsCaseSensitive:()=>Bt,equateValues:()=>Mt,esDecorateHelper:()=>TA,escapeJsxAttributeString:()=>sv,escapeLeadingUnderscores:()=>Pc,escapeNonAsciiString:()=>ov,escapeSnippetText:()=>LT,escapeString:()=>iv,every:()=>F,expandPreOrPostfixIncrementOrDecrementExpression:()=>NF,explainFiles:()=>YV,explainIfFileIsRedirectAndImpliedFormat:()=>ZV,exportAssignmentIsAlias:()=>iy,exportStarHelper:()=>QA,expressionResultIsUnused:()=>wT,extend:()=>ct,extendsHelper:()=>IA,extensionFromPath:()=>XS,extensionIsTS:()=>$S,externalHelpersModuleNameText:()=>od,factory:()=>dC,fileExtensionIs:()=>ta,fileExtensionIsOneOf:()=>na,fileIncludeReasonToDiagnostics:()=>nQ,filter:()=>z,filterMutate:()=>U,filterSemanticDiagnostics:()=>Oq,find:()=>P,findAncestor:()=>Ec,findBestPatternMatch:()=>pn,findChildOfKind:()=>YH,findComputedPropertyNameCacheAssignment:()=>EP,findConfigFile:()=>GU,findContainingList:()=>ZH,findDiagnosticForNode:()=>cY,findFirstNonJsxWhitespaceToken:()=>p$,findIndex:()=>O,findLast:()=>I,findLastIndex:()=>L,findListItemInfo:()=>GH,findMap:()=>M,findModifier:()=>EG,findNextToken:()=>m$,findPackageJson:()=>tY,findPackageJsons:()=>eY,findPrecedingMatchingToken:()=>A$,findPrecedingToken:()=>g$,findSuperStatementIndex:()=>$j,findTokenOnLeftOfPosition:()=>f$,findUseStrictPrologue:()=>LF,first:()=>Me,firstDefined:()=>A,firstDefinedIterator:()=>w,firstIterator:()=>Re,firstOrOnly:()=>pY,firstOrUndefined:()=>Oe,firstOrUndefinedIterator:()=>Le,fixupCompilerOptions:()=>h0,flatMap:()=>H,flatMapIterator:()=>G,flatMapToMutable:()=>$,flatten:()=>W,flattenCommaList:()=>FP,flattenDestructuringAssignment:()=>dJ,flattenDestructuringBinding:()=>mJ,flattenDiagnosticMessageText:()=>dq,forEach:()=>T,forEachAncestor:()=>lp,forEachAncestorDirectory:()=>Ra,forEachChild:()=>bI,forEachChildRecursively:()=>xI,forEachEmittedFile:()=>$z,forEachEnclosingBlockScopeContainer:()=>Of,forEachEntry:()=>up,forEachExternalModuleToImportFrom:()=>MY,forEachImportClauseDeclaration:()=>gh,forEachKey:()=>dp,forEachLeadingCommentRange:()=>Ps,forEachNameInAccessChainWalkingLeft:()=>rk,forEachResolvedProjectReference:()=>Sq,forEachReturnStatement:()=>vm,forEachRight:()=>C,forEachTrailingCommentRange:()=>Is,forEachUnique:()=>OG,forEachYieldExpression:()=>bm,forSomeAncestorDirectory:()=>Qx,formatColorAndReset:()=>cq,formatDiagnostic:()=>aq,formatDiagnostics:()=>oq,formatDiagnosticsWithColorAndContext:()=>uq,formatGeneratedName:()=>CP,formatGeneratedNamePart:()=>TP,formatLocation:()=>lq,formatMessage:()=>Sk,formatStringFromArgs:()=>fk,formatting:()=>afe,fullTripleSlashAMDReferencePathRegEx:()=>dd,fullTripleSlashReferencePathRegEx:()=>ld,generateDjb2Hash:()=>Co,generateTSConfig:()=>uL,generatorHelper:()=>JA,getAdjustedReferenceLocation:()=>s$,getAdjustedRenameLocation:()=>c$,getAliasDeclarationFromName:()=>ny,getAllAccessorDeclarations:()=>Qv,getAllDecoratorsOfClass:()=>nJ,getAllDecoratorsOfClassElement:()=>rJ,getAllJSDocTags:()=>A_,getAllJSDocTagsOfKind:()=>w_,getAllKeys:()=>Ge,getAllProjectOutputs:()=>_U,getAllSuperTypeNodes:()=>ly,getAllUnscopedEmitHelpers:()=>nw,getAllowJSCompilerOption:()=>oS,getAllowSyntheticDefaultImports:()=>$k,getAncestor:()=>py,getAnyExtensionFromPath:()=>la,getAreDeclarationMapsEnabled:()=>Wk,getAssignedExpandoInitializer:()=>jg,getAssignedName:()=>Vc,getAssignmentDeclarationKind:()=>Hg,getAssignmentDeclarationPropertyAccessKind:()=>ih,getAssignmentTargetKind:()=>jh,getAutomaticTypeDirectiveNames:()=>CM,getBaseFileName:()=>ca,getBinaryOperatorPrecedence:()=>Yy,getBuildInfo:()=>mU,getBuildInfoFileVersionMap:()=>SV,getBuildInfoText:()=>fU,getBuildOrderFromAnyBuildOrder:()=>IQ,getBuilderCreationParameters:()=>pV,getBuilderFileEmit:()=>Hq,getCheckFlags:()=>Fx,getClassExtendsHeritageElement:()=>cy,getClassLikeDeclarationOfSymbol:()=>qx,getCombinedLocalAndExportSymbolFlags:()=>Ox,getCombinedModifierFlags:()=>Tc,getCombinedNodeFlags:()=>Ac,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>Cc,getCommentRange:()=>WC,getCommonSourceDirectory:()=>sU,getCommonSourceDirectoryOfConfig:()=>cU,getCompilerOptionValue:()=>lS,getCompilerOptionsDiffValue:()=>_L,getConditions:()=>SM,getConfigFileParsingDiagnostics:()=>Eq,getConstantValue:()=>nA,getContainerNode:()=>OH,getContainingClass:()=>qm,getContainingClassStaticBlock:()=>Vm,getContainingFunction:()=>zm,getContainingFunctionDeclaration:()=>Um,getContainingFunctionOrClassStaticBlock:()=>Qm,getContainingNodeArray:()=>ET,getContainingObjectLiteralElement:()=>c2,getContextualTypeFromParent:()=>LX,getContextualTypeFromParentOrAncestorTypeNode:()=>r$,getCurrentTime:()=>FQ,getDeclarationDiagnostics:()=>Sz,getDeclarationEmitExtensionForPath:()=>Tv,getDeclarationEmitOutputFilePath:()=>kv,getDeclarationEmitOutputFilePathWorker:()=>Sv,getDeclarationFromName:()=>Yh,getDeclarationModifierFlagsFromSymbol:()=>Px,getDeclarationOfKind:()=>np,getDeclarationsOfKind:()=>rp,getDeclaredExpandoInitializer:()=>Bg,getDecorators:()=>Qc,getDefaultCompilerOptions:()=>t2,getDefaultExportInfoWorker:()=>zY,getDefaultFormatCodeSettings:()=>$W,getDefaultLibFileName:()=>Zs,getDefaultLibFilePath:()=>l2,getDefaultLikeExportInfo:()=>jY,getDiagnosticText:()=>JO,getDiagnosticsWithinSpan:()=>_Y,getDirectoryPath:()=>sa,getDocumentPositionMapper:()=>XZ,getESModuleInterop:()=>Hk,getEditsForFileRename:()=>dZ,getEffectiveBaseTypeNode:()=>sy,getEffectiveConstraintOfTypeParameter:()=>N_,getEffectiveContainerForJSDocTemplateTag:()=>Ph,getEffectiveImplementsTypeNodes:()=>_y,getEffectiveInitializer:()=>Rg,getEffectiveJSDocHost:()=>Oh,getEffectiveModifierFlags:()=>bb,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>xb,getEffectiveModifierFlagsNoCache:()=>Tb,getEffectiveReturnTypeNode:()=>Hv,getEffectiveSetAccessorTypeAnnotationNode:()=>Gv,getEffectiveTypeAnnotationNode:()=>Kv,getEffectiveTypeParameterDeclarations:()=>E_,getEffectiveTypeRoots:()=>vM,getElementOrPropertyAccessArgumentExpressionOrName:()=>nh,getElementOrPropertyAccessName:()=>rh,getElementsOfBindingOrAssignmentPattern:()=>oP,getEmitDeclarations:()=>tS,getEmitFlags:()=>rf,getEmitHelpers:()=>sA,getEmitModuleDetectionKind:()=>zk,getEmitModuleKind:()=>Bk,getEmitModuleResolutionKind:()=>Jk,getEmitScriptTarget:()=>Rk,getEnclosingBlockScopeContainer:()=>If,getEncodedSemanticClassifications:()=>XY,getEncodedSyntacticClassifications:()=>nZ,getEndLinePosition:()=>Ip,getEntityNameFromTypeNode:()=>rg,getEntrypointsFromPackageJsonInfo:()=>oR,getErrorCountForSummary:()=>QV,getErrorSpanForNode:()=>Zf,getErrorSummaryText:()=>$V,getEscapedTextOfIdentifierOrLiteral:()=>Fy,getExpandoInitializer:()=>Jg,getExportAssignmentExpression:()=>oy,getExportInfoMap:()=>BY,getExportNeedsImportStarHelper:()=>Bj,getExpressionAssociativity:()=>Wy,getExpressionPrecedence:()=>$y,getExternalHelpersModuleName:()=>KF,getExternalModuleImportEqualsDeclarationExpression:()=>yg,getExternalModuleName:()=>ph,getExternalModuleNameFromDeclaration:()=>vv,getExternalModuleNameFromPath:()=>bv,getExternalModuleNameLiteral:()=>XF,getExternalModuleRequireArgument:()=>vg,getFallbackOptions:()=>OU,getFileEmitOutput:()=>Vq,getFileMatcherPatterns:()=>AS,getFileNamesFromConfigSpecs:()=>jL,getFileWatcherEventKind:()=>Po,getFilesInErrorForSummary:()=>KV,getFirstConstructorWithBody:()=>Rv,getFirstIdentifier:()=>Ub,getFirstNonSpaceCharacterPosition:()=>fX,getFirstProjectOutput:()=>uU,getFixableErrorSpanExpression:()=>uY,getFormatCodeSettingsForWriting:()=>wY,getFullWidth:()=>mp,getFunctionFlags:()=>ky,getHeritageClause:()=>dy,getHostSignatureFromJSDoc:()=>Ih,getIdentifierAutoGenerate:()=>hA,getIdentifierGeneratedImportReference:()=>vA,getIdentifierTypeArguments:()=>mA,getImmediatelyInvokedFunctionExpression:()=>Xm,getImpliedNodeFormatForFile:()=>Nq,getImpliedNodeFormatForFileWorker:()=>Fq,getImportNeedsImportDefaultHelper:()=>Jj,getImportNeedsImportStarHelper:()=>jj,getIndentSize:()=>uv,getIndentString:()=>lv,getInitializedVariables:()=>wx,getInitializerOfBinaryExpression:()=>oh,getInitializerOfBindingOrAssignmentElement:()=>ZF,getInterfaceBaseTypeNodes:()=>uy,getInternalEmitFlags:()=>of,getInvokedExpression:()=>ig,getIsolatedModules:()=>qk,getJSDocAugmentsTag:()=>e_,getJSDocClassTag:()=>n_,getJSDocCommentRanges:()=>gm,getJSDocCommentsAndTags:()=>wh,getJSDocDeprecatedTag:()=>d_,getJSDocDeprecatedTagNoCache:()=>p_,getJSDocEnumTag:()=>f_,getJSDocHost:()=>Lh,getJSDocImplementsTags:()=>t_,getJSDocOverrideTagNoCache:()=>u_,getJSDocParameterTags:()=>Hc,getJSDocParameterTagsNoCache:()=>$c,getJSDocPrivateTag:()=>o_,getJSDocPrivateTagNoCache:()=>a_,getJSDocProtectedTag:()=>s_,getJSDocProtectedTagNoCache:()=>c_,getJSDocPublicTag:()=>r_,getJSDocPublicTagNoCache:()=>i_,getJSDocReadonlyTag:()=>__,getJSDocReadonlyTagNoCache:()=>l_,getJSDocReturnTag:()=>g_,getJSDocReturnType:()=>x_,getJSDocRoot:()=>Mh,getJSDocSatisfiesExpressionType:()=>GT,getJSDocSatisfiesTag:()=>y_,getJSDocTags:()=>S_,getJSDocTagsNoCache:()=>T_,getJSDocTemplateTag:()=>h_,getJSDocThisTag:()=>m_,getJSDocType:()=>b_,getJSDocTypeAliasName:()=>aP,getJSDocTypeAssertionType:()=>JF,getJSDocTypeParameterDeclarations:()=>$v,getJSDocTypeParameterTags:()=>Xc,getJSDocTypeParameterTagsNoCache:()=>Yc,getJSDocTypeTag:()=>v_,getJSXImplicitImportBase:()=>dS,getJSXRuntimeImport:()=>pS,getJSXTransformEnabled:()=>uS,getKeyForCompilerOptions:()=>wM,getLanguageVariant:()=>Pk,getLastChild:()=>Hx,getLeadingCommentRanges:()=>Rs,getLeadingCommentRangesOfNode:()=>mm,getLeftmostAccessExpression:()=>nk,getLeftmostExpression:()=>ik,getLineAndCharacterOfPosition:()=>ys,getLineInfo:()=>vj,getLineOfLocalPosition:()=>Lv,getLineOfLocalPositionFromLineMap:()=>Mv,getLineStartPositionForPosition:()=>RH,getLineStarts:()=>fs,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Cx,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Tx,getLinesBetweenPositions:()=>hs,getLinesBetweenRangeEndAndRangeStart:()=>vx,getLinesBetweenRangeEndPositions:()=>bx,getLiteralText:()=>sf,getLocalNameForExternalImport:()=>GF,getLocalSymbolForExportDefault:()=>Yb,getLocaleSpecificMessage:()=>hk,getLocaleTimeString:()=>UV,getMappedContextSpan:()=>BG,getMappedDocumentSpan:()=>RG,getMappedLocation:()=>MG,getMatchedFileSpec:()=>eQ,getMatchedIncludeSpec:()=>tQ,getMeaningFromDeclaration:()=>aH,getMeaningFromLocation:()=>sH,getMembersOfDeclaration:()=>km,getModeForFileReference:()=>pq,getModeForResolutionAtIndex:()=>fq,getModeForUsageLocation:()=>gq,getModifiedTime:()=>wo,getModifiers:()=>Kc,getModuleInstanceState:()=>BR,getModuleNameStringLiteralAt:()=>Jq,getModuleSpecifierEndingPreference:()=>BS,getModuleSpecifierResolverHost:()=>fG,getNameForExportedSymbol:()=>mY,getNameFromIndexInfo:()=>Mf,getNameFromPropertyName:()=>_G,getNameOfAccessExpression:()=>Zx,getNameOfCompilerOptionValue:()=>aL,getNameOfDeclaration:()=>qc,getNameOfExpando:()=>Ug,getNameOfJSDocTypedef:()=>Jc,getNameOrArgument:()=>th,getNameTable:()=>s2,getNamesForExportedSymbol:()=>fY,getNamespaceDeclarationNode:()=>fh,getNewLineCharacter:()=>ax,getNewLineKind:()=>CY,getNewLineOrDefaultFromHost:()=>nX,getNewTargetContainer:()=>$m,getNextJSDocCommentLocation:()=>Nh,getNodeForGeneratedName:()=>SP,getNodeId:()=>qB,getNodeKind:()=>LH,getNodeModifiers:()=>O$,getNodeModulePathParts:()=>jT,getNonAssignedNameOfDeclaration:()=>Uc,getNonAssignmentOperatorForCompoundAssignment:()=>Wj,getNonAugmentationDeclaration:()=>xf,getNonDecoratorTokenPosOfNode:()=>Gp,getNormalizedAbsolutePath:()=>ya,getNormalizedAbsolutePathWithoutRoot:()=>ba,getNormalizedPathComponents:()=>ha,getObjectFlags:()=>Vx,getOperator:()=>Gy,getOperatorAssociativity:()=>Hy,getOperatorPrecedence:()=>Xy,getOptionFromName:()=>MO,getOptionsNameMap:()=>AO,getOrCreateEmitNode:()=>OC,getOrCreateExternalHelpersModuleNameIfNeeded:()=>$F,getOrUpdate:()=>ie,getOriginalNode:()=>Dc,getOriginalNodeId:()=>Lj,getOriginalSourceFile:()=>Ky,getOutputDeclarationFileName:()=>nU,getOutputExtension:()=>eU,getOutputFileNames:()=>lU,getOutputPathsFor:()=>Yz,getOutputPathsForBundle:()=>Xz,getOwnEmitOutputFilePath:()=>xv,getOwnKeys:()=>$e,getOwnValues:()=>Xe,getPackageJsonInfo:()=>lR,getPackageJsonTypesVersionsPaths:()=>yM,getPackageJsonsVisibleToFile:()=>nY,getPackageNameFromTypesPackageName:()=>wR,getPackageScopeForPath:()=>cR,getParameterSymbolFromJSDoc:()=>Fh,getParameterTypeNode:()=>JT,getParentNodeInSpan:()=>wG,getParseTreeNode:()=>Fc,getParsedCommandLineOfConfigFile:()=>zO,getPathComponents:()=>ua,getPathComponentsRelativeTo:()=>Pa,getPathFromPathComponents:()=>da,getPathUpdater:()=>pZ,getPathsBasePath:()=>wv,getPatternFromSpec:()=>SS,getPendingEmitKind:()=>$q,getPositionOfLineAndCharacter:()=>ds,getPossibleGenericSignatures:()=>E$,getPossibleOriginalInputExtensionForExtension:()=>Cv,getPossibleTypeArgumentsInfo:()=>N$,getPreEmitDiagnostics:()=>iq,getPrecedingNonSpaceCharacterPosition:()=>mX,getPrivateIdentifier:()=>sJ,getProperties:()=>Gj,getProperty:()=>He,getPropertyArrayElementValue:()=>Rm,getPropertyAssignment:()=>Mm,getPropertyAssignmentAliasLikeExpression:()=>ay,getPropertyNameForPropertyNameNode:()=>Dy,getPropertyNameForUniqueESSymbol:()=>Py,getPropertyNameOfBindingOrAssignmentElement:()=>nP,getPropertySymbolFromBindingElement:()=>AG,getPropertySymbolsFromContextualType:()=>_2,getQuoteFromPreference:()=>xG,getQuotePreference:()=>bG,getRangesWhere:()=>le,getRefactorContextSpan:()=>lY,getReferencedFileLocation:()=>wq,getRegexFromPattern:()=>wS,getRegularExpressionForWildcard:()=>bS,getRegularExpressionsForWildcards:()=>xS,getRelativePathFromDirectory:()=>Ia,getRelativePathFromFile:()=>La,getRelativePathToDirectoryOrUrl:()=>Ma,getRenameLocation:()=>DX,getReplacementSpanForContextToken:()=>W$,getResolutionDiagnostic:()=>Bq,getResolutionModeOverrideForClause:()=>hq,getResolveJsonModule:()=>eS,getResolvePackageJsonExports:()=>Yk,getResolvePackageJsonImports:()=>Zk,getResolvedExternalModuleName:()=>hv,getResolvedModule:()=>gp,getResolvedTypeReferenceDirective:()=>vp,getRestIndicatorOfBindingOrAssignmentElement:()=>tP,getRestParameterElementType:()=>xm,getRightMostAssignedExpression:()=>Vg,getRootDeclaration:()=>qy,getRootLength:()=>aa,getScriptKind:()=>lX,getScriptKindFromFileName:()=>PS,getScriptTargetFeatures:()=>af,getSelectedEffectiveModifierFlags:()=>hb,getSelectedSyntacticModifierFlags:()=>yb,getSemanticClassifications:()=>$Y,getSemanticJsxChildren:()=>Zy,getSetAccessorTypeAnnotationNode:()=>jv,getSetAccessorValueParameter:()=>Bv,getSetExternalModuleIndicator:()=>Mk,getShebang:()=>js,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>kh,getSingleVariableOfVariableStatement:()=>Sh,getSnapshotText:()=>aG,getSnippetElement:()=>_A,getSourceFileOfModule:()=>Dp,getSourceFileOfNode:()=>wp,getSourceFilePathInNewDir:()=>Nv,getSourceFilePathInNewDirWorker:()=>Fv,getSourceFileVersionAsHashFromText:()=>_Q,getSourceFilesToEmit:()=>Dv,getSourceMapRange:()=>zC,getSourceMapper:()=>GZ,getSourceTextOfNodeFromSourceFile:()=>Xp,getSpanOfTokenAtPosition:()=>Xf,getSpellingSuggestion:()=>Yt,getStartPositionOfLine:()=>Fp,getStartPositionOfRange:()=>Sx,getStartsOnNewLine:()=>QC,getStaticPropertiesAndClassStaticBlock:()=>Yj,getStrictOptionValue:()=>iS,getStringComparer:()=>Kt,getSuperCallFromStatement:()=>Hj,getSuperContainer:()=>Gm,getSupportedCodeFixes:()=>n2,getSupportedExtensions:()=>IS,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>OS,getSwitchedType:()=>JX,getSymbolId:()=>VB,getSymbolNameForPrivateIdentifier:()=>Iy,getSymbolTarget:()=>uX,getSyntacticClassifications:()=>tZ,getSyntacticModifierFlags:()=>kb,getSyntacticModifierFlagsNoCache:()=>Cb,getSynthesizedDeepClone:()=>gX,getSynthesizedDeepCloneWithReplacements:()=>hX,getSynthesizedDeepClones:()=>vX,getSynthesizedDeepClonesWithReplacements:()=>bX,getSyntheticLeadingComments:()=>$C,getSyntheticTrailingComments:()=>YC,getTargetLabel:()=>xH,getTargetOfBindingOrAssignmentElement:()=>eP,getTemporaryModuleResolutionState:()=>sR,getTextOfConstantValue:()=>cf,getTextOfIdentifierOrLiteral:()=>Ny,getTextOfJSDocComment:()=>D_,getTextOfNode:()=>ef,getTextOfNodeFromSourceText:()=>Zp,getTextOfPropertyName:()=>jf,getThisContainer:()=>Km,getThisParameter:()=>Jv,getTokenAtPosition:()=>u$,getTokenPosOfNode:()=>$p,getTokenSourceMapRange:()=>qC,getTouchingPropertyName:()=>_$,getTouchingToken:()=>l$,getTrailingCommentRanges:()=>Bs,getTrailingSemicolonDeferringWriter:()=>fv,getTransformFlagsSubtreeExclusions:()=>CC,getTransformers:()=>Pz,getTsBuildInfoEmitOutputFilePath:()=>Gz,getTsConfigObjectLiteralExpression:()=>Bm,getTsConfigPropArray:()=>Jm,getTsConfigPropArrayElementValue:()=>jm,getTypeAnnotationNode:()=>Wv,getTypeArgumentOrTypeParameterList:()=>L$,getTypeKeywordOfTypeOnlyImport:()=>FG,getTypeNode:()=>pA,getTypeNodeIfAccessible:()=>zX,getTypeParameterFromJsDoc:()=>Rh,getTypeParameterOwner:()=>yc,getTypesPackageName:()=>CR,getUILocale:()=>Wt,getUniqueName:()=>wX,getUniqueSymbolId:()=>pX,getUseDefineForClassFields:()=>aS,getWatchErrorSummaryDiagnosticMessage:()=>WV,getWatchFactory:()=>IU,group:()=>ot,groupBy:()=>at,guessIndentation:()=>Zu,handleNoEmitOptions:()=>Iq,hasAbstractModifier:()=>db,hasAccessorModifier:()=>fb,hasAmbientModifier:()=>pb,hasChangesInResolutions:()=>Cp,hasChildOfKind:()=>XH,hasContextSensitiveParameters:()=>NT,hasDecorators:()=>gb,hasDocComment:()=>P$,hasDynamicName:()=>Ay,hasEffectiveModifier:()=>sb,hasEffectiveModifiers:()=>ob,hasEffectiveReadonlyModifier:()=>mb,hasExtension:()=>ea,hasIndexSignature:()=>jX,hasInitializer:()=>$u,hasInvalidEscape:()=>tv,hasJSDocNodes:()=>Wu,hasJSDocParameterTags:()=>Zc,hasJSFileExtension:()=>LS,hasJsonModuleEmitEnabled:()=>Uk,hasOnlyExpressionInitializer:()=>Gu,hasOverrideModifier:()=>ub,hasPossibleExternalModuleReference:()=>Ff,hasProperty:()=>We,hasPropertyAccessExpressionWithName:()=>kH,hasQuestionToken:()=>hh,hasRecordedExternalHelpers:()=>WF,hasRestParameter:()=>nd,hasScopeMarker:()=>fu,hasStaticModifier:()=>lb,hasSyntacticModifier:()=>cb,hasSyntacticModifiers:()=>ab,hasTSFileExtension:()=>MS,hasTabstop:()=>QT,hasTrailingDirectorySeparator:()=>ra,hasType:()=>Hu,hasTypeArguments:()=>Bh,hasZeroOrOneAsteriskCharacter:()=>fS,helperString:()=>tw,hostGetCanonicalFileName:()=>gv,hostUsesCaseSensitiveFileNames:()=>mv,idText:()=>Oc,identifierIsThisKeyword:()=>Vv,identifierToKeywordKind:()=>Lc,identity:()=>wt,identitySourceMapConsumer:()=>gj,ignoreSourceNewlines:()=>uA,ignoredPaths:()=>bo,importDefaultHelper:()=>VA,importFromModuleSpecifier:()=>uh,importNameElisionDisabled:()=>Vk,importStarHelper:()=>qA,indexOfAnyCharCode:()=>j,indexOfNode:()=>nf,indicesOf:()=>pe,inferredTypesContainingFile:()=>KU,insertImports:()=>NG,insertLeadingStatement:()=>AF,insertSorted:()=>ge,insertStatementAfterCustomPrologue:()=>Qp,insertStatementAfterStandardPrologue:()=>Vp,insertStatementsAfterCustomPrologue:()=>qp,insertStatementsAfterStandardPrologue:()=>Up,intersperse:()=>N,introducesArgumentsExoticObject:()=>Em,inverseJsxOptionMap:()=>JI,isAbstractConstructorSymbol:()=>Ux,isAbstractModifier:()=>Iw,isAccessExpression:()=>Yx,isAccessibilityModifier:()=>z$,isAccessor:()=>Pl,isAccessorModifier:()=>Lw,isAliasSymbolDeclaration:()=>ty,isAliasableExpression:()=>ry,isAmbientModule:()=>df,isAmbientPropertyDeclaration:()=>Tf,isAnonymousFunctionDefinition:()=>By,isAnyDirectorySeparator:()=>Wo,isAnyImportOrBareOrAccessedRequire:()=>Ef,isAnyImportOrReExport:()=>Pf,isAnyImportSyntax:()=>Df,isAnySupportedFileExtension:()=>YS,isApplicableVersionedTypesKey:()=>vR,isArgumentExpressionOfElementAccess:()=>EH,isArray:()=>ht,isArrayBindingElement:()=>Vl,isArrayBindingOrAssignmentElement:()=>Xl,isArrayBindingOrAssignmentPattern:()=>Gl,isArrayBindingPattern:()=>AD,isArrayLiteralExpression:()=>DD,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>q$,isArrayTypeNode:()=>sD,isArrowFunction:()=>BD,isAsExpression:()=>ZD,isAssertClause:()=>UE,isAssertEntry:()=>qE,isAssertionExpression:()=>lu,isAssertionKey:()=>ll,isAssertsKeyword:()=>Ew,isAssignmentDeclaration:()=>Mg,isAssignmentExpression:()=>Rb,isAssignmentOperator:()=>Ob,isAssignmentPattern:()=>ql,isAssignmentTarget:()=>Jh,isAsteriskToken:()=>yw,isAsyncFunction:()=>Sy,isAsyncModifier:()=>Dw,isAutoAccessorPropertyDeclaration:()=>Il,isAwaitExpression:()=>UD,isAwaitKeyword:()=>Nw,isBigIntLiteral:()=>aw,isBinaryExpression:()=>QD,isBinaryOperatorToken:()=>hP,isBindableObjectDefinePropertyCall:()=>$g,isBindableStaticAccessExpression:()=>Yg,isBindableStaticElementAccessExpression:()=>Zg,isBindableStaticNameExpression:()=>eh,isBindingElement:()=>wD,isBindingElementOfBareOrAccessedRequire:()=>Fg,isBindingName:()=>kl,isBindingOrAssignmentElement:()=>Kl,isBindingOrAssignmentPattern:()=>Wl,isBindingPattern:()=>Ul,isBlock:()=>cE,isBlockOrCatchScoped:()=>lf,isBlockScope:()=>Cf,isBlockScopedContainerTopLevel:()=>hf,isBooleanLiteral:()=>Al,isBreakOrContinueStatement:()=>V_,isBreakStatement:()=>vE,isBuildInfoFile:()=>Hz,isBuilderProgram:()=>GV,isBundle:()=>CN,isBundleFileTextLike:()=>ek,isCallChain:()=>L_,isCallExpression:()=>PD,isCallExpressionTarget:()=>_H,isCallLikeExpression:()=>eu,isCallOrNewExpression:()=>tu,isCallOrNewExpressionTarget:()=>uH,isCallSignatureDeclaration:()=>Yw,isCallToHelper:()=>rw,isCaseBlock:()=>ME,isCaseClause:()=>mN,isCaseKeyword:()=>Bw,isCaseOrDefaultClause:()=>zu,isCatchClause:()=>yN,isCatchClauseVariableDeclaration:()=>PT,isCatchClauseVariableDeclarationOrBindingElement:()=>uf,isCheckJsEnabledForFile:()=>eT,isChildOfNodeWithKind:()=>ym,isCircularBuildOrder:()=>PQ,isClassDeclaration:()=>NE,isClassElement:()=>Nl,isClassExpression:()=>GD,isClassLike:()=>Fl,isClassMemberModifier:()=>yl,isClassOrTypeElement:()=>Bl,isClassStaticBlockDeclaration:()=>Hw,isCollapsedRange:()=>dx,isColonToken:()=>xw,isCommaExpression:()=>RF,isCommaListExpression:()=>oE,isCommaSequence:()=>BF,isCommaToken:()=>mw,isComment:()=>M$,isCommonJsExportPropertyAssignment:()=>wm,isCommonJsExportedExpression:()=>Am,isCompoundAssignment:()=>Kj,isComputedNonLiteralName:()=>Rf,isComputedPropertyName:()=>Jw,isConciseBody:()=>yu,isConditionalExpression:()=>KD,isConditionalTypeNode:()=>fD,isConstTypeReference:()=>z_,isConstructSignatureDeclaration:()=>Zw,isConstructorDeclaration:()=>$w,isConstructorTypeNode:()=>iD,isContextualKeyword:()=>my,isContinueStatement:()=>yE,isCustomPrologue:()=>um,isDebuggerStatement:()=>AE,isDeclaration:()=>Nu,isDeclarationBindingElement:()=>Ql,isDeclarationFileName:()=>FI,isDeclarationName:()=>Xh,isDeclarationNameOfEnumOrNamespace:()=>Ax,isDeclarationReadonly:()=>rm,isDeclarationStatement:()=>Fu,isDeclarationWithTypeParameterChildren:()=>wf,isDeclarationWithTypeParameters:()=>Af,isDecorator:()=>qw,isDecoratorTarget:()=>pH,isDefaultClause:()=>gN,isDefaultImport:()=>mh,isDefaultModifier:()=>ww,isDefaultedExpandoInitializer:()=>zg,isDeleteExpression:()=>jD,isDeleteTarget:()=>$h,isDeprecatedDeclaration:()=>SY,isDestructuringAssignment:()=>jb,isDiagnosticWithLocation:()=>sY,isDiskPathRoot:()=>Go,isDoStatement:()=>pE,isDotDotDotToken:()=>fw,isDottedName:()=>qb,isDynamicName:()=>wy,isESSymbolIdentifier:()=>My,isEffectiveExternalModule:()=>kf,isEffectiveModuleDeclaration:()=>mf,isEffectiveStrictModeSourceFile:()=>Sf,isElementAccessChain:()=>O_,isElementAccessExpression:()=>FD,isEmittedFileOfProgram:()=>PU,isEmptyArrayLiteral:()=>Xb,isEmptyBindingElement:()=>xc,isEmptyBindingPattern:()=>bc,isEmptyObjectLiteral:()=>Gb,isEmptyStatement:()=>lE,isEmptyStringLiteral:()=>ug,isEndOfDeclarationMarker:()=>nN,isEntityName:()=>bl,isEntityNameExpression:()=>zb,isEnumConst:()=>nm,isEnumDeclaration:()=>IE,isEnumMember:()=>kN,isEqualityOperatorKind:()=>RX,isEqualsGreaterThanToken:()=>Sw,isExclamationToken:()=>vw,isExcludedFile:()=>JL,isExclusivelyTypeOnlyImportOrExport:()=>mq,isExportAssignment:()=>HE,isExportDeclaration:()=>$E,isExportModifier:()=>Aw,isExportName:()=>IF,isExportNamespaceAsDefaultDeclaration:()=>Yp,isExportOrDefaultModifier:()=>bP,isExportSpecifier:()=>XE,isExportsIdentifier:()=>Qg,isExportsOrModuleExportsOrAlias:()=>QR,isExpression:()=>_u,isExpressionNode:()=>pg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>IH,isExpressionOfOptionalChainRoot:()=>B_,isExpressionStatement:()=>uE,isExpressionWithTypeArguments:()=>YD,isExpressionWithTypeArgumentsInClassExtendsClause:()=>Jb,isExternalModule:()=>wI,isExternalModuleAugmentation:()=>vf,isExternalModuleImportEqualsDeclaration:()=>hg,isExternalModuleIndicator:()=>gu,isExternalModuleNameRelative:()=>Xs,isExternalModuleReference:()=>rN,isExternalModuleSymbol:()=>iG,isExternalOrCommonJsModule:()=>em,isFileLevelUniqueName:()=>Op,isFileProbablyExternalModule:()=>eI,isFirstDeclarationOfSymbolParameter:()=>jG,isFixablePromiseHandler:()=>a0,isForInOrOfStatement:()=>hu,isForInStatement:()=>gE,isForInitializer:()=>bu,isForOfStatement:()=>hE,isForStatement:()=>mE,isFunctionBlock:()=>Fm,isFunctionBody:()=>vu,isFunctionDeclaration:()=>EE,isFunctionExpression:()=>RD,isFunctionExpressionOrArrowFunction:()=>OT,isFunctionLike:()=>Sl,isFunctionLikeDeclaration:()=>Cl,isFunctionLikeKind:()=>Dl,isFunctionLikeOrClassStaticBlockDeclaration:()=>Tl,isFunctionOrConstructorTypeNode:()=>zl,isFunctionOrModuleBlock:()=>El,isFunctionSymbol:()=>_h,isFunctionTypeNode:()=>rD,isFutureReservedKeyword:()=>hy,isGeneratedIdentifier:()=>dl,isGeneratedPrivateIdentifier:()=>pl,isGetAccessor:()=>Ku,isGetAccessorDeclaration:()=>Gw,isGetOrSetAccessorDeclaration:()=>P_,isGlobalDeclaration:()=>xY,isGlobalScopeAugmentation:()=>yf,isGrammarError:()=>Rp,isHeritageClause:()=>hN,isHoistedFunction:()=>dm,isHoistedVariableStatement:()=>fm,isIdentifier:()=>Tw,isIdentifierANonContextualKeyword:()=>by,isIdentifierName:()=>ey,isIdentifierOrThisTypeNode:()=>dP,isIdentifierPart:()=>zs,isIdentifierStart:()=>Js,isIdentifierText:()=>Us,isIdentifierTypePredicate:()=>Om,isIdentifierTypeReference:()=>mT,isIfStatement:()=>dE,isIgnoredFileFromWildCardWatching:()=>FU,isImplicitGlob:()=>kS,isImportCall:()=>sm,isImportClause:()=>JE,isImportDeclaration:()=>jE,isImportEqualsDeclaration:()=>BE,isImportKeyword:()=>Rw,isImportMeta:()=>cm,isImportOrExportSpecifier:()=>al,isImportOrExportSpecifierName:()=>_X,isImportSpecifier:()=>WE,isImportTypeAssertionContainer:()=>zE,isImportTypeNode:()=>kD,isImportableFile:()=>LY,isInComment:()=>F$,isInExpressionContext:()=>fg,isInJSDoc:()=>Ag,isInJSFile:()=>Sg,isInJSXText:()=>T$,isInJsonFile:()=>Tg,isInNonReferenceComment:()=>Q$,isInReferenceComment:()=>V$,isInRightSideOfInternalImportEqualsDeclaration:()=>cH,isInString:()=>b$,isInTemplateString:()=>S$,isInTopLevelContext:()=>Hm,isIncrementalCompilation:()=>rS,isIndexSignatureDeclaration:()=>eD,isIndexedAccessTypeNode:()=>vD,isInferTypeNode:()=>mD,isInfinityOrNaNString:()=>FT,isInitializedProperty:()=>Zj,isInitializedVariable:()=>Dx,isInsideJsxElement:()=>C$,isInsideJsxElementOrAttribute:()=>x$,isInsideNodeModules:()=>aY,isInsideTemplateLiteral:()=>J$,isInstantiatedModule:()=>QB,isInterfaceDeclaration:()=>FE,isInternalDeclaration:()=>Cz,isInternalModuleImportEqualsDeclaration:()=>bg,isInternalName:()=>FF,isIntersectionTypeNode:()=>pD,isIntrinsicJsxName:()=>_v,isIterationStatement:()=>du,isJSDoc:()=>zN,isJSDocAllType:()=>IN,isJSDocAugmentsTag:()=>VN,isJSDocAuthorTag:()=>QN,isJSDocCallbackTag:()=>WN,isJSDocClassTag:()=>KN,isJSDocCommentContainingNode:()=>qu,isJSDocConstructSignature:()=>yh,isJSDocDeprecatedTag:()=>eF,isJSDocEnumTag:()=>nF,isJSDocFunctionType:()=>BN,isJSDocImplementsTag:()=>uF,isJSDocIndexSignature:()=>wg,isJSDocLikeText:()=>ZP,isJSDocLink:()=>NN,isJSDocLinkCode:()=>FN,isJSDocLinkLike:()=>td,isJSDocLinkPlain:()=>PN,isJSDocMemberName:()=>EN,isJSDocNameReference:()=>DN,isJSDocNamepathType:()=>JN,isJSDocNamespaceBody:()=>Su,isJSDocNode:()=>Uu,isJSDocNonNullableType:()=>MN,isJSDocNullableType:()=>LN,isJSDocOptionalParameter:()=>KT,isJSDocOptionalType:()=>RN,isJSDocOverloadTag:()=>ZN,isJSDocOverrideTag:()=>YN,isJSDocParameterTag:()=>rF,isJSDocPrivateTag:()=>$N,isJSDocPropertyLikeTag:()=>H_,isJSDocPropertyTag:()=>lF,isJSDocProtectedTag:()=>GN,isJSDocPublicTag:()=>HN,isJSDocReadonlyTag:()=>XN,isJSDocReturnTag:()=>iF,isJSDocSatisfiesExpression:()=>$T,isJSDocSatisfiesTag:()=>dF,isJSDocSeeTag:()=>tF,isJSDocSignature:()=>qN,isJSDocTag:()=>Vu,isJSDocTemplateTag:()=>sF,isJSDocThisTag:()=>oF,isJSDocThrowsTag:()=>pF,isJSDocTypeAlias:()=>vh,isJSDocTypeAssertion:()=>jF,isJSDocTypeExpression:()=>wN,isJSDocTypeLiteral:()=>UN,isJSDocTypeTag:()=>aF,isJSDocTypedefTag:()=>cF,isJSDocUnknownTag:()=>_F,isJSDocUnknownType:()=>ON,isJSDocVariadicType:()=>jN,isJSXTagName:()=>dg,isJsonEqual:()=>cT,isJsonSourceFile:()=>tm,isJsxAttribute:()=>uN,isJsxAttributeLike:()=>Bu,isJsxAttributes:()=>dN,isJsxChild:()=>Ru,isJsxClosingElement:()=>sN,isJsxClosingFragment:()=>lN,isJsxElement:()=>iN,isJsxExpression:()=>fN,isJsxFragment:()=>cN,isJsxOpeningElement:()=>aN,isJsxOpeningFragment:()=>_N,isJsxOpeningLikeElement:()=>Ju,isJsxOpeningLikeElementTagName:()=>fH,isJsxSelfClosingElement:()=>oN,isJsxSpreadAttribute:()=>pN,isJsxTagNameExpression:()=>Mu,isJsxText:()=>cw,isJumpStatementTarget:()=>SH,isKeyword:()=>fy,isKnownSymbol:()=>Oy,isLabelName:()=>CH,isLabelOfLabeledStatement:()=>TH,isLabeledStatement:()=>SE,isLateVisibilityPaintedStatement:()=>Nf,isLeftHandSideExpression:()=>ru,isLeftHandSideOfAssignment:()=>Bb,isLet:()=>om,isLineBreak:()=>xs,isLiteralComputedPropertyDeclarationName:()=>Zh,isLiteralExpression:()=>tl,isLiteralExpressionOfObject:()=>nl,isLiteralImportTypeNode:()=>_m,isLiteralKind:()=>el,isLiteralLikeAccess:()=>Gg,isLiteralLikeElementAccess:()=>Xg,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>PH,isLiteralTypeLikeExpression:()=>gP,isLiteralTypeLiteral:()=>cu,isLiteralTypeNode:()=>xD,isLocalName:()=>PF,isLogicalOperator:()=>Eb,isLogicalOrCoalescingAssignmentExpression:()=>Fb,isLogicalOrCoalescingAssignmentOperator:()=>Nb,isLogicalOrCoalescingBinaryExpression:()=>Ib,isLogicalOrCoalescingBinaryOperator:()=>Pb,isMappedTypeNode:()=>bD,isMemberName:()=>F_,isMergeDeclarationMarker:()=>tN,isMetaProperty:()=>nE,isMethodDeclaration:()=>Ww,isMethodOrAccessor:()=>Ol,isMethodSignature:()=>Kw,isMinusToken:()=>hw,isMissingDeclaration:()=>YE,isModifier:()=>vl,isModifierKind:()=>gl,isModifierLike:()=>Ml,isModuleAugmentationExternal:()=>bf,isModuleBlock:()=>LE,isModuleBody:()=>xu,isModuleDeclaration:()=>OE,isModuleExportsAccessExpression:()=>Wg,isModuleIdentifier:()=>Kg,isModuleName:()=>mP,isModuleOrEnumDeclaration:()=>Cu,isModuleReference:()=>Lu,isModuleSpecifierLike:()=>TG,isModuleWithStringLiteralName:()=>pf,isNameOfFunctionDeclaration:()=>FH,isNameOfModuleDeclaration:()=>NH,isNamedClassElement:()=>Ll,isNamedDeclaration:()=>zc,isNamedEvaluation:()=>Jy,isNamedEvaluationSource:()=>jy,isNamedExportBindings:()=>Q_,isNamedExports:()=>GE,isNamedImportBindings:()=>Tu,isNamedImports:()=>KE,isNamedImportsOrExports:()=>tk,isNamedTupleMember:()=>_D,isNamespaceBody:()=>ku,isNamespaceExport:()=>QE,isNamespaceExportDeclaration:()=>RE,isNamespaceImport:()=>VE,isNamespaceReexportDeclaration:()=>gg,isNewExpression:()=>ID,isNewExpressionTarget:()=>lH,isNightly:()=>dv,isNoSubstitutionTemplateLiteral:()=>lw,isNode:()=>$_,isNodeArray:()=>Z_,isNodeArrayMultiLine:()=>xx,isNodeDescendantOf:()=>Gh,isNodeKind:()=>G_,isNodeLikeSystem:()=>Fn,isNodeModulesDirectory:()=>Ba,isNodeWithPossibleHoistedDeclaration:()=>zh,isNonContextualKeyword:()=>gy,isNonExportDefaultModifier:()=>xP,isNonGlobalAmbientModule:()=>ff,isNonGlobalDeclaration:()=>kY,isNonNullAccess:()=>HT,isNonNullChain:()=>q_,isNonNullExpression:()=>tE,isNonStaticMethodOrAccessorWithPrivateName:()=>eJ,isNotEmittedOrPartiallyEmittedNode:()=>uu,isNotEmittedStatement:()=>ZE,isNullishCoalesce:()=>J_,isNumber:()=>bt,isNumericLiteral:()=>ow,isNumericLiteralName:()=>MT,isObjectBindingElementWithoutPropertyName:()=>CG,isObjectBindingOrAssignmentElement:()=>$l,isObjectBindingOrAssignmentPattern:()=>Hl,isObjectBindingPattern:()=>CD,isObjectLiteralElement:()=>Xu,isObjectLiteralElementLike:()=>jl,isObjectLiteralExpression:()=>ED,isObjectLiteralMethod:()=>Pm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>Im,isObjectTypeDeclaration:()=>Gx,isOctalDigit:()=>Ts,isOmittedExpression:()=>XD,isOptionalChain:()=>M_,isOptionalChainRoot:()=>R_,isOptionalDeclaration:()=>WT,isOptionalJSDocPropertyLikeTag:()=>qT,isOptionalTypeNode:()=>lD,isOuterExpression:()=>zF,isOutermostOptionalChain:()=>j_,isOverrideModifier:()=>Ow,isPackedArrayLiteral:()=>AT,isParameter:()=>Uw,isParameterDeclaration:()=>Uy,isParameterOrCatchClauseVariable:()=>IT,isParameterPropertyDeclaration:()=>vc,isParameterPropertyModifier:()=>hl,isParenthesizedExpression:()=>MD,isParenthesizedTypeNode:()=>gD,isParseTreeNode:()=>Nc,isPartOfTypeNode:()=>hm,isPartOfTypeQuery:()=>mg,isPartiallyEmittedExpression:()=>iE,isPatternMatch:()=>hn,isPinnedComment:()=>Wp,isPlainJsFile:()=>Ep,isPlusToken:()=>gw,isPossiblyTypeArgumentPosition:()=>D$,isPostfixUnaryExpression:()=>VD,isPrefixUnaryExpression:()=>qD,isPrivateIdentifier:()=>Cw,isPrivateIdentifierClassElementDeclaration:()=>fl,isPrivateIdentifierPropertyAccessExpression:()=>ml,isPrivateIdentifierSymbol:()=>Ly,isProgramBundleEmitBuildInfo:()=>_V,isProgramUptoDate:()=>Dq,isPrologueDirective:()=>lm,isPropertyAccessChain:()=>I_,isPropertyAccessEntityNameExpression:()=>Vb,isPropertyAccessExpression:()=>ND,isPropertyAccessOrQualifiedName:()=>Zl,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Yl,isPropertyAssignment:()=>vN,isPropertyDeclaration:()=>Qw,isPropertyName:()=>xl,isPropertyNameLiteral:()=>Ey,isPropertySignature:()=>Vw,isProtoSetter:()=>Ry,isPrototypeAccess:()=>Kb,isPrototypePropertyAssignment:()=>ah,isPunctuation:()=>j$,isPushOrUnshiftIdentifier:()=>zy,isQualifiedName:()=>jw,isQuestionDotToken:()=>kw,isQuestionOrExclamationToken:()=>uP,isQuestionOrPlusOrMinusToken:()=>fP,isQuestionToken:()=>bw,isRawSourceMap:()=>kj,isReadonlyKeyword:()=>Fw,isReadonlyKeywordOrPlusOrMinusToken:()=>pP,isRecognizedTripleSlashComment:()=>Kp,isReferenceFileLocation:()=>Aq,isReferencedFile:()=>Cq,isRegularExpressionLiteral:()=>_w,isRequireCall:()=>Dg,isRequireVariableStatement:()=>Ig,isRestParameter:()=>rd,isRestTypeNode:()=>uD,isReturnStatement:()=>bE,isReturnStatementWithFixablePromiseHandler:()=>o0,isRightSideOfAccessExpression:()=>Hb,isRightSideOfPropertyAccess:()=>DH,isRightSideOfQualifiedName:()=>wH,isRightSideOfQualifiedNameOrPropertyAccess:()=>Wb,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>$b,isRootedDiskPath:()=>$o,isSameEntityName:()=>qg,isSatisfiesExpression:()=>eE,isScopeMarker:()=>pu,isSemicolonClassElement:()=>sE,isSetAccessor:()=>Qu,isSetAccessorDeclaration:()=>Xw,isShebangTrivia:()=>Es,isShorthandAmbientModuleSymbol:()=>gf,isShorthandPropertyAssignment:()=>bN,isSignedNumericLiteral:()=>Cy,isSimpleCopiableExpression:()=>Vj,isSimpleInlineableExpression:()=>Qj,isSingleOrDoubleQuote:()=>Og,isSourceFile:()=>TN,isSourceFileFromLibrary:()=>EY,isSourceFileJS:()=>xg,isSourceFileNotJS:()=>kg,isSourceFileNotJson:()=>Cg,isSourceMapping:()=>Aj,isSpecialPropertyDeclaration:()=>sh,isSpreadAssignment:()=>xN,isSpreadElement:()=>$D,isStatement:()=>Iu,isStatementButNotDeclaration:()=>Pu,isStatementOrBlock:()=>Ou,isStatementWithLocals:()=>Np,isStatic:()=>_b,isStaticModifier:()=>Pw,isString:()=>vt,isStringAKeyword:()=>vy,isStringANonContextualKeyword:()=>yy,isStringAndEmptyAnonymousObjectIntersection:()=>B$,isStringDoubleQuoted:()=>Lg,isStringLiteral:()=>sw,isStringLiteralLike:()=>ed,isStringLiteralOrJsxExpression:()=>ju,isStringLiteralOrTemplate:()=>BX,isStringOrNumericLiteralLike:()=>Ty,isStringOrRegularExpressionOrTemplateLiteral:()=>R$,isStringTextContainingNode:()=>ul,isSuperCall:()=>am,isSuperKeyword:()=>Mw,isSuperOrSuperProperty:()=>Ym,isSuperProperty:()=>Zm,isSupportedSourceFileName:()=>jS,isSwitchStatement:()=>kE,isSyntaxList:()=>fF,isSyntheticExpression:()=>rE,isSyntheticReference:()=>eN,isTagName:()=>AH,isTaggedTemplateExpression:()=>OD,isTaggedTemplateTag:()=>dH,isTemplateExpression:()=>WD,isTemplateHead:()=>uw,isTemplateLiteral:()=>nu,isTemplateLiteralKind:()=>rl,isTemplateLiteralToken:()=>il,isTemplateLiteralTypeNode:()=>TD,isTemplateLiteralTypeSpan:()=>SD,isTemplateMiddle:()=>dw,isTemplateMiddleOrTemplateTail:()=>ol,isTemplateSpan:()=>aE,isTemplateTail:()=>pw,isTextWhiteSpaceLike:()=>LG,isThis:()=>MH,isThisContainerOrFunctionBlock:()=>Wm,isThisIdentifier:()=>Uv,isThisInTypeQuery:()=>qv,isThisInitializedDeclaration:()=>tg,isThisInitializedObjectBindingExpression:()=>ng,isThisProperty:()=>eg,isThisTypeNode:()=>hD,isThisTypeParameter:()=>BT,isThisTypePredicate:()=>Lm,isThrowStatement:()=>TE,isToken:()=>Y_,isTokenKind:()=>X_,isTraceEnabled:()=>aM,isTransientSymbol:()=>op,isTrivia:()=>xy,isTryStatement:()=>CE,isTupleTypeNode:()=>cD,isTypeAlias:()=>bh,isTypeAliasDeclaration:()=>PE,isTypeAssertionExpression:()=>LD,isTypeDeclaration:()=>zT,isTypeElement:()=>Rl,isTypeKeyword:()=>tG,isTypeKeywordToken:()=>nG,isTypeKeywordTokenOrIdentifier:()=>rG,isTypeLiteralNode:()=>aD,isTypeNode:()=>Jl,isTypeNodeKind:()=>Xx,isTypeOfExpression:()=>JD,isTypeOnlyExportDeclaration:()=>cl,isTypeOnlyImportDeclaration:()=>sl,isTypeOnlyImportOrExportDeclaration:()=>_l,isTypeOperatorNode:()=>yD,isTypeParameterDeclaration:()=>zw,isTypePredicateNode:()=>tD,isTypeQueryNode:()=>oD,isTypeReferenceNode:()=>nD,isTypeReferenceType:()=>Yu,isUMDExportSymbol:()=>Kx,isUnaryExpression:()=>ou,isUnaryExpressionWithWrite:()=>su,isUnicodeIdentifierStart:()=>cs,isUnionTypeNode:()=>dD,isUnparsedNode:()=>W_,isUnparsedPrepend:()=>SN,isUnparsedSource:()=>AN,isUnparsedTextLike:()=>K_,isUrl:()=>Ho,isValidBigIntString:()=>pT,isValidESSymbolDeclaration:()=>Dm,isValidTypeOnlyAliasUseSite:()=>fT,isValueSignatureDeclaration:()=>Uh,isVarConst:()=>im,isVariableDeclaration:()=>wE,isVariableDeclarationInVariableStatement:()=>Cm,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Ng,isVariableDeclarationInitializedToRequire:()=>Eg,isVariableDeclarationList:()=>DE,isVariableLike:()=>Sm,isVariableLikeOrAccessor:()=>Tm,isVariableStatement:()=>_E,isVoidExpression:()=>zD,isWatchSet:()=>Ex,isWhileStatement:()=>fE,isWhiteSpaceLike:()=>vs,isWhiteSpaceSingleLine:()=>bs,isWithStatement:()=>xE,isWriteAccess:()=>Mx,isWriteOnlyAccess:()=>Lx,isYieldExpression:()=>HD,jsxModeNeedsExplicitImport:()=>DY,keywordPart:()=>qG,last:()=>je,lastOrUndefined:()=>Be,length:()=>S,libMap:()=>qI,libs:()=>UI,lineBreakPart:()=>rX,linkNamePart:()=>ZG,linkPart:()=>eX,linkTextPart:()=>YG,listFiles:()=>XV,loadModuleFromGlobalCache:()=>PR,loadWithModeAwareCache:()=>kq,makeIdentifierFromModuleName:()=>_f,makeImport:()=>hG,makeImportIfNecessary:()=>gG,makeStringLiteral:()=>yG,mangleScopedPackageName:()=>AR,map:()=>V,mapAllOrFail:()=>Y,mapDefined:()=>Z,mapDefinedEntries:()=>re,mapDefinedIterator:()=>te,mapEntries:()=>ce,mapIterator:()=>Q,mapOneOrMany:()=>dY,mapToDisplayParts:()=>iX,matchFiles:()=>DS,matchPatternOrExact:()=>tT,matchedText:()=>dn,matchesExclude:()=>UL,maybeBind:()=>lt,maybeSetLocalizedDiagnosticMessages:()=>gk,memoize:()=>Ft,memoizeCached:()=>Ot,memoizeOne:()=>Pt,memoizeWeak:()=>It,metadataHelper:()=>kA,min:()=>Ut,minAndMax:()=>iT,missingFileModifiedTime:()=>go,modifierToFlag:()=>wb,modifiersToFlags:()=>Ab,moduleOptionDeclaration:()=>WI,moduleResolutionIsEqualTo:()=>xp,moduleResolutionNameAndModeGetter:()=>VU,moduleResolutionOptionDeclarations:()=>ZI,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Gk,moduleResolutionUsesNodeModules:()=>mG,moduleSpecifiers:()=>CB,moveEmitHelpers:()=>cA,moveRangeEnd:()=>cx,moveRangePastDecorators:()=>lx,moveRangePastModifiers:()=>ux,moveRangePos:()=>_x,moveSyntheticComments:()=>tA,mutateMap:()=>zx,mutateMapSkippingNewValues:()=>Jx,needsParentheses:()=>OX,needsScopeMarker:()=>mu,newCaseClauseTracker:()=>NY,newPrivateEnvironment:()=>aJ,noEmitNotification:()=>jz,noEmitSubstitution:()=>Bz,noTransformers:()=>Ez,noTruncationMaximumTruncationLength:()=>sd,nodeCanBeDecorated:()=>og,nodeHasName:()=>jc,nodeIsDecorated:()=>ag,nodeIsMissing:()=>Lp,nodeIsPresent:()=>Mp,nodeIsSynthesized:()=>Qy,nodeModuleNameResolver:()=>qM,nodeModulesPathPart:()=>nM,nodeNextJsonConfigResolver:()=>VM,nodeOrChildIsDecorated:()=>sg,nodeOverlapsWithStartEnd:()=>QH,nodePosToString:()=>Pp,nodeSeenTracker:()=>oG,nodeStartsNewLexicalEnvironment:()=>Vy,nodeToDisplayParts:()=>cX,noop:()=>St,noopFileWatcher:()=>MV,noopPush:()=>_,normalizePath:()=>va,normalizeSlashes:()=>pa,not:()=>bn,notImplemented:()=>Nt,notImplementedResolver:()=>Uz,nullNodeConverters:()=>rC,nullParenthesizerRules:()=>eC,nullTransformationContext:()=>Nz,objectAllocator:()=>Fd,operatorPart:()=>QG,optionDeclarations:()=>$I,optionMapToObject:()=>rL,optionsAffectingProgramStructure:()=>tO,optionsForBuild:()=>rO,optionsForWatch:()=>VI,optionsHaveChanges:()=>_p,optionsHaveModuleResolutionChanges:()=>sp,or:()=>vn,orderedRemoveItem:()=>an,orderedRemoveItemAt:()=>sn,outFile:()=>Av,packageIdToPackageName:()=>kp,packageIdToString:()=>Sp,padLeft:()=>An,padRight:()=>wn,paramHelper:()=>SA,parameterIsThisKeyword:()=>zv,parameterNamePart:()=>KG,parseBaseNodeFactory:()=>UP,parseBigInt:()=>uT,parseBuildCommand:()=>jO,parseCommandLine:()=>LO,parseCommandLineWorker:()=>IO,parseConfigFileTextToJson:()=>qO,parseConfigFileWithSystem:()=>VV,parseConfigHostFromCompilerHostLike:()=>Lq,parseCustomTypeOption:()=>EO,parseIsolatedEntityName:()=>CI,parseIsolatedJSDocComment:()=>EI,parseJSDocTypeExpressionForTests:()=>NI,parseJsonConfigFileContent:()=>fL,parseJsonSourceFileConfigFileContent:()=>mL,parseJsonText:()=>AI,parseListTypeOption:()=>NO,parseNodeFactory:()=>qP,parseNodeModuleFromPath:()=>$M,parsePackageName:()=>pR,parsePseudoBigInt:()=>_T,parseValidBigInt:()=>dT,patchWriteFileEnsuringDirectory:()=>jo,pathContainsNodeModules:()=>HM,pathIsAbsolute:()=>Xo,pathIsBareSpecifier:()=>Zo,pathIsRelative:()=>Yo,patternText:()=>un,perfLogger:()=>gr,performIncrementalCompilation:()=>gQ,performance:()=>zr,plainJSErrors:()=>WU,positionBelongsToNode:()=>WH,positionIsASICandidate:()=>KX,positionIsSynthesized:()=>HS,positionsAreOnSameLine:()=>kx,preProcessFile:()=>WZ,probablyUsesSemicolons:()=>WX,processCommentPragmas:()=>PI,processPragmasIntoFields:()=>II,processTaggedTemplateExpression:()=>SJ,programContainsEsModules:()=>uG,programContainsModules:()=>lG,projectReferenceIsEqualTo:()=>bp,propKeyHelper:()=>RA,propertyNamePart:()=>WG,pseudoBigIntToString:()=>lT,punctuationPart:()=>VG,pushIfUnique:()=>we,quote:()=>MX,quotePreferenceFromString:()=>vG,rangeContainsPosition:()=>JH,rangeContainsPositionExclusive:()=>zH,rangeContainsRange:()=>BH,rangeContainsRangeExclusive:()=>jH,rangeContainsStartEnd:()=>qH,rangeEndIsOnSameLineAsRangeStart:()=>yx,rangeEndPositionsAreOnSameLine:()=>gx,rangeEquals:()=>Ie,rangeIsOnSingleLine:()=>fx,rangeOfNode:()=>oT,rangeOfTypeParameters:()=>aT,rangeOverlapsWithStartEnd:()=>VH,rangeStartIsOnSameLineAsRangeEnd:()=>hx,rangeStartPositionsAreOnSameLine:()=>mx,readBuilderProgram:()=>yQ,readConfigFile:()=>UO,readHelper:()=>LA,readJson:()=>ix,readJsonConfigFile:()=>VO,readJsonOrUndefined:()=>rx,realizeDiagnostics:()=>A2,reduceEachLeadingCommentRange:()=>Os,reduceEachTrailingCommentRange:()=>Ls,reduceLeft:()=>Ke,reduceLeftIterator:()=>D,reducePathComponents:()=>fa,refactor:()=>kle,regExpEscape:()=>yS,relativeComplement:()=>ke,removeAllComments:()=>MC,removeEmitHelper:()=>aA,removeExtension:()=>VS,removeFileExtension:()=>US,removeIgnoredPath:()=>NV,removeMinAndVersionNumbers:()=>on,removeOptionality:()=>w$,removePrefix:()=>mn,removeSuffix:()=>tn,removeTrailingDirectorySeparator:()=>ka,repeatString:()=>sG,replaceElement:()=>qe,resolutionExtensionIsTSOrJson:()=>GS,resolveConfigFileProjectName:()=>CQ,resolveJSModule:()=>zM,resolveModuleName:()=>jM,resolveModuleNameFromCache:()=>BM,resolvePackageNameToPackageJson:()=>TM,resolvePath:()=>ga,resolveProjectReferencePath:()=>Rq,resolveTripleslashReference:()=>XU,resolveTypeReferenceDirective:()=>xM,resolvingEmptyArray:()=>id,restHelper:()=>FA,returnFalse:()=>Tt,returnNoopFileWatcher:()=>RV,returnTrue:()=>Ct,returnUndefined:()=>At,returnsPromise:()=>i0,runInitializersHelper:()=>CA,sameFlatMap:()=>X,sameMap:()=>K,sameMapping:()=>Cj,scanShebangTrivia:()=>Ns,scanTokenAtPosition:()=>Yf,scanner:()=>GW,screenStartingMessageCodes:()=>LV,semanticDiagnosticsOptionDeclarations:()=>GI,serializeCompilerOptions:()=>sL,server:()=>SW,servicesVersion:()=>D1,setCommentRange:()=>HC,setConfigFileInOptions:()=>gL,setConstantValue:()=>rA,setEachParent:()=>ST,setEmitFlags:()=>RC,setFunctionNameHelper:()=>BA,setGetSourceFileAsHashVersioned:()=>lQ,setIdentifierAutoGenerate:()=>gA,setIdentifierGeneratedImportReference:()=>yA,setIdentifierTypeArguments:()=>fA,setInternalEmitFlags:()=>jC,setLocalizedDiagnosticMessages:()=>mk,setModuleDefaultHelper:()=>UA,setNodeFlags:()=>xT,setObjectAllocator:()=>pk,setOriginalNode:()=>PC,setParent:()=>kT,setParentRecursive:()=>TT,setPrivateIdentifier:()=>cJ,setResolvedModule:()=>hp,setResolvedTypeReferenceDirective:()=>yp,setSnippetElement:()=>lA,setSourceMapRange:()=>UC,setStackTraceLimit:()=>Ao,setStartsOnNewLine:()=>KC,setSyntheticLeadingComments:()=>GC,setSyntheticTrailingComments:()=>ZC,setSys:()=>Jo,setSysLog:()=>Oo,setTextRange:()=>OP,setTextRangeEnd:()=>yT,setTextRangePos:()=>hT,setTextRangePosEnd:()=>vT,setTextRangePosWidth:()=>bT,setTokenSourceMapRange:()=>VC,setTypeNode:()=>dA,setUILocale:()=>Ht,setValueDeclaration:()=>ch,shouldAllowImportingTsExtension:()=>FR,shouldPreserveConstEnums:()=>nS,shouldResolveJsRequire:()=>Xk,shouldUseUriStyleNodeCoreModules:()=>TY,showModuleSpecifier:()=>Wx,signatureHasLiteralTypes:()=>YB,signatureHasRestParameter:()=>XB,signatureToDisplayParts:()=>sX,single:()=>ze,singleElementArray:()=>kn,singleIterator:()=>ae,singleOrMany:()=>Ue,singleOrUndefined:()=>Je,skipAlias:()=>Ix,skipAssertions:()=>VF,skipConstraint:()=>cG,skipOuterExpressions:()=>UF,skipParentheses:()=>Hh,skipPartiallyEmittedExpressions:()=>U_,skipTrivia:()=>As,skipTypeChecking:()=>sT,skipTypeParentheses:()=>Wh,skipWhile:()=>En,sliceAfter:()=>nT,some:()=>_e,sort:()=>Ne,sortAndDeduplicate:()=>he,sortAndDeduplicateDiagnostics:()=>Ys,sourceFileAffectingCompilerOptions:()=>eO,sourceFileMayBeEmitted:()=>Ev,sourceMapCommentRegExp:()=>fj,sourceMapCommentRegExpDontCareLineStart:()=>pj,spacePart:()=>UG,spanMap:()=>se,spreadArrayHelper:()=>MA,stableSort:()=>Pe,startEndContainsRange:()=>UH,startEndOverlapsWithStartEnd:()=>KH,startOnNewLine:()=>QF,startTracing:()=>Vr,startsWith:()=>fn,startsWithDirectory:()=>Fa,startsWithUnderscore:()=>bY,startsWithUseStrict:()=>MF,stringContains:()=>rn,stringContainsAt:()=>vY,stringToToken:()=>ls,stripQuotes:()=>cv,supportedDeclarationExtensions:()=>Gd,supportedJSExtensions:()=>Kd,supportedJSExtensionsFlat:()=>Wd,supportedLocaleDirectories:()=>Hs,supportedTSExtensions:()=>Ud,supportedTSExtensionsFlat:()=>qd,supportedTSImplementationExtensions:()=>Xd,suppressLeadingAndTrailingTrivia:()=>xX,suppressLeadingTrivia:()=>kX,suppressTrailingTrivia:()=>SX,symbolEscapedNameNoDefault:()=>SG,symbolName:()=>Mc,symbolNameNoDefault:()=>kG,symbolPart:()=>JG,symbolToDisplayParts:()=>aX,syntaxMayBeASICandidate:()=>iH,syntaxRequiresTrailingSemicolonOrASI:()=>QX,sys:()=>So,sysLog:()=>Io,tagNamesAreEquivalent:()=>RI,takeWhile:()=>Dn,targetOptionDeclaration:()=>KI,templateObjectHelper:()=>OA,testFormatSettings:()=>MW,textChangeRangeIsUnchanged:()=>mc,textChangeRangeNewSpan:()=>fc,textChanges:()=>rde,textOrKeywordPart:()=>HG,textPart:()=>$G,textRangeContainsPositionInclusive:()=>rc,textSpanContainsPosition:()=>nc,textSpanContainsTextSpan:()=>ic,textSpanEnd:()=>ec,textSpanIntersection:()=>uc,textSpanIntersectsWith:()=>cc,textSpanIntersectsWithPosition:()=>lc,textSpanIntersectsWithTextSpan:()=>sc,textSpanIsEmpty:()=>tc,textSpanOverlap:()=>ac,textSpanOverlapsWith:()=>oc,textSpansEqual:()=>PG,textToKeywordObj:()=>Ua,timestamp:()=>_r,toArray:()=>yt,toBuilderFileEmit:()=>bV,toBuilderStateFileInfoForMultiEmit:()=>vV,toEditorSettings:()=>Y1,toFileNameLowerCase:()=>Et,toLowerCase:()=>Dt,toPath:()=>xa,toProgramEmitPending:()=>xV,tokenIsIdentifierOrKeyword:()=>os,tokenIsIdentifierOrKeywordOrGreaterThan:()=>as,tokenToString:()=>_s,trace:()=>oM,tracing:()=>Ur,tracingEnabled:()=>qr,transform:()=>d2,transformClassFields:()=>NJ,transformDeclarations:()=>Az,transformECMAScriptModule:()=>fz,transformES2015:()=>rz,transformES2016:()=>ez,transformES2017:()=>BJ,transformES2018:()=>zJ,transformES2019:()=>qJ,transformES2020:()=>QJ,transformES2021:()=>WJ,transformES5:()=>oz,transformESDecorators:()=>MJ,transformESNext:()=>$J,transformGenerators:()=>sz,transformJsx:()=>YJ,transformLegacyDecorators:()=>OJ,transformModule:()=>lz,transformNodeModule:()=>gz,transformNodes:()=>Jz,transformSystemModule:()=>dz,transformTypeScript:()=>DJ,transpile:()=>g0,transpileModule:()=>m0,transpileOptionValueCompilerOptions:()=>nO,trimString:()=>m,trimStringEnd:()=>g,trimStringStart:()=>h,tryAddToSet:()=>oe,tryAndIgnoreErrors:()=>YX,tryCast:()=>xt,tryDirectoryExists:()=>XX,tryExtractTSExtension:()=>Zb,tryFileExists:()=>GX,tryGetClassExtendingExpressionWithTypeArguments:()=>Lb,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>Mb,tryGetDirectories:()=>HX,tryGetExtensionFromPath:()=>ZS,tryGetImportFromModuleSpecifier:()=>dh,tryGetJSDocSatisfiesTypeNode:()=>XT,tryGetModuleNameFromFile:()=>YF,tryGetModuleSpecifierFromDeclaration:()=>lh,tryGetNativePerformanceHooks:()=>dr,tryGetPropertyAccessOrIdentifierToString:()=>Qb,tryGetPropertyNameOfBindingOrAssignmentElement:()=>rP,tryGetSourceMappingURL:()=>bj,tryGetTextOfPropertyName:()=>Bf,tryIOAndConsumeErrors:()=>ZX,tryParsePattern:()=>KS,tryParsePatterns:()=>WS,tryParseRawSourceMap:()=>Sj,tryReadDirectory:()=>$X,tryReadFile:()=>QO,tryRemoveDirectoryPrefix:()=>hS,tryRemoveExtension:()=>qS,tryRemovePrefix:()=>gn,tryRemoveSuffix:()=>nn,typeAcquisitionDeclarations:()=>oO,typeAliasNamePart:()=>GG,typeDirectiveIsEqualTo:()=>Tp,typeKeywords:()=>ZW,typeParameterNamePart:()=>XG,typeReferenceResolutionNameAndModeGetter:()=>QU,typeToDisplayParts:()=>oX,unchangedPollThresholds:()=>vo,unchangedTextChangeRange:()=>Ws,unescapeLeadingUnderscores:()=>Ic,unmangleScopedPackageName:()=>DR,unorderedRemoveItem:()=>_n,unorderedRemoveItemAt:()=>cn,unreachableCodeIsError:()=>Qk,unusedLabelIsError:()=>Kk,unwrapInnermostStatementOfLabel:()=>Nm,updateErrorForNoInputFiles:()=>SL,updateLanguageServiceSourceFile:()=>o2,updateMissingFilePathsWatch:()=>EU,updatePackageJsonWatch:()=>DU,updateResolutionField:()=>mM,updateSharedExtendedConfigFileWatcher:()=>CU,updateSourceFile:()=>DI,updateWatchingWildcardDirectories:()=>NU,usesExtensionsOnImports:()=>RS,usingSingleLineStringWriter:()=>fp,utf16EncodeAsString:()=>Ks,validateLocaleAndSetLanguage:()=>wc,valuesHelper:()=>jA,version:()=>t,versionMajorMinor:()=>e,visitArray:()=>rj,visitCommaListElements:()=>lj,visitEachChild:()=>uj,visitFunctionBody:()=>cj,visitIterationBody:()=>_j,visitLexicalEnvironment:()=>oj,visitNode:()=>tj,visitNodes:()=>nj,visitParameterList:()=>aj,walkUpBindingElementsAndPatterns:()=>kc,walkUpLexicalEnvironments:()=>oJ,walkUpOuterExpressions:()=>qF,walkUpParenthesizedExpressions:()=>Qh,walkUpParenthesizedTypes:()=>Vh,walkUpParenthesizedTypesAndGetParentAndChild:()=>Kh,whitespaceOrMapCommentRegExp:()=>mj,writeCommentRange:()=>nb,writeFile:()=>Pv,writeFileEnsuringDirectories:()=>Ov,zipToModeAwareCache:()=>PM,zipWith:()=>E});var bfe,xfe,kfe=b({"src/typescript/_namespaces/ts.ts"(){XK(),HW(),lfe(),yfe()}});return(bfe={"src/typescript/typescript.ts"(e,t){kfe(),kfe(),void 0!==console&&(In.loggingHost={log(e,t){switch(e){case 1:return console.error(t);case 2:return console.warn(t);case 3:case 4:return console.log(t)}}}),t.exports=vfe}},function(){return xfe||(0,bfe[v(bfe)[0]])((xfe={exports:{}}).exports,xfe),xfe.exports})()})(),re.exports&&(re.exports=ie);var ae=te(oe.exports); +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const se={target:ae.ScriptTarget.ES2021,module:ae.ModuleKind.ESNext,experimentalDecorators:!0,skipDefaultLibCheck:!0,skipLibCheck:!0,allowJs:!0,moduleResolution:ae.ModuleResolutionKind.NodeNext,jsx:ae.JsxEmit.React,lib:["dom","esnext"]};class ce{constructor(){this.compilerOptions=se,this.serviceHost=new _e(self.origin,se),this.service=ae.createLanguageService(this.serviceHost,ae.createDocumentRegistry())}}class _e{constructor(e,t){this.files=new Map,this.packageRoot=e,this.compilerOptions=t}updateFileContentIfNeeded(e,t){const n=this.files.get(e);n&&n.content!==t?(n.content=t,n.version+=1):this.files.set(e,{content:t,version:0})}sync(e){e.forEach(((e,t)=>this.updateFileContentIfNeeded(t,e))),this._removeDeletedFiles(e)}_removeDeletedFiles(e){this.getScriptFileNames().forEach((t=>{t.includes("node_modules")||e.has(t)||this.files.delete(t)}))}getCompilationSettings(){return this.compilerOptions}getScriptFileNames(){return[...this.files.keys()]}getScriptVersion(e){var t,n;return null!==(n=null===(t=this.files.get(e))||void 0===t?void 0:t.version.toString())&&void 0!==n?n:"-1"}fileExists(e){return this.files.has(e)}readFile(e){var t;return null===(t=this.files.get(e))||void 0===t?void 0:t.content}getScriptSnapshot(e){if(this.fileExists(e))return ae.ScriptSnapshot.fromString(this.readFile(e))}getCurrentDirectory(){return this.packageRoot}getDefaultLibFileName(){return"__lib.d.ts"}} +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */class le{constructor(e){this._fetchCache=new Map,this._versionCache=new Map,this._urlPrefix=e}async fetch(e){const{file:t}=await this._fetch(e);return t}async canonicalize(e){let t=E(e.version);if(!t){const n=N(e),r=this._versionCache.get(n);void 0!==r&&(e={...e,version:r},t=!0)}if(!t||""===A(e.path)){const{url:t}=await this._fetch(e);e=this._parseUnpkgUrl(t)}return e}async resolveVersion({pkg:e,version:t}){return(await this.canonicalize({pkg:e,version:t,path:"package.json"})).version}async fetchPackageJson({pkg:e,version:t}){const{url:n,file:{content:r}}=await this._fetch({pkg:e,version:t,path:"package.json"});try{return JSON.parse(r)}catch(e){throw Error(`Error parsing CDN package.json from ${n}: ${e}`)}}async _fetch(e){var t;let n=E(e.version);if(!n){const t=N(e),r=this._versionCache.get(t);void 0!==r&&(e={...e,version:r},n=!0)}const r=F(e),i=this._fetchCache.get(r);if(void 0!==i)return i.promise;const o=new O;this._fetchCache.set(r,o);const a=this._urlPrefix+r,s=await fetch(a),c=await s.text();if(200!==s.status){const e=Error(`CDN HTTP ${s.status} error (${a}): ${c}`);return o.reject(e),o.promise}if(!n){const t=this._parseUnpkgUrl(s.url);this._versionCache.set(N(e),t.version),this._fetchCache.set(F(t),o)}const _={url:s.url,file:{content:c,contentType:null!==(t=s.headers.get("content-type"))&&void 0!==t?t:"text/plain"}};return o.resolve(_),o.promise}_parseUnpkgUrl(e){if(e.startsWith(this._urlPrefix)){const t=C(e.slice(this._urlPrefix.length));if(void 0!==t)return t}throw Error("Unexpected CDN URL format: "+e)}} +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */class ue{constructor(e){this.importMap=e}resolve(e){var t;for(const[n,r]of Object.entries(null!==(t=this.importMap.imports)&&void 0!==t?t:{})){if(n===e)return r;if(n.endsWith("/")&&e.startsWith(n)){if(!r.endsWith("/"))return console.warn(`Could not resolve module specifier "${e}" using import map key "${n}" because address "${r}" must end in a forward-slash.`),null;const t=e.substring(n.length);let i;try{i=new URL(t,r)}catch{return console.warn(`Could not resolve module specifier "${e}" using import map key "${n}" because "${t}" could not be parsed relative to "${r}".`),null}const o=i.href;return o.startsWith(r)?o:(console.warn(`Could not resolve module specifier "${e}" using import map key "${n}" because "${t}" backtracked above "${r}".`),null)}}return null}} +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */let de,pe="";function fe(e){const t=JSON.stringify(e);return de&&pe===t||(pe=t,de=new me(e)),de}class me{constructor(e){var t;this.importMapResolver=new ue(e.importMap),this.cdn=new le(null!==(t=e.cdnBaseUrl)&&void 0!==t?t:"https://unpkg.com/"),this.languageServiceContext=new ce}} +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */class ge{layout(e,t){var n,r;const i={},o=[{dependencies:e,nodeModules:i,parent:null}];for(;o.length>0;){const e=o.shift();for(const[i,a]of Object.entries(e.dependencies)){let s=e,c=!1;for(;null!==s.parent;){const e=null===(n=s.parent.nodeModules[i])||void 0===n?void 0:n.version;if(void 0!==e){c=e===a;break}s=s.parent}if(c)continue;const _={};s.nodeModules[i]={version:a,nodeModules:_};const l=null===(r=t[i])||void 0===r?void 0:r[a];void 0!==l&&o.push({dependencies:l,nodeModules:_,parent:s})}}return i}} +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const he=Symbol();class ye{static async fetchTypes(e,t,n,r,i){const o=new ye(e,t,n);await Promise.allSettled([...r.map((e=>o._handleBareAndRelativeSpecifiers(e,he))),...i.map((e=>o._addTypeScriptStandardLib(e))),o._fetchTypesPackages()]);const a=(new ge).layout(o._rootDependencies,o._dependencyGraph),s=new Map;return await o._materializeNodeModulesTree(a,s,""),{files:s,layout:a,dependencyGraph:{root:o._rootDependencies,deps:o._dependencyGraph}}}constructor(e,t,n){this._rootDependencies={},this._dependencyGraph={},this._filesByPackageVersion=new Map,this._cdn=e,this._importMapResolver=t,this._rootPackageJson=n}async _fetchTypesPackages(){if(void 0===this._rootPackageJson||void 0===this._rootPackageJson.dependencies)return;const e=Object.keys(this._rootPackageJson.dependencies).filter((e=>e.startsWith("@types/")));0!==e.length&&await Promise.allSettled(e.map((e=>this._handleBareSpecifier(e,he))))}async _addTypeScriptStandardLib(e){return this._handleBareSpecifier(`typescript/lib/lib.${e.toLowerCase()}.js`,he)}async _handleBareAndRelativeSpecifiers(e,t){const n=ae.preProcessFile(e,void 0,!0),r=[];for(const{fileName:e}of n.importedFiles){const n=T(e);"bare"===n?r.push(this._handleBareSpecifier(e,t)):"relative"===n&&t!==he&&r.push(this._handleRelativeSpecifier(e,t))}for(const{fileName:e}of n.libReferenceDirectives)r.push(this._addTypeScriptStandardLib(e));await Promise.allSettled(r)}async _handleBareSpecifier(e,t){var n,r;let i=C(e);if(void 0===i)return;const o=null!==this._importMapResolver.resolve(e);if(o||(i.version=await this._getDependencyVersion(t,i.pkg)),i.path=await this._getDtsPath(i),o||(i=await this._cdn.canonicalize(i)),t!==he&&i.pkg===t.pkg||this._addEdgeToDependencyGraph(t,i),void 0!==(null===(r=null===(n=this._filesByPackageVersion.get(i.pkg))||void 0===n?void 0:n.get(i.version))||void 0===r?void 0:r.get(i.path)))return;const a=await this._fetchAndAddToOutputFiles(i);void 0===a.error&&await this._handleBareAndRelativeSpecifiers(a.result,i)}async _handleRelativeSpecifier(e,t){var n,r;const i={pkg:t.pkg,version:t.version,path:P(S(t.path,e).slice(1))};if(i.path=w(i.path,"d.ts"),void 0!==(null===(r=null===(n=this._filesByPackageVersion.get(i.pkg))||void 0===n?void 0:n.get(i.version))||void 0===r?void 0:r.get(i.path)))return;const o=await this._fetchAndAddToOutputFiles(i);void 0===o.error&&await this._handleBareAndRelativeSpecifiers(o.result,i)}async _getDependencyVersion(e,t){var n,r;const i=e===he?this._rootPackageJson:await this._fetchPackageJsonAndAddToOutputFiles(e);return null!==(r=null===(n=null==i?void 0:i.dependencies)||void 0===n?void 0:n[t])&&void 0!==r?r:"latest"}async _getDtsPath(e){var t,n,r;if(""!==e.path)return w(e.path,"d.ts");const i=await this._fetchPackageJsonAndAddToOutputFiles(e);return null!==(r=null!==(n=null!==(t=null==i?void 0:i.typings)&&void 0!==t?t:null==i?void 0:i.types)&&void 0!==n?n:void 0!==(null==i?void 0:i.main)?w(i.main,"d.ts"):void 0)&&void 0!==r?r:"index.d.ts"}async _fetchPackageJsonAndAddToOutputFiles(e){const t=await this._fetchAndAddToOutputFiles({...e,path:"package.json"});if(void 0!==t.error)throw Error(`Could not fetch package.json for ${e.pkg}@${e.version}: ${t.error}`);return JSON.parse(t.result)}async _fetchAndAddToOutputFiles(e){const t=this._importMapResolver.resolve(I(`${e.pkg}/${e.path}`));null===t&&(e=await this._cdn.canonicalize(e));let n=this._filesByPackageVersion.get(e.pkg);void 0===n&&(n=new Map,this._filesByPackageVersion.set(e.pkg,n));let r=n.get(e.version);void 0===r&&(r=new Map,n.set(e.version,r));let i=r.get(e.path);if(void 0!==i)return i;const o=new O;let a;if(i=o.promise,r.set(e.path,i),null!==t){const e=await fetch(t);if(200!==e.status){const t={error:e.status};return o.resolve(t),t}a=await e.text()}else try{a=(await this._cdn.fetch(e)).content}catch{const e={error:404};return o.resolve(e),e}const s={result:a};return o.resolve(s),s}_addEdgeToDependencyGraph(e,t){if(e===he)this._rootDependencies[t.pkg]=t.version;else{let n=this._dependencyGraph[e.pkg];void 0===n&&(n={},this._dependencyGraph[e.pkg]=n);let r=n[e.version];void 0===r&&(r={},n[e.version]=r),r[t.pkg]=t.version}}async _materializeNodeModulesTree(e,t,n){var r;for(const[i,o]of Object.entries(e)){const e=null===(r=this._filesByPackageVersion.get(i))||void 0===r?void 0:r.get(o.version);if(void 0!==e){for(const[r,o]of e){const e=await o;if(void 0===e.error){const o=`${n}${i}/${r}`;t.set(o,e.result)}}await this._materializeNodeModulesTree(o.nodeModules,t,`${n}${i}/node_modules/`)}}}} +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */function ve(e){var t;return{code:e.code,source:null!==(t=e.source)&&void 0!==t?t:"typescript",message:ae.flattenDiagnosticMessageText(e.messageText,"\n"),severity:be[e.category],range:{start:void 0!==e.file&&void 0!==e.start?e.file.getLineAndCharacterOfPosition(e.start):{character:0,line:0},end:void 0!==e.file&&void 0!==e.start&&void 0!==e.length?e.file.getLineAndCharacterOfPosition(e.start+e.length):{character:0,line:0}}}}const be={[ae.DiagnosticCategory.Error]:1,[ae.DiagnosticCategory.Warning]:2,[ae.DiagnosticCategory.Message]:3,[ae.DiagnosticCategory.Suggestion]:4}; +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */function xe(e){if(!e||0===e.length)return"";let t="";return e.forEach((e=>{t+=e.text})),t}function ke(e){var t;return null!==(t=null==e?void 0:e.map((e=>e.text)))&&void 0!==t?t:[]} +/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const Se={compileProject:async(e,t,n)=>{const r=fe(t),i=new G(r.cdn,r.importMapResolver).process(async function*(e,t){const n=e.languageServiceContext.service,r=e.languageServiceContext.serviceHost;let i;const o=[];for await(const e of t)if("file"===e.kind&&(e.file.name.endsWith(".ts")||e.file.name.endsWith(".jsx")||e.file.name.endsWith(".tsx")))o.push(e.file);else if(yield e,"file"===e.kind&&"package.json"===e.file.name)try{i=JSON.parse(e.file.content)}catch(e){}if(0===o.length)return;const a=new Map,s=o.map((e=>({file:e,url:new URL(e.name,self.origin).href})));for(const{file:e,url:t}of s)a.set(t,e.content);const c=void 0===i?{type:"module"}:"module"===i.type?i:{...i,type:"module"};a.set(new URL("package.json",self.origin).href,JSON.stringify(c)),r.sync(a);const _=n.getProgram();if(void 0===_)throw Error("Unexpected error: program was undefined");for(const{file:e,url:t}of s){for(const r of n.getSyntacticDiagnostics(t))yield{kind:"diagnostic",filename:e.name,diagnostic:ve(r)};const r=_.getSourceFile(t);let i;_.emit(r,((e,t)=>{i={name:new URL(e).pathname.slice(1),content:t,contentType:"text/javascript"}})),void 0!==i&&(yield{kind:"file",file:i})}const l=await ye.fetchTypes(e.cdn,e.importMapResolver,i,s.map((e=>e.file.content)),e.languageServiceContext.compilerOptions.lib);for(const[e,t]of l.files){const n=new URL("node_modules/"+e,self.origin).href;r.updateFileContentIfNeeded(n,t)}for(const{file:e,url:t}of s)for(const r of n.getSemanticDiagnostics(t))yield{kind:"diagnostic",filename:e.name,diagnostic:ve(r)}} +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */(r,e.map((e=>({kind:"file",file:e})))));for await(const e of i)n(e);n({kind:"done"})},getCompletions:async(e,t,n,r,i)=>{const o=fe(i),a=o.languageServiceContext.service,s=o.languageServiceContext.serviceHost,c={};"."===n&&(c.triggerCharacter=".");const _=new URL(e,self.origin).href;return s.updateFileContentIfNeeded(_,t),a.getCompletionsAtPosition(e,r,c)},getCompletionItemDetails:async(e,t,n,r)=>{var i;const o=fe(n).languageServiceContext.service.getCompletionEntryDetails(e,t,r,void 0,void 0,void 0,void 0);return{text:xe(null==o?void 0:o.displayParts),tags:null!==(i=null==o?void 0:o.tags)&&void 0!==i?i:[],documentation:ke(null==o?void 0:o.documentation)}}};a(Se)}(); diff --git a/assets/playgrounds/rh-accordion-playground.js b/assets/playgrounds/rh-accordion-playground.js index db3309a7dc..73df03f11d 100644 --- a/assets/playgrounds/rh-accordion-playground.js +++ b/assets/playgrounds/rh-accordion-playground.js @@ -8,7 +8,7 @@ export const configure = project => project.config = { "demo/index.html": { "contentType": "text/html", "selected": true, - "content": "\n\n\n\n\n\n

Small / Default Size

\n\n\n \n

Item One

\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n
\n \n

Item Two

\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n
\n \n

Item Three

\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n
\n
\n\n

Large Size

\n\n\n \n

Item One

\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n
\n \n

Item Two

\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n
\n \n

Item Three

\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n
\n
\n\n

Large Size With Nested Accordion

\n\n\n \n

Item One

\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n\n Call To Action\n\n \n \n
Item One
\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n Call To Action\n
\n \n
Item Two
\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n Call To Action\n
\n
\n
\n \n
Item Two
\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n
\n \n
Item Three
\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n
\n
\n", + "content": "\n\n\n\n\n\n

Small / Default Size

\n\n\n \n

Item One

\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n
\n \n

Item Two

\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n
\n \n

Item Three

\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n
\n
\n\n

Large Size

\n\n\n \n

Item One

\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n
\n \n

Item Two

\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n
\n \n

Item Three

\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n
\n
\n\n

Large Size With Nested Accordion

\n\n\n \n

Item One

\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n\n Call To Action\n\n \n \n
Item One
\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n Call To Action\n
\n \n
Item Two
\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n Call To Action\n
\n
\n
\n \n
Item Two
\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n
\n \n
Item Three
\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n
\n
\n\n\n", "label": "Accordion" }, "demo/demo.css": { @@ -22,7 +22,7 @@ export const configure = project => project.config = { "demo/color-context/index.html": { "contentType": "text/html", "selected": false, - "content": "\n\n\n \n \n

Item One

\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n\n Call To Action\n\n \n \n

Forced Palette

\n
\n \n
\n \n
\n Call To Action\n
\n \n

Item Two

\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n Call To Action\n
\n
\n
\n \n

Item Two

\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n
\n \n

Item Three

\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n
\n
\n
\n\n\n\n\n\n\n\n\n\n", + "content": "\n\n\n \n \n

Item One

\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n\n Call To Action\n\n \n \n

Forced Palette

\n
\n \n
\n \n
\n Call To Action\n
\n \n

Item Two

\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n Call To Action\n
\n
\n
\n \n

Item Two

\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n
\n \n

Item Three

\n
\n \n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\n
\n
\n
\n\n\n\n\n\n\n\n\n\n\n\n", "label": "Color Context" }, "demo/color-context/demo.css": { @@ -36,7 +36,7 @@ export const configure = project => project.config = { "demo/right-to-left/index.html": { "contentType": "text/html", "selected": false, - "content": "\n\n\n\n\n\n
\n \n \n

תוכנה חופשית

\n
\n \n

”תוכנה חופשית“ זה עניין של חירות, לא של מחיר. כדי להבין את העקרון, צריך לחשוב על ”חופש“ כמו ב”חופש הביטו“ ולא כמו ב”בירה חופשי“.

\n\n קראו עוד\n\n \n \n

תוכנה חופשית

\n
\n \n

תוכנה היא תוכנה חופשית אם למשתמשים יש את כל החירויות הללו. לפיכך אתם צריכים להיות חופשיים להפיץ עותקים בהפצת-המשך, עם או בלי שינויים, חינם או בעבור תשלום, לכל אחד בכל מקום. החירות לעשות את הדברים האלו פירושו (בין שאר הדברים) שאינכם חייבים לבקש רשות ו/או לשלם בשבילה.

\n קראו עוד\n
\n \n

תוכנה חופשית

\n
\n \n

החופש להריץ את התוכנה פירושו החופש לכל אדם או ארגון להשתמש בתוכנה על כל סוג של מערכת מחשב, לכל מטרה שהיא, ומבלי להדרש ליצור קשר כתוצאה מכך עם המפתח או כל ישות מסוימת אחרת.

\n קראו עוד\n
\n
\n
\n \n

תוכנה חופשית

\n
\n \n

\" החופש להפיץ עותקים בהפצת-המשך חייב לכלול צורות בינאריות או ניתנות-להרצה של התוכנה, כמו גם את קוד-המקור, לגרסאות שעברו שינוי כמו גם לגרסאות שלא שונו. (הפצת תוכנות בצורה ניתנת-להרצה היא חיונית למערכות הפעלה חופשיות נוחות להתקנה.) זה בסדר אם אין דרך להפיק צורה בינארית או ניתנת-להרצה של תוכנה מסוימת (מאחר ומספר שפות לא תומכות בתכונה הזו), אך חייב להיות לכם החופש להפיץ צורות כאלה בהפצת-המשך במידה ומצאתם או פיתחתם דרך לעשות זאת.

\n
\n \n

תוכנה חופשית

\n
\n \n

כדי שהחופש לשנות, והחופש לפרסם גרסאות שעברו שינוי יהיו בעלי משמעות, חייבת להיות לכם גישה לקוד-המקור של התוכנה. לכן נגישות של קוד-המקור היא תנאי הכרחי לתוכנה חופשית.

\n
\n
\n
\n", + "content": "\n\n\n\n\n\n
\n \n \n

תוכנה חופשית

\n
\n \n

”תוכנה חופשית“ זה עניין של חירות, לא של מחיר. כדי להבין את העקרון, צריך לחשוב על ”חופש“ כמו ב”חופש הביטו“ ולא כמו ב”בירה חופשי“.

\n\n קראו עוד\n\n \n \n

תוכנה חופשית

\n
\n \n

תוכנה היא תוכנה חופשית אם למשתמשים יש את כל החירויות הללו. לפיכך אתם צריכים להיות חופשיים להפיץ עותקים בהפצת-המשך, עם או בלי שינויים, חינם או בעבור תשלום, לכל אחד בכל מקום. החירות לעשות את הדברים האלו פירושו (בין שאר הדברים) שאינכם חייבים לבקש רשות ו/או לשלם בשבילה.

\n קראו עוד\n
\n \n

תוכנה חופשית

\n
\n \n

החופש להריץ את התוכנה פירושו החופש לכל אדם או ארגון להשתמש בתוכנה על כל סוג של מערכת מחשב, לכל מטרה שהיא, ומבלי להדרש ליצור קשר כתוצאה מכך עם המפתח או כל ישות מסוימת אחרת.

\n קראו עוד\n
\n
\n
\n \n

תוכנה חופשית

\n
\n \n

\" החופש להפיץ עותקים בהפצת-המשך חייב לכלול צורות בינאריות או ניתנות-להרצה של התוכנה, כמו גם את קוד-המקור, לגרסאות שעברו שינוי כמו גם לגרסאות שלא שונו. (הפצת תוכנות בצורה ניתנת-להרצה היא חיונית למערכות הפעלה חופשיות נוחות להתקנה.) זה בסדר אם אין דרך להפיק צורה בינארית או ניתנת-להרצה של תוכנה מסוימת (מאחר ומספר שפות לא תומכות בתכונה הזו), אך חייב להיות לכם החופש להפיץ צורות כאלה בהפצת-המשך במידה ומצאתם או פיתחתם דרך לעשות זאת.

\n
\n \n

תוכנה חופשית

\n
\n \n

כדי שהחופש לשנות, והחופש לפרסם גרסאות שעברו שינוי יהיו בעלי משמעות, חייבת להיות לכם גישה לקוד-המקור של התוכנה. לכן נגישות של קוד-המקור היא תנאי הכרחי לתוכנה חופשית.

\n
\n
\n
\n\n\n", "label": "Right To Left" }, "demo/right-to-left/demo.css": { diff --git a/assets/playgrounds/rh-alert-playground.js b/assets/playgrounds/rh-alert-playground.js index 1f5a01604c..964d105567 100644 --- a/assets/playgrounds/rh-alert-playground.js +++ b/assets/playgrounds/rh-alert-playground.js @@ -8,7 +8,7 @@ export const configure = project => project.config = { "demo/index.html": { "contentType": "text/html", "selected": true, - "content": "\n

Default

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n\n\n\n", + "content": "\n

Default

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n\n\n\n\n\n", "label": "Alert" }, "demo/demo.css": { @@ -22,25 +22,25 @@ export const configure = project => project.config = { "demo/alternate/index.html": { "contentType": "text/html", "selected": false, - "content": "\n

Inline, alternate

\n\n \n

Default

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Info

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Success

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Warning

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Danger

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n
\n\n\n", + "content": "\n

Inline, alternate

\n\n \n

Default

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Info

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Success

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Warning

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Danger

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n
\n\n\n\n\n", "label": "Alternate" }, "demo/dismissable/index.html": { "contentType": "text/html", "selected": false, - "content": "\n

Dismissable

\n \n

Default dismissable

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Inline dismissable

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Toast dismissable

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Dismissable With Prevent Default

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n
\n\n\n", + "content": "\n

Dismissable

\n \n

Default dismissable

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Inline dismissable

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Toast dismissable

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Dismissable With Prevent Default

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n
\n\n\n\n\n", "label": "Dismissable" }, "demo/states/index.html": { "contentType": "text/html", "selected": false, - "content": "\n

Alert

\n\n \n

Default

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Default

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Info

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Success

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Warning

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Danger

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n
\n\n\n\n

Toast variant

\n \n

Default

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Info

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Success

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Warning

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Danger

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n
\n\n\n

Dismissable

\n \n

Default dismissable

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Inline dismissable

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Toast dismissable

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Dismissable With Prevent Default

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n
\n\n\n", + "content": "\n

Alert

\n\n \n

Default

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Default

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Info

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Success

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Warning

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Danger

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n
\n\n\n\n

Toast variant

\n \n

Default

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Info

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Success

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Warning

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Danger

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n
\n\n\n

Dismissable

\n \n

Default dismissable

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Inline dismissable

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Toast dismissable

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Dismissable With Prevent Default

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n
\n\n\n\n\n", "label": "States" }, "demo/toast/index.html": { "contentType": "text/html", "selected": false, - "content": "\n

Toast variant

\n \n

Default

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Info

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Success

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Warning

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Danger

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n
\n\n\n", + "content": "\n

Toast variant

\n \n

Default

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Info

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Success

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Warning

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n\n \n

Danger

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est\n egestas, a sollicitudin mauris tincidunt.

\n \n \n
\n
\n\n\n\n\n", "label": "Toast" } } diff --git a/assets/playgrounds/rh-audio-player-playground.js b/assets/playgrounds/rh-audio-player-playground.js index 4642de94cc..349ab97a1a 100644 --- a/assets/playgrounds/rh-audio-player-playground.js +++ b/assets/playgrounds/rh-audio-player-playground.js @@ -8,7 +8,7 @@ export const configure = project => project.config = { "demo/index.html": { "contentType": "text/html", "selected": true, - "content": "\n

Code Comments

\n

Bringing Deep Learning to Enterprise Applications

\n \n

About the episode

\n

\n There are a lot of publicly available data sets out there. But when it\n comes to specific enterprise use cases, you're not necessarily going to\n able to find one to train your models. To realize the power of AI/ML in\n enterprise environments, end users need an inference engine to run on\n their hardware. Ryan Loney takes us through OpenVINO and Anomalib, open\n toolkits from Intel that do precisely that. He looks specifically at\n anomaly detection in use cases as varied as medical imaging and\n manufacturing.\n

\n

\n Want to learn more about Anomalib? Check out the research paper that\n introduces the deep learning library.\n

\n \n Ryan Loney\n Product manager, OpenVINO Developer Tools, Intel®\n \n
\n \n \n

Subscribe

\n

Subscribe here:

\n \n \"Listen\n \n \n \"Listen\n \n \n \"Listen\n \n \n \"Subscribe\n \n
\n \n

Transcript

\n \n Hi, I'm Burr Sutter. I'm a Red Hatter who spends a lot of time talking to technologists about technologies. We say this a lot at Red Hat. No single technology provider holds the key to\n success, including us. And I would say the same thing about myself. I love to share ideas, so I thought it would be awesome to talk to some brilliant technologists at Red Hat Partners. This is\n Code Comments, an original podcast from Red Hat.\n \n \n I'm sure, like many of you here, you have been thinking about AI/ML, artificial intelligence and machine learning. I've been thinking about that for quite some time and I actually had the\n opportunity to work on a few successful projects, here at Red Hat, using those technologies, actually enabling a data set, gathering a data set, working with a data scientist and data\n engineering team, and then training a model and putting that model into production runtime environment. It was an exciting set of projects and you can see those on numerous YouTube videos that\n have published out there before. But I want you to think about the problem space a little bit, because there are some interesting challenges about a AI/ML. One is simply just getting access to\n the data, and while there are numerous publicly available data sets, when it comes to your specific enterprise use case, you might not be to find publicly available data.\n \n \n In many cases you cannot, even for our applications that we created, we had to create our data set, capture our data set, explore the data set, and of course, train a model accordingly. And\n we also found there's another challenge to be overcome in this a AI/ML world, and that is access to certain types of hardware. If you think about an enterprise environment and the creation of\n an enterprise application specifically for a AI/ML, end users need an inference engine to run on their hardware. Hardware that's available to them, to be effective for their application. Let's\n say an application like Computer Vision, one that can detect anomalies and medical imaging or maybe on a factory floor. As those things are whizzing by on the factory line there, looking at\n them and trying to determine if there is an error or not.\n \n \n Well, how do you actually make it run on your hardware, your accessible technology that you have today? Well, there's a solution for this as an open toolkit called OpenVINO. And you might be\n thinking, \"Hey, wait a minute, don't you need a GPU for AI inferencing, a GPU for artificial intelligence, machine learning? Well, not according to Ryan Loney, product manager of OpenVINO\n Developer Tools at Intel.\n \n \n I guess I'll start with trying to maybe dispel a myth. I think that CPUs are widely used for inference today. So if we look at the data center segment, about 70% of the AI inference is\n happening on Intel Xeon, on our data center CPUs. And so you don't need a GPU especially for running inference. And that's part of the value of OpenVINO, is that we're taking models that may\n have been trained on a GPU using deep learning frameworks like PyTorch or TensorFlow, and then optimizing them to run on Intel hardware.\n \n \n Ryan joined me to discuss AI/ML in the enterprise across various industries and exploring numerous use cases. Let's talk a little bit about the origin story behind OpenVINO. Tell us more\n about it and how it came to be and why it came out of Intel.\n \n \n Definitely. We had the first release of OpenVINO, was back in 2018, so still relatively new. And at that time, we were focused on Computer Vision and pretty tightly coupled with OpenCV, which\n is another open source library with origins at Intel. It had its first release back in 1999, so it's been around a little bit longer. And many of the software engineers and architects at Intel\n that were involved with and contributing to OpenCV are working on OpenVINO. So you can think of OpenVINO as complimentary software to OpenCV and we're providing an engine for executing\n inferences as part of a Computer Vision pipeline, or at least that's how we started.\n \n \n But since 2018, we've started to move beyond just Computer Vision inference. So when I say Computer Vision inference, I mean image classification, object detection, segmentation, and now\n we're moving into natural language processing. Things like speech synthesis, speech recognition, knowledge graphs, time series forecasting and other use cases that don't involve Computer\n Vision and don't involve inference on pixels. Our latest release, the 2022.1 that came out earlier this year, that was the most significant update that we've had to OpenVINO, since we started\n in 2018. And the major focus of that release was optimizing for use cases that go beyond Computer Vision.\n \n \n And I like that concept that you just mentioned right there, Computer Vision, and you said that you extended those use cases and went beyond that. Could you give us some more concrete\n examples of Computer Vision?\n \n \n Sure. When you think about manufacturing, quality control in factories, everything from arc welding, defect detection to inspecting BMW cars on assembly lines, they're using cameras or\n sensors to collect data and usually it's cameras collecting images like RGB images that you and I can see and looks like something taken from a camera or video camera. But also, things like\n infrared or computerized tomography scans used in healthcare, X-ray, different types of images where we can draw bounding boxes around regions of interest and say, \"This is a defect,\" or,\n \"This is not a defect.\" And also, \"Is this worker wearing a safety hat or did they forget to put it on?\" And so, you can take this and integrate it into a pipeline where you're triggering an\n alert if somebody forgets to wear their safety mask, or if there's a defect in a product on an assembly line, you can just use cameras and OpenVINO and OpenCV running these on Intel hardware\n and help to analyze.\n \n \n And that's what a lot of the partners that we work with are doing, so these independent software vendors. And there's other use cases for things like retail. You think about going to a store\n and using an automated checkout system. Sometimes people use those automated checkouts and they slide a few extra items into their bag that they don't scan and it's a huge loss for the retail\n outlets that are providing this way to check out realtime shelf monitoring. We have a Vispera, one of our ISVs that helps keep store shelves stocked by just analyzing the cameras in the\n stores, detecting when objects are missing from the shelves so that they can be restocked. We have Vistry, another ISV that works with quick service restaurants. When you think about\n automating the process of, when do I drop the fries into the fryer so that they're warm when the car gets to the drive through window, there's quite a bit of industrial healthcare retail\n examples that we can walk through.\n \n \n And we should dig into some more of those, but I got to tell you, I have a personal experience in this category that I want to share with and you can tell me how silly you might think at this\n point in time it is. We actually built a keynote demonstration for the Red Hat big stage back in 2015. And I really want to illustrate the concept of asset tracking. So we actually gave\n everybody in the conference a little Bluetooth token with a little battery, a little watch battery, and a little Bluetooth emitter. And we basically tracked those things around the conference.\n We basically put a raspberry pi in each of the meeting rooms and up in the lunch room and you could see how the tokens moved from room to room to room.\n \n \n It was a relatively simple application, but it occurred to me, after we figured out how to do that with Bluetooth and triangulating Bluetooth signals by looking at relative signal strength\n from one radio to another and putting that through an Apache Spark application at the time, we then realized, \"You know what? This is easier done with cameras.\" And just simply looking at a\n camera and having some form of a AI/ML model, a machine learning model, that would say, \"There are people here now,\" or, \"There are no people here now.\" What do you think about that?\n \n \n What you just described is exactly the product that Pathr, one of our partners is offering, but they're doing it with Computer Vision and cameras. So when Pathr tries to help retail stores\n analyze the foot traffic and understand, with heat maps, where are people spending the most time in stores, how many people are coming in, what size groups are coming into the store and trying\n to help understand if there was a successful transaction from the people who entered the store and left the store, to help with the retail analytics and marketing sales and positioning of\n products. And so, they're doing that in a way that also protects privacy. And that's something that's really important. So when you talked about those Bluetooth beacons, probably if everyone\n who walked into a grocery store was asked to put a tracking device in their cart or on their person and say, \"You're going to be tracked around the store,\" they probably wouldn't want to do\n that.\n \n \n The way that you can do this with cameras, is you can detect people as they enter and remove their face. So you can ignore any biometric information and just track the person based on pixels\n that are present in the detected region of interest. So they're able to analyze... Say a family walks in the door and they can group those people together with object detection and then they\n can track their movement throughout the store without keeping track of their face, or any biometric, or any personal identifiable information, to avoid things like bias and to make sure that\n they're protecting the privacy of the shoppers in the store, while still getting that really useful marketing analytics data. So that they can make better decisions about where to place their\n products. That's one really good example of how Computer Vision, AI with OpenVINO is being used today.\n \n \n And that is a great example, because you're definitely spot on. It is invasive when you hand someone a Bluetooth device and say, \"Please, keep this with you as you go throughout our store,\n our mall or throughout our hospital, wherever you might be.\" Now you mentioned another example earlier in the conversation which was related to worker safety. \"Are they wearing a helmet?\" I\n want to talk more about that concept in a real industrial setting, a manufacturing setting, where there might be a factory floor and there's certain requirements. Or better yet there's like a\n quality assurance requirement, let's say, when it comes to looking at a factory line. I've run that use case often with some of our customers. Can you talk more about those kinds of use cases?\n \n \n One of our partners, Robotron, we published a case study, I think last year, where they were working with BMW at one of their factories. And they do quality control inspection, but they're\n also doing things related to worker safety and analyzing. I use the safety hat example. There's a number of our ISVs and partners who have similar use cases and it comes down to, there's a few\n reasons that are motivating this and some are related to insurance. It's important to make sure that if you want to have your factory insured, that your workers are protecting themselves and\n wearing the gear regulatory compliance, you're being asked to properly protect from exposure to chemicals or potentially having something fall and hit someone on the head. So wearing a safety\n vest, wearing goggles, wearing a helmet, these are things that you need to do inside the factory and you can really easily automate and detect and sometimes without bias.\n \n \n I think that's one of the interesting things about the Robotron-BMW example is that they were also blurring, blacking out, so drawing a box to cover the face of the workers in the factory, so\n that somebody who was analyzing the video footage and getting the alerts saying that, \"Bay 21 has a worker without a hat on,\" that it's not sending their face and in the alert and potentially\n invading or going against privacy laws or just the ethics of the company. They don't want to introduce bias or have people targeted because it's much better to blur the face and alert and have\n somebody take care of it on the floor. And then, if you ever need to audit that information later, they have a way to do it where people who need to be able to see who the employee was and\n look up their personal information, they can do that.\n \n \n But then just for the purposes of maintaining safety, they don't need to have access to that personal information, or biometric information. Because that's one thing that when you hear about\n Computer Vision or person tracking, object detection, there's a lot of concern, and rightfully so, about privacy being invaded and about tracking information, face re-identification,\n identifying people who may have committed crimes through video footage. And that's just not something that a lot of companies want to... They want to protect privacy and they don't want to be\n in a situation where they might be violating someone's rights.\n \n \n Well, privacy is certainly opening up Pandora's box. There's a lot to be explored in that area, especially in a digital world that we now live in. But for now, let's move on and explore a\n different area. I'm interested in how machines and computers offer advantages specifically in certain use cases like a quality control scenario. I asked Ryan to explain how a AI/ML and\n specifically machines, computers, could augment that capability.\n \n \n I can give a specific example where we have a partner that's doing defect detection, looking for anomalies in batteries. I'm sure you've heard there's a lot of interest right now in electric\n vehicles, a lot of batteries being produced. And so, if you go into one of these factories, they have images that they collect of every battery that's going through this assembly line. And\n through these images, people can look and see and visually inspect what their eyes and say, \"This battery has a defect, send it back.\" And that's one step in the quality control process,\n there's other steps I'm sure, like running diagnostic tests and measuring voltage and doing other types of non-visual inspection. But for the visual inspection piece, where you can really\n easily identify some problems, it's much more efficient to introduce Computer Vision. And so, that's where we have this new library that we've introduced, called Anomalib.\n \n \n So OpenVINO, while we're focused on inference, we're also thinking about the pipeline, or the funnel, that gets these models to OpenVINO. And so, we've invested in this anomaly segmentation,\n anomaly detection library that we've recently open sourced and there's a great research paper about it, about Anomalib, but the idea is you can take just a few images and train a model and\n start detecting these defects. And so, for this battery example, that's a more advanced example, but to make it simpler, take some bolts and... Take 10 bolts. You have one that has a scratch\n on it, or one that is chipped, or has some damage to it, and you can easily get started in training to recognize the bolts that do not have an anomaly and the ones that do, which is a small\n data set. And I think that's really one of the most important things today.\n \n \n Challenges, one is access to data, but the other is needing a massive amount of data to do something meaningful. And so we're starting to try to change that dynamic with Anomalib. You may not\n need a 100,000 images, you may need 100 images and you can start detecting anomalies in everything from batteries to bolts to, maybe even the wood varnish use case that you mentioned.\n \n \n That is a very key point because often in that data scientist process, that data engineering data scientist process, the one key thing is, can you gather the data that you need for the input\n for the model training? And we've often said, at least people I've worked with over the last couple years, \"You need a lot of data, you need tens of thousands of correct images, so we can sort\n out the difference between dogs versus cats,\" let's say. Or you need dozens and dozens of situations where if it's a natural language processing scenario, a good customer interaction, a good\n customer conversation. And this case it sounds like what you're saying is, \"Show us just the bad things, fewer images, fewer incorrect things, and then let us look for those kind of\n anomalies.\" Can you tell us more about that? Because that is very interesting. The concept that I can use a much smaller data set as my input, as opposed to gathering terabytes of data in some\n cases, to just simply get my model training underway.\n \n \n Like you described, the idea is, if you have some good images and then you have some of the known defects, and you can just label, \"Here's a set of good images and here's a few of the\n defects.\" And you can right away start detecting those specific defects that you've identified. And then, also be able to determine when it doesn't match the expected appearance of a non\n defective item. So if I have the undamaged screw and then I introduce one with some new anomaly that's never been seen before, I can say this one is not a valid screw. And so, that's the\n approach that we're taking and it's really important because so often you need to have subject matter experts. Take the battery example, there's these workers who are on the floor, in a\n factory and they're the ones who know best when they look at these images, which one's going to have an issue, which one's defective.\n \n \n And then they also need to take that subject matter expertise and then use it to annotate data sets. And when you have these tens of thousands of images you need to annotate, it's asking\n those people to stop working on the factory floor so they can come annotate some images. That's a tough business call to make, right? But if you only need them to annotate a handful of images,\n it's a much easier ask to get the ball rolling and demonstrate value. And maybe over time you will want to annotate more and more images because you'll get even better accuracy in the model.\n Even better, even if it's just small incremental improvements, that's something that if it generates value for the business, it's something the business will invest in over time. But you have\n to convince the decision makers that it's worth the time of these subject matter experts to stop what they're doing and go and label some images of the things that they're working on in the\n factory.\n \n \n And that labeling process can be very labor intensive. If the annotation is basically saying what is correct, what's wrong, what is this, what is that. And therefore if we can minimize that\n timeframe to get the value quicker, then there's something that's useful for the business, useful for the organization, long before we necessarily go through a whole huge model training phase.\n\n \n \n So we talked about labeling and how that is labor intensive activity, but I love the idea of helping the human. And helping the human most specifically not get bored. Basically if the human\n is eyeballing a bunch of widgets flying by, over time they make mistakes, they get bored and they don't pay as close attention as they should. That's why the constant of AI/ML, and\n specifically Computer Vision augmenting that capability and really helping the human identify anomalies faster, more quickly, maybe with greater accuracy, could be a big win. We focused on\n manufacturing, but let's actually go into healthcare and learn how these tools can be used in that sector and that industry. Ryan talked me about how OpenVINO's run time can be incorporated\n into medical imaging equipment with Intel processors embedded in CT, MRI and ultrasound machines. While these inferences, this AI/ML workload, can be operating and executing right there in the\n same physical room as the patient.\n \n \n We did a presentation with GE last year, I think they said there's at least 80 countries that have their x-ray machines deployed. And they're doing things like helping doctors place breathing\n tubes in patients. So during COVID, during the pandemic, that was a really important tool to help with nurses and doctors who were intubating patients, sometimes in a parking lot or a hallway\n of a hospital. And when they had a statistic that GE said, I think one out of four breathing tubes gets placed incorrectly when you're doing it outside the operating room. Because when you're\n in an operating room it's much more controlled and there's someone who's an expert at placing the tubes, it's something you have more of a controlled environment. But when you're out, in a\n parking lot, in a tent, when the hospital's completely full and you're triaging patients with COVID, that's when they're more likely to make mistakes.And so, they had this endotracheal tube\n placement, ETT, model that they trained and it helped to use an x-ray and give an alert and say, \"This tube is placed wrong, pull it out and do it again.\" And so, things like that help doctors\n so that they can avoid mistakes. And having a breathing tube placed incorrectly can cause collapsed lung and a number of other unwanted side effects. So it's really important to do it\n correctly. Another example is Samsung Medison. They actually are estimating fetal angle of progression. So this is analyzing ultrasound of pregnant women being able to help take measurements\n that are usually hard to calculate, but it can be done in an automated way. They're already taking an ultrasound scan and now they're executing this model that can take some of these\n measurements to help the doctor avoid potentially more intrusive alternative methods. So the patient wins, it makes their life better and the doctor is getting help from this AI model. And\n those are just a few examples.\n \n \n Those are some amazing examples when it comes to all these things, we're talking CT scans and x-rays, other examples of Computer Vision. One thing that's kind of interesting in this space, I\n think, whenever I get a chance to work on, let's say an object detection model, and one of our workshops, by the way, is actually putting that out in front of people to say, \"Look, you can use\n your phone and it basically sends the image over to our OpenShift with our data science platform and then analyzes what you see.\" And even in my case, where I take a picture of my dog as an\n example, it can't really decide, is it a dog or a cat? I have a very funny looking dog.\n \n \n And so there's always a percentage outcome. In other words, \"I think it's a dog, 52%.\" So I want to talk about that more. How important is it to get to that a hundred percent accuracy? How\n important is it to really, depending on the use case, to allow for the gray area if you will, where it's an 80% accuracy or a 70% accuracy, and what are the trade offs there associated with\n the application? Can you discuss that more?\n \n \n Accuracy is definitely a touchy subject, because how you measure it makes a huge difference. I think what you were describing with the dog example, there's sort of a top five potential\n classes that might maybe be identified. So let's say you're doing object detection and you detect a region of interest, and it says 65% confidence this is a dog. Well, the next potential label\n that could be maybe 50% confidence or 20% confidence might be something similar to a dog. Or in the case of models that have been trained on the ImageNet dataset or on COCO dataset, they have\n actual breeds of dogs. If I want to look at the top five labels for a dog, for my dog for example, she's a mix, mostly a Labrador retriever, but I may look at the top five labels and it may\n say 65% confidence that she's a flat coated retriever.\n \n \n And then confidence that she's a husky as 20%, and then 5% confidence that she's a greyhound or something. Those labels, all of them are dogs. So if I'm just trying to figure out, is this a\n dog? I could probably find all of the classes within the data set and say, \"Well, these all, class ID 65, 132, 92 and 158, all belong to a group of dogs.\" So if I want to just write an\n application to tell me if this is a dog or not, I would probably use that to determine if it's a dog. But how you measure that as accuracy, well that's where it gets a little bit complicated.\n Because if you're being really strict about the definition and you're trying to validate against the data set of labeled images, and I have specific dog breeds or some specific detail and it\n doesn't match, well then, the accuracy's going to go down.\n \n \n And that's especially important when we talk about things like compression and quantization, which historically, has been difficult to get adoption in some domains, like healthcare, where\n even the hint of accuracy going down implies that we're not going to be able to help. In some small case, maybe if it's even half a percent of the time, we won't detect that that tube is\n placed incorrectly or that that patient's lung has collapsed or something like that. And that's something that really prevents adoption of some of these methods that can really boost\n performance, like quantization. But if you take that example of... Different from the dog example, and you think about segmentation of kidneys. If I'm doing kidney segmentation, which is\n taking a CT scan and then trying to pick the pixels out of that scan that belong to a kidney, how I measure accuracy may be how many of those pixels I'm able to detect and how many did I miss?\n \n \n Missing some of the pixels is maybe not a problem, depending on how you've built the application, because you still detect the kidney, and maybe you just need to apply padding around the\n region of interest, so that you don't miss any of the actual kidney when you compress the model and when you quantize the model. But that requires a data scientist, an ML engineer, somebody to\n really, they have to be able to go and apply that after the fact, after the inference happens, to make sure that you're not losing critical information. Because the next step from detecting\n the kidney, may be detecting a tumor.\n \n \n And so, maybe you can use the more optimized model to detect the kidney, but then you can use a slower model to detect the tumor. But that also requires somebody to architect and make that\n decision or that trade off and say, \"Well, I need to add padding,\" or, \"I should only use the quantized model to detect the region of interest for the kidney.\" And then, use the model that\n takes longer to do the inference just to find the tumor, which is going to be on a smaller size. The dimensions are going to be much smaller once we crop to the region of interest. But all of\n those details, that's maybe not easy to explain in a few sentences and even the way I explained it is probably really confusing.\n \n \n I do love that use case, like you mentioned, the cropping, even in one scenario that we worked on for another project, we specifically decided to pixelate the image that we had taken, because\n we knew that we could get the outcome we wanted by even just using a smaller or having less resolution in our image. And therefore, as we transferred it from the mobile device, the edge\n device, up into the cloud, we wanted that smaller image just for transfer purposes. And still, we could get the accuracy we needed by a lot of testing.\n \n \n And one thing that's interesting about that, from my perspective, is, if you're doing image processing, sometimes it takes a while for this transaction to occur. I come from a traditional\n application background, where I'm reading and writing things from a database, or a message broker, or moving data from one place to another. Those things happen sub-second normally, even with\n great latency between your data centers, it's still sub-second in most cases. While a transaction like this one can actually take two seconds or four seconds, as it's doing its analysis and\n actually coming back with its, \"I think it's a dog, I think it's a kidney, I think it's whatever.\" And providing me that accuracy statement. That concept of optimization is very important in\n the overall application architecture. Would you agree with that or how do you think about that concept?\n \n \n Definitely. It depends too on the use case. So if you think about how important it is to reduce the latency and increase the number of frames per second that you can process when you're\n talking about a loss prevention model that's running at a grocery store. You want to keep the lines moving, you don't want every person who's at the self checkout to have to wait five seconds\n for every item they scan. You need it to happen as quickly as possible. And if sometimes the accuracy decreases slightly, or I'd say the accuracy of the whole pipeline, so not just looking at\n the individual model or the individual inference, but let's say that the whole pipeline is not as successful at detecting when somebody steals one item from the self checkout, it's not going\n to be a life threatening situation. Whereas being hooked up to the x-ray machine with the tube placement model, they might be willing to have the doctor or the nurse wait five seconds to get\n the result.\n \n \n They don't need it to happen in 500 milliseconds. Their threshold for waiting is a little bit higher. That, I think, also drives some of the decision. You want to keep people moving through\n the checkout line and you can afford to, potentially, if you lose a little bit of accuracy here and there, it's not going to cost the company that much money or it's not going to be life\n threatening. It's going to be worth the trade off of keeping the line moving and not having people leave the store and not check out at all, to say, \"I'm not going to shop today because the\n line's too long.\"\n \n \n There are so many trade-offs in enterprise AI/ML use cases, things like latency, accuracy and availability, and certainly complexities abound, especially in an obviously ever-evolving\n technological landscape where we are still very early in the adoption of AI/ML. And to navigate that complexity, that direct feedback from real world end users is essential to Ryan and his\n team at Intel. What would you say are some of the big hurdles or big outcomes, big opportunities in that space? And do you agree that we're still at the very beginning, in our infancy if you\n will, of adopting these technologies and discovering what they can do for us?\n \n \n Yeah, I think we're definitely in the infancy and I think that what we've seen is, our customers are evolving and the people who are deploying on Intel hardware, they're trying to run more\n complicated models. They're the models that are doing object detection or detecting defects and doing segmentation. In the past you could say, \"Here's a generic model that will do face\n detection, or person detection, or vehicle detection, license plate detection.\" And those are general purpose models that you can just grab off the shelf and use them. But now we're moving\n into the Anomalib scenarios, where I've got my own data and I'm trying to do something very specific and I'm the only one that has access to this data. You don't have that public data set that\n you can go download that's under Creative Commons license for car batteries. It's just not something that's available.\n \n \n And so, those use cases, the challenge with training those models and getting them optimized is the beginning of the pipeline. It's the data. You have to get the data, you have to annotate it\n and the tools have to exist for you to do that. And that's part of the problem that we're trying to help solve. And then, the models are getting more complex. So if you think, just from\n working with customers recently, they're no longer just trying to do image classification, \"Is it a dog or a cat?\" They've moved on to 3D point clouds and 3D segmentation models and things\n that are like the speech synthesis example. These GPT models that are generating... You put a text input and it generates an image for you. It's just becoming much more advanced, much more\n sophisticated and on larger images.\n \n \n And so things like running super resolution and enhancing images, upscaling images, instead of just trying to take that 200 by 200 pixel image and classifying if it's a cat, now we're talking\n about gigantic, huge images that we're processing and that all requires more resources or more optimized models. And every Computer Vision conference or AI conference, there's a new latest and\n greatest architecture, there's new research paper, and things are getting adopted much faster. The lead time for a NeurIPS paper, CVPR, for a company to actually adopt and put those into\n production, the time shortens every year.\n \n \n Well Ryan, I got to tell you, I could talk to you, literally, all day about these topics, the various use cases, the various ways models are being optimized, how to put models into a pipeline\n for average enterprise applications. I've enjoyed learning about OpenVINO and Anomalib. I'm fascinated by this, because I'll have a chance to go try this myself, taking advantage of Red Hat\n OpenShift and taking advantage of our data science platform. On top of that, I will definitely go be poking at this myself. Thank you so much for your time today.\n \n \n Thanks, Burr. This was a lot of fun. Thanks for having me.\n \n \n You can check out the full transcript of our conversation and more resources, like a link to a white paper on OpenVINO and Anomalib at redhat.com/codecommentspodcast. This episode was\n produced by Brent Simoneaux and Caroline Creaghead. Our sound designer is Christian Prohom. Our audio team includes Leigh Day, Stephanie Wonderlick, Mike Esser, Laura Barnes, Claire Allison,\n Nick Burns, Aaron Williamson, Karen King, Boo Boo Howse, Rachel Ertel, Mike Compton, Ocean Matthews, Laura Walters, Alex Traboulsi, and Victoria Lawton. I'm your host, Burr Sutter. Thank you\n for joining me today on Code Comments. I hope you enjoyed today's session and today's conversation, and I look forward to many more.\n \n
\n
\n\n\n\n\n\n", + "content": "\n

Code Comments

\n

Bringing Deep Learning to Enterprise Applications

\n \n

About the episode

\n

\n There are a lot of publicly available data sets out there. But when it\n comes to specific enterprise use cases, you're not necessarily going to\n able to find one to train your models. To realize the power of AI/ML in\n enterprise environments, end users need an inference engine to run on\n their hardware. Ryan Loney takes us through OpenVINO and Anomalib, open\n toolkits from Intel that do precisely that. He looks specifically at\n anomaly detection in use cases as varied as medical imaging and\n manufacturing.\n

\n

\n Want to learn more about Anomalib? Check out the research paper that\n introduces the deep learning library.\n

\n \n Ryan Loney\n Product manager, OpenVINO Developer Tools, Intel®\n \n
\n \n \n

Subscribe

\n

Subscribe here:

\n \n \"Listen\n \n \n \"Listen\n \n \n \"Listen\n \n \n \"Subscribe\n \n
\n \n

Transcript

\n \n Hi, I'm Burr Sutter. I'm a Red Hatter who spends a lot of time talking to technologists about technologies. We say this a lot at Red Hat. No single technology provider holds the key to\n success, including us. And I would say the same thing about myself. I love to share ideas, so I thought it would be awesome to talk to some brilliant technologists at Red Hat Partners. This is\n Code Comments, an original podcast from Red Hat.\n \n \n I'm sure, like many of you here, you have been thinking about AI/ML, artificial intelligence and machine learning. I've been thinking about that for quite some time and I actually had the\n opportunity to work on a few successful projects, here at Red Hat, using those technologies, actually enabling a data set, gathering a data set, working with a data scientist and data\n engineering team, and then training a model and putting that model into production runtime environment. It was an exciting set of projects and you can see those on numerous YouTube videos that\n have published out there before. But I want you to think about the problem space a little bit, because there are some interesting challenges about a AI/ML. One is simply just getting access to\n the data, and while there are numerous publicly available data sets, when it comes to your specific enterprise use case, you might not be to find publicly available data.\n \n \n In many cases you cannot, even for our applications that we created, we had to create our data set, capture our data set, explore the data set, and of course, train a model accordingly. And\n we also found there's another challenge to be overcome in this a AI/ML world, and that is access to certain types of hardware. If you think about an enterprise environment and the creation of\n an enterprise application specifically for a AI/ML, end users need an inference engine to run on their hardware. Hardware that's available to them, to be effective for their application. Let's\n say an application like Computer Vision, one that can detect anomalies and medical imaging or maybe on a factory floor. As those things are whizzing by on the factory line there, looking at\n them and trying to determine if there is an error or not.\n \n \n Well, how do you actually make it run on your hardware, your accessible technology that you have today? Well, there's a solution for this as an open toolkit called OpenVINO. And you might be\n thinking, \"Hey, wait a minute, don't you need a GPU for AI inferencing, a GPU for artificial intelligence, machine learning? Well, not according to Ryan Loney, product manager of OpenVINO\n Developer Tools at Intel.\n \n \n I guess I'll start with trying to maybe dispel a myth. I think that CPUs are widely used for inference today. So if we look at the data center segment, about 70% of the AI inference is\n happening on Intel Xeon, on our data center CPUs. And so you don't need a GPU especially for running inference. And that's part of the value of OpenVINO, is that we're taking models that may\n have been trained on a GPU using deep learning frameworks like PyTorch or TensorFlow, and then optimizing them to run on Intel hardware.\n \n \n Ryan joined me to discuss AI/ML in the enterprise across various industries and exploring numerous use cases. Let's talk a little bit about the origin story behind OpenVINO. Tell us more\n about it and how it came to be and why it came out of Intel.\n \n \n Definitely. We had the first release of OpenVINO, was back in 2018, so still relatively new. And at that time, we were focused on Computer Vision and pretty tightly coupled with OpenCV, which\n is another open source library with origins at Intel. It had its first release back in 1999, so it's been around a little bit longer. And many of the software engineers and architects at Intel\n that were involved with and contributing to OpenCV are working on OpenVINO. So you can think of OpenVINO as complimentary software to OpenCV and we're providing an engine for executing\n inferences as part of a Computer Vision pipeline, or at least that's how we started.\n \n \n But since 2018, we've started to move beyond just Computer Vision inference. So when I say Computer Vision inference, I mean image classification, object detection, segmentation, and now\n we're moving into natural language processing. Things like speech synthesis, speech recognition, knowledge graphs, time series forecasting and other use cases that don't involve Computer\n Vision and don't involve inference on pixels. Our latest release, the 2022.1 that came out earlier this year, that was the most significant update that we've had to OpenVINO, since we started\n in 2018. And the major focus of that release was optimizing for use cases that go beyond Computer Vision.\n \n \n And I like that concept that you just mentioned right there, Computer Vision, and you said that you extended those use cases and went beyond that. Could you give us some more concrete\n examples of Computer Vision?\n \n \n Sure. When you think about manufacturing, quality control in factories, everything from arc welding, defect detection to inspecting BMW cars on assembly lines, they're using cameras or\n sensors to collect data and usually it's cameras collecting images like RGB images that you and I can see and looks like something taken from a camera or video camera. But also, things like\n infrared or computerized tomography scans used in healthcare, X-ray, different types of images where we can draw bounding boxes around regions of interest and say, \"This is a defect,\" or,\n \"This is not a defect.\" And also, \"Is this worker wearing a safety hat or did they forget to put it on?\" And so, you can take this and integrate it into a pipeline where you're triggering an\n alert if somebody forgets to wear their safety mask, or if there's a defect in a product on an assembly line, you can just use cameras and OpenVINO and OpenCV running these on Intel hardware\n and help to analyze.\n \n \n And that's what a lot of the partners that we work with are doing, so these independent software vendors. And there's other use cases for things like retail. You think about going to a store\n and using an automated checkout system. Sometimes people use those automated checkouts and they slide a few extra items into their bag that they don't scan and it's a huge loss for the retail\n outlets that are providing this way to check out realtime shelf monitoring. We have a Vispera, one of our ISVs that helps keep store shelves stocked by just analyzing the cameras in the\n stores, detecting when objects are missing from the shelves so that they can be restocked. We have Vistry, another ISV that works with quick service restaurants. When you think about\n automating the process of, when do I drop the fries into the fryer so that they're warm when the car gets to the drive through window, there's quite a bit of industrial healthcare retail\n examples that we can walk through.\n \n \n And we should dig into some more of those, but I got to tell you, I have a personal experience in this category that I want to share with and you can tell me how silly you might think at this\n point in time it is. We actually built a keynote demonstration for the Red Hat big stage back in 2015. And I really want to illustrate the concept of asset tracking. So we actually gave\n everybody in the conference a little Bluetooth token with a little battery, a little watch battery, and a little Bluetooth emitter. And we basically tracked those things around the conference.\n We basically put a raspberry pi in each of the meeting rooms and up in the lunch room and you could see how the tokens moved from room to room to room.\n \n \n It was a relatively simple application, but it occurred to me, after we figured out how to do that with Bluetooth and triangulating Bluetooth signals by looking at relative signal strength\n from one radio to another and putting that through an Apache Spark application at the time, we then realized, \"You know what? This is easier done with cameras.\" And just simply looking at a\n camera and having some form of a AI/ML model, a machine learning model, that would say, \"There are people here now,\" or, \"There are no people here now.\" What do you think about that?\n \n \n What you just described is exactly the product that Pathr, one of our partners is offering, but they're doing it with Computer Vision and cameras. So when Pathr tries to help retail stores\n analyze the foot traffic and understand, with heat maps, where are people spending the most time in stores, how many people are coming in, what size groups are coming into the store and trying\n to help understand if there was a successful transaction from the people who entered the store and left the store, to help with the retail analytics and marketing sales and positioning of\n products. And so, they're doing that in a way that also protects privacy. And that's something that's really important. So when you talked about those Bluetooth beacons, probably if everyone\n who walked into a grocery store was asked to put a tracking device in their cart or on their person and say, \"You're going to be tracked around the store,\" they probably wouldn't want to do\n that.\n \n \n The way that you can do this with cameras, is you can detect people as they enter and remove their face. So you can ignore any biometric information and just track the person based on pixels\n that are present in the detected region of interest. So they're able to analyze... Say a family walks in the door and they can group those people together with object detection and then they\n can track their movement throughout the store without keeping track of their face, or any biometric, or any personal identifiable information, to avoid things like bias and to make sure that\n they're protecting the privacy of the shoppers in the store, while still getting that really useful marketing analytics data. So that they can make better decisions about where to place their\n products. That's one really good example of how Computer Vision, AI with OpenVINO is being used today.\n \n \n And that is a great example, because you're definitely spot on. It is invasive when you hand someone a Bluetooth device and say, \"Please, keep this with you as you go throughout our store,\n our mall or throughout our hospital, wherever you might be.\" Now you mentioned another example earlier in the conversation which was related to worker safety. \"Are they wearing a helmet?\" I\n want to talk more about that concept in a real industrial setting, a manufacturing setting, where there might be a factory floor and there's certain requirements. Or better yet there's like a\n quality assurance requirement, let's say, when it comes to looking at a factory line. I've run that use case often with some of our customers. Can you talk more about those kinds of use cases?\n \n \n One of our partners, Robotron, we published a case study, I think last year, where they were working with BMW at one of their factories. And they do quality control inspection, but they're\n also doing things related to worker safety and analyzing. I use the safety hat example. There's a number of our ISVs and partners who have similar use cases and it comes down to, there's a few\n reasons that are motivating this and some are related to insurance. It's important to make sure that if you want to have your factory insured, that your workers are protecting themselves and\n wearing the gear regulatory compliance, you're being asked to properly protect from exposure to chemicals or potentially having something fall and hit someone on the head. So wearing a safety\n vest, wearing goggles, wearing a helmet, these are things that you need to do inside the factory and you can really easily automate and detect and sometimes without bias.\n \n \n I think that's one of the interesting things about the Robotron-BMW example is that they were also blurring, blacking out, so drawing a box to cover the face of the workers in the factory, so\n that somebody who was analyzing the video footage and getting the alerts saying that, \"Bay 21 has a worker without a hat on,\" that it's not sending their face and in the alert and potentially\n invading or going against privacy laws or just the ethics of the company. They don't want to introduce bias or have people targeted because it's much better to blur the face and alert and have\n somebody take care of it on the floor. And then, if you ever need to audit that information later, they have a way to do it where people who need to be able to see who the employee was and\n look up their personal information, they can do that.\n \n \n But then just for the purposes of maintaining safety, they don't need to have access to that personal information, or biometric information. Because that's one thing that when you hear about\n Computer Vision or person tracking, object detection, there's a lot of concern, and rightfully so, about privacy being invaded and about tracking information, face re-identification,\n identifying people who may have committed crimes through video footage. And that's just not something that a lot of companies want to... They want to protect privacy and they don't want to be\n in a situation where they might be violating someone's rights.\n \n \n Well, privacy is certainly opening up Pandora's box. There's a lot to be explored in that area, especially in a digital world that we now live in. But for now, let's move on and explore a\n different area. I'm interested in how machines and computers offer advantages specifically in certain use cases like a quality control scenario. I asked Ryan to explain how a AI/ML and\n specifically machines, computers, could augment that capability.\n \n \n I can give a specific example where we have a partner that's doing defect detection, looking for anomalies in batteries. I'm sure you've heard there's a lot of interest right now in electric\n vehicles, a lot of batteries being produced. And so, if you go into one of these factories, they have images that they collect of every battery that's going through this assembly line. And\n through these images, people can look and see and visually inspect what their eyes and say, \"This battery has a defect, send it back.\" And that's one step in the quality control process,\n there's other steps I'm sure, like running diagnostic tests and measuring voltage and doing other types of non-visual inspection. But for the visual inspection piece, where you can really\n easily identify some problems, it's much more efficient to introduce Computer Vision. And so, that's where we have this new library that we've introduced, called Anomalib.\n \n \n So OpenVINO, while we're focused on inference, we're also thinking about the pipeline, or the funnel, that gets these models to OpenVINO. And so, we've invested in this anomaly segmentation,\n anomaly detection library that we've recently open sourced and there's a great research paper about it, about Anomalib, but the idea is you can take just a few images and train a model and\n start detecting these defects. And so, for this battery example, that's a more advanced example, but to make it simpler, take some bolts and... Take 10 bolts. You have one that has a scratch\n on it, or one that is chipped, or has some damage to it, and you can easily get started in training to recognize the bolts that do not have an anomaly and the ones that do, which is a small\n data set. And I think that's really one of the most important things today.\n \n \n Challenges, one is access to data, but the other is needing a massive amount of data to do something meaningful. And so we're starting to try to change that dynamic with Anomalib. You may not\n need a 100,000 images, you may need 100 images and you can start detecting anomalies in everything from batteries to bolts to, maybe even the wood varnish use case that you mentioned.\n \n \n That is a very key point because often in that data scientist process, that data engineering data scientist process, the one key thing is, can you gather the data that you need for the input\n for the model training? And we've often said, at least people I've worked with over the last couple years, \"You need a lot of data, you need tens of thousands of correct images, so we can sort\n out the difference between dogs versus cats,\" let's say. Or you need dozens and dozens of situations where if it's a natural language processing scenario, a good customer interaction, a good\n customer conversation. And this case it sounds like what you're saying is, \"Show us just the bad things, fewer images, fewer incorrect things, and then let us look for those kind of\n anomalies.\" Can you tell us more about that? Because that is very interesting. The concept that I can use a much smaller data set as my input, as opposed to gathering terabytes of data in some\n cases, to just simply get my model training underway.\n \n \n Like you described, the idea is, if you have some good images and then you have some of the known defects, and you can just label, \"Here's a set of good images and here's a few of the\n defects.\" And you can right away start detecting those specific defects that you've identified. And then, also be able to determine when it doesn't match the expected appearance of a non\n defective item. So if I have the undamaged screw and then I introduce one with some new anomaly that's never been seen before, I can say this one is not a valid screw. And so, that's the\n approach that we're taking and it's really important because so often you need to have subject matter experts. Take the battery example, there's these workers who are on the floor, in a\n factory and they're the ones who know best when they look at these images, which one's going to have an issue, which one's defective.\n \n \n And then they also need to take that subject matter expertise and then use it to annotate data sets. And when you have these tens of thousands of images you need to annotate, it's asking\n those people to stop working on the factory floor so they can come annotate some images. That's a tough business call to make, right? But if you only need them to annotate a handful of images,\n it's a much easier ask to get the ball rolling and demonstrate value. And maybe over time you will want to annotate more and more images because you'll get even better accuracy in the model.\n Even better, even if it's just small incremental improvements, that's something that if it generates value for the business, it's something the business will invest in over time. But you have\n to convince the decision makers that it's worth the time of these subject matter experts to stop what they're doing and go and label some images of the things that they're working on in the\n factory.\n \n \n And that labeling process can be very labor intensive. If the annotation is basically saying what is correct, what's wrong, what is this, what is that. And therefore if we can minimize that\n timeframe to get the value quicker, then there's something that's useful for the business, useful for the organization, long before we necessarily go through a whole huge model training phase.\n\n \n \n So we talked about labeling and how that is labor intensive activity, but I love the idea of helping the human. And helping the human most specifically not get bored. Basically if the human\n is eyeballing a bunch of widgets flying by, over time they make mistakes, they get bored and they don't pay as close attention as they should. That's why the constant of AI/ML, and\n specifically Computer Vision augmenting that capability and really helping the human identify anomalies faster, more quickly, maybe with greater accuracy, could be a big win. We focused on\n manufacturing, but let's actually go into healthcare and learn how these tools can be used in that sector and that industry. Ryan talked me about how OpenVINO's run time can be incorporated\n into medical imaging equipment with Intel processors embedded in CT, MRI and ultrasound machines. While these inferences, this AI/ML workload, can be operating and executing right there in the\n same physical room as the patient.\n \n \n We did a presentation with GE last year, I think they said there's at least 80 countries that have their x-ray machines deployed. And they're doing things like helping doctors place breathing\n tubes in patients. So during COVID, during the pandemic, that was a really important tool to help with nurses and doctors who were intubating patients, sometimes in a parking lot or a hallway\n of a hospital. And when they had a statistic that GE said, I think one out of four breathing tubes gets placed incorrectly when you're doing it outside the operating room. Because when you're\n in an operating room it's much more controlled and there's someone who's an expert at placing the tubes, it's something you have more of a controlled environment. But when you're out, in a\n parking lot, in a tent, when the hospital's completely full and you're triaging patients with COVID, that's when they're more likely to make mistakes.And so, they had this endotracheal tube\n placement, ETT, model that they trained and it helped to use an x-ray and give an alert and say, \"This tube is placed wrong, pull it out and do it again.\" And so, things like that help doctors\n so that they can avoid mistakes. And having a breathing tube placed incorrectly can cause collapsed lung and a number of other unwanted side effects. So it's really important to do it\n correctly. Another example is Samsung Medison. They actually are estimating fetal angle of progression. So this is analyzing ultrasound of pregnant women being able to help take measurements\n that are usually hard to calculate, but it can be done in an automated way. They're already taking an ultrasound scan and now they're executing this model that can take some of these\n measurements to help the doctor avoid potentially more intrusive alternative methods. So the patient wins, it makes their life better and the doctor is getting help from this AI model. And\n those are just a few examples.\n \n \n Those are some amazing examples when it comes to all these things, we're talking CT scans and x-rays, other examples of Computer Vision. One thing that's kind of interesting in this space, I\n think, whenever I get a chance to work on, let's say an object detection model, and one of our workshops, by the way, is actually putting that out in front of people to say, \"Look, you can use\n your phone and it basically sends the image over to our OpenShift with our data science platform and then analyzes what you see.\" And even in my case, where I take a picture of my dog as an\n example, it can't really decide, is it a dog or a cat? I have a very funny looking dog.\n \n \n And so there's always a percentage outcome. In other words, \"I think it's a dog, 52%.\" So I want to talk about that more. How important is it to get to that a hundred percent accuracy? How\n important is it to really, depending on the use case, to allow for the gray area if you will, where it's an 80% accuracy or a 70% accuracy, and what are the trade offs there associated with\n the application? Can you discuss that more?\n \n \n Accuracy is definitely a touchy subject, because how you measure it makes a huge difference. I think what you were describing with the dog example, there's sort of a top five potential\n classes that might maybe be identified. So let's say you're doing object detection and you detect a region of interest, and it says 65% confidence this is a dog. Well, the next potential label\n that could be maybe 50% confidence or 20% confidence might be something similar to a dog. Or in the case of models that have been trained on the ImageNet dataset or on COCO dataset, they have\n actual breeds of dogs. If I want to look at the top five labels for a dog, for my dog for example, she's a mix, mostly a Labrador retriever, but I may look at the top five labels and it may\n say 65% confidence that she's a flat coated retriever.\n \n \n And then confidence that she's a husky as 20%, and then 5% confidence that she's a greyhound or something. Those labels, all of them are dogs. So if I'm just trying to figure out, is this a\n dog? I could probably find all of the classes within the data set and say, \"Well, these all, class ID 65, 132, 92 and 158, all belong to a group of dogs.\" So if I want to just write an\n application to tell me if this is a dog or not, I would probably use that to determine if it's a dog. But how you measure that as accuracy, well that's where it gets a little bit complicated.\n Because if you're being really strict about the definition and you're trying to validate against the data set of labeled images, and I have specific dog breeds or some specific detail and it\n doesn't match, well then, the accuracy's going to go down.\n \n \n And that's especially important when we talk about things like compression and quantization, which historically, has been difficult to get adoption in some domains, like healthcare, where\n even the hint of accuracy going down implies that we're not going to be able to help. In some small case, maybe if it's even half a percent of the time, we won't detect that that tube is\n placed incorrectly or that that patient's lung has collapsed or something like that. And that's something that really prevents adoption of some of these methods that can really boost\n performance, like quantization. But if you take that example of... Different from the dog example, and you think about segmentation of kidneys. If I'm doing kidney segmentation, which is\n taking a CT scan and then trying to pick the pixels out of that scan that belong to a kidney, how I measure accuracy may be how many of those pixels I'm able to detect and how many did I miss?\n \n \n Missing some of the pixels is maybe not a problem, depending on how you've built the application, because you still detect the kidney, and maybe you just need to apply padding around the\n region of interest, so that you don't miss any of the actual kidney when you compress the model and when you quantize the model. But that requires a data scientist, an ML engineer, somebody to\n really, they have to be able to go and apply that after the fact, after the inference happens, to make sure that you're not losing critical information. Because the next step from detecting\n the kidney, may be detecting a tumor.\n \n \n And so, maybe you can use the more optimized model to detect the kidney, but then you can use a slower model to detect the tumor. But that also requires somebody to architect and make that\n decision or that trade off and say, \"Well, I need to add padding,\" or, \"I should only use the quantized model to detect the region of interest for the kidney.\" And then, use the model that\n takes longer to do the inference just to find the tumor, which is going to be on a smaller size. The dimensions are going to be much smaller once we crop to the region of interest. But all of\n those details, that's maybe not easy to explain in a few sentences and even the way I explained it is probably really confusing.\n \n \n I do love that use case, like you mentioned, the cropping, even in one scenario that we worked on for another project, we specifically decided to pixelate the image that we had taken, because\n we knew that we could get the outcome we wanted by even just using a smaller or having less resolution in our image. And therefore, as we transferred it from the mobile device, the edge\n device, up into the cloud, we wanted that smaller image just for transfer purposes. And still, we could get the accuracy we needed by a lot of testing.\n \n \n And one thing that's interesting about that, from my perspective, is, if you're doing image processing, sometimes it takes a while for this transaction to occur. I come from a traditional\n application background, where I'm reading and writing things from a database, or a message broker, or moving data from one place to another. Those things happen sub-second normally, even with\n great latency between your data centers, it's still sub-second in most cases. While a transaction like this one can actually take two seconds or four seconds, as it's doing its analysis and\n actually coming back with its, \"I think it's a dog, I think it's a kidney, I think it's whatever.\" And providing me that accuracy statement. That concept of optimization is very important in\n the overall application architecture. Would you agree with that or how do you think about that concept?\n \n \n Definitely. It depends too on the use case. So if you think about how important it is to reduce the latency and increase the number of frames per second that you can process when you're\n talking about a loss prevention model that's running at a grocery store. You want to keep the lines moving, you don't want every person who's at the self checkout to have to wait five seconds\n for every item they scan. You need it to happen as quickly as possible. And if sometimes the accuracy decreases slightly, or I'd say the accuracy of the whole pipeline, so not just looking at\n the individual model or the individual inference, but let's say that the whole pipeline is not as successful at detecting when somebody steals one item from the self checkout, it's not going\n to be a life threatening situation. Whereas being hooked up to the x-ray machine with the tube placement model, they might be willing to have the doctor or the nurse wait five seconds to get\n the result.\n \n \n They don't need it to happen in 500 milliseconds. Their threshold for waiting is a little bit higher. That, I think, also drives some of the decision. You want to keep people moving through\n the checkout line and you can afford to, potentially, if you lose a little bit of accuracy here and there, it's not going to cost the company that much money or it's not going to be life\n threatening. It's going to be worth the trade off of keeping the line moving and not having people leave the store and not check out at all, to say, \"I'm not going to shop today because the\n line's too long.\"\n \n \n There are so many trade-offs in enterprise AI/ML use cases, things like latency, accuracy and availability, and certainly complexities abound, especially in an obviously ever-evolving\n technological landscape where we are still very early in the adoption of AI/ML. And to navigate that complexity, that direct feedback from real world end users is essential to Ryan and his\n team at Intel. What would you say are some of the big hurdles or big outcomes, big opportunities in that space? And do you agree that we're still at the very beginning, in our infancy if you\n will, of adopting these technologies and discovering what they can do for us?\n \n \n Yeah, I think we're definitely in the infancy and I think that what we've seen is, our customers are evolving and the people who are deploying on Intel hardware, they're trying to run more\n complicated models. They're the models that are doing object detection or detecting defects and doing segmentation. In the past you could say, \"Here's a generic model that will do face\n detection, or person detection, or vehicle detection, license plate detection.\" And those are general purpose models that you can just grab off the shelf and use them. But now we're moving\n into the Anomalib scenarios, where I've got my own data and I'm trying to do something very specific and I'm the only one that has access to this data. You don't have that public data set that\n you can go download that's under Creative Commons license for car batteries. It's just not something that's available.\n \n \n And so, those use cases, the challenge with training those models and getting them optimized is the beginning of the pipeline. It's the data. You have to get the data, you have to annotate it\n and the tools have to exist for you to do that. And that's part of the problem that we're trying to help solve. And then, the models are getting more complex. So if you think, just from\n working with customers recently, they're no longer just trying to do image classification, \"Is it a dog or a cat?\" They've moved on to 3D point clouds and 3D segmentation models and things\n that are like the speech synthesis example. These GPT models that are generating... You put a text input and it generates an image for you. It's just becoming much more advanced, much more\n sophisticated and on larger images.\n \n \n And so things like running super resolution and enhancing images, upscaling images, instead of just trying to take that 200 by 200 pixel image and classifying if it's a cat, now we're talking\n about gigantic, huge images that we're processing and that all requires more resources or more optimized models. And every Computer Vision conference or AI conference, there's a new latest and\n greatest architecture, there's new research paper, and things are getting adopted much faster. The lead time for a NeurIPS paper, CVPR, for a company to actually adopt and put those into\n production, the time shortens every year.\n \n \n Well Ryan, I got to tell you, I could talk to you, literally, all day about these topics, the various use cases, the various ways models are being optimized, how to put models into a pipeline\n for average enterprise applications. I've enjoyed learning about OpenVINO and Anomalib. I'm fascinated by this, because I'll have a chance to go try this myself, taking advantage of Red Hat\n OpenShift and taking advantage of our data science platform. On top of that, I will definitely go be poking at this myself. Thank you so much for your time today.\n \n \n Thanks, Burr. This was a lot of fun. Thanks for having me.\n \n \n You can check out the full transcript of our conversation and more resources, like a link to a white paper on OpenVINO and Anomalib at redhat.com/codecommentspodcast. This episode was\n produced by Brent Simoneaux and Caroline Creaghead. Our sound designer is Christian Prohom. Our audio team includes Leigh Day, Stephanie Wonderlick, Mike Esser, Laura Barnes, Claire Allison,\n Nick Burns, Aaron Williamson, Karen King, Boo Boo Howse, Rachel Ertel, Mike Compton, Ocean Matthews, Laura Walters, Alex Traboulsi, and Victoria Lawton. I'm your host, Burr Sutter. Thank you\n for joining me today on Code Comments. I hope you enjoyed today's session and today's conversation, and I look forward to many more.\n \n
\n
\n\n\n\n\n\n\n\n", "label": "Audio Player" }, "demo/demo.css": { @@ -22,7 +22,7 @@ export const configure = project => project.config = { "demo/customization/index.html": { "contentType": "text/html", "selected": false, - "content": "

rh-audio-player

\n\n\n
\n

Options:

\n
    \n
  • \n
  • \n
  • \n \n
  • \n
\n
\n\n\n\n

Code Comments

\n

Bringing Deep Learning to Enterprise Applications

\n \n

About the episode

\n

\n There are a lot of publicly available data sets out there. But when it\n comes to specific enterprise use cases, you're not necessarily going to\n able to find one to train your models. To realize the power of AI/ML in\n enterprise environments, end users need an inference engine to run on\n their hardware. Ryan Loney takes us through OpenVINO and Anomalib, open\n toolkits from Intel that do precisely that. He looks specifically at\n anomaly detection in use cases as varied as medical imaging and\n manufacturing.\n

\n

\n Want to learn more about Anomalib? Check out the research paper that\n introduces the deep learning library.\n

\n \n Ryan Loney\n Product manager, OpenVINO Developer Tools, Intel®\n \n
\n \n \n

Subscribe

\n

Subscribe here:

\n \n \"Listen\n \n \n \"Listen\n \n \n \"Listen\n \n \n \"Subscribe\n \n
\n \n

Transcript

\n \n Hi, I'm Burr Sutter. I'm a Red Hatter who spends a lot of time talking to technologists about technologies. We say this a lot at Red Hat. No single technology provider holds the key to success,\n including us. And I would say the same thing about myself. I love to share ideas, so I thought it would be awesome to talk to some brilliant technologists at Red Hat Partners. This is Code\n Comments, an original podcast from Red Hat.\n \n \n I'm sure, like many of you here, you have been thinking about AI/ML, artificial intelligence and machine learning. I've been thinking about that for quite some time and I actually had the\n opportunity to work on a few successful projects, here at Red Hat, using those technologies, actually enabling a data set, gathering a data set, working with a data scientist and data\n engineering team, and then training a model and putting that model into production runtime environment. It was an exciting set of projects and you can see those on numerous YouTube videos that\n have published out there before. But I want you to think about the problem space a little bit, because there are some interesting challenges about a AI/ML. One is simply just getting access to\n the data, and while there are numerous publicly available data sets, when it comes to your specific enterprise use case, you might not be to find publicly available data.\n \n \n In many cases you cannot, even for our applications that we created, we had to create our data set, capture our data set, explore the data set, and of course, train a model accordingly. And we\n also found there's another challenge to be overcome in this a AI/ML world, and that is access to certain types of hardware. If you think about an enterprise environment and the creation of an\n enterprise application specifically for a AI/ML, end users need an inference engine to run on their hardware. Hardware that's available to them, to be effective for their application. Let's say\n an application like Computer Vision, one that can detect anomalies and medical imaging or maybe on a factory floor. As those things are whizzing by on the factory line there, looking at them and\n trying to determine if there is an error or not.\n \n \n Well, how do you actually make it run on your hardware, your accessible technology that you have today? Well, there's a solution for this as an open toolkit called OpenVINO. And you might be\n thinking, \"Hey, wait a minute, don't you need a GPU for AI inferencing, a GPU for artificial intelligence, machine learning? Well, not according to Ryan Loney, product manager of OpenVINO\n Developer Tools at Intel.\n \n \n I guess I'll start with trying to maybe dispel a myth. I think that CPUs are widely used for inference today. So if we look at the data center segment, about 70% of the AI inference is happening\n on Intel Xeon, on our data center CPUs. And so you don't need a GPU especially for running inference. And that's part of the value of OpenVINO, is that we're taking models that may have been\n trained on a GPU using deep learning frameworks like PyTorch or TensorFlow, and then optimizing them to run on Intel hardware.\n \n \n Ryan joined me to discuss AI/ML in the enterprise across various industries and exploring numerous use cases. Let's talk a little bit about the origin story behind OpenVINO. Tell us more about\n it and how it came to be and why it came out of Intel.\n \n \n Definitely. We had the first release of OpenVINO, was back in 2018, so still relatively new. And at that time, we were focused on Computer Vision and pretty tightly coupled with OpenCV, which is\n another open source library with origins at Intel. It had its first release back in 1999, so it's been around a little bit longer. And many of the software engineers and architects at Intel that\n were involved with and contributing to OpenCV are working on OpenVINO. So you can think of OpenVINO as complimentary software to OpenCV and we're providing an engine for executing inferences as\n part of a Computer Vision pipeline, or at least that's how we started.\n \n \n But since 2018, we've started to move beyond just Computer Vision inference. So when I say Computer Vision inference, I mean image classification, object detection, segmentation, and now we're\n moving into natural language processing. Things like speech synthesis, speech recognition, knowledge graphs, time series forecasting and other use cases that don't involve Computer Vision and\n don't involve inference on pixels. Our latest release, the 2022.1 that came out earlier this year, that was the most significant update that we've had to OpenVINO, since we started in 2018. And\n the major focus of that release was optimizing for use cases that go beyond Computer Vision.\n \n \n And I like that concept that you just mentioned right there, Computer Vision, and you said that you extended those use cases and went beyond that. Could you give us some more concrete examples\n of Computer Vision?\n \n \n Sure. When you think about manufacturing, quality control in factories, everything from arc welding, defect detection to inspecting BMW cars on assembly lines, they're using cameras or sensors\n to collect data and usually it's cameras collecting images like RGB images that you and I can see and looks like something taken from a camera or video camera. But also, things like infrared or\n computerized tomography scans used in healthcare, X-ray, different types of images where we can draw bounding boxes around regions of interest and say, \"This is a defect,\" or, \"This is not a\n defect.\" And also, \"Is this worker wearing a safety hat or did they forget to put it on?\" And so, you can take this and integrate it into a pipeline where you're triggering an alert if somebody\n forgets to wear their safety mask, or if there's a defect in a product on an assembly line, you can just use cameras and OpenVINO and OpenCV running these on Intel hardware and help to analyze.\n \n \n And that's what a lot of the partners that we work with are doing, so these independent software vendors. And there's other use cases for things like retail. You think about going to a store and\n using an automated checkout system. Sometimes people use those automated checkouts and they slide a few extra items into their bag that they don't scan and it's a huge loss for the retail\n outlets that are providing this way to check out realtime shelf monitoring. We have a Vispera, one of our ISVs that helps keep store shelves stocked by just analyzing the cameras in the stores,\n detecting when objects are missing from the shelves so that they can be restocked. We have Vistry, another ISV that works with quick service restaurants. When you think about automating the\n process of, when do I drop the fries into the fryer so that they're warm when the car gets to the drive through window, there's quite a bit of industrial healthcare retail examples that we can\n walk through.\n \n \n And we should dig into some more of those, but I got to tell you, I have a personal experience in this category that I want to share with and you can tell me how silly you might think at this\n point in time it is. We actually built a keynote demonstration for the Red Hat big stage back in 2015. And I really want to illustrate the concept of asset tracking. So we actually gave\n everybody in the conference a little Bluetooth token with a little battery, a little watch battery, and a little Bluetooth emitter. And we basically tracked those things around the conference.\n We basically put a raspberry pi in each of the meeting rooms and up in the lunch room and you could see how the tokens moved from room to room to room.\n \n \n It was a relatively simple application, but it occurred to me, after we figured out how to do that with Bluetooth and triangulating Bluetooth signals by looking at relative signal strength from\n one radio to another and putting that through an Apache Spark application at the time, we then realized, \"You know what? This is easier done with cameras.\" And just simply looking at a camera\n and having some form of a AI/ML model, a machine learning model, that would say, \"There are people here now,\" or, \"There are no people here now.\" What do you think about that?\n \n \n What you just described is exactly the product that Pathr, one of our partners is offering, but they're doing it with Computer Vision and cameras. So when Pathr tries to help retail stores\n analyze the foot traffic and understand, with heat maps, where are people spending the most time in stores, how many people are coming in, what size groups are coming into the store and trying\n to help understand if there was a successful transaction from the people who entered the store and left the store, to help with the retail analytics and marketing sales and positioning of\n products. And so, they're doing that in a way that also protects privacy. And that's something that's really important. So when you talked about those Bluetooth beacons, probably if everyone who walked into a\n grocery store was asked to put a tracking device in their cart or on their person and say, \"You're going to be tracked around the store,\" they probably wouldn't want to do that.\n \n \n The way that you can do this with cameras, is you can detect people as they enter and remove their face. So you can ignore any biometric information and just track the person based on pixels\n that are present in the detected region of interest. So they're able to analyze... Say a family walks in the door and they can group those people together with object detection and then they can\n track their movement throughout the store without keeping track of their face, or any biometric, or any personal identifiable information, to avoid things like bias and to make sure that they're\n protecting the privacy of the shoppers in the store, while still getting that really useful marketing analytics data. So that they can make better decisions about where to place their products.\n That's one really good example of how Computer Vision, AI with OpenVINO is being used today.\n \n \n And that is a great example, because you're definitely spot on. It is invasive when you hand someone a Bluetooth device and say, \"Please, keep this with you as you go throughout our store, our\n mall or throughout our hospital, wherever you might be.\" Now you mentioned another example earlier in the conversation which was related to worker safety. \"Are they wearing a helmet?\" I want to\n talk more about that concept in a real industrial setting, a manufacturing setting, where there might be a factory floor and there's certain requirements. Or better yet there's like a quality\n assurance requirement, let's say, when it comes to looking at a factory line. I've run that use case often with some of our customers. Can you talk more about those kinds of use cases?\n \n \n One of our partners, Robotron, we published a case study, I think last year, where they were working with BMW at one of their factories. And they do quality control inspection, but they're also\n doing things related to worker safety and analyzing. I use the safety hat example. There's a number of our ISVs and partners who have similar use cases and it comes down to, there's a few\n reasons that are motivating this and some are related to insurance. It's important to make sure that if you want to have your factory insured, that your workers are protecting themselves and\n wearing the gear regulatory compliance, you're being asked to properly protect from exposure to chemicals or potentially having something fall and hit someone on the head. So wearing a safety\n vest, wearing goggles, wearing a helmet, these are things that you need to do inside the factory and you can really easily automate and detect and sometimes without bias.\n \n \n I think that's one of the interesting things about the Robotron-BMW example is that they were also blurring, blacking out, so drawing a box to cover the face of the workers in the factory, so\n that somebody who was analyzing the video footage and getting the alerts saying that, \"Bay 21 has a worker without a hat on,\" that it's not sending their face and in the alert and potentially\n invading or going against privacy laws or just the ethics of the company. They don't want to introduce bias or have people targeted because it's much better to blur the face and alert and have\n somebody take care of it on the floor. And then, if you ever need to audit that information later, they have a way to do it where people who need to be able to see who the employee was and look\n up their personal information, they can do that.\n \n \n But then just for the purposes of maintaining safety, they don't need to have access to that personal information, or biometric information. Because that's one thing that when you hear about\n Computer Vision or person tracking, object detection, there's a lot of concern, and rightfully so, about privacy being invaded and about tracking information, face re-identification, identifying\n people who may have committed crimes through video footage. And that's just not something that a lot of companies want to... They want to protect privacy and they don't want to be in a situation\n where they might be violating someone's rights.\n \n \n Well, privacy is certainly opening up Pandora's box. There's a lot to be explored in that area, especially in a digital world that we now live in. But for now, let's move on and explore a\n different area. I'm interested in how machines and computers offer advantages specifically in certain use cases like a quality control scenario. I asked Ryan to explain how a AI/ML and\n specifically machines, computers, could augment that capability.\n \n \n I can give a specific example where we have a partner that's doing defect detection, looking for anomalies in batteries. I'm sure you've heard there's a lot of interest right now in electric\n vehicles, a lot of batteries being produced. And so, if you go into one of these factories, they have images that they collect of every battery that's going through this assembly line. And\n through these images, people can look and see and visually inspect what their eyes and say, \"This battery has a defect, send it back.\" And that's one step in the quality control process, there's\n other steps I'm sure, like running diagnostic tests and measuring voltage and doing other types of non-visual inspection. But for the visual inspection piece, where you can really easily\n identify some problems, it's much more efficient to introduce Computer Vision. And so, that's where we have this new library that we've introduced, called Anomalib.\n \n \n So OpenVINO, while we're focused on inference, we're also thinking about the pipeline, or the funnel, that gets these models to OpenVINO. And so, we've invested in this anomaly segmentation,\n anomaly detection library that we've recently open sourced and there's a great research paper about it, about Anomalib, but the idea is you can take just a few images and train a model and start\n detecting these defects. And so, for this battery example, that's a more advanced example, but to make it simpler, take some bolts and... Take 10 bolts. You have one that has a scratch on it, or\n one that is chipped, or has some damage to it, and you can easily get started in training to recognize the bolts that do not have an anomaly and the ones that do, which is a small data set. And\n I think that's really one of the most important things today.\n \n \n Challenges, one is access to data, but the other is needing a massive amount of data to do something meaningful. And so we're starting to try to change that dynamic with Anomalib. You may not\n need a 100,000 images, you may need 100 images and you can start detecting anomalies in everything from batteries to bolts to, maybe even the wood varnish use case that you mentioned.\n \n \n That is a very key point because often in that data scientist process, that data engineering data scientist process, the one key thing is, can you gather the data that you need for the input for\n the model training? And we've often said, at least people I've worked with over the last couple years, \"You need a lot of data, you need tens of thousands of correct images, so we can sort out\n the difference between dogs versus cats,\" let's say. Or you need dozens and dozens of situations where if it's a natural language processing scenario, a good customer interaction, a good\n customer conversation. And this case it sounds like what you're saying is, \"Show us just the bad things, fewer images, fewer incorrect things, and then let us look for those kind of anomalies.\"\n Can you tell us more about that? Because that is very interesting. The concept that I can use a much smaller data set as my input, as opposed to gathering terabytes of data in some cases, to just simply\n get my model training underway.\n \n \n Like you described, the idea is, if you have some good images and then you have some of the known defects, and you can just label, \"Here's a set of good images and here's a few of the defects.\"\n And you can right away start detecting those specific defects that you've identified. And then, also be able to determine when it doesn't match the expected appearance of a non defective item.\n So if I have the undamaged screw and then I introduce one with some new anomaly that's never been seen before, I can say this one is not a valid screw. And so, that's the approach that we're\n taking and it's really important because so often you need to have subject matter experts. Take the battery example, there's these workers who are on the floor, in a factory and they're the ones\n who know best when they look at these images, which one's going to have an issue, which one's defective.\n \n \n And then they also need to take that subject matter expertise and then use it to annotate data sets. And when you have these tens of thousands of images you need to annotate, it's asking those\n people to stop working on the factory floor so they can come annotate some images. That's a tough business call to make, right? But if you only need them to annotate a handful of images, it's a\n much easier ask to get the ball rolling and demonstrate value. And maybe over time you will want to annotate more and more images because you'll get even better accuracy in the model. Even\n better, even if it's just small incremental improvements, that's something that if it generates value for the business, it's something the business will invest in over time. But you have to\n convince the decision makers that it's worth the time of these subject matter experts to stop what they're doing and go and label some images of the things that they're working on in the\n factory.\n \n \n And that labeling process can be very labor intensive. If the annotation is basically saying what is correct, what's wrong, what is this, what is that. And therefore if we can minimize that\n timeframe to get the value quicker, then there's something that's useful for the business, useful for the organization, long before we necessarily go through a whole huge model training phase.\n \n \n So we talked about labeling and how that is labor intensive activity, but I love the idea of helping the human. And helping the human most specifically not get bored. Basically if the human is\n eyeballing a bunch of widgets flying by, over time they make mistakes, they get bored and they don't pay as close attention as they should. That's why the constant of AI/ML, and specifically\n Computer Vision augmenting that capability and really helping the human identify anomalies faster, more quickly, maybe with greater accuracy, could be a big win. We focused on manufacturing, but\n let's actually go into healthcare and learn how these tools can be used in that sector and that industry. Ryan talked me about how OpenVINO's run time can be incorporated into medical imaging\n equipment with Intel processors embedded in CT, MRI and ultrasound machines. While these inferences, this AI/ML workload, can be operating and executing right there in the same physical room as\n the patient.\n \n \n We did a presentation with GE last year, I think they said there's at least 80 countries that have their x-ray machines deployed. And they're doing things like helping doctors place breathing\n tubes in patients. So during COVID, during the pandemic, that was a really important tool to help with nurses and doctors who were intubating patients, sometimes in a parking lot or a hallway of\n a hospital. And when they had a statistic that GE said, I think one out of four breathing tubes gets placed incorrectly when you're doing it outside the operating room. Because when you're in an\n operating room it's much more controlled and there's someone who's an expert at placing the tubes, it's something you have more of a controlled environment. But when you're out, in a parking\n lot, in a tent, when the hospital's completely full and you're triaging patients with COVID, that's when they're more likely to make mistakes.And so, they had this endotracheal tube placement,\n ETT, model that they trained and it helped to use an x-ray and give an alert and say, \"This tube is placed wrong, pull it out and do it again.\" And so, things like that help doctors so that they\n can avoid mistakes. And having a breathing tube placed incorrectly can cause collapsed lung and a number of other unwanted side effects. So it's really important to do it correctly. Another example\n is Samsung Medison. They actually are estimating fetal angle of progression. So this is analyzing ultrasound of pregnant women being able to help take measurements that are usually hard to\n calculate, but it can be done in an automated way. They're already taking an ultrasound scan and now they're executing this model that can take some of these measurements to help the doctor\n avoid potentially more intrusive alternative methods. So the patient wins, it makes their life better and the doctor is getting help from this AI model. And those are just a few examples.\n \n \n Those are some amazing examples when it comes to all these things, we're talking CT scans and x-rays, other examples of Computer Vision. One thing that's kind of interesting in this space, I\n think, whenever I get a chance to work on, let's say an object detection model, and one of our workshops, by the way, is actually putting that out in front of people to say, \"Look, you can use\n your phone and it basically sends the image over to our OpenShift with our data science platform and then analyzes what you see.\" And even in my case, where I take a picture of my dog as an\n example, it can't really decide, is it a dog or a cat? I have a very funny looking dog.\n \n \n And so there's always a percentage outcome. In other words, \"I think it's a dog, 52%.\" So I want to talk about that more. How important is it to get to that a hundred percent accuracy? How\n important is it to really, depending on the use case, to allow for the gray area if you will, where it's an 80% accuracy or a 70% accuracy, and what are the trade offs there associated with the\n application? Can you discuss that more?\n \n \n Accuracy is definitely a touchy subject, because how you measure it makes a huge difference. I think what you were describing with the dog example, there's sort of a top five potential classes\n that might maybe be identified. So let's say you're doing object detection and you detect a region of interest, and it says 65% confidence this is a dog. Well, the next potential label that\n could be maybe 50% confidence or 20% confidence might be something similar to a dog. Or in the case of models that have been trained on the ImageNet dataset or on COCO dataset, they have actual\n breeds of dogs. If I want to look at the top five labels for a dog, for my dog for example, she's a mix, mostly a Labrador retriever, but I may look at the top five labels and it may say 65%\n confidence that she's a flat coated retriever.\n \n \n And then confidence that she's a husky as 20%, and then 5% confidence that she's a greyhound or something. Those labels, all of them are dogs. So if I'm just trying to figure out, is this a dog?\n I could probably find all of the classes within the data set and say, \"Well, these all, class ID 65, 132, 92 and 158, all belong to a group of dogs.\" So if I want to just write an application to\n tell me if this is a dog or not, I would probably use that to determine if it's a dog. But how you measure that as accuracy, well that's where it gets a little bit complicated. Because if you're\n being really strict about the definition and you're trying to validate against the data set of labeled images, and I have specific dog breeds or some specific detail and it doesn't match, well\n then, the accuracy's going to go down.\n \n \n And that's especially important when we talk about things like compression and quantization, which historically, has been difficult to get adoption in some domains, like healthcare, where even\n the hint of accuracy going down implies that we're not going to be able to help. In some small case, maybe if it's even half a percent of the time, we won't detect that that tube is placed\n incorrectly or that that patient's lung has collapsed or something like that. And that's something that really prevents adoption of some of these methods that can really boost performance, like\n quantization. But if you take that example of... Different from the dog example, and you think about segmentation of kidneys. If I'm doing kidney segmentation, which is taking a CT scan and then\n trying to pick the pixels out of that scan that belong to a kidney, how I measure accuracy may be how many of those pixels I'm able to detect and how many did I miss?\n \n \n Missing some of the pixels is maybe not a problem, depending on how you've built the application, because you still detect the kidney, and maybe you just need to apply padding around the region\n of interest, so that you don't miss any of the actual kidney when you compress the model and when you quantize the model. But that requires a data scientist, an ML engineer, somebody to really,\n they have to be able to go and apply that after the fact, after the inference happens, to make sure that you're not losing critical information. Because the next step from detecting the kidney,\n may be detecting a tumor.\n \n \n And so, maybe you can use the more optimized model to detect the kidney, but then you can use a slower model to detect the tumor. But that also requires somebody to architect and make that\n decision or that trade off and say, \"Well, I need to add padding,\" or, \"I should only use the quantized model to detect the region of interest for the kidney.\" And then, use the model that takes\n longer to do the inference just to find the tumor, which is going to be on a smaller size. The dimensions are going to be much smaller once we crop to the region of interest. But all of those\n details, that's maybe not easy to explain in a few sentences and even the way I explained it is probably really confusing.\n \n \n I do love that use case, like you mentioned, the cropping, even in one scenario that we worked on for another project, we specifically decided to pixelate the image that we had taken, because we\n knew that we could get the outcome we wanted by even just using a smaller or having less resolution in our image. And therefore, as we transferred it from the mobile device, the edge device, up\n into the cloud, we wanted that smaller image just for transfer purposes. And still, we could get the accuracy we needed by a lot of testing.\n \n \n And one thing that's interesting about that, from my perspective, is, if you're doing image processing, sometimes it takes a while for this transaction to occur. I come from a traditional\n application background, where I'm reading and writing things from a database, or a message broker, or moving data from one place to another. Those things happen sub-second normally, even with\n great latency between your data centers, it's still sub-second in most cases. While a transaction like this one can actually take two seconds or four seconds, as it's doing its analysis and\n actually coming back with its, \"I think it's a dog, I think it's a kidney, I think it's whatever.\" And providing me that accuracy statement. That concept of optimization is very important in the\n overall application architecture. Would you agree with that or how do you think about that concept?\n \n \n Definitely. It depends too on the use case. So if you think about how important it is to reduce the latency and increase the number of frames per second that you can process when you're talking\n about a loss prevention model that's running at a grocery store. You want to keep the lines moving, you don't want every person who's at the self checkout to have to wait five seconds for every\n item they scan. You need it to happen as quickly as possible. And if sometimes the accuracy decreases slightly, or I'd say the accuracy of the whole pipeline, so not just looking at the\n individual model or the individual inference, but let's say that the whole pipeline is not as successful at detecting when somebody steals one item from the self checkout, it's not going to be a\n life threatening situation. Whereas being hooked up to the x-ray machine with the tube placement model, they might be willing to have the doctor or the nurse wait five seconds to get the result.\n \n \n They don't need it to happen in 500 milliseconds. Their threshold for waiting is a little bit higher. That, I think, also drives some of the decision. You want to keep people moving through the\n checkout line and you can afford to, potentially, if you lose a little bit of accuracy here and there, it's not going to cost the company that much money or it's not going to be life\n threatening. It's going to be worth the trade off of keeping the line moving and not having people leave the store and not check out at all, to say, \"I'm not going to shop today because the\n line's too long.\"\n \n \n There are so many trade-offs in enterprise AI/ML use cases, things like latency, accuracy and availability, and certainly complexities abound, especially in an obviously ever-evolving\n technological landscape where we are still very early in the adoption of AI/ML. And to navigate that complexity, that direct feedback from real world end users is essential to Ryan and his team\n at Intel. What would you say are some of the big hurdles or big outcomes, big opportunities in that space? And do you agree that we're still at the very beginning, in our infancy if you will, of\n adopting these technologies and discovering what they can do for us?\n \n \n Yeah, I think we're definitely in the infancy and I think that what we've seen is, our customers are evolving and the people who are deploying on Intel hardware, they're trying to run more\n complicated models. They're the models that are doing object detection or detecting defects and doing segmentation. In the past you could say, \"Here's a generic model that will do face\n detection, or person detection, or vehicle detection, license plate detection.\" And those are general purpose models that you can just grab off the shelf and use them. But now we're moving into\n the Anomalib scenarios, where I've got my own data and I'm trying to do something very specific and I'm the only one that has access to this data. You don't have that public data set that you can go\n download that's under Creative Commons license for car batteries. It's just not something that's available.\n \n \n And so, those use cases, the challenge with training those models and getting them optimized is the beginning of the pipeline. It's the data. You have to get the data, you have to annotate it\n and the tools have to exist for you to do that. And that's part of the problem that we're trying to help solve. And then, the models are getting more complex. So if you think, just from working\n with customers recently, they're no longer just trying to do image classification, \"Is it a dog or a cat?\" They've moved on to 3D point clouds and 3D segmentation models and things that are like the\n speech synthesis example. These GPT models that are generating... You put a text input and it generates an image for you. It's just becoming much more advanced, much more sophisticated and on\n larger images.\n \n \n And so things like running super resolution and enhancing images, upscaling images, instead of just trying to take that 200 by 200 pixel image and classifying if it's a cat, now we're talking\n about gigantic, huge images that we're processing and that all requires more resources or more optimized models. And every Computer Vision conference or AI conference, there's a new latest and\n greatest architecture, there's new research paper, and things are getting adopted much faster. The lead time for a NeurIPS paper, CVPR, for a company to actually adopt and put those into\n production, the time shortens every year.\n \n \n Well Ryan, I got to tell you, I could talk to you, literally, all day about these topics, the various use cases, the various ways models are being optimized, how to put models into a pipeline\n for average enterprise applications. I've enjoyed learning about OpenVINO and Anomalib. I'm fascinated by this, because I'll have a chance to go try this myself, taking advantage of Red Hat\n OpenShift and taking advantage of our data science platform. On top of that, I will definitely go be poking at this myself. Thank you so much for your time today.\n \n \n Thanks, Burr. This was a lot of fun. Thanks for having me.\n \n \n You can check out the full transcript of our conversation and more resources, like a link to a white paper on OpenVINO and Anomalib at redhat.com/codecommentspodcast. This episode was produced\n by Brent Simoneaux and Caroline Creaghead. Our sound designer is Christian Prohom. Our audio team includes Leigh Day, Stephanie Wonderlick, Mike Esser, Laura Barnes, Claire Allison, Nick Burns,\n Aaron Williamson, Karen King, Boo Boo Howse, Rachel Ertel, Mike Compton, Ocean Matthews, Laura Walters, Alex Traboulsi, and Victoria Lawton. I'm your host, Burr Sutter. Thank you for joining me\n today on Code Comments. I hope you enjoyed today's session and today's conversation, and I look forward to many more.\n \n
\n
\n\n\n\n\n", + "content": "

rh-audio-player

\n\n\n
\n

Options:

\n
    \n
  • \n
  • \n
  • \n \n
  • \n
\n
\n\n\n\n

Code Comments

\n

Bringing Deep Learning to Enterprise Applications

\n \n

About the episode

\n

\n There are a lot of publicly available data sets out there. But when it\n comes to specific enterprise use cases, you're not necessarily going to\n able to find one to train your models. To realize the power of AI/ML in\n enterprise environments, end users need an inference engine to run on\n their hardware. Ryan Loney takes us through OpenVINO and Anomalib, open\n toolkits from Intel that do precisely that. He looks specifically at\n anomaly detection in use cases as varied as medical imaging and\n manufacturing.\n

\n

\n Want to learn more about Anomalib? Check out the research paper that\n introduces the deep learning library.\n

\n \n Ryan Loney\n Product manager, OpenVINO Developer Tools, Intel®\n \n
\n \n \n

Subscribe

\n

Subscribe here:

\n \n \"Listen\n \n \n \"Listen\n \n \n \"Listen\n \n \n \"Subscribe\n \n
\n \n

Transcript

\n \n Hi, I'm Burr Sutter. I'm a Red Hatter who spends a lot of time talking to technologists about technologies. We say this a lot at Red Hat. No single technology provider holds the key to success,\n including us. And I would say the same thing about myself. I love to share ideas, so I thought it would be awesome to talk to some brilliant technologists at Red Hat Partners. This is Code\n Comments, an original podcast from Red Hat.\n \n \n I'm sure, like many of you here, you have been thinking about AI/ML, artificial intelligence and machine learning. I've been thinking about that for quite some time and I actually had the\n opportunity to work on a few successful projects, here at Red Hat, using those technologies, actually enabling a data set, gathering a data set, working with a data scientist and data\n engineering team, and then training a model and putting that model into production runtime environment. It was an exciting set of projects and you can see those on numerous YouTube videos that\n have published out there before. But I want you to think about the problem space a little bit, because there are some interesting challenges about a AI/ML. One is simply just getting access to\n the data, and while there are numerous publicly available data sets, when it comes to your specific enterprise use case, you might not be to find publicly available data.\n \n \n In many cases you cannot, even for our applications that we created, we had to create our data set, capture our data set, explore the data set, and of course, train a model accordingly. And we\n also found there's another challenge to be overcome in this a AI/ML world, and that is access to certain types of hardware. If you think about an enterprise environment and the creation of an\n enterprise application specifically for a AI/ML, end users need an inference engine to run on their hardware. Hardware that's available to them, to be effective for their application. Let's say\n an application like Computer Vision, one that can detect anomalies and medical imaging or maybe on a factory floor. As those things are whizzing by on the factory line there, looking at them and\n trying to determine if there is an error or not.\n \n \n Well, how do you actually make it run on your hardware, your accessible technology that you have today? Well, there's a solution for this as an open toolkit called OpenVINO. And you might be\n thinking, \"Hey, wait a minute, don't you need a GPU for AI inferencing, a GPU for artificial intelligence, machine learning? Well, not according to Ryan Loney, product manager of OpenVINO\n Developer Tools at Intel.\n \n \n I guess I'll start with trying to maybe dispel a myth. I think that CPUs are widely used for inference today. So if we look at the data center segment, about 70% of the AI inference is happening\n on Intel Xeon, on our data center CPUs. And so you don't need a GPU especially for running inference. And that's part of the value of OpenVINO, is that we're taking models that may have been\n trained on a GPU using deep learning frameworks like PyTorch or TensorFlow, and then optimizing them to run on Intel hardware.\n \n \n Ryan joined me to discuss AI/ML in the enterprise across various industries and exploring numerous use cases. Let's talk a little bit about the origin story behind OpenVINO. Tell us more about\n it and how it came to be and why it came out of Intel.\n \n \n Definitely. We had the first release of OpenVINO, was back in 2018, so still relatively new. And at that time, we were focused on Computer Vision and pretty tightly coupled with OpenCV, which is\n another open source library with origins at Intel. It had its first release back in 1999, so it's been around a little bit longer. And many of the software engineers and architects at Intel that\n were involved with and contributing to OpenCV are working on OpenVINO. So you can think of OpenVINO as complimentary software to OpenCV and we're providing an engine for executing inferences as\n part of a Computer Vision pipeline, or at least that's how we started.\n \n \n But since 2018, we've started to move beyond just Computer Vision inference. So when I say Computer Vision inference, I mean image classification, object detection, segmentation, and now we're\n moving into natural language processing. Things like speech synthesis, speech recognition, knowledge graphs, time series forecasting and other use cases that don't involve Computer Vision and\n don't involve inference on pixels. Our latest release, the 2022.1 that came out earlier this year, that was the most significant update that we've had to OpenVINO, since we started in 2018. And\n the major focus of that release was optimizing for use cases that go beyond Computer Vision.\n \n \n And I like that concept that you just mentioned right there, Computer Vision, and you said that you extended those use cases and went beyond that. Could you give us some more concrete examples\n of Computer Vision?\n \n \n Sure. When you think about manufacturing, quality control in factories, everything from arc welding, defect detection to inspecting BMW cars on assembly lines, they're using cameras or sensors\n to collect data and usually it's cameras collecting images like RGB images that you and I can see and looks like something taken from a camera or video camera. But also, things like infrared or\n computerized tomography scans used in healthcare, X-ray, different types of images where we can draw bounding boxes around regions of interest and say, \"This is a defect,\" or, \"This is not a\n defect.\" And also, \"Is this worker wearing a safety hat or did they forget to put it on?\" And so, you can take this and integrate it into a pipeline where you're triggering an alert if somebody\n forgets to wear their safety mask, or if there's a defect in a product on an assembly line, you can just use cameras and OpenVINO and OpenCV running these on Intel hardware and help to analyze.\n \n \n And that's what a lot of the partners that we work with are doing, so these independent software vendors. And there's other use cases for things like retail. You think about going to a store and\n using an automated checkout system. Sometimes people use those automated checkouts and they slide a few extra items into their bag that they don't scan and it's a huge loss for the retail\n outlets that are providing this way to check out realtime shelf monitoring. We have a Vispera, one of our ISVs that helps keep store shelves stocked by just analyzing the cameras in the stores,\n detecting when objects are missing from the shelves so that they can be restocked. We have Vistry, another ISV that works with quick service restaurants. When you think about automating the\n process of, when do I drop the fries into the fryer so that they're warm when the car gets to the drive through window, there's quite a bit of industrial healthcare retail examples that we can\n walk through.\n \n \n And we should dig into some more of those, but I got to tell you, I have a personal experience in this category that I want to share with and you can tell me how silly you might think at this\n point in time it is. We actually built a keynote demonstration for the Red Hat big stage back in 2015. And I really want to illustrate the concept of asset tracking. So we actually gave\n everybody in the conference a little Bluetooth token with a little battery, a little watch battery, and a little Bluetooth emitter. And we basically tracked those things around the conference.\n We basically put a raspberry pi in each of the meeting rooms and up in the lunch room and you could see how the tokens moved from room to room to room.\n \n \n It was a relatively simple application, but it occurred to me, after we figured out how to do that with Bluetooth and triangulating Bluetooth signals by looking at relative signal strength from\n one radio to another and putting that through an Apache Spark application at the time, we then realized, \"You know what? This is easier done with cameras.\" And just simply looking at a camera\n and having some form of a AI/ML model, a machine learning model, that would say, \"There are people here now,\" or, \"There are no people here now.\" What do you think about that?\n \n \n What you just described is exactly the product that Pathr, one of our partners is offering, but they're doing it with Computer Vision and cameras. So when Pathr tries to help retail stores\n analyze the foot traffic and understand, with heat maps, where are people spending the most time in stores, how many people are coming in, what size groups are coming into the store and trying\n to help understand if there was a successful transaction from the people who entered the store and left the store, to help with the retail analytics and marketing sales and positioning of\n products. And so, they're doing that in a way that also protects privacy. And that's something that's really important. So when you talked about those Bluetooth beacons, probably if everyone who walked into a\n grocery store was asked to put a tracking device in their cart or on their person and say, \"You're going to be tracked around the store,\" they probably wouldn't want to do that.\n \n \n The way that you can do this with cameras, is you can detect people as they enter and remove their face. So you can ignore any biometric information and just track the person based on pixels\n that are present in the detected region of interest. So they're able to analyze... Say a family walks in the door and they can group those people together with object detection and then they can\n track their movement throughout the store without keeping track of their face, or any biometric, or any personal identifiable information, to avoid things like bias and to make sure that they're\n protecting the privacy of the shoppers in the store, while still getting that really useful marketing analytics data. So that they can make better decisions about where to place their products.\n That's one really good example of how Computer Vision, AI with OpenVINO is being used today.\n \n \n And that is a great example, because you're definitely spot on. It is invasive when you hand someone a Bluetooth device and say, \"Please, keep this with you as you go throughout our store, our\n mall or throughout our hospital, wherever you might be.\" Now you mentioned another example earlier in the conversation which was related to worker safety. \"Are they wearing a helmet?\" I want to\n talk more about that concept in a real industrial setting, a manufacturing setting, where there might be a factory floor and there's certain requirements. Or better yet there's like a quality\n assurance requirement, let's say, when it comes to looking at a factory line. I've run that use case often with some of our customers. Can you talk more about those kinds of use cases?\n \n \n One of our partners, Robotron, we published a case study, I think last year, where they were working with BMW at one of their factories. And they do quality control inspection, but they're also\n doing things related to worker safety and analyzing. I use the safety hat example. There's a number of our ISVs and partners who have similar use cases and it comes down to, there's a few\n reasons that are motivating this and some are related to insurance. It's important to make sure that if you want to have your factory insured, that your workers are protecting themselves and\n wearing the gear regulatory compliance, you're being asked to properly protect from exposure to chemicals or potentially having something fall and hit someone on the head. So wearing a safety\n vest, wearing goggles, wearing a helmet, these are things that you need to do inside the factory and you can really easily automate and detect and sometimes without bias.\n \n \n I think that's one of the interesting things about the Robotron-BMW example is that they were also blurring, blacking out, so drawing a box to cover the face of the workers in the factory, so\n that somebody who was analyzing the video footage and getting the alerts saying that, \"Bay 21 has a worker without a hat on,\" that it's not sending their face and in the alert and potentially\n invading or going against privacy laws or just the ethics of the company. They don't want to introduce bias or have people targeted because it's much better to blur the face and alert and have\n somebody take care of it on the floor. And then, if you ever need to audit that information later, they have a way to do it where people who need to be able to see who the employee was and look\n up their personal information, they can do that.\n \n \n But then just for the purposes of maintaining safety, they don't need to have access to that personal information, or biometric information. Because that's one thing that when you hear about\n Computer Vision or person tracking, object detection, there's a lot of concern, and rightfully so, about privacy being invaded and about tracking information, face re-identification, identifying\n people who may have committed crimes through video footage. And that's just not something that a lot of companies want to... They want to protect privacy and they don't want to be in a situation\n where they might be violating someone's rights.\n \n \n Well, privacy is certainly opening up Pandora's box. There's a lot to be explored in that area, especially in a digital world that we now live in. But for now, let's move on and explore a\n different area. I'm interested in how machines and computers offer advantages specifically in certain use cases like a quality control scenario. I asked Ryan to explain how a AI/ML and\n specifically machines, computers, could augment that capability.\n \n \n I can give a specific example where we have a partner that's doing defect detection, looking for anomalies in batteries. I'm sure you've heard there's a lot of interest right now in electric\n vehicles, a lot of batteries being produced. And so, if you go into one of these factories, they have images that they collect of every battery that's going through this assembly line. And\n through these images, people can look and see and visually inspect what their eyes and say, \"This battery has a defect, send it back.\" And that's one step in the quality control process, there's\n other steps I'm sure, like running diagnostic tests and measuring voltage and doing other types of non-visual inspection. But for the visual inspection piece, where you can really easily\n identify some problems, it's much more efficient to introduce Computer Vision. And so, that's where we have this new library that we've introduced, called Anomalib.\n \n \n So OpenVINO, while we're focused on inference, we're also thinking about the pipeline, or the funnel, that gets these models to OpenVINO. And so, we've invested in this anomaly segmentation,\n anomaly detection library that we've recently open sourced and there's a great research paper about it, about Anomalib, but the idea is you can take just a few images and train a model and start\n detecting these defects. And so, for this battery example, that's a more advanced example, but to make it simpler, take some bolts and... Take 10 bolts. You have one that has a scratch on it, or\n one that is chipped, or has some damage to it, and you can easily get started in training to recognize the bolts that do not have an anomaly and the ones that do, which is a small data set. And\n I think that's really one of the most important things today.\n \n \n Challenges, one is access to data, but the other is needing a massive amount of data to do something meaningful. And so we're starting to try to change that dynamic with Anomalib. You may not\n need a 100,000 images, you may need 100 images and you can start detecting anomalies in everything from batteries to bolts to, maybe even the wood varnish use case that you mentioned.\n \n \n That is a very key point because often in that data scientist process, that data engineering data scientist process, the one key thing is, can you gather the data that you need for the input for\n the model training? And we've often said, at least people I've worked with over the last couple years, \"You need a lot of data, you need tens of thousands of correct images, so we can sort out\n the difference between dogs versus cats,\" let's say. Or you need dozens and dozens of situations where if it's a natural language processing scenario, a good customer interaction, a good\n customer conversation. And this case it sounds like what you're saying is, \"Show us just the bad things, fewer images, fewer incorrect things, and then let us look for those kind of anomalies.\"\n Can you tell us more about that? Because that is very interesting. The concept that I can use a much smaller data set as my input, as opposed to gathering terabytes of data in some cases, to just simply\n get my model training underway.\n \n \n Like you described, the idea is, if you have some good images and then you have some of the known defects, and you can just label, \"Here's a set of good images and here's a few of the defects.\"\n And you can right away start detecting those specific defects that you've identified. And then, also be able to determine when it doesn't match the expected appearance of a non defective item.\n So if I have the undamaged screw and then I introduce one with some new anomaly that's never been seen before, I can say this one is not a valid screw. And so, that's the approach that we're\n taking and it's really important because so often you need to have subject matter experts. Take the battery example, there's these workers who are on the floor, in a factory and they're the ones\n who know best when they look at these images, which one's going to have an issue, which one's defective.\n \n \n And then they also need to take that subject matter expertise and then use it to annotate data sets. And when you have these tens of thousands of images you need to annotate, it's asking those\n people to stop working on the factory floor so they can come annotate some images. That's a tough business call to make, right? But if you only need them to annotate a handful of images, it's a\n much easier ask to get the ball rolling and demonstrate value. And maybe over time you will want to annotate more and more images because you'll get even better accuracy in the model. Even\n better, even if it's just small incremental improvements, that's something that if it generates value for the business, it's something the business will invest in over time. But you have to\n convince the decision makers that it's worth the time of these subject matter experts to stop what they're doing and go and label some images of the things that they're working on in the\n factory.\n \n \n And that labeling process can be very labor intensive. If the annotation is basically saying what is correct, what's wrong, what is this, what is that. And therefore if we can minimize that\n timeframe to get the value quicker, then there's something that's useful for the business, useful for the organization, long before we necessarily go through a whole huge model training phase.\n \n \n So we talked about labeling and how that is labor intensive activity, but I love the idea of helping the human. And helping the human most specifically not get bored. Basically if the human is\n eyeballing a bunch of widgets flying by, over time they make mistakes, they get bored and they don't pay as close attention as they should. That's why the constant of AI/ML, and specifically\n Computer Vision augmenting that capability and really helping the human identify anomalies faster, more quickly, maybe with greater accuracy, could be a big win. We focused on manufacturing, but\n let's actually go into healthcare and learn how these tools can be used in that sector and that industry. Ryan talked me about how OpenVINO's run time can be incorporated into medical imaging\n equipment with Intel processors embedded in CT, MRI and ultrasound machines. While these inferences, this AI/ML workload, can be operating and executing right there in the same physical room as\n the patient.\n \n \n We did a presentation with GE last year, I think they said there's at least 80 countries that have their x-ray machines deployed. And they're doing things like helping doctors place breathing\n tubes in patients. So during COVID, during the pandemic, that was a really important tool to help with nurses and doctors who were intubating patients, sometimes in a parking lot or a hallway of\n a hospital. And when they had a statistic that GE said, I think one out of four breathing tubes gets placed incorrectly when you're doing it outside the operating room. Because when you're in an\n operating room it's much more controlled and there's someone who's an expert at placing the tubes, it's something you have more of a controlled environment. But when you're out, in a parking\n lot, in a tent, when the hospital's completely full and you're triaging patients with COVID, that's when they're more likely to make mistakes.And so, they had this endotracheal tube placement,\n ETT, model that they trained and it helped to use an x-ray and give an alert and say, \"This tube is placed wrong, pull it out and do it again.\" And so, things like that help doctors so that they\n can avoid mistakes. And having a breathing tube placed incorrectly can cause collapsed lung and a number of other unwanted side effects. So it's really important to do it correctly. Another example\n is Samsung Medison. They actually are estimating fetal angle of progression. So this is analyzing ultrasound of pregnant women being able to help take measurements that are usually hard to\n calculate, but it can be done in an automated way. They're already taking an ultrasound scan and now they're executing this model that can take some of these measurements to help the doctor\n avoid potentially more intrusive alternative methods. So the patient wins, it makes their life better and the doctor is getting help from this AI model. And those are just a few examples.\n \n \n Those are some amazing examples when it comes to all these things, we're talking CT scans and x-rays, other examples of Computer Vision. One thing that's kind of interesting in this space, I\n think, whenever I get a chance to work on, let's say an object detection model, and one of our workshops, by the way, is actually putting that out in front of people to say, \"Look, you can use\n your phone and it basically sends the image over to our OpenShift with our data science platform and then analyzes what you see.\" And even in my case, where I take a picture of my dog as an\n example, it can't really decide, is it a dog or a cat? I have a very funny looking dog.\n \n \n And so there's always a percentage outcome. In other words, \"I think it's a dog, 52%.\" So I want to talk about that more. How important is it to get to that a hundred percent accuracy? How\n important is it to really, depending on the use case, to allow for the gray area if you will, where it's an 80% accuracy or a 70% accuracy, and what are the trade offs there associated with the\n application? Can you discuss that more?\n \n \n Accuracy is definitely a touchy subject, because how you measure it makes a huge difference. I think what you were describing with the dog example, there's sort of a top five potential classes\n that might maybe be identified. So let's say you're doing object detection and you detect a region of interest, and it says 65% confidence this is a dog. Well, the next potential label that\n could be maybe 50% confidence or 20% confidence might be something similar to a dog. Or in the case of models that have been trained on the ImageNet dataset or on COCO dataset, they have actual\n breeds of dogs. If I want to look at the top five labels for a dog, for my dog for example, she's a mix, mostly a Labrador retriever, but I may look at the top five labels and it may say 65%\n confidence that she's a flat coated retriever.\n \n \n And then confidence that she's a husky as 20%, and then 5% confidence that she's a greyhound or something. Those labels, all of them are dogs. So if I'm just trying to figure out, is this a dog?\n I could probably find all of the classes within the data set and say, \"Well, these all, class ID 65, 132, 92 and 158, all belong to a group of dogs.\" So if I want to just write an application to\n tell me if this is a dog or not, I would probably use that to determine if it's a dog. But how you measure that as accuracy, well that's where it gets a little bit complicated. Because if you're\n being really strict about the definition and you're trying to validate against the data set of labeled images, and I have specific dog breeds or some specific detail and it doesn't match, well\n then, the accuracy's going to go down.\n \n \n And that's especially important when we talk about things like compression and quantization, which historically, has been difficult to get adoption in some domains, like healthcare, where even\n the hint of accuracy going down implies that we're not going to be able to help. In some small case, maybe if it's even half a percent of the time, we won't detect that that tube is placed\n incorrectly or that that patient's lung has collapsed or something like that. And that's something that really prevents adoption of some of these methods that can really boost performance, like\n quantization. But if you take that example of... Different from the dog example, and you think about segmentation of kidneys. If I'm doing kidney segmentation, which is taking a CT scan and then\n trying to pick the pixels out of that scan that belong to a kidney, how I measure accuracy may be how many of those pixels I'm able to detect and how many did I miss?\n \n \n Missing some of the pixels is maybe not a problem, depending on how you've built the application, because you still detect the kidney, and maybe you just need to apply padding around the region\n of interest, so that you don't miss any of the actual kidney when you compress the model and when you quantize the model. But that requires a data scientist, an ML engineer, somebody to really,\n they have to be able to go and apply that after the fact, after the inference happens, to make sure that you're not losing critical information. Because the next step from detecting the kidney,\n may be detecting a tumor.\n \n \n And so, maybe you can use the more optimized model to detect the kidney, but then you can use a slower model to detect the tumor. But that also requires somebody to architect and make that\n decision or that trade off and say, \"Well, I need to add padding,\" or, \"I should only use the quantized model to detect the region of interest for the kidney.\" And then, use the model that takes\n longer to do the inference just to find the tumor, which is going to be on a smaller size. The dimensions are going to be much smaller once we crop to the region of interest. But all of those\n details, that's maybe not easy to explain in a few sentences and even the way I explained it is probably really confusing.\n \n \n I do love that use case, like you mentioned, the cropping, even in one scenario that we worked on for another project, we specifically decided to pixelate the image that we had taken, because we\n knew that we could get the outcome we wanted by even just using a smaller or having less resolution in our image. And therefore, as we transferred it from the mobile device, the edge device, up\n into the cloud, we wanted that smaller image just for transfer purposes. And still, we could get the accuracy we needed by a lot of testing.\n \n \n And one thing that's interesting about that, from my perspective, is, if you're doing image processing, sometimes it takes a while for this transaction to occur. I come from a traditional\n application background, where I'm reading and writing things from a database, or a message broker, or moving data from one place to another. Those things happen sub-second normally, even with\n great latency between your data centers, it's still sub-second in most cases. While a transaction like this one can actually take two seconds or four seconds, as it's doing its analysis and\n actually coming back with its, \"I think it's a dog, I think it's a kidney, I think it's whatever.\" And providing me that accuracy statement. That concept of optimization is very important in the\n overall application architecture. Would you agree with that or how do you think about that concept?\n \n \n Definitely. It depends too on the use case. So if you think about how important it is to reduce the latency and increase the number of frames per second that you can process when you're talking\n about a loss prevention model that's running at a grocery store. You want to keep the lines moving, you don't want every person who's at the self checkout to have to wait five seconds for every\n item they scan. You need it to happen as quickly as possible. And if sometimes the accuracy decreases slightly, or I'd say the accuracy of the whole pipeline, so not just looking at the\n individual model or the individual inference, but let's say that the whole pipeline is not as successful at detecting when somebody steals one item from the self checkout, it's not going to be a\n life threatening situation. Whereas being hooked up to the x-ray machine with the tube placement model, they might be willing to have the doctor or the nurse wait five seconds to get the result.\n \n \n They don't need it to happen in 500 milliseconds. Their threshold for waiting is a little bit higher. That, I think, also drives some of the decision. You want to keep people moving through the\n checkout line and you can afford to, potentially, if you lose a little bit of accuracy here and there, it's not going to cost the company that much money or it's not going to be life\n threatening. It's going to be worth the trade off of keeping the line moving and not having people leave the store and not check out at all, to say, \"I'm not going to shop today because the\n line's too long.\"\n \n \n There are so many trade-offs in enterprise AI/ML use cases, things like latency, accuracy and availability, and certainly complexities abound, especially in an obviously ever-evolving\n technological landscape where we are still very early in the adoption of AI/ML. And to navigate that complexity, that direct feedback from real world end users is essential to Ryan and his team\n at Intel. What would you say are some of the big hurdles or big outcomes, big opportunities in that space? And do you agree that we're still at the very beginning, in our infancy if you will, of\n adopting these technologies and discovering what they can do for us?\n \n \n Yeah, I think we're definitely in the infancy and I think that what we've seen is, our customers are evolving and the people who are deploying on Intel hardware, they're trying to run more\n complicated models. They're the models that are doing object detection or detecting defects and doing segmentation. In the past you could say, \"Here's a generic model that will do face\n detection, or person detection, or vehicle detection, license plate detection.\" And those are general purpose models that you can just grab off the shelf and use them. But now we're moving into\n the Anomalib scenarios, where I've got my own data and I'm trying to do something very specific and I'm the only one that has access to this data. You don't have that public data set that you can go\n download that's under Creative Commons license for car batteries. It's just not something that's available.\n \n \n And so, those use cases, the challenge with training those models and getting them optimized is the beginning of the pipeline. It's the data. You have to get the data, you have to annotate it\n and the tools have to exist for you to do that. And that's part of the problem that we're trying to help solve. And then, the models are getting more complex. So if you think, just from working\n with customers recently, they're no longer just trying to do image classification, \"Is it a dog or a cat?\" They've moved on to 3D point clouds and 3D segmentation models and things that are like the\n speech synthesis example. These GPT models that are generating... You put a text input and it generates an image for you. It's just becoming much more advanced, much more sophisticated and on\n larger images.\n \n \n And so things like running super resolution and enhancing images, upscaling images, instead of just trying to take that 200 by 200 pixel image and classifying if it's a cat, now we're talking\n about gigantic, huge images that we're processing and that all requires more resources or more optimized models. And every Computer Vision conference or AI conference, there's a new latest and\n greatest architecture, there's new research paper, and things are getting adopted much faster. The lead time for a NeurIPS paper, CVPR, for a company to actually adopt and put those into\n production, the time shortens every year.\n \n \n Well Ryan, I got to tell you, I could talk to you, literally, all day about these topics, the various use cases, the various ways models are being optimized, how to put models into a pipeline\n for average enterprise applications. I've enjoyed learning about OpenVINO and Anomalib. I'm fascinated by this, because I'll have a chance to go try this myself, taking advantage of Red Hat\n OpenShift and taking advantage of our data science platform. On top of that, I will definitely go be poking at this myself. Thank you so much for your time today.\n \n \n Thanks, Burr. This was a lot of fun. Thanks for having me.\n \n \n You can check out the full transcript of our conversation and more resources, like a link to a white paper on OpenVINO and Anomalib at redhat.com/codecommentspodcast. This episode was produced\n by Brent Simoneaux and Caroline Creaghead. Our sound designer is Christian Prohom. Our audio team includes Leigh Day, Stephanie Wonderlick, Mike Esser, Laura Barnes, Claire Allison, Nick Burns,\n Aaron Williamson, Karen King, Boo Boo Howse, Rachel Ertel, Mike Compton, Ocean Matthews, Laura Walters, Alex Traboulsi, and Victoria Lawton. I'm your host, Burr Sutter. Thank you for joining me\n today on Code Comments. I hope you enjoyed today's session and today's conversation, and I look forward to many more.\n \n
\n
\n\n\n\n\n\n\n", "label": "Customization" }, "demo/customization/demo.css": { @@ -40,7 +40,7 @@ export const configure = project => project.config = { "demo/detailed-transcript/index.html": { "contentType": "text/html", "selected": false, - "content": "

rh-audio-player: Detailed Transcript

\n\n\n
\n

Options:

\n
    \n
  • \n
  • \n
  • \n \n
  • \n
\n
\n\n\n\n

Code Comments

\n

Bringing Deep Learning to Enterprise Applications

\n \n

About the episode

\n

\n There are a lot of publicly available data sets out there. But when it\n comes to specific enterprise use cases, you're not necessarily going to\n able to find one to train your models. To realize the power of AI/ML in\n enterprise environments, end users need an inference engine to run on\n their hardware. Ryan Loney takes us through OpenVINO and Anomalib, open\n toolkits from Intel that do precisely that. He looks specifically at\n anomaly detection in use cases as varied as medical imaging and\n manufacturing.\n

\n

\n Want to learn more about Anomalib? Check out the research paper that\n introduces the deep learning library.\n

\n \n Ryan Loney\n Product manager, OpenVINO Developer Tools, Intel®\n \n
\n \n \n

Subscribe

\n

Subscribe here:

\n \n \"Listen\n \n \n \"Listen\n \n \n \"Listen\n \n \n \"Subscribe\n \n
\n \n \n Hi, I'm Burr Sutter.\n I'm a Red Hatter\n who spends a lot of time talking to technologists about technologies.\n We say this a lot of Red Hat.\n No single technology provider holds the key to success, including us.\n And I would say the same thing about myself.\n I love to share ideas.\n So I thought it'd be awesome\n to talk to some brilliant technologists at Red Hat Partners.\n This is Code Comments, an original podcast\n from Red Hat.\n \n I'm sure, like many of you here, you have been thinking about\n AI, ML, artificial intelligence and machine learning.\n I've been thinking about that for quite some time\n and actually had the opportunity\n to work on a few successful projects here at Red Hat using those technologies,\n actually enabling a dataset, gathering a dataset,\n working with data scientists and data engineering team,\n and then training a model and putting that model into production\n runtime environment.\n It was an exciting set of projects and you can kind of see\n those on numerous YouTube videos I have published out there before.\n But I want you to think about the problem space a little bit\n because there are some interesting challenges about AI/ML.\n One is simply just getting access to the data,\n and while there are numerous publicly available datasets\n when it comes to your specific enterprise use case, you might not be to find\n publicly available data.\n \n In many cases, you cannot, even for our applications that we created,\n we had to create our dataset, capture our dataset,\n explore the dataset, and of course train a model accordingly.\n And we also found there's another challenge to be overcome\n in this AML world, and that is access to certain types of hardware.\n If you think about the enterprise environment\n and the creation of an enterprise application specifically for AML\n and users need an inference engine to run on their hardware,\n hardware that's available to them to be effective for their application.\n Let's say an application like computer vision,\n one that can detect anomalies in medical imaging or maybe on a factory floor,\n You know, those things are whizzing by on the factory line.\n They're looking at them and trying to determine if there is an error or not.\n \n Well, how do you actually make it run on your hardware,\n your accessible technology that you have today?\n Well, there's a solution for this as an open toolkit called Open vino.\n And you might be thinking, hey, wait a minute,\n don't you need a GPU for a I inferencing a GPU\n for artificial intelligence machine learning?\n Well, not according to Ryan Loney, product manager of Open Vino Developer\n Tools at Intel.\n \n I guess we'll\n start with trying to maybe dispel the myths, right?\n I think that CPUs are widely used for inference today.\n So and if we look at the data center segment, you know, about 70% of the A.I.\n inference is happening on Intel Xeon on our data center CPUs.\n And so you don't needed a GPU, especially for running inference.\n And that's part of the value of open vino, is that we're you know,\n we're taking models that may have been trained on a GPU\n using deep learning frameworks like PyTorch or TensorFlow\n and then optimizing them to run on Intel hardware.\n \n Ryan joined me to discuss AI/ML and the enterprise\n across various industries and exploring numerous use cases.\n Let's talk a little bit about the origin story behind Open Vino.\n Tell us more about it and how it came to be\n and why it came out of Intel.\n \n Definitely. So we had the first release of Open Vino\n was back in 2018, so still relatively new.\n And at that time we were focused on computer vision and pretty tightly coupled\n with open CV, which is another open source library with origins at Intel.\n You know, it\n had its first release back in 1999, so it's been around a little bit longer.\n And many of the software engineers and architects at Intel\n that were involved with and contributing to open CV are working on open Vino.\n So you can think of open vino as complementary software to open CV.\n And we're providing like an engine for executing inference\n as part of a computer vision pipeline, or at least that's how we started.\n \n But since 2018, we've we've started to move beyond\n just computer vision inference.\n So when I say computer vision inference, I mean like image\n classification, object detection, segmentation.\n And now we're moving into natural language processing, things\n like speech synthesis, speech recognition, knowledge, graphs,\n time series forecasting, and other use cases that don't involve\n computer vision and don't involve inference on pixels.\n Our latest release, the 20 22.1 that came out earlier this year,\n there was a most significant update that we've had to open vino\n since we started in 2018, and the major focus of that release\n was optimizing for use cases that go beyond computer vision.\n \n And I like that concept that you just mentioned right there, computer vision.\n And you said that you extended those use cases and went beyond that.\n So could you give us more concrete examples of computer vision?\n \n Yeah, sure.\n So when you think about manufacturing quality control in factories, everything\n from ARC welding, defect detection to inspecting BMW cars on assembly lines,\n they're using cameras or sensors to collect data.\n And usually it's cameras collecting images like RGV images that you and I can see.\n And looks like something taken from a camera or video camera,\n but also things like infrared or computerized tomography\n scans used in health care, X-ray, different types of images where we can\n draw bounding boxes around regions of interest\n and say, you know, this is a defect or this is not a defect.\n And also, is this worker wearing a safety hat or did they forget to put it on?\n And so you can take this and integrate it into a pipeline\n where you're triggering an alert if somebody forgets\n to wear their safety mask or if there's a defect in a product\n on an assembly line, you can just use cameras and open\n vino and open CV running these on Intel hardware and help to analyze.\n \n And that's what a lot of the partners that we work with are doing.\n So these independent software vendors\n and there's other use cases for things like retail.\n You think about going to a store and using an automated checkout system.\n You know, sometimes people use those automated checkouts\n and they they slide a few extra items into their bag that they don't scan.\n And it's a huge loss for the retail outlets\n that are providing this way to check out real time shelf monitoring.\n We have this bear on one of our is fees that helps keep store shelves\n stocked by just analyzing the cameras in the stores, detecting\n when objects are missing from the shelves so that they can be restocked.\n We have Vistry, another ISP that works with quick service restaurants.\n So when you think about automating the process of\n when do I drop the fries into the fryer so that they're warm\n when the car gets to the drive thru window,\n you know, there's quite a bit of industrial health care retail examples\n that we can walk through and we should dig into some more of those.\n \n But I got to tell you, I have I have a personal experience\n in this category\n that I want to share with, and you can tell me how\n how silly you might think at this point in time.\n It is.\n We actually built an AI keynote demonstration for the Red Hat big stage\n back in 2015, and I really want to illustrate the concept of asset tracking.\n So we actually gave everybody in the conference a little Bluetooth token,\n but a little battery, a little watch battery and a little Bluetooth emitter.\n And we basically tracked those things around the conference.\n We basically put a Raspberry Pi in each of the meeting rooms\n and up in the lunch room, and you could see how the tokens\n moved from room to room to room as a relatively simple application.\n \n But it occurred to me after we figured out,\n okay, how to do that with Bluetooth and triangulating\n Bluetooth signals by looking at relative signal strength from one radio to another\n and putting that through an Apache Spark application at the time,\n we then realized, you know what, this is easier done with cameras\n and just simply looking at a camera and having some form of animal\n or machine learning model that would say, Oh,\n there are people here now are there are no people here now.\n What do you think about that?\n \n Yeah, I mean, what you just described is sort of exactly that the product\n that either one of our partners is offering,\n you know, that they're doing it with computer vision and cameras.\n So when partner tries to help retail stores\n analyze the foot traffic and understand with Heatmaps,\n where people are spending the most time in stores, how many people are coming\n in, what size groups are coming into the store,\n you know, and trying to help understand if there was a successful transaction\n from the people who entered the store and left the store so that you can,\n you know, to help with the, you know, retail analytics\n and marketing sales and positioning of products.\n And so they're doing that in a way that also protects privacy.\n And that's something that's really important.\n So when you talked about those Bluetooth beacons, probably,\n \n you know, if everyone who walked into a grocery store was asked\n \n \n to put a tracking device in their cart or on their person and say, you know,\n \n \n you're going\n \n \n to be tracked around the store, they probably wouldn't want to do that.\n \n \n The way that you can do this with cameras is you can,\n \n \n \n you know, detect people as they enter and, you know, remove their face.\n \n \n Right.\n \n \n So you can ignore any biometric information\n \n \n and and just track the person based on pixels\n \n \n that are present in the detected region of interest.\n \n \n So they're able to analyze, say, a family walks in the door\n \n \n and they can group those people together with object detection\n \n \n and then they can track their movement throughout the store\n \n \n without keeping track of their face or any biometric\n \n \n or any personal identifiable information to avoid things like bias\n \n \n and to make sure that they're protecting the privacy of the shoppers in the store\n \n \n while still getting that really useful marketing analytics data rate\n \n \n so that they can make better decisions about where to place their products.\n \n \n So that's one really good example of how\n \n \n computer vision AI with open vino is being used today.\n \n \n \n And that is a great example because you're definitely spot on.\n \n \n It is invasive when you hand someone to Bluetooth devices,\n \n \n say, please keep this with you as you go throughout our our store\n \n \n or our mall or throughout our hospital, wherever you might be.\n \n \n Now, you mentioned another example earlier\n \n \n in the conversation which was related to like worker safety.\n \n \n Are they wearing a helmet?\n \n \n I want to talk more about that concept in a real industrial setting,\n \n \n a manufacturing setting where there might be a factory floor\n \n \n and there are certain requirements, or better yet, there's like a\n \n \n a quality assurance requirement, let's say, when it comes to looking\n \n \n at a factory line, I run to that use case often what some of our customers.\n \n \n Can you talk more about those kinds of use cases? Yeah.\n \n \n \n So one of our partners, Robuchon and we you know, published a case study\n \n \n I think last year where they're working with BMW at one of their factories\n \n \n and they do quality control inspection, but they're also doing\n \n \n things related to worker safety and analyzing.\n \n \n You know, I used the safety had example.\n \n \n There's a number of of our ISP's and partners who have similar use cases.\n \n \n And it comes down to there's a few reasons\n \n \n that are motivating this and some are related to like insurance, right?\n \n \n It's important to make sure that\n \n \n if you want to have your factory insured and that your workers\n \n \n are protecting themselves and wearing the gear.\n \n \n Regulatory compliance. Right.\n \n \n You're you're being asked to properly protect from exposure to chemicals or,\n \n \n you know, potentially having something fall and and hit someone on the head.\n \n \n So wearing a safety vest, wearing goggles, wearing a helmet,\n \n \n these are things that you need to do inside the factory.\n \n \n And you can really easily automate and detect and sometimes without bias.\n \n \n \n I think that's one of the interesting things about the robots on BMW example\n \n \n is that they were also blurring sort of blocking out and so drawing a box\n \n \n to cover the face of the workers in the factory\n \n \n so that somebody who was analyzing the video footage\n \n \n and getting the alerts saying that, hey, you know, Bay 21 has a worker\n \n \n without a hat on, that it's not sending their face\n \n \n and in the alert and potentially, you know, invading\n \n \n or going against privacy laws or just the ethics of the company.\n \n \n Right.\n \n \n They don't want to introduce bias or have people targeted because\n \n \n it's much better to to have it be, you know, blur the face\n \n \n and alert and have somebody take care of it on the floor.\n \n \n And then if you ever need to audit that information later,\n \n \n they have a way to do it where people who need to be able to see\n \n \n who the employee was and look up their personal information, they can do that.\n \n \n \n But then just for the purposes of maintaining safety,\n \n \n they don't need to have access\n \n \n to that personal information or biometric information,\n \n \n because that's one thing that when you hear about computer vision\n \n \n or object person tracking, object detection,\n \n \n there's a lot of concern, and rightfully so, about privacy\n \n \n being invaded and about tracking information, face ID,\n \n \n identifying people who may have committed crimes through video footage.\n \n \n And that's just not something that a lot of companies want to\n \n \n you know, they want to protect privacy\n \n \n and they don't they don't want to be in a situation\n \n \n where they might be violating someone's rights.\n \n \n \n Well, privacy is certainly opening up Pandora's box.\n \n \n There's a lot to be explored in that area,\n \n \n especially in a digital world that we now live in.\n \n \n But for now, let's move on and explore different area.\n \n \n I'm interested in how machines and computers offer advantages,\n \n \n specifically in certain use cases like a quality control scenario.\n \n \n I asked Ryan to explain how AML and specifically machines\n \n \n computers can augment that capability.\n \n \n \n I can give a specific example where we have a partner\n \n \n that's there doing defect detection with\n \n \n and looking for anomalies in batteries.\n \n \n So, you know, sure, you've heard there's a lot of interest right now\n \n \n in electric vehicles, a lot of batteries being produced.\n \n \n And so if you go into one of these factories,\n \n \n they have images that they collect of every battery that's going through this\n \n \n assembly line and through these images, people\n \n \n can look and see and visually inspect with their eyes and say,\n \n \n this battery has a defect, send it back.\n \n \n And that's one step in the quality control process.\n \n \n And there's other steps, I'm sure, like running diagnostic tests and, you know,\n \n \n measuring voltage and doing other types of non-visual inspection.\n \n \n But for the visual inspection piece where you can really easily identify\n \n \n some problems, it's much more efficient to introduce computer vision.\n \n \n And so that's where we have this new library that we've introduced\n \n \n called Anomali, that's open vino.\n \n \n \n While we're focused on inference, you know, we're also thinking\n \n \n about the pipeline or the funnel that gets these models to open vino.\n \n \n And so we've we've invested in this anomaly segmentation,\n \n \n anomaly detection library and that we've recently open source\n \n \n and there's a great research paper about it about Anomali.\n \n \n But the idea is you can take just a few images\n \n \n and train a model and start detecting these defects.\n \n \n And so for this battery example, that's a more advanced example.\n \n \n But to make it simpler, you know, take some bolts and, you know, take ten bolts.\n \n \n You have one that has a scratch on it or one that is chipped\n \n \n or has some damage to it.\n \n \n And you can easily get started in training\n \n \n to recognize the bolts that do not have an anomaly.\n \n \n And the ones that do, which is a small data set\n \n \n and I think that's really one of the most important things today.\n \n \n \n Challenges is one is access to data, but the other is\n \n \n is needing a massive amount of data to do something meaningful.\n \n \n And so we're starting to try to change that dynamic with Anomali.\n \n \n So you may not need 100,000 images, you may need 100 images,\n \n \n and you can start detecting anomalies in everything from batteries to bolts to,\n \n \n you know, maybe even the wood varnish use case that you mentioned.\n \n \n \n That is very key point because often in that data scientist\n \n \n process, that data engineer and data scientist process, right.\n \n \n The one key thing is can you gather\n \n \n the data that you need for the input for the model training?\n \n \n And we've often sat at least people I've worked\n \n \n with over the last couple of years, you know, you need a lot of data.\n \n \n You need tens of thousands of correct images\n \n \n so we can sort out the difference between dogs versus cats, let's say,\n \n \n or you need dozens and dozens of situations\n \n \n where if it's a natural language processing scenario,\n \n \n you know, a good customer interaction, a good customer conversation,\n \n \n and in this case,\n \n \n it sounds like what you're saying is show us just the bad things, right?\n \n \n Fewer images, fewer incorrect things,\n \n \n and then let us look for those kind of anomalies.\n \n \n Can tell us more about that because that is very interesting.\n \n \n The concept that I can use a much smaller dataset as my input\n \n \n as opposed to gathering terabytes of data in some cases\n \n \n to just simply get my model training underway.\n \n \n \n You know, like you described, the idea is if you have some good images\n \n \n and then you have some of the the known defects\n \n \n and you can just label here's a set of good images\n \n \n and here's a few of the defects and you can right away\n \n \n start detecting those specific defects that you've identified.\n \n \n And then also, you know, be able to\n \n \n determine when it doesn't match\n \n \n the expected appearance of a non defective item.\n \n \n So if I have the undamaged screw and then I introduce\n \n \n one with some new anomaly that's never been seen before,\n \n \n I can say, you know, this one is not a valid screw.\n \n \n And so that's sort of the the approach that we're taking.\n \n \n And it's really important because so often you need to have\n \n \n subject matter experts often like if you think the take the battery example,\n \n \n there's these workers who are on the floor\n \n \n in a factory and they're the ones who know best when they look at these images,\n \n \n which one's going to have an issue, which one's defective?\n \n \n \n And then they also need to take that subject matter, expertise\n \n \n and then use it to annotate data sets.\n \n \n And when you have these, you know,\n \n \n tens of thousands of images you need to annotate, it's asking those people\n \n \n to stop working on the factory floor so they can come annotate some images.\n \n \n That's a tough business call to make, right?\n \n \n But if you only need them to annotate a handful of images, it's a much easier\n \n \n ask to get the ball rolling and demonstrate value.\n \n \n And maybe over time you will want to annotate more\n \n \n and more images because you'll get even better accuracy in the model.\n \n \n Even better, even if it's just small incremental improvements.\n \n \n You know, that's something that if it generates value for the business,\n \n \n it's something the business will invest in over time.\n \n \n But you have to convince the decision makers that it's worth\n \n \n the time of these subject matter experts to stop what they're doing\n \n \n and go and label some images of the things that they're working on in the factory.\n \n \n \n And that labeling process can be very labor intensive of the annotations,\n \n \n basically saying what is correct, what's wrong, what is this, what is that?\n \n \n And therefore, if we can minimize that time frame to get the value quicker,\n \n \n then there's something that's useful for the business, useful for the organization\n \n \n long before we necessarily good.\n \n \n There are huge model training based,\n \n \n \n so we talk about labeling and how that is labor intensive activity.\n \n \n But I love the idea of helping the human\n \n \n and helping the human models specifically not get bored.\n \n \n Basically, if the human is eyeballing a bunch of widgets flying by over time,\n \n \n they make mistakes, they get bored\n \n \n and they don't pay as close attention as they should.\n \n \n That's why the concept of Amazon specifically computer vision, augmenting\n \n \n that capability and really helping the human identify anomalies faster,\n \n \n more quickly, maybe with greater accuracy could be a big win.\n \n \n We focused on manufacturing, but let's actually go into health care\n \n \n and learn how these tools can be used in that sector and that industry.\n \n \n Ryan talked to me about how Open Windows runtime can be incorporated into medical\n \n \n imaging equipment with intel processors and better than c.T.\n \n \n MRI and ultrasound machines.\n \n \n Well, these inferences, this AML workload can be operating\n \n \n and executing right there in the same physical room as the patient.\n \n \n \n We did a presentation when she last year.\n \n \n I think they said\n \n \n there's at least 80 countries that have their X-ray machines deployed\n \n \n and they're doing things like helping doctors place breathing tubes in patients.\n \n \n So during COVID, during the pandemic, that was a really important tool\n \n \n to help with nurses and doctors who were intubating patients\n \n \n sometimes like in a parking lot or a hallway of the hospital.\n \n \n And, you know, when they had a statistic that you said, I think one out of four\n \n \n breathing tubes gets placed incorrectly\n \n \n when you're doing it outside the operating room,\n \n \n because when you're in an operating room, it's much more controlled\n \n \n and there's someone who's an expert at placing the tubes.\n \n \n It's something you have more of a controlled environment\n \n \n than when you're out in a parking lot, in a tent.\n \n \n You know, when the hospital's completely full and you're triaging patients\n \n \n with COVID, that's when they're more likely to make mistakes.\n \n \n And so they had this endotracheal tube placement\n \n \n model that they trained,\n \n \n and it helped to use an x ray and give an alert and say, hey,\n \n \n this tube is placed wrong, pull it out and do it again.\n \n \n And so things like that help doctors so that they can avoid mistakes.\n \n \n And, you know, having a breathing tube placed incorrectly\n \n \n can cause collapsed lung and a number of other unwanted side effects.\n \n \n So it's really important to do it correctly.\n \n \n Another example is Samsung Medicine.\n \n \n They actually are doing estimating fetal angle of progression.\n \n \n So this is analyzing ultrasound\n \n \n of pregnant women with that, being able to to help take measurements\n \n \n that are usually hard to calculate that can be done in an automated way.\n \n \n They're already taking the ultrasound scan and now they're executing this model.\n \n \n They can take some of these measurements to help the doctor avoid potentially more\n \n \n intrusive alternative methods so the patient wins.\n \n \n It makes their life better.\n \n \n And the doctors is getting help from this A.I.\n \n \n model.\n \n \n And those are, you know, just a few examples.\n \n \n \n Those are some amazing examples when it comes to all these things.\n \n \n We're talking like CT scans, right, and x rays, other examples of computer vision.\n \n \n One thing that's kind of interesting in the space, I think\n \n \n whenever I get a chance to work on, let's say an object traction model\n \n \n and one of our workshops, by the way, is actually putting that out\n \n \n in front of people to say, Hey, look, you can use your phone.\n \n \n And it basically sends the image over to our OpenShift, right,\n \n \n with our data science platform and then analyzes what you see.\n \n \n And even in my case, where I take a picture of my dog\n \n \n as an example, it can't really decide is it a dog or a cat?\n \n \n I have a very funny looking dog,\n \n \n \n and so there's always a percentage outcome, you know?\n \n \n In other words, I think it's a dog 52%.\n \n \n So I want to talk about that more.\n \n \n What how important is it to get to 100% accuracy?\n \n \n How important is it to really, depending on the use case, to allow\n \n \n for the gray area, if you will, where it's an 80% accuracy or 70% accuracy?\n \n \n And where are the trade offs there associated with the application?\n \n \n Can you can you discuss that more?\n \n \n \n Accuracy is definitely, you know, a touchy subject\n \n \n because how you measure it makes a huge difference.\n \n \n And then I think with like what you were describing with the dog example, there's\n \n \n sort of a top five potential classes that might may be identified.\n \n \n So let's say you're doing object detection and you detect a region of interest\n \n \n and it says 65% confidence.\n \n \n This is a dog.\n \n \n Well, the next potential label that could be maybe 50% confidence\n \n \n or 20% confidence might be something similar to a dog or in the case of models\n \n \n that have been trained on like the image net dataset\n \n \n or on cocoa data set, they have like actual breeds of dogs.\n \n \n So if I want to look at the top five labels for a dog,\n \n \n for my dog, for example, she's a mixed mostly Labrador retriever.\n \n \n \n But I may look at the top five labels and it may say 65% confidence that she's\n \n \n a flat coated retriever and then confidence that she's a husky,\n \n \n as you know, 20% and then 5% confidence that she's a Greyhound or something.\n \n \n Those labels, all of them are dogs.\n \n \n So if I'm just trying to figure out is, is this a dog,\n \n \n I could probably find all of the, you know, classes within the data set\n \n \n and say, well, these are all, you know, class ID\n \n \n 65, 132, 92 and 158 all belong to a group of dogs.\n \n \n So if I wanted to just write an application to tell me if this is a dog\n \n \n or not, I would probably use that to determine if it's a dog.\n \n \n But how you measure that is accuracy.\n \n \n Well, that's where it gets a little bit complicated,\n \n \n because if you're being really strict about the definition and you're\n \n \n trying to validate against the data set of labeled images\n \n \n and I have specific dog breeds or some specific detail\n \n \n and it doesn't match, well, then the accuracy is going to go down.\n \n \n \n That's especially important when we talk about things like compression\n \n \n and quantization,\n \n \n which, you know, historically has been difficult for to get adoption\n \n \n in some domains like health care, where even the hint of accuracy going down\n \n \n implies that we're not going to be able to help in some small case,\n \n \n maybe if it's even half a percent of the time\n \n \n we want to take that that tube is placed incorrectly or that, you know,\n \n \n that patient's, you know, lung has collapsed or something like that.\n \n \n And that's something that really prevents adoption of some of these methods\n \n \n that can really boost performance like quantization.\n \n \n But if you take that example of sort of different from the dog example\n \n \n and you think about like segmentation of kidneys.\n \n \n So if I'm doing kidney segmentation, which is, you know, taking a CT scan\n \n \n and then trying to pick the pixels out of that\n \n \n scan that belong to a kidney,\n \n \n how I measure accuracy may be\n \n \n how many of those pixels I'm able to detect and how many did I miss?\n \n \n \n Missing some of the pixels is maybe not a problem, right,\n \n \n depending on how you built the application because you still detect the kidney\n \n \n and maybe you just need to apply padding around the region of interest\n \n \n so that you don't miss any of the the actual kidney.\n \n \n When you compress the model and when you quantized the model. But\n \n \n that requires, you know, data scientist and email engineer somebody to really\n \n \n they have to be\n \n \n able to go and apply that after the fact, after the inference\n \n \n happens to make sure that you're not losing critical information,\n \n \n because the next step from detecting the kidney may be detecting a tumor.\n \n \n \n And so maybe you can use the more optimized model\n \n \n to detect the kidney, but then you can use a slower model to detect the tumor.\n \n \n But that also requires somebody to architect and make that decision\n \n \n or that tradeoff and say,\n \n \n well, I need to add padding, or I should only use the quantized model\n \n \n to detect the region of interest for the kidney and then use the model\n \n \n that takes longer to do the inference\n \n \n just to find the tumor, which is going to be on a smaller size.\n \n \n Right. The dimensions are going to be much smaller\n \n \n once we crop to the region of interest.\n \n \n But all of those details, that's maybe not easy to explain in a few sentences.\n \n \n And even the way I explained it is probably really confusing.\n \n \n \n I do love that use case.\n \n \n Like you mentioned, the cropping\n \n \n even in one such an area that we worked on for another project,\n \n \n we specifically decided to pix like the image that we had taken\n \n \n because we knew that we could get the outcome we wanted by even\n \n \n just using a smaller or less having less resolution in our image.\n \n \n And therefore, as we transferred it from the mobile device storage device\n \n \n up into the cloud, we wanted that smaller image just for transfer purposes\n \n \n and it still we could get the accuracy we needed by a lot of testing.\n \n \n \n And one thing that's interesting about that from my perspective is\n \n \n if you're doing image processing, sometimes it takes a while\n \n \n for this transaction to occur.\n \n \n Like I,\n \n \n I come from a traditional application background, you know, where I'm reading\n \n \n and writing things from a database\n \n \n or a message broker or moving data from one place to another.\n \n \n Those things happen subsequent.\n \n \n Normally, even with great latency between your data centers, you know,\n \n \n it's still subsequent.\n \n \n In most cases, while on a transaction like this, one can actually take 2 seconds\n \n \n or 4 seconds as it's doing its analysis and actually coming back with, you know,\n \n \n I think it's a dog, I think it's a kidney, I think it's whatever, and provided me\n \n \n that accuracy statement.\n \n \n So that concept of optimization is very important\n \n \n in the overall application architecture.\n \n \n Would you agree with that or how do you think about that concept?\n \n \n Yeah, definitely.\n \n \n \n It depends too on the use case.\n \n \n So if you think about how important it is to reduce the latency\n \n \n and increase the number of frames per second that you can process when you're\n \n \n talking about a loss prevention model that's running at a grocery store.\n \n \n So you want to keep the lines moving.\n \n \n You don't want every person who's at the self-checkout\n \n \n to have to wait 5 seconds for every item they scan.\n \n \n You need it to happen as quickly as possible.\n \n \n And if sometimes you, you know, the accuracy\n \n \n decreases slightly or the I'd say the accuracy of the whole pipeline.\n \n \n So not just looking at the individual model or the individual inference, but\n \n \n let's say that the the whole pipeline is not as successful at detecting\n \n \n when somebody steals one item from the self-checkout,\n \n \n it's not going to be a life threatening situation.\n \n \n Whereas, you know, being in the hooked up to the X-ray machine\n \n \n with the two placement model, they might be willing to have the doctor,\n \n \n the nurse wait 5 seconds to get the result.\n \n \n \n They don't need it to happen in 500 milliseconds.\n \n \n So they're willing their threshold for waiting is a little bit higher.\n \n \n So that, I think, also drives some of the decision, like\n \n \n you want to keep people moving through the checkout line\n \n \n and you can afford to to potentially if you lose a little bit of accuracy here\n \n \n and there, it's not going to\n \n \n cost the company that much money or it's not going to be life threatening.\n \n It's going to be worth the tradeoff of keeping the line moving\n and not having people leave the store and not check out at all.\n And to say, I'm not going to shop today because the line's too long.\n \n There are so many trade offs and enterprise\n AML use cases, things like latency, accuracy and availability.\n And certainly complexities abound, especially in an obviously ever evolving\n technological landscape where we are still very early in the adoption of AML.\n And to navigate that complexity, the direct feedback from real world\n end users is essential to Ryan and his team at Intel.\n What would you say are some of the big hurdles or big\n outcomes, big opportunities in that space?\n And do you agree that we're kind of still at the very beginning in our infancy,\n if you will,\n of adopting these technologies and and discovering what they can do for us?\n \n Yeah, I think we're definitely in the infancy\n and I think that what we've seen is our customers are evolving\n and the people who are deploying on Intel hardware, they're trying to run\n more complicated models.\n They're the models that are doing object detection or, you know,\n detecting defects and, you know, doing segmentation.\n You know, in the past you could say, oh, here's a generic model that will do face\n detection or person detection or vehicle detection and license plate detection.\n And those are sort of like\n general purpose models that you can just grab off the shelf and use them.\n But now we're moving into like the anomaly scenarios\n where I've got my own data and I'm trying to do something very specific\n and I'm the only one that has access to this data.\n And you don't have a public data set that you can go download\n that's under Creative Commons license for, you know, car batteries.\n It's, you know, it's just not something that's available.\n \n And so those use cases, the challenge with with training those models\n and and getting them optimized is the beginning of the pipeline.\n It's the data you have to get the data you have to annotated\n and the tools have to exist for you to do that.\n And that's part of the problem that we're trying to help solve.\n And then the models are getting more complex.\n So if you think, you know, just from working with customers recently,\n you know, they're no longer\n just trying to do image classification and, you know, like is it a dog or a cat?\n They've moved on to like 3D point clouds\n and, you know, 3D segmentation models and things that are like the speech\n synthesis example, doing things these GPT models that are generating,\n you know, you, you put a text input and it generates an image for you.\n It's just becoming much more advanced, much more sophisticated\n and on larger images.\n \n And so things like running super resolution enhancing images, upscaling\n images, instead of just trying to take that, you know, 200 by 200 pixel\n image and classifying if it's a cat.\n Now we're talking about gigantic\n huge images that we're processing and that all requires\n more resources or more optimized models.\n And, you know, every computer vision conference or A.I.\n conference, there's there's a new latest and greatest architecture.\n There's new research paper, and things are getting adopted much faster.\n The lead time for a nurse paper or CV PR\n for a company to actually adopt and put those into production.\n It's like the time shortens every year.\n \n Well, Ryan, I got to tell you, I could talk to you\n literally all day about these topics, the various use cases, the various ways\n models are being optimized,\n how to put models into a pipeline for average enterprise applications.\n I've enjoyed learning about pop and vino and anomalies,\n but I'm fascinated by this because I will have a chance to go try this myself.\n Taking advantage of Red Hat OpenShift\n and taking advantage of our data science platform.\n On top of that, I will definitely go be poking at this myself.\n So thank you so much for your time today.\n \n Thanks, Burr.\n This was a lot of fun.\n Thanks for having me.\n \n And you can check out\n the full transcript of our conversation and more resources,\n like a link to a white paper on open vino and normal lib at Red Hat dot\n com slash code Comments Podcast.\n This episode was produced by Brant Seminole and Caroline Prickett.\n Our sound designer is Christian.\n From our audio team includes Lee Day, Stephanie Wunderlich, Mike Esser,\n Laura Barnes, Claire Allison, Nick Burns, Aaron Williamson, Karen King,\n Booboo House, Rachel Artell, Mike Compton, Ocean\n Mathews, Laura Walters, Alex Trabelsi and Victoria Lutton.\n I'm your host, Burt Sutter.\n Thank you for joining me today on Code Comments.\n I hope you enjoyed today's session and today's conversation, and I\n look forward to many more in.\n \n
\n\n\n\n\n", + "content": "

rh-audio-player: Detailed Transcript

\n\n\n
\n

Options:

\n
    \n
  • \n
  • \n
  • \n \n
  • \n
\n
\n\n\n\n

Code Comments

\n

Bringing Deep Learning to Enterprise Applications

\n \n

About the episode

\n

\n There are a lot of publicly available data sets out there. But when it\n comes to specific enterprise use cases, you're not necessarily going to\n able to find one to train your models. To realize the power of AI/ML in\n enterprise environments, end users need an inference engine to run on\n their hardware. Ryan Loney takes us through OpenVINO and Anomalib, open\n toolkits from Intel that do precisely that. He looks specifically at\n anomaly detection in use cases as varied as medical imaging and\n manufacturing.\n

\n

\n Want to learn more about Anomalib? Check out the research paper that\n introduces the deep learning library.\n

\n \n Ryan Loney\n Product manager, OpenVINO Developer Tools, Intel®\n \n
\n \n \n

Subscribe

\n

Subscribe here:

\n \n \"Listen\n \n \n \"Listen\n \n \n \"Listen\n \n \n \"Subscribe\n \n
\n \n \n Hi, I'm Burr Sutter.\n I'm a Red Hatter\n who spends a lot of time talking to technologists about technologies.\n We say this a lot of Red Hat.\n No single technology provider holds the key to success, including us.\n And I would say the same thing about myself.\n I love to share ideas.\n So I thought it'd be awesome\n to talk to some brilliant technologists at Red Hat Partners.\n This is Code Comments, an original podcast\n from Red Hat.\n \n I'm sure, like many of you here, you have been thinking about\n AI, ML, artificial intelligence and machine learning.\n I've been thinking about that for quite some time\n and actually had the opportunity\n to work on a few successful projects here at Red Hat using those technologies,\n actually enabling a dataset, gathering a dataset,\n working with data scientists and data engineering team,\n and then training a model and putting that model into production\n runtime environment.\n It was an exciting set of projects and you can kind of see\n those on numerous YouTube videos I have published out there before.\n But I want you to think about the problem space a little bit\n because there are some interesting challenges about AI/ML.\n One is simply just getting access to the data,\n and while there are numerous publicly available datasets\n when it comes to your specific enterprise use case, you might not be to find\n publicly available data.\n \n In many cases, you cannot, even for our applications that we created,\n we had to create our dataset, capture our dataset,\n explore the dataset, and of course train a model accordingly.\n And we also found there's another challenge to be overcome\n in this AML world, and that is access to certain types of hardware.\n If you think about the enterprise environment\n and the creation of an enterprise application specifically for AML\n and users need an inference engine to run on their hardware,\n hardware that's available to them to be effective for their application.\n Let's say an application like computer vision,\n one that can detect anomalies in medical imaging or maybe on a factory floor,\n You know, those things are whizzing by on the factory line.\n They're looking at them and trying to determine if there is an error or not.\n \n Well, how do you actually make it run on your hardware,\n your accessible technology that you have today?\n Well, there's a solution for this as an open toolkit called Open vino.\n And you might be thinking, hey, wait a minute,\n don't you need a GPU for a I inferencing a GPU\n for artificial intelligence machine learning?\n Well, not according to Ryan Loney, product manager of Open Vino Developer\n Tools at Intel.\n \n I guess we'll\n start with trying to maybe dispel the myths, right?\n I think that CPUs are widely used for inference today.\n So and if we look at the data center segment, you know, about 70% of the A.I.\n inference is happening on Intel Xeon on our data center CPUs.\n And so you don't needed a GPU, especially for running inference.\n And that's part of the value of open vino, is that we're you know,\n we're taking models that may have been trained on a GPU\n using deep learning frameworks like PyTorch or TensorFlow\n and then optimizing them to run on Intel hardware.\n \n Ryan joined me to discuss AI/ML and the enterprise\n across various industries and exploring numerous use cases.\n Let's talk a little bit about the origin story behind Open Vino.\n Tell us more about it and how it came to be\n and why it came out of Intel.\n \n Definitely. So we had the first release of Open Vino\n was back in 2018, so still relatively new.\n And at that time we were focused on computer vision and pretty tightly coupled\n with open CV, which is another open source library with origins at Intel.\n You know, it\n had its first release back in 1999, so it's been around a little bit longer.\n And many of the software engineers and architects at Intel\n that were involved with and contributing to open CV are working on open Vino.\n So you can think of open vino as complementary software to open CV.\n And we're providing like an engine for executing inference\n as part of a computer vision pipeline, or at least that's how we started.\n \n But since 2018, we've we've started to move beyond\n just computer vision inference.\n So when I say computer vision inference, I mean like image\n classification, object detection, segmentation.\n And now we're moving into natural language processing, things\n like speech synthesis, speech recognition, knowledge, graphs,\n time series forecasting, and other use cases that don't involve\n computer vision and don't involve inference on pixels.\n Our latest release, the 20 22.1 that came out earlier this year,\n there was a most significant update that we've had to open vino\n since we started in 2018, and the major focus of that release\n was optimizing for use cases that go beyond computer vision.\n \n And I like that concept that you just mentioned right there, computer vision.\n And you said that you extended those use cases and went beyond that.\n So could you give us more concrete examples of computer vision?\n \n Yeah, sure.\n So when you think about manufacturing quality control in factories, everything\n from ARC welding, defect detection to inspecting BMW cars on assembly lines,\n they're using cameras or sensors to collect data.\n And usually it's cameras collecting images like RGV images that you and I can see.\n And looks like something taken from a camera or video camera,\n but also things like infrared or computerized tomography\n scans used in health care, X-ray, different types of images where we can\n draw bounding boxes around regions of interest\n and say, you know, this is a defect or this is not a defect.\n And also, is this worker wearing a safety hat or did they forget to put it on?\n And so you can take this and integrate it into a pipeline\n where you're triggering an alert if somebody forgets\n to wear their safety mask or if there's a defect in a product\n on an assembly line, you can just use cameras and open\n vino and open CV running these on Intel hardware and help to analyze.\n \n And that's what a lot of the partners that we work with are doing.\n So these independent software vendors\n and there's other use cases for things like retail.\n You think about going to a store and using an automated checkout system.\n You know, sometimes people use those automated checkouts\n and they they slide a few extra items into their bag that they don't scan.\n And it's a huge loss for the retail outlets\n that are providing this way to check out real time shelf monitoring.\n We have this bear on one of our is fees that helps keep store shelves\n stocked by just analyzing the cameras in the stores, detecting\n when objects are missing from the shelves so that they can be restocked.\n We have Vistry, another ISP that works with quick service restaurants.\n So when you think about automating the process of\n when do I drop the fries into the fryer so that they're warm\n when the car gets to the drive thru window,\n you know, there's quite a bit of industrial health care retail examples\n that we can walk through and we should dig into some more of those.\n \n But I got to tell you, I have I have a personal experience\n in this category\n that I want to share with, and you can tell me how\n how silly you might think at this point in time.\n It is.\n We actually built an AI keynote demonstration for the Red Hat big stage\n back in 2015, and I really want to illustrate the concept of asset tracking.\n So we actually gave everybody in the conference a little Bluetooth token,\n but a little battery, a little watch battery and a little Bluetooth emitter.\n And we basically tracked those things around the conference.\n We basically put a Raspberry Pi in each of the meeting rooms\n and up in the lunch room, and you could see how the tokens\n moved from room to room to room as a relatively simple application.\n \n But it occurred to me after we figured out,\n okay, how to do that with Bluetooth and triangulating\n Bluetooth signals by looking at relative signal strength from one radio to another\n and putting that through an Apache Spark application at the time,\n we then realized, you know what, this is easier done with cameras\n and just simply looking at a camera and having some form of animal\n or machine learning model that would say, Oh,\n there are people here now are there are no people here now.\n What do you think about that?\n \n Yeah, I mean, what you just described is sort of exactly that the product\n that either one of our partners is offering,\n you know, that they're doing it with computer vision and cameras.\n So when partner tries to help retail stores\n analyze the foot traffic and understand with Heatmaps,\n where people are spending the most time in stores, how many people are coming\n in, what size groups are coming into the store,\n you know, and trying to help understand if there was a successful transaction\n from the people who entered the store and left the store so that you can,\n you know, to help with the, you know, retail analytics\n and marketing sales and positioning of products.\n And so they're doing that in a way that also protects privacy.\n And that's something that's really important.\n So when you talked about those Bluetooth beacons, probably,\n \n you know, if everyone who walked into a grocery store was asked\n \n \n to put a tracking device in their cart or on their person and say, you know,\n \n \n you're going\n \n \n to be tracked around the store, they probably wouldn't want to do that.\n \n \n The way that you can do this with cameras is you can,\n \n \n \n you know, detect people as they enter and, you know, remove their face.\n \n \n Right.\n \n \n So you can ignore any biometric information\n \n \n and and just track the person based on pixels\n \n \n that are present in the detected region of interest.\n \n \n So they're able to analyze, say, a family walks in the door\n \n \n and they can group those people together with object detection\n \n \n and then they can track their movement throughout the store\n \n \n without keeping track of their face or any biometric\n \n \n or any personal identifiable information to avoid things like bias\n \n \n and to make sure that they're protecting the privacy of the shoppers in the store\n \n \n while still getting that really useful marketing analytics data rate\n \n \n so that they can make better decisions about where to place their products.\n \n \n So that's one really good example of how\n \n \n computer vision AI with open vino is being used today.\n \n \n \n And that is a great example because you're definitely spot on.\n \n \n It is invasive when you hand someone to Bluetooth devices,\n \n \n say, please keep this with you as you go throughout our our store\n \n \n or our mall or throughout our hospital, wherever you might be.\n \n \n Now, you mentioned another example earlier\n \n \n in the conversation which was related to like worker safety.\n \n \n Are they wearing a helmet?\n \n \n I want to talk more about that concept in a real industrial setting,\n \n \n a manufacturing setting where there might be a factory floor\n \n \n and there are certain requirements, or better yet, there's like a\n \n \n a quality assurance requirement, let's say, when it comes to looking\n \n \n at a factory line, I run to that use case often what some of our customers.\n \n \n Can you talk more about those kinds of use cases? Yeah.\n \n \n \n So one of our partners, Robuchon and we you know, published a case study\n \n \n I think last year where they're working with BMW at one of their factories\n \n \n and they do quality control inspection, but they're also doing\n \n \n things related to worker safety and analyzing.\n \n \n You know, I used the safety had example.\n \n \n There's a number of of our ISP's and partners who have similar use cases.\n \n \n And it comes down to there's a few reasons\n \n \n that are motivating this and some are related to like insurance, right?\n \n \n It's important to make sure that\n \n \n if you want to have your factory insured and that your workers\n \n \n are protecting themselves and wearing the gear.\n \n \n Regulatory compliance. Right.\n \n \n You're you're being asked to properly protect from exposure to chemicals or,\n \n \n you know, potentially having something fall and and hit someone on the head.\n \n \n So wearing a safety vest, wearing goggles, wearing a helmet,\n \n \n these are things that you need to do inside the factory.\n \n \n And you can really easily automate and detect and sometimes without bias.\n \n \n \n I think that's one of the interesting things about the robots on BMW example\n \n \n is that they were also blurring sort of blocking out and so drawing a box\n \n \n to cover the face of the workers in the factory\n \n \n so that somebody who was analyzing the video footage\n \n \n and getting the alerts saying that, hey, you know, Bay 21 has a worker\n \n \n without a hat on, that it's not sending their face\n \n \n and in the alert and potentially, you know, invading\n \n \n or going against privacy laws or just the ethics of the company.\n \n \n Right.\n \n \n They don't want to introduce bias or have people targeted because\n \n \n it's much better to to have it be, you know, blur the face\n \n \n and alert and have somebody take care of it on the floor.\n \n \n And then if you ever need to audit that information later,\n \n \n they have a way to do it where people who need to be able to see\n \n \n who the employee was and look up their personal information, they can do that.\n \n \n \n But then just for the purposes of maintaining safety,\n \n \n they don't need to have access\n \n \n to that personal information or biometric information,\n \n \n because that's one thing that when you hear about computer vision\n \n \n or object person tracking, object detection,\n \n \n there's a lot of concern, and rightfully so, about privacy\n \n \n being invaded and about tracking information, face ID,\n \n \n identifying people who may have committed crimes through video footage.\n \n \n And that's just not something that a lot of companies want to\n \n \n you know, they want to protect privacy\n \n \n and they don't they don't want to be in a situation\n \n \n where they might be violating someone's rights.\n \n \n \n Well, privacy is certainly opening up Pandora's box.\n \n \n There's a lot to be explored in that area,\n \n \n especially in a digital world that we now live in.\n \n \n But for now, let's move on and explore different area.\n \n \n I'm interested in how machines and computers offer advantages,\n \n \n specifically in certain use cases like a quality control scenario.\n \n \n I asked Ryan to explain how AML and specifically machines\n \n \n computers can augment that capability.\n \n \n \n I can give a specific example where we have a partner\n \n \n that's there doing defect detection with\n \n \n and looking for anomalies in batteries.\n \n \n So, you know, sure, you've heard there's a lot of interest right now\n \n \n in electric vehicles, a lot of batteries being produced.\n \n \n And so if you go into one of these factories,\n \n \n they have images that they collect of every battery that's going through this\n \n \n assembly line and through these images, people\n \n \n can look and see and visually inspect with their eyes and say,\n \n \n this battery has a defect, send it back.\n \n \n And that's one step in the quality control process.\n \n \n And there's other steps, I'm sure, like running diagnostic tests and, you know,\n \n \n measuring voltage and doing other types of non-visual inspection.\n \n \n But for the visual inspection piece where you can really easily identify\n \n \n some problems, it's much more efficient to introduce computer vision.\n \n \n And so that's where we have this new library that we've introduced\n \n \n called Anomali, that's open vino.\n \n \n \n While we're focused on inference, you know, we're also thinking\n \n \n about the pipeline or the funnel that gets these models to open vino.\n \n \n And so we've we've invested in this anomaly segmentation,\n \n \n anomaly detection library and that we've recently open source\n \n \n and there's a great research paper about it about Anomali.\n \n \n But the idea is you can take just a few images\n \n \n and train a model and start detecting these defects.\n \n \n And so for this battery example, that's a more advanced example.\n \n \n But to make it simpler, you know, take some bolts and, you know, take ten bolts.\n \n \n You have one that has a scratch on it or one that is chipped\n \n \n or has some damage to it.\n \n \n And you can easily get started in training\n \n \n to recognize the bolts that do not have an anomaly.\n \n \n And the ones that do, which is a small data set\n \n \n and I think that's really one of the most important things today.\n \n \n \n Challenges is one is access to data, but the other is\n \n \n is needing a massive amount of data to do something meaningful.\n \n \n And so we're starting to try to change that dynamic with Anomali.\n \n \n So you may not need 100,000 images, you may need 100 images,\n \n \n and you can start detecting anomalies in everything from batteries to bolts to,\n \n \n you know, maybe even the wood varnish use case that you mentioned.\n \n \n \n That is very key point because often in that data scientist\n \n \n process, that data engineer and data scientist process, right.\n \n \n The one key thing is can you gather\n \n \n the data that you need for the input for the model training?\n \n \n And we've often sat at least people I've worked\n \n \n with over the last couple of years, you know, you need a lot of data.\n \n \n You need tens of thousands of correct images\n \n \n so we can sort out the difference between dogs versus cats, let's say,\n \n \n or you need dozens and dozens of situations\n \n \n where if it's a natural language processing scenario,\n \n \n you know, a good customer interaction, a good customer conversation,\n \n \n and in this case,\n \n \n it sounds like what you're saying is show us just the bad things, right?\n \n \n Fewer images, fewer incorrect things,\n \n \n and then let us look for those kind of anomalies.\n \n \n Can tell us more about that because that is very interesting.\n \n \n The concept that I can use a much smaller dataset as my input\n \n \n as opposed to gathering terabytes of data in some cases\n \n \n to just simply get my model training underway.\n \n \n \n You know, like you described, the idea is if you have some good images\n \n \n and then you have some of the the known defects\n \n \n and you can just label here's a set of good images\n \n \n and here's a few of the defects and you can right away\n \n \n start detecting those specific defects that you've identified.\n \n \n And then also, you know, be able to\n \n \n determine when it doesn't match\n \n \n the expected appearance of a non defective item.\n \n \n So if I have the undamaged screw and then I introduce\n \n \n one with some new anomaly that's never been seen before,\n \n \n I can say, you know, this one is not a valid screw.\n \n \n And so that's sort of the the approach that we're taking.\n \n \n And it's really important because so often you need to have\n \n \n subject matter experts often like if you think the take the battery example,\n \n \n there's these workers who are on the floor\n \n \n in a factory and they're the ones who know best when they look at these images,\n \n \n which one's going to have an issue, which one's defective?\n \n \n \n And then they also need to take that subject matter, expertise\n \n \n and then use it to annotate data sets.\n \n \n And when you have these, you know,\n \n \n tens of thousands of images you need to annotate, it's asking those people\n \n \n to stop working on the factory floor so they can come annotate some images.\n \n \n That's a tough business call to make, right?\n \n \n But if you only need them to annotate a handful of images, it's a much easier\n \n \n ask to get the ball rolling and demonstrate value.\n \n \n And maybe over time you will want to annotate more\n \n \n and more images because you'll get even better accuracy in the model.\n \n \n Even better, even if it's just small incremental improvements.\n \n \n You know, that's something that if it generates value for the business,\n \n \n it's something the business will invest in over time.\n \n \n But you have to convince the decision makers that it's worth\n \n \n the time of these subject matter experts to stop what they're doing\n \n \n and go and label some images of the things that they're working on in the factory.\n \n \n \n And that labeling process can be very labor intensive of the annotations,\n \n \n basically saying what is correct, what's wrong, what is this, what is that?\n \n \n And therefore, if we can minimize that time frame to get the value quicker,\n \n \n then there's something that's useful for the business, useful for the organization\n \n \n long before we necessarily good.\n \n \n There are huge model training based,\n \n \n \n so we talk about labeling and how that is labor intensive activity.\n \n \n But I love the idea of helping the human\n \n \n and helping the human models specifically not get bored.\n \n \n Basically, if the human is eyeballing a bunch of widgets flying by over time,\n \n \n they make mistakes, they get bored\n \n \n and they don't pay as close attention as they should.\n \n \n That's why the concept of Amazon specifically computer vision, augmenting\n \n \n that capability and really helping the human identify anomalies faster,\n \n \n more quickly, maybe with greater accuracy could be a big win.\n \n \n We focused on manufacturing, but let's actually go into health care\n \n \n and learn how these tools can be used in that sector and that industry.\n \n \n Ryan talked to me about how Open Windows runtime can be incorporated into medical\n \n \n imaging equipment with intel processors and better than c.T.\n \n \n MRI and ultrasound machines.\n \n \n Well, these inferences, this AML workload can be operating\n \n \n and executing right there in the same physical room as the patient.\n \n \n \n We did a presentation when she last year.\n \n \n I think they said\n \n \n there's at least 80 countries that have their X-ray machines deployed\n \n \n and they're doing things like helping doctors place breathing tubes in patients.\n \n \n So during COVID, during the pandemic, that was a really important tool\n \n \n to help with nurses and doctors who were intubating patients\n \n \n sometimes like in a parking lot or a hallway of the hospital.\n \n \n And, you know, when they had a statistic that you said, I think one out of four\n \n \n breathing tubes gets placed incorrectly\n \n \n when you're doing it outside the operating room,\n \n \n because when you're in an operating room, it's much more controlled\n \n \n and there's someone who's an expert at placing the tubes.\n \n \n It's something you have more of a controlled environment\n \n \n than when you're out in a parking lot, in a tent.\n \n \n You know, when the hospital's completely full and you're triaging patients\n \n \n with COVID, that's when they're more likely to make mistakes.\n \n \n And so they had this endotracheal tube placement\n \n \n model that they trained,\n \n \n and it helped to use an x ray and give an alert and say, hey,\n \n \n this tube is placed wrong, pull it out and do it again.\n \n \n And so things like that help doctors so that they can avoid mistakes.\n \n \n And, you know, having a breathing tube placed incorrectly\n \n \n can cause collapsed lung and a number of other unwanted side effects.\n \n \n So it's really important to do it correctly.\n \n \n Another example is Samsung Medicine.\n \n \n They actually are doing estimating fetal angle of progression.\n \n \n So this is analyzing ultrasound\n \n \n of pregnant women with that, being able to to help take measurements\n \n \n that are usually hard to calculate that can be done in an automated way.\n \n \n They're already taking the ultrasound scan and now they're executing this model.\n \n \n They can take some of these measurements to help the doctor avoid potentially more\n \n \n intrusive alternative methods so the patient wins.\n \n \n It makes their life better.\n \n \n And the doctors is getting help from this A.I.\n \n \n model.\n \n \n And those are, you know, just a few examples.\n \n \n \n Those are some amazing examples when it comes to all these things.\n \n \n We're talking like CT scans, right, and x rays, other examples of computer vision.\n \n \n One thing that's kind of interesting in the space, I think\n \n \n whenever I get a chance to work on, let's say an object traction model\n \n \n and one of our workshops, by the way, is actually putting that out\n \n \n in front of people to say, Hey, look, you can use your phone.\n \n \n And it basically sends the image over to our OpenShift, right,\n \n \n with our data science platform and then analyzes what you see.\n \n \n And even in my case, where I take a picture of my dog\n \n \n as an example, it can't really decide is it a dog or a cat?\n \n \n I have a very funny looking dog,\n \n \n \n and so there's always a percentage outcome, you know?\n \n \n In other words, I think it's a dog 52%.\n \n \n So I want to talk about that more.\n \n \n What how important is it to get to 100% accuracy?\n \n \n How important is it to really, depending on the use case, to allow\n \n \n for the gray area, if you will, where it's an 80% accuracy or 70% accuracy?\n \n \n And where are the trade offs there associated with the application?\n \n \n Can you can you discuss that more?\n \n \n \n Accuracy is definitely, you know, a touchy subject\n \n \n because how you measure it makes a huge difference.\n \n \n And then I think with like what you were describing with the dog example, there's\n \n \n sort of a top five potential classes that might may be identified.\n \n \n So let's say you're doing object detection and you detect a region of interest\n \n \n and it says 65% confidence.\n \n \n This is a dog.\n \n \n Well, the next potential label that could be maybe 50% confidence\n \n \n or 20% confidence might be something similar to a dog or in the case of models\n \n \n that have been trained on like the image net dataset\n \n \n or on cocoa data set, they have like actual breeds of dogs.\n \n \n So if I want to look at the top five labels for a dog,\n \n \n for my dog, for example, she's a mixed mostly Labrador retriever.\n \n \n \n But I may look at the top five labels and it may say 65% confidence that she's\n \n \n a flat coated retriever and then confidence that she's a husky,\n \n \n as you know, 20% and then 5% confidence that she's a Greyhound or something.\n \n \n Those labels, all of them are dogs.\n \n \n So if I'm just trying to figure out is, is this a dog,\n \n \n I could probably find all of the, you know, classes within the data set\n \n \n and say, well, these are all, you know, class ID\n \n \n 65, 132, 92 and 158 all belong to a group of dogs.\n \n \n So if I wanted to just write an application to tell me if this is a dog\n \n \n or not, I would probably use that to determine if it's a dog.\n \n \n But how you measure that is accuracy.\n \n \n Well, that's where it gets a little bit complicated,\n \n \n because if you're being really strict about the definition and you're\n \n \n trying to validate against the data set of labeled images\n \n \n and I have specific dog breeds or some specific detail\n \n \n and it doesn't match, well, then the accuracy is going to go down.\n \n \n \n That's especially important when we talk about things like compression\n \n \n and quantization,\n \n \n which, you know, historically has been difficult for to get adoption\n \n \n in some domains like health care, where even the hint of accuracy going down\n \n \n implies that we're not going to be able to help in some small case,\n \n \n maybe if it's even half a percent of the time\n \n \n we want to take that that tube is placed incorrectly or that, you know,\n \n \n that patient's, you know, lung has collapsed or something like that.\n \n \n And that's something that really prevents adoption of some of these methods\n \n \n that can really boost performance like quantization.\n \n \n But if you take that example of sort of different from the dog example\n \n \n and you think about like segmentation of kidneys.\n \n \n So if I'm doing kidney segmentation, which is, you know, taking a CT scan\n \n \n and then trying to pick the pixels out of that\n \n \n scan that belong to a kidney,\n \n \n how I measure accuracy may be\n \n \n how many of those pixels I'm able to detect and how many did I miss?\n \n \n \n Missing some of the pixels is maybe not a problem, right,\n \n \n depending on how you built the application because you still detect the kidney\n \n \n and maybe you just need to apply padding around the region of interest\n \n \n so that you don't miss any of the the actual kidney.\n \n \n When you compress the model and when you quantized the model. But\n \n \n that requires, you know, data scientist and email engineer somebody to really\n \n \n they have to be\n \n \n able to go and apply that after the fact, after the inference\n \n \n happens to make sure that you're not losing critical information,\n \n \n because the next step from detecting the kidney may be detecting a tumor.\n \n \n \n And so maybe you can use the more optimized model\n \n \n to detect the kidney, but then you can use a slower model to detect the tumor.\n \n \n But that also requires somebody to architect and make that decision\n \n \n or that tradeoff and say,\n \n \n well, I need to add padding, or I should only use the quantized model\n \n \n to detect the region of interest for the kidney and then use the model\n \n \n that takes longer to do the inference\n \n \n just to find the tumor, which is going to be on a smaller size.\n \n \n Right. The dimensions are going to be much smaller\n \n \n once we crop to the region of interest.\n \n \n But all of those details, that's maybe not easy to explain in a few sentences.\n \n \n And even the way I explained it is probably really confusing.\n \n \n \n I do love that use case.\n \n \n Like you mentioned, the cropping\n \n \n even in one such an area that we worked on for another project,\n \n \n we specifically decided to pix like the image that we had taken\n \n \n because we knew that we could get the outcome we wanted by even\n \n \n just using a smaller or less having less resolution in our image.\n \n \n And therefore, as we transferred it from the mobile device storage device\n \n \n up into the cloud, we wanted that smaller image just for transfer purposes\n \n \n and it still we could get the accuracy we needed by a lot of testing.\n \n \n \n And one thing that's interesting about that from my perspective is\n \n \n if you're doing image processing, sometimes it takes a while\n \n \n for this transaction to occur.\n \n \n Like I,\n \n \n I come from a traditional application background, you know, where I'm reading\n \n \n and writing things from a database\n \n \n or a message broker or moving data from one place to another.\n \n \n Those things happen subsequent.\n \n \n Normally, even with great latency between your data centers, you know,\n \n \n it's still subsequent.\n \n \n In most cases, while on a transaction like this, one can actually take 2 seconds\n \n \n or 4 seconds as it's doing its analysis and actually coming back with, you know,\n \n \n I think it's a dog, I think it's a kidney, I think it's whatever, and provided me\n \n \n that accuracy statement.\n \n \n So that concept of optimization is very important\n \n \n in the overall application architecture.\n \n \n Would you agree with that or how do you think about that concept?\n \n \n Yeah, definitely.\n \n \n \n It depends too on the use case.\n \n \n So if you think about how important it is to reduce the latency\n \n \n and increase the number of frames per second that you can process when you're\n \n \n talking about a loss prevention model that's running at a grocery store.\n \n \n So you want to keep the lines moving.\n \n \n You don't want every person who's at the self-checkout\n \n \n to have to wait 5 seconds for every item they scan.\n \n \n You need it to happen as quickly as possible.\n \n \n And if sometimes you, you know, the accuracy\n \n \n decreases slightly or the I'd say the accuracy of the whole pipeline.\n \n \n So not just looking at the individual model or the individual inference, but\n \n \n let's say that the the whole pipeline is not as successful at detecting\n \n \n when somebody steals one item from the self-checkout,\n \n \n it's not going to be a life threatening situation.\n \n \n Whereas, you know, being in the hooked up to the X-ray machine\n \n \n with the two placement model, they might be willing to have the doctor,\n \n \n the nurse wait 5 seconds to get the result.\n \n \n \n They don't need it to happen in 500 milliseconds.\n \n \n So they're willing their threshold for waiting is a little bit higher.\n \n \n So that, I think, also drives some of the decision, like\n \n \n you want to keep people moving through the checkout line\n \n \n and you can afford to to potentially if you lose a little bit of accuracy here\n \n \n and there, it's not going to\n \n \n cost the company that much money or it's not going to be life threatening.\n \n It's going to be worth the tradeoff of keeping the line moving\n and not having people leave the store and not check out at all.\n And to say, I'm not going to shop today because the line's too long.\n \n There are so many trade offs and enterprise\n AML use cases, things like latency, accuracy and availability.\n And certainly complexities abound, especially in an obviously ever evolving\n technological landscape where we are still very early in the adoption of AML.\n And to navigate that complexity, the direct feedback from real world\n end users is essential to Ryan and his team at Intel.\n What would you say are some of the big hurdles or big\n outcomes, big opportunities in that space?\n And do you agree that we're kind of still at the very beginning in our infancy,\n if you will,\n of adopting these technologies and and discovering what they can do for us?\n \n Yeah, I think we're definitely in the infancy\n and I think that what we've seen is our customers are evolving\n and the people who are deploying on Intel hardware, they're trying to run\n more complicated models.\n They're the models that are doing object detection or, you know,\n detecting defects and, you know, doing segmentation.\n You know, in the past you could say, oh, here's a generic model that will do face\n detection or person detection or vehicle detection and license plate detection.\n And those are sort of like\n general purpose models that you can just grab off the shelf and use them.\n But now we're moving into like the anomaly scenarios\n where I've got my own data and I'm trying to do something very specific\n and I'm the only one that has access to this data.\n And you don't have a public data set that you can go download\n that's under Creative Commons license for, you know, car batteries.\n It's, you know, it's just not something that's available.\n \n And so those use cases, the challenge with with training those models\n and and getting them optimized is the beginning of the pipeline.\n It's the data you have to get the data you have to annotated\n and the tools have to exist for you to do that.\n And that's part of the problem that we're trying to help solve.\n And then the models are getting more complex.\n So if you think, you know, just from working with customers recently,\n you know, they're no longer\n just trying to do image classification and, you know, like is it a dog or a cat?\n They've moved on to like 3D point clouds\n and, you know, 3D segmentation models and things that are like the speech\n synthesis example, doing things these GPT models that are generating,\n you know, you, you put a text input and it generates an image for you.\n It's just becoming much more advanced, much more sophisticated\n and on larger images.\n \n And so things like running super resolution enhancing images, upscaling\n images, instead of just trying to take that, you know, 200 by 200 pixel\n image and classifying if it's a cat.\n Now we're talking about gigantic\n huge images that we're processing and that all requires\n more resources or more optimized models.\n And, you know, every computer vision conference or A.I.\n conference, there's there's a new latest and greatest architecture.\n There's new research paper, and things are getting adopted much faster.\n The lead time for a nurse paper or CV PR\n for a company to actually adopt and put those into production.\n It's like the time shortens every year.\n \n Well, Ryan, I got to tell you, I could talk to you\n literally all day about these topics, the various use cases, the various ways\n models are being optimized,\n how to put models into a pipeline for average enterprise applications.\n I've enjoyed learning about pop and vino and anomalies,\n but I'm fascinated by this because I will have a chance to go try this myself.\n Taking advantage of Red Hat OpenShift\n and taking advantage of our data science platform.\n On top of that, I will definitely go be poking at this myself.\n So thank you so much for your time today.\n \n Thanks, Burr.\n This was a lot of fun.\n Thanks for having me.\n \n And you can check out\n the full transcript of our conversation and more resources,\n like a link to a white paper on open vino and normal lib at Red Hat dot\n com slash code Comments Podcast.\n This episode was produced by Brant Seminole and Caroline Prickett.\n Our sound designer is Christian.\n From our audio team includes Lee Day, Stephanie Wunderlich, Mike Esser,\n Laura Barnes, Claire Allison, Nick Burns, Aaron Williamson, Karen King,\n Booboo House, Rachel Artell, Mike Compton, Ocean\n Mathews, Laura Walters, Alex Trabelsi and Victoria Lutton.\n I'm your host, Burt Sutter.\n Thank you for joining me today on Code Comments.\n I hope you enjoyed today's session and today's conversation, and I\n look forward to many more in.\n \n
\n\n\n\n\n\n\n", "label": "Detailed Transcript" }, "demo/detailed-transcript/demo.css": { @@ -54,7 +54,7 @@ export const configure = project => project.config = { "demo/heading-levels/index.html": { "contentType": "text/html", "selected": false, - "content": "

Audio player should automatically calculate it's heading levels

\n\n

Root Level h3

\n\n

Transcript should be h5, cues should be h6

\n\n\n

Code Comments

\n

Bringing Deep Learning to Enterprise Applications

\n \n
About the episode
\n

\n There are a lot of publicly available data sets out there. But when it\n comes to specific enterprise use cases, you're not necessarily going to\n able to find one to train your models. To realize the power of AI/ML in\n enterprise environments, end users need an inference engine to run on\n their hardware. Ryan Loney takes us through OpenVINO and Anomalib, open\n toolkits from Intel that do precisely that. He looks specifically at\n anomaly detection in use cases as varied as medical imaging and\n manufacturing.\n

\n

\n Want to learn more about Anomalib? Check out the research paper that\n introduces the deep learning library.\n

\n \n Ryan Loney\n Product manager, OpenVINO Developer Tools, Intel®\n \n
\n \n \n
Subscribe
\n

Subscribe here:

\n \n \"Listen\n \n \n \"Listen\n \n \n \"Listen\n \n \n \"Subscribe\n \n
\n \n \n Hi, I'm Burr Sutter.\n I'm a Red Hatter\n who spends a lot of time talking to technologists about technologies.\n We say this a lot of Red Hat.\n No single technology provider holds the key to success, including us.\n And I would say the same thing about myself.\n I love to share ideas.\n So I thought it'd be awesome\n to talk to some brilliant technologists at Red Hat Partners.\n This is Code Comments, an original podcast\n from Red Hat.\n \n I'm sure, like many of you here, you have been thinking about\n AI, ML, artificial intelligence and machine learning.\n I've been thinking about that for quite some time\n and actually had the opportunity\n to work on a few successful projects here at Red Hat using those technologies,\n actually enabling a dataset, gathering a dataset,\n working with data scientists and data engineering team,\n and then training a model and putting that model into production\n runtime environment.\n It was an exciting set of projects and you can kind of see\n those on numerous YouTube videos I have published out there before.\n But I want you to think about the problem space a little bit\n because there are some interesting challenges about AI/ML.\n One is simply just getting access to the data,\n and while there are numerous publicly available datasets\n when it comes to your specific enterprise use case, you might not be to find\n publicly available data.\n \n In many cases, you cannot, even for our applications that we created,\n we had to create our dataset, capture our dataset,\n explore the dataset, and of course train a model accordingly.\n And we also found there's another challenge to be overcome\n in this AML world, and that is access to certain types of hardware.\n If you think about the enterprise environment\n and the creation of an enterprise application specifically for AML\n and users need an inference engine to run on their hardware,\n hardware that's available to them to be effective for their application.\n Let's say an application like computer vision,\n one that can detect anomalies in medical imaging or maybe on a factory floor,\n You know, those things are whizzing by on the factory line.\n They're looking at them and trying to determine if there is an error or not.\n \n Well, how do you actually make it run on your hardware,\n your accessible technology that you have today?\n Well, there's a solution for this as an open toolkit called Open vino.\n And you might be thinking, hey, wait a minute,\n don't you need a GPU for a I inferencing a GPU\n for artificial intelligence machine learning?\n Well, not according to Ryan Loney, product manager of Open Vino Developer\n Tools at Intel.\n \n I guess we'll\n start with trying to maybe dispel the myths, right?\n I think that CPUs are widely used for inference today.\n So and if we look at the data center segment, you know, about 70% of the A.I.\n inference is happening on Intel Xeon on our data center CPUs.\n And so you don't needed a GPU, especially for running inference.\n And that's part of the value of open vino, is that we're you know,\n we're taking models that may have been trained on a GPU\n using deep learning frameworks like PyTorch or TensorFlow\n and then optimizing them to run on Intel hardware.\n \n Ryan joined me to discuss AI/ML and the enterprise\n across various industries and exploring numerous use cases.\n Let's talk a little bit about the origin story behind Open Vino.\n Tell us more about it and how it came to be\n and why it came out of Intel.\n \n Definitely. So we had the first release of Open Vino\n was back in 2018, so still relatively new.\n And at that time we were focused on computer vision and pretty tightly coupled\n with open CV, which is another open source library with origins at Intel.\n You know, it\n had its first release back in 1999, so it's been around a little bit longer.\n And many of the software engineers and architects at Intel\n that were involved with and contributing to open CV are working on open Vino.\n So you can think of open vino as complementary software to open CV.\n And we're providing like an engine for executing inference\n as part of a computer vision pipeline, or at least that's how we started.\n \n But since 2018, we've we've started to move beyond\n just computer vision inference.\n So when I say computer vision inference, I mean like image\n classification, object detection, segmentation.\n And now we're moving into natural language processing, things\n like speech synthesis, speech recognition, knowledge, graphs,\n time series forecasting, and other use cases that don't involve\n computer vision and don't involve inference on pixels.\n Our latest release, the 20 22.1 that came out earlier this year,\n there was a most significant update that we've had to open vino\n since we started in 2018, and the major focus of that release\n was optimizing for use cases that go beyond computer vision.\n \n And I like that concept that you just mentioned right there, computer vision.\n And you said that you extended those use cases and went beyond that.\n So could you give us more concrete examples of computer vision?\n \n Yeah, sure.\n So when you think about manufacturing quality control in factories, everything\n from ARC welding, defect detection to inspecting BMW cars on assembly lines,\n they're using cameras or sensors to collect data.\n And usually it's cameras collecting images like RGV images that you and I can see.\n And looks like something taken from a camera or video camera,\n but also things like infrared or computerized tomography\n scans used in health care, X-ray, different types of images where we can\n draw bounding boxes around regions of interest\n and say, you know, this is a defect or this is not a defect.\n And also, is this worker wearing a safety hat or did they forget to put it on?\n And so you can take this and integrate it into a pipeline\n where you're triggering an alert if somebody forgets\n to wear their safety mask or if there's a defect in a product\n on an assembly line, you can just use cameras and open\n vino and open CV running these on Intel hardware and help to analyze.\n \n And that's what a lot of the partners that we work with are doing.\n So these independent software vendors\n and there's other use cases for things like retail.\n You think about going to a store and using an automated checkout system.\n You know, sometimes people use those automated checkouts\n and they they slide a few extra items into their bag that they don't scan.\n And it's a huge loss for the retail outlets\n that are providing this way to check out real time shelf monitoring.\n We have this bear on one of our is fees that helps keep store shelves\n stocked by just analyzing the cameras in the stores, detecting\n when objects are missing from the shelves so that they can be restocked.\n We have Vistry, another ISP that works with quick service restaurants.\n So when you think about automating the process of\n when do I drop the fries into the fryer so that they're warm\n when the car gets to the drive thru window,\n you know, there's quite a bit of industrial health care retail examples\n that we can walk through and we should dig into some more of those.\n \n But I got to tell you, I have I have a personal experience\n in this category\n that I want to share with, and you can tell me how\n how silly you might think at this point in time.\n It is.\n We actually built an AI keynote demonstration for the Red Hat big stage\n back in 2015, and I really want to illustrate the concept of asset tracking.\n So we actually gave everybody in the conference a little Bluetooth token,\n but a little battery, a little watch battery and a little Bluetooth emitter.\n And we basically tracked those things around the conference.\n We basically put a Raspberry Pi in each of the meeting rooms\n and up in the lunch room, and you could see how the tokens\n moved from room to room to room as a relatively simple application.\n \n But it occurred to me after we figured out,\n okay, how to do that with Bluetooth and triangulating\n Bluetooth signals by looking at relative signal strength from one radio to another\n and putting that through an Apache Spark application at the time,\n we then realized, you know what, this is easier done with cameras\n and just simply looking at a camera and having some form of animal\n or machine learning model that would say, Oh,\n there are people here now are there are no people here now.\n What do you think about that?\n \n Yeah, I mean, what you just described is sort of exactly that the product\n that either one of our partners is offering,\n you know, that they're doing it with computer vision and cameras.\n So when partner tries to help retail stores\n analyze the foot traffic and understand with Heatmaps,\n where people are spending the most time in stores, how many people are coming\n in, what size groups are coming into the store,\n you know, and trying to help understand if there was a successful transaction\n from the people who entered the store and left the store so that you can,\n you know, to help with the, you know, retail analytics\n and marketing sales and positioning of products.\n And so they're doing that in a way that also protects privacy.\n And that's something that's really important.\n So when you talked about those Bluetooth beacons, probably,\n \n you know, if everyone who walked into a grocery store was asked\n \n \n to put a tracking device in their cart or on their person and say, you know,\n \n \n you're going\n \n \n to be tracked around the store, they probably wouldn't want to do that.\n \n \n The way that you can do this with cameras is you can,\n \n \n \n you know, detect people as they enter and, you know, remove their face.\n \n \n Right.\n \n \n So you can ignore any biometric information\n \n \n and and just track the person based on pixels\n \n \n that are present in the detected region of interest.\n \n \n So they're able to analyze, say, a family walks in the door\n \n \n and they can group those people together with object detection\n \n \n and then they can track their movement throughout the store\n \n \n without keeping track of their face or any biometric\n \n \n or any personal identifiable information to avoid things like bias\n \n \n and to make sure that they're protecting the privacy of the shoppers in the store\n \n \n while still getting that really useful marketing analytics data rate\n \n \n so that they can make better decisions about where to place their products.\n \n \n So that's one really good example of how\n \n \n computer vision AI with open vino is being used today.\n \n \n \n And that is a great example because you're definitely spot on.\n \n \n It is invasive when you hand someone to Bluetooth devices,\n \n \n say, please keep this with you as you go throughout our our store\n \n \n or our mall or throughout our hospital, wherever you might be.\n \n \n Now, you mentioned another example earlier\n \n \n in the conversation which was related to like worker safety.\n \n \n Are they wearing a helmet?\n \n \n I want to talk more about that concept in a real industrial setting,\n \n \n a manufacturing setting where there might be a factory floor\n \n \n and there are certain requirements, or better yet, there's like a\n \n \n a quality assurance requirement, let's say, when it comes to looking\n \n \n at a factory line, I run to that use case often what some of our customers.\n \n \n Can you talk more about those kinds of use cases? Yeah.\n \n \n \n So one of our partners, Robuchon and we you know, published a case study\n \n \n I think last year where they're working with BMW at one of their factories\n \n \n and they do quality control inspection, but they're also doing\n \n \n things related to worker safety and analyzing.\n \n \n You know, I used the safety had example.\n \n \n There's a number of of our ISP's and partners who have similar use cases.\n \n \n And it comes down to there's a few reasons\n \n \n that are motivating this and some are related to like insurance, right?\n \n \n It's important to make sure that\n \n \n if you want to have your factory insured and that your workers\n \n \n are protecting themselves and wearing the gear.\n \n \n Regulatory compliance. Right.\n \n \n You're you're being asked to properly protect from exposure to chemicals or,\n \n \n you know, potentially having something fall and and hit someone on the head.\n \n \n So wearing a safety vest, wearing goggles, wearing a helmet,\n \n \n these are things that you need to do inside the factory.\n \n \n And you can really easily automate and detect and sometimes without bias.\n \n \n \n I think that's one of the interesting things about the robots on BMW example\n \n \n is that they were also blurring sort of blocking out and so drawing a box\n \n \n to cover the face of the workers in the factory\n \n \n so that somebody who was analyzing the video footage\n \n \n and getting the alerts saying that, hey, you know, Bay 21 has a worker\n \n \n without a hat on, that it's not sending their face\n \n \n and in the alert and potentially, you know, invading\n \n \n or going against privacy laws or just the ethics of the company.\n \n \n Right.\n \n \n They don't want to introduce bias or have people targeted because\n \n \n it's much better to to have it be, you know, blur the face\n \n \n and alert and have somebody take care of it on the floor.\n \n \n And then if you ever need to audit that information later,\n \n \n they have a way to do it where people who need to be able to see\n \n \n who the employee was and look up their personal information, they can do that.\n \n \n \n But then just for the purposes of maintaining safety,\n \n \n they don't need to have access\n \n \n to that personal information or biometric information,\n \n \n because that's one thing that when you hear about computer vision\n \n \n or object person tracking, object detection,\n \n \n there's a lot of concern, and rightfully so, about privacy\n \n \n being invaded and about tracking information, face ID,\n \n \n identifying people who may have committed crimes through video footage.\n \n \n And that's just not something that a lot of companies want to\n \n \n you know, they want to protect privacy\n \n \n and they don't they don't want to be in a situation\n \n \n where they might be violating someone's rights.\n \n \n \n Well, privacy is certainly opening up Pandora's box.\n \n \n There's a lot to be explored in that area,\n \n \n especially in a digital world that we now live in.\n \n \n But for now, let's move on and explore different area.\n \n \n I'm interested in how machines and computers offer advantages,\n \n \n specifically in certain use cases like a quality control scenario.\n \n \n I asked Ryan to explain how AML and specifically machines\n \n \n computers can augment that capability.\n \n \n \n I can give a specific example where we have a partner\n \n \n that's there doing defect detection with\n \n \n and looking for anomalies in batteries.\n \n \n So, you know, sure, you've heard there's a lot of interest right now\n \n \n in electric vehicles, a lot of batteries being produced.\n \n \n And so if you go into one of these factories,\n \n \n they have images that they collect of every battery that's going through this\n \n \n assembly line and through these images, people\n \n \n can look and see and visually inspect with their eyes and say,\n \n \n this battery has a defect, send it back.\n \n \n And that's one step in the quality control process.\n \n \n And there's other steps, I'm sure, like running diagnostic tests and, you know,\n \n \n measuring voltage and doing other types of non-visual inspection.\n \n \n But for the visual inspection piece where you can really easily identify\n \n \n some problems, it's much more efficient to introduce computer vision.\n \n \n And so that's where we have this new library that we've introduced\n \n \n called Anomali, that's open vino.\n \n \n \n While we're focused on inference, you know, we're also thinking\n \n \n about the pipeline or the funnel that gets these models to open vino.\n \n \n And so we've we've invested in this anomaly segmentation,\n \n \n anomaly detection library and that we've recently open source\n \n \n and there's a great research paper about it about Anomali.\n \n \n But the idea is you can take just a few images\n \n \n and train a model and start detecting these defects.\n \n \n And so for this battery example, that's a more advanced example.\n \n \n But to make it simpler, you know, take some bolts and, you know, take ten bolts.\n \n \n You have one that has a scratch on it or one that is chipped\n \n \n or has some damage to it.\n \n \n And you can easily get started in training\n \n \n to recognize the bolts that do not have an anomaly.\n \n \n And the ones that do, which is a small data set\n \n \n and I think that's really one of the most important things today.\n \n \n \n Challenges is one is access to data, but the other is\n \n \n is needing a massive amount of data to do something meaningful.\n \n \n And so we're starting to try to change that dynamic with Anomali.\n \n \n So you may not need 100,000 images, you may need 100 images,\n \n \n and you can start detecting anomalies in everything from batteries to bolts to,\n \n \n you know, maybe even the wood varnish use case that you mentioned.\n \n \n \n That is very key point because often in that data scientist\n \n \n process, that data engineer and data scientist process, right.\n \n \n The one key thing is can you gather\n \n \n the data that you need for the input for the model training?\n \n \n And we've often sat at least people I've worked\n \n \n with over the last couple of years, you know, you need a lot of data.\n \n \n You need tens of thousands of correct images\n \n \n so we can sort out the difference between dogs versus cats, let's say,\n \n \n or you need dozens and dozens of situations\n \n \n where if it's a natural language processing scenario,\n \n \n you know, a good customer interaction, a good customer conversation,\n \n \n and in this case,\n \n \n it sounds like what you're saying is show us just the bad things, right?\n \n \n Fewer images, fewer incorrect things,\n \n \n and then let us look for those kind of anomalies.\n \n \n Can tell us more about that because that is very interesting.\n \n \n The concept that I can use a much smaller dataset as my input\n \n \n as opposed to gathering terabytes of data in some cases\n \n \n to just simply get my model training underway.\n \n \n \n You know, like you described, the idea is if you have some good images\n \n \n and then you have some of the the known defects\n \n \n and you can just label here's a set of good images\n \n \n and here's a few of the defects and you can right away\n \n \n start detecting those specific defects that you've identified.\n \n \n And then also, you know, be able to\n \n \n determine when it doesn't match\n \n \n the expected appearance of a non defective item.\n \n \n So if I have the undamaged screw and then I introduce\n \n \n one with some new anomaly that's never been seen before,\n \n \n I can say, you know, this one is not a valid screw.\n \n \n And so that's sort of the the approach that we're taking.\n \n \n And it's really important because so often you need to have\n \n \n subject matter experts often like if you think the take the battery example,\n \n \n there's these workers who are on the floor\n \n \n in a factory and they're the ones who know best when they look at these images,\n \n \n which one's going to have an issue, which one's defective?\n \n \n \n And then they also need to take that subject matter, expertise\n \n \n and then use it to annotate data sets.\n \n \n And when you have these, you know,\n \n \n tens of thousands of images you need to annotate, it's asking those people\n \n \n to stop working on the factory floor so they can come annotate some images.\n \n \n That's a tough business call to make, right?\n \n \n But if you only need them to annotate a handful of images, it's a much easier\n \n \n ask to get the ball rolling and demonstrate value.\n \n \n And maybe over time you will want to annotate more\n \n \n and more images because you'll get even better accuracy in the model.\n \n \n Even better, even if it's just small incremental improvements.\n \n \n You know, that's something that if it generates value for the business,\n \n \n it's something the business will invest in over time.\n \n \n But you have to convince the decision makers that it's worth\n \n \n the time of these subject matter experts to stop what they're doing\n \n \n and go and label some images of the things that they're working on in the factory.\n \n \n \n And that labeling process can be very labor intensive of the annotations,\n \n \n basically saying what is correct, what's wrong, what is this, what is that?\n \n \n And therefore, if we can minimize that time frame to get the value quicker,\n \n \n then there's something that's useful for the business, useful for the organization\n \n \n long before we necessarily good.\n \n \n There are huge model training based,\n \n \n \n so we talk about labeling and how that is labor intensive activity.\n \n \n But I love the idea of helping the human\n \n \n and helping the human models specifically not get bored.\n \n \n Basically, if the human is eyeballing a bunch of widgets flying by over time,\n \n \n they make mistakes, they get bored\n \n \n and they don't pay as close attention as they should.\n \n \n That's why the concept of Amazon specifically computer vision, augmenting\n \n \n that capability and really helping the human identify anomalies faster,\n \n \n more quickly, maybe with greater accuracy could be a big win.\n \n \n We focused on manufacturing, but let's actually go into health care\n \n \n and learn how these tools can be used in that sector and that industry.\n \n \n Ryan talked to me about how Open Windows runtime can be incorporated into medical\n \n \n imaging equipment with intel processors and better than c.T.\n \n \n MRI and ultrasound machines.\n \n \n Well, these inferences, this AML workload can be operating\n \n \n and executing right there in the same physical room as the patient.\n \n \n \n We did a presentation when she last year.\n \n \n I think they said\n \n \n there's at least 80 countries that have their X-ray machines deployed\n \n \n and they're doing things like helping doctors place breathing tubes in patients.\n \n \n So during COVID, during the pandemic, that was a really important tool\n \n \n to help with nurses and doctors who were intubating patients\n \n \n sometimes like in a parking lot or a hallway of the hospital.\n \n \n And, you know, when they had a statistic that you said, I think one out of four\n \n \n breathing tubes gets placed incorrectly\n \n \n when you're doing it outside the operating room,\n \n \n because when you're in an operating room, it's much more controlled\n \n \n and there's someone who's an expert at placing the tubes.\n \n \n It's something you have more of a controlled environment\n \n \n than when you're out in a parking lot, in a tent.\n \n \n You know, when the hospital's completely full and you're triaging patients\n \n \n with COVID, that's when they're more likely to make mistakes.\n \n \n And so they had this endotracheal tube placement\n \n \n model that they trained,\n \n \n and it helped to use an x ray and give an alert and say, hey,\n \n \n this tube is placed wrong, pull it out and do it again.\n \n \n And so things like that help doctors so that they can avoid mistakes.\n \n \n And, you know, having a breathing tube placed incorrectly\n \n \n can cause collapsed lung and a number of other unwanted side effects.\n \n \n So it's really important to do it correctly.\n \n \n Another example is Samsung Medicine.\n \n \n They actually are doing estimating fetal angle of progression.\n \n \n So this is analyzing ultrasound\n \n \n of pregnant women with that, being able to to help take measurements\n \n \n that are usually hard to calculate that can be done in an automated way.\n \n \n They're already taking the ultrasound scan and now they're executing this model.\n \n \n They can take some of these measurements to help the doctor avoid potentially more\n \n \n intrusive alternative methods so the patient wins.\n \n \n It makes their life better.\n \n \n And the doctors is getting help from this A.I.\n \n \n model.\n \n \n And those are, you know, just a few examples.\n \n \n \n Those are some amazing examples when it comes to all these things.\n \n \n We're talking like CT scans, right, and x rays, other examples of computer vision.\n \n \n One thing that's kind of interesting in the space, I think\n \n \n whenever I get a chance to work on, let's say an object traction model\n \n \n and one of our workshops, by the way, is actually putting that out\n \n \n in front of people to say, Hey, look, you can use your phone.\n \n \n And it basically sends the image over to our OpenShift, right,\n \n \n with our data science platform and then analyzes what you see.\n \n \n And even in my case, where I take a picture of my dog\n \n \n as an example, it can't really decide is it a dog or a cat?\n \n \n I have a very funny looking dog,\n \n \n \n and so there's always a percentage outcome, you know?\n \n \n In other words, I think it's a dog 52%.\n \n \n So I want to talk about that more.\n \n \n What how important is it to get to 100% accuracy?\n \n \n How important is it to really, depending on the use case, to allow\n \n \n for the gray area, if you will, where it's an 80% accuracy or 70% accuracy?\n \n \n And where are the trade offs there associated with the application?\n \n \n Can you can you discuss that more?\n \n \n \n Accuracy is definitely, you know, a touchy subject\n \n \n because how you measure it makes a huge difference.\n \n \n And then I think with like what you were describing with the dog example, there's\n \n \n sort of a top five potential classes that might may be identified.\n \n \n So let's say you're doing object detection and you detect a region of interest\n \n \n and it says 65% confidence.\n \n \n This is a dog.\n \n \n Well, the next potential label that could be maybe 50% confidence\n \n \n or 20% confidence might be something similar to a dog or in the case of models\n \n \n that have been trained on like the image net dataset\n \n \n or on cocoa data set, they have like actual breeds of dogs.\n \n \n So if I want to look at the top five labels for a dog,\n \n \n for my dog, for example, she's a mixed mostly Labrador retriever.\n \n \n \n But I may look at the top five labels and it may say 65% confidence that she's\n \n \n a flat coated retriever and then confidence that she's a husky,\n \n \n as you know, 20% and then 5% confidence that she's a Greyhound or something.\n \n \n Those labels, all of them are dogs.\n \n \n So if I'm just trying to figure out is, is this a dog,\n \n \n I could probably find all of the, you know, classes within the data set\n \n \n and say, well, these are all, you know, class ID\n \n \n 65, 132, 92 and 158 all belong to a group of dogs.\n \n \n So if I wanted to just write an application to tell me if this is a dog\n \n \n or not, I would probably use that to determine if it's a dog.\n \n \n But how you measure that is accuracy.\n \n \n Well, that's where it gets a little bit complicated,\n \n \n because if you're being really strict about the definition and you're\n \n \n trying to validate against the data set of labeled images\n \n \n and I have specific dog breeds or some specific detail\n \n \n and it doesn't match, well, then the accuracy is going to go down.\n \n \n \n That's especially important when we talk about things like compression\n \n \n and quantization,\n \n \n which, you know, historically has been difficult for to get adoption\n \n \n in some domains like health care, where even the hint of accuracy going down\n \n \n implies that we're not going to be able to help in some small case,\n \n \n maybe if it's even half a percent of the time\n \n \n we want to take that that tube is placed incorrectly or that, you know,\n \n \n that patient's, you know, lung has collapsed or something like that.\n \n \n And that's something that really prevents adoption of some of these methods\n \n \n that can really boost performance like quantization.\n \n \n But if you take that example of sort of different from the dog example\n \n \n and you think about like segmentation of kidneys.\n \n \n So if I'm doing kidney segmentation, which is, you know, taking a CT scan\n \n \n and then trying to pick the pixels out of that\n \n \n scan that belong to a kidney,\n \n \n how I measure accuracy may be\n \n \n how many of those pixels I'm able to detect and how many did I miss?\n \n \n \n Missing some of the pixels is maybe not a problem, right,\n \n \n depending on how you built the application because you still detect the kidney\n \n \n and maybe you just need to apply padding around the region of interest\n \n \n so that you don't miss any of the the actual kidney.\n \n \n When you compress the model and when you quantized the model. But\n \n \n that requires, you know, data scientist and email engineer somebody to really\n \n \n they have to be\n \n \n able to go and apply that after the fact, after the inference\n \n \n happens to make sure that you're not losing critical information,\n \n \n because the next step from detecting the kidney may be detecting a tumor.\n \n \n \n And so maybe you can use the more optimized model\n \n \n to detect the kidney, but then you can use a slower model to detect the tumor.\n \n \n But that also requires somebody to architect and make that decision\n \n \n or that tradeoff and say,\n \n \n well, I need to add padding, or I should only use the quantized model\n \n \n to detect the region of interest for the kidney and then use the model\n \n \n that takes longer to do the inference\n \n \n just to find the tumor, which is going to be on a smaller size.\n \n \n Right. The dimensions are going to be much smaller\n \n \n once we crop to the region of interest.\n \n \n But all of those details, that's maybe not easy to explain in a few sentences.\n \n \n And even the way I explained it is probably really confusing.\n \n \n \n I do love that use case.\n \n \n Like you mentioned, the cropping\n \n \n even in one such an area that we worked on for another project,\n \n \n we specifically decided to pix like the image that we had taken\n \n \n because we knew that we could get the outcome we wanted by even\n \n \n just using a smaller or less having less resolution in our image.\n \n \n And therefore, as we transferred it from the mobile device storage device\n \n \n up into the cloud, we wanted that smaller image just for transfer purposes\n \n \n and it still we could get the accuracy we needed by a lot of testing.\n \n \n \n And one thing that's interesting about that from my perspective is\n \n \n if you're doing image processing, sometimes it takes a while\n \n \n for this transaction to occur.\n \n \n Like I,\n \n \n I come from a traditional application background, you know, where I'm reading\n \n \n and writing things from a database\n \n \n or a message broker or moving data from one place to another.\n \n \n Those things happen subsequent.\n \n \n Normally, even with great latency between your data centers, you know,\n \n \n it's still subsequent.\n \n \n In most cases, while on a transaction like this, one can actually take 2 seconds\n \n \n or 4 seconds as it's doing its analysis and actually coming back with, you know,\n \n \n I think it's a dog, I think it's a kidney, I think it's whatever, and provided me\n \n \n that accuracy statement.\n \n \n So that concept of optimization is very important\n \n \n in the overall application architecture.\n \n \n Would you agree with that or how do you think about that concept?\n \n \n Yeah, definitely.\n \n \n \n It depends too on the use case.\n \n \n So if you think about how important it is to reduce the latency\n \n \n and increase the number of frames per second that you can process when you're\n \n \n talking about a loss prevention model that's running at a grocery store.\n \n \n So you want to keep the lines moving.\n \n \n You don't want every person who's at the self-checkout\n \n \n to have to wait 5 seconds for every item they scan.\n \n \n You need it to happen as quickly as possible.\n \n \n And if sometimes you, you know, the accuracy\n \n \n decreases slightly or the I'd say the accuracy of the whole pipeline.\n \n \n So not just looking at the individual model or the individual inference, but\n \n \n let's say that the the whole pipeline is not as successful at detecting\n \n \n when somebody steals one item from the self-checkout,\n \n \n it's not going to be a life threatening situation.\n \n \n Whereas, you know, being in the hooked up to the X-ray machine\n \n \n with the two placement model, they might be willing to have the doctor,\n \n \n the nurse wait 5 seconds to get the result.\n \n \n \n They don't need it to happen in 500 milliseconds.\n \n \n So they're willing their threshold for waiting is a little bit higher.\n \n \n So that, I think, also drives some of the decision, like\n \n \n you want to keep people moving through the checkout line\n \n \n and you can afford to to potentially if you lose a little bit of accuracy here\n \n \n and there, it's not going to\n \n \n cost the company that much money or it's not going to be life threatening.\n \n It's going to be worth the tradeoff of keeping the line moving\n and not having people leave the store and not check out at all.\n And to say, I'm not going to shop today because the line's too long.\n \n There are so many trade offs and enterprise\n AML use cases, things like latency, accuracy and availability.\n And certainly complexities abound, especially in an obviously ever evolving\n technological landscape where we are still very early in the adoption of AML.\n And to navigate that complexity, the direct feedback from real world\n end users is essential to Ryan and his team at Intel.\n What would you say are some of the big hurdles or big\n outcomes, big opportunities in that space?\n And do you agree that we're kind of still at the very beginning in our infancy,\n if you will,\n of adopting these technologies and and discovering what they can do for us?\n \n Yeah, I think we're definitely in the infancy\n and I think that what we've seen is our customers are evolving\n and the people who are deploying on Intel hardware, they're trying to run\n more complicated models.\n They're the models that are doing object detection or, you know,\n detecting defects and, you know, doing segmentation.\n You know, in the past you could say, oh, here's a generic model that will do face\n detection or person detection or vehicle detection and license plate detection.\n And those are sort of like\n general purpose models that you can just grab off the shelf and use them.\n But now we're moving into like the anomaly scenarios\n where I've got my own data and I'm trying to do something very specific\n and I'm the only one that has access to this data.\n And you don't have a public data set that you can go download\n that's under Creative Commons license for, you know, car batteries.\n It's, you know, it's just not something that's available.\n \n And so those use cases, the challenge with with training those models\n and and getting them optimized is the beginning of the pipeline.\n It's the data you have to get the data you have to annotated\n and the tools have to exist for you to do that.\n And that's part of the problem that we're trying to help solve.\n And then the models are getting more complex.\n So if you think, you know, just from working with customers recently,\n you know, they're no longer\n just trying to do image classification and, you know, like is it a dog or a cat?\n They've moved on to like 3D point clouds\n and, you know, 3D segmentation models and things that are like the speech\n synthesis example, doing things these GPT models that are generating,\n you know, you, you put a text input and it generates an image for you.\n It's just becoming much more advanced, much more sophisticated\n and on larger images.\n \n And so things like running super resolution enhancing images, upscaling\n images, instead of just trying to take that, you know, 200 by 200 pixel\n image and classifying if it's a cat.\n Now we're talking about gigantic\n huge images that we're processing and that all requires\n more resources or more optimized models.\n And, you know, every computer vision conference or A.I.\n conference, there's there's a new latest and greatest architecture.\n There's new research paper, and things are getting adopted much faster.\n The lead time for a nurse paper or CV PR\n for a company to actually adopt and put those into production.\n It's like the time shortens every year.\n \n Well, Ryan, I got to tell you, I could talk to you\n literally all day about these topics, the various use cases, the various ways\n models are being optimized,\n how to put models into a pipeline for average enterprise applications.\n I've enjoyed learning about pop and vino and anomalies,\n but I'm fascinated by this because I will have a chance to go try this myself.\n Taking advantage of Red Hat OpenShift\n and taking advantage of our data science platform.\n On top of that, I will definitely go be poking at this myself.\n So thank you so much for your time today.\n \n Thanks, Burr.\n This was a lot of fun.\n Thanks for having me.\n \n And you can check out\n the full transcript of our conversation and more resources,\n like a link to a white paper on open vino and normal lib at Red Hat dot\n com slash code Comments Podcast.\n This episode was produced by Brant Seminole and Caroline Prickett.\n Our sound designer is Christian.\n From our audio team includes Lee Day, Stephanie Wunderlich, Mike Esser,\n Laura Barnes, Claire Allison, Nick Burns, Aaron Williamson, Karen King,\n Booboo House, Rachel Artell, Mike Compton, Ocean\n Mathews, Laura Walters, Alex Trabelsi and Victoria Lutton.\n I'm your host, Burt Sutter.\n Thank you for joining me today on Code Comments.\n I hope you enjoyed today's session and today's conversation, and I\n look forward to many more in.\n \n
\n\n

Even with more headings

\n

This last heading is allowed to go back up to h2, but the player should still take h3 as its root heading level.

\n\n\n\n\n", + "content": "

Audio player should automatically calculate it's heading levels

\n\n

Root Level h3

\n\n

Transcript should be h5, cues should be h6

\n\n\n

Code Comments

\n

Bringing Deep Learning to Enterprise Applications

\n \n
About the episode
\n

\n There are a lot of publicly available data sets out there. But when it\n comes to specific enterprise use cases, you're not necessarily going to\n able to find one to train your models. To realize the power of AI/ML in\n enterprise environments, end users need an inference engine to run on\n their hardware. Ryan Loney takes us through OpenVINO and Anomalib, open\n toolkits from Intel that do precisely that. He looks specifically at\n anomaly detection in use cases as varied as medical imaging and\n manufacturing.\n

\n

\n Want to learn more about Anomalib? Check out the research paper that\n introduces the deep learning library.\n

\n \n Ryan Loney\n Product manager, OpenVINO Developer Tools, Intel®\n \n
\n \n \n
Subscribe
\n

Subscribe here:

\n \n \"Listen\n \n \n \"Listen\n \n \n \"Listen\n \n \n \"Subscribe\n \n
\n \n \n Hi, I'm Burr Sutter.\n I'm a Red Hatter\n who spends a lot of time talking to technologists about technologies.\n We say this a lot of Red Hat.\n No single technology provider holds the key to success, including us.\n And I would say the same thing about myself.\n I love to share ideas.\n So I thought it'd be awesome\n to talk to some brilliant technologists at Red Hat Partners.\n This is Code Comments, an original podcast\n from Red Hat.\n \n I'm sure, like many of you here, you have been thinking about\n AI, ML, artificial intelligence and machine learning.\n I've been thinking about that for quite some time\n and actually had the opportunity\n to work on a few successful projects here at Red Hat using those technologies,\n actually enabling a dataset, gathering a dataset,\n working with data scientists and data engineering team,\n and then training a model and putting that model into production\n runtime environment.\n It was an exciting set of projects and you can kind of see\n those on numerous YouTube videos I have published out there before.\n But I want you to think about the problem space a little bit\n because there are some interesting challenges about AI/ML.\n One is simply just getting access to the data,\n and while there are numerous publicly available datasets\n when it comes to your specific enterprise use case, you might not be to find\n publicly available data.\n \n In many cases, you cannot, even for our applications that we created,\n we had to create our dataset, capture our dataset,\n explore the dataset, and of course train a model accordingly.\n And we also found there's another challenge to be overcome\n in this AML world, and that is access to certain types of hardware.\n If you think about the enterprise environment\n and the creation of an enterprise application specifically for AML\n and users need an inference engine to run on their hardware,\n hardware that's available to them to be effective for their application.\n Let's say an application like computer vision,\n one that can detect anomalies in medical imaging or maybe on a factory floor,\n You know, those things are whizzing by on the factory line.\n They're looking at them and trying to determine if there is an error or not.\n \n Well, how do you actually make it run on your hardware,\n your accessible technology that you have today?\n Well, there's a solution for this as an open toolkit called Open vino.\n And you might be thinking, hey, wait a minute,\n don't you need a GPU for a I inferencing a GPU\n for artificial intelligence machine learning?\n Well, not according to Ryan Loney, product manager of Open Vino Developer\n Tools at Intel.\n \n I guess we'll\n start with trying to maybe dispel the myths, right?\n I think that CPUs are widely used for inference today.\n So and if we look at the data center segment, you know, about 70% of the A.I.\n inference is happening on Intel Xeon on our data center CPUs.\n And so you don't needed a GPU, especially for running inference.\n And that's part of the value of open vino, is that we're you know,\n we're taking models that may have been trained on a GPU\n using deep learning frameworks like PyTorch or TensorFlow\n and then optimizing them to run on Intel hardware.\n \n Ryan joined me to discuss AI/ML and the enterprise\n across various industries and exploring numerous use cases.\n Let's talk a little bit about the origin story behind Open Vino.\n Tell us more about it and how it came to be\n and why it came out of Intel.\n \n Definitely. So we had the first release of Open Vino\n was back in 2018, so still relatively new.\n And at that time we were focused on computer vision and pretty tightly coupled\n with open CV, which is another open source library with origins at Intel.\n You know, it\n had its first release back in 1999, so it's been around a little bit longer.\n And many of the software engineers and architects at Intel\n that were involved with and contributing to open CV are working on open Vino.\n So you can think of open vino as complementary software to open CV.\n And we're providing like an engine for executing inference\n as part of a computer vision pipeline, or at least that's how we started.\n \n But since 2018, we've we've started to move beyond\n just computer vision inference.\n So when I say computer vision inference, I mean like image\n classification, object detection, segmentation.\n And now we're moving into natural language processing, things\n like speech synthesis, speech recognition, knowledge, graphs,\n time series forecasting, and other use cases that don't involve\n computer vision and don't involve inference on pixels.\n Our latest release, the 20 22.1 that came out earlier this year,\n there was a most significant update that we've had to open vino\n since we started in 2018, and the major focus of that release\n was optimizing for use cases that go beyond computer vision.\n \n And I like that concept that you just mentioned right there, computer vision.\n And you said that you extended those use cases and went beyond that.\n So could you give us more concrete examples of computer vision?\n \n Yeah, sure.\n So when you think about manufacturing quality control in factories, everything\n from ARC welding, defect detection to inspecting BMW cars on assembly lines,\n they're using cameras or sensors to collect data.\n And usually it's cameras collecting images like RGV images that you and I can see.\n And looks like something taken from a camera or video camera,\n but also things like infrared or computerized tomography\n scans used in health care, X-ray, different types of images where we can\n draw bounding boxes around regions of interest\n and say, you know, this is a defect or this is not a defect.\n And also, is this worker wearing a safety hat or did they forget to put it on?\n And so you can take this and integrate it into a pipeline\n where you're triggering an alert if somebody forgets\n to wear their safety mask or if there's a defect in a product\n on an assembly line, you can just use cameras and open\n vino and open CV running these on Intel hardware and help to analyze.\n \n And that's what a lot of the partners that we work with are doing.\n So these independent software vendors\n and there's other use cases for things like retail.\n You think about going to a store and using an automated checkout system.\n You know, sometimes people use those automated checkouts\n and they they slide a few extra items into their bag that they don't scan.\n And it's a huge loss for the retail outlets\n that are providing this way to check out real time shelf monitoring.\n We have this bear on one of our is fees that helps keep store shelves\n stocked by just analyzing the cameras in the stores, detecting\n when objects are missing from the shelves so that they can be restocked.\n We have Vistry, another ISP that works with quick service restaurants.\n So when you think about automating the process of\n when do I drop the fries into the fryer so that they're warm\n when the car gets to the drive thru window,\n you know, there's quite a bit of industrial health care retail examples\n that we can walk through and we should dig into some more of those.\n \n But I got to tell you, I have I have a personal experience\n in this category\n that I want to share with, and you can tell me how\n how silly you might think at this point in time.\n It is.\n We actually built an AI keynote demonstration for the Red Hat big stage\n back in 2015, and I really want to illustrate the concept of asset tracking.\n So we actually gave everybody in the conference a little Bluetooth token,\n but a little battery, a little watch battery and a little Bluetooth emitter.\n And we basically tracked those things around the conference.\n We basically put a Raspberry Pi in each of the meeting rooms\n and up in the lunch room, and you could see how the tokens\n moved from room to room to room as a relatively simple application.\n \n But it occurred to me after we figured out,\n okay, how to do that with Bluetooth and triangulating\n Bluetooth signals by looking at relative signal strength from one radio to another\n and putting that through an Apache Spark application at the time,\n we then realized, you know what, this is easier done with cameras\n and just simply looking at a camera and having some form of animal\n or machine learning model that would say, Oh,\n there are people here now are there are no people here now.\n What do you think about that?\n \n Yeah, I mean, what you just described is sort of exactly that the product\n that either one of our partners is offering,\n you know, that they're doing it with computer vision and cameras.\n So when partner tries to help retail stores\n analyze the foot traffic and understand with Heatmaps,\n where people are spending the most time in stores, how many people are coming\n in, what size groups are coming into the store,\n you know, and trying to help understand if there was a successful transaction\n from the people who entered the store and left the store so that you can,\n you know, to help with the, you know, retail analytics\n and marketing sales and positioning of products.\n And so they're doing that in a way that also protects privacy.\n And that's something that's really important.\n So when you talked about those Bluetooth beacons, probably,\n \n you know, if everyone who walked into a grocery store was asked\n \n \n to put a tracking device in their cart or on their person and say, you know,\n \n \n you're going\n \n \n to be tracked around the store, they probably wouldn't want to do that.\n \n \n The way that you can do this with cameras is you can,\n \n \n \n you know, detect people as they enter and, you know, remove their face.\n \n \n Right.\n \n \n So you can ignore any biometric information\n \n \n and and just track the person based on pixels\n \n \n that are present in the detected region of interest.\n \n \n So they're able to analyze, say, a family walks in the door\n \n \n and they can group those people together with object detection\n \n \n and then they can track their movement throughout the store\n \n \n without keeping track of their face or any biometric\n \n \n or any personal identifiable information to avoid things like bias\n \n \n and to make sure that they're protecting the privacy of the shoppers in the store\n \n \n while still getting that really useful marketing analytics data rate\n \n \n so that they can make better decisions about where to place their products.\n \n \n So that's one really good example of how\n \n \n computer vision AI with open vino is being used today.\n \n \n \n And that is a great example because you're definitely spot on.\n \n \n It is invasive when you hand someone to Bluetooth devices,\n \n \n say, please keep this with you as you go throughout our our store\n \n \n or our mall or throughout our hospital, wherever you might be.\n \n \n Now, you mentioned another example earlier\n \n \n in the conversation which was related to like worker safety.\n \n \n Are they wearing a helmet?\n \n \n I want to talk more about that concept in a real industrial setting,\n \n \n a manufacturing setting where there might be a factory floor\n \n \n and there are certain requirements, or better yet, there's like a\n \n \n a quality assurance requirement, let's say, when it comes to looking\n \n \n at a factory line, I run to that use case often what some of our customers.\n \n \n Can you talk more about those kinds of use cases? Yeah.\n \n \n \n So one of our partners, Robuchon and we you know, published a case study\n \n \n I think last year where they're working with BMW at one of their factories\n \n \n and they do quality control inspection, but they're also doing\n \n \n things related to worker safety and analyzing.\n \n \n You know, I used the safety had example.\n \n \n There's a number of of our ISP's and partners who have similar use cases.\n \n \n And it comes down to there's a few reasons\n \n \n that are motivating this and some are related to like insurance, right?\n \n \n It's important to make sure that\n \n \n if you want to have your factory insured and that your workers\n \n \n are protecting themselves and wearing the gear.\n \n \n Regulatory compliance. Right.\n \n \n You're you're being asked to properly protect from exposure to chemicals or,\n \n \n you know, potentially having something fall and and hit someone on the head.\n \n \n So wearing a safety vest, wearing goggles, wearing a helmet,\n \n \n these are things that you need to do inside the factory.\n \n \n And you can really easily automate and detect and sometimes without bias.\n \n \n \n I think that's one of the interesting things about the robots on BMW example\n \n \n is that they were also blurring sort of blocking out and so drawing a box\n \n \n to cover the face of the workers in the factory\n \n \n so that somebody who was analyzing the video footage\n \n \n and getting the alerts saying that, hey, you know, Bay 21 has a worker\n \n \n without a hat on, that it's not sending their face\n \n \n and in the alert and potentially, you know, invading\n \n \n or going against privacy laws or just the ethics of the company.\n \n \n Right.\n \n \n They don't want to introduce bias or have people targeted because\n \n \n it's much better to to have it be, you know, blur the face\n \n \n and alert and have somebody take care of it on the floor.\n \n \n And then if you ever need to audit that information later,\n \n \n they have a way to do it where people who need to be able to see\n \n \n who the employee was and look up their personal information, they can do that.\n \n \n \n But then just for the purposes of maintaining safety,\n \n \n they don't need to have access\n \n \n to that personal information or biometric information,\n \n \n because that's one thing that when you hear about computer vision\n \n \n or object person tracking, object detection,\n \n \n there's a lot of concern, and rightfully so, about privacy\n \n \n being invaded and about tracking information, face ID,\n \n \n identifying people who may have committed crimes through video footage.\n \n \n And that's just not something that a lot of companies want to\n \n \n you know, they want to protect privacy\n \n \n and they don't they don't want to be in a situation\n \n \n where they might be violating someone's rights.\n \n \n \n Well, privacy is certainly opening up Pandora's box.\n \n \n There's a lot to be explored in that area,\n \n \n especially in a digital world that we now live in.\n \n \n But for now, let's move on and explore different area.\n \n \n I'm interested in how machines and computers offer advantages,\n \n \n specifically in certain use cases like a quality control scenario.\n \n \n I asked Ryan to explain how AML and specifically machines\n \n \n computers can augment that capability.\n \n \n \n I can give a specific example where we have a partner\n \n \n that's there doing defect detection with\n \n \n and looking for anomalies in batteries.\n \n \n So, you know, sure, you've heard there's a lot of interest right now\n \n \n in electric vehicles, a lot of batteries being produced.\n \n \n And so if you go into one of these factories,\n \n \n they have images that they collect of every battery that's going through this\n \n \n assembly line and through these images, people\n \n \n can look and see and visually inspect with their eyes and say,\n \n \n this battery has a defect, send it back.\n \n \n And that's one step in the quality control process.\n \n \n And there's other steps, I'm sure, like running diagnostic tests and, you know,\n \n \n measuring voltage and doing other types of non-visual inspection.\n \n \n But for the visual inspection piece where you can really easily identify\n \n \n some problems, it's much more efficient to introduce computer vision.\n \n \n And so that's where we have this new library that we've introduced\n \n \n called Anomali, that's open vino.\n \n \n \n While we're focused on inference, you know, we're also thinking\n \n \n about the pipeline or the funnel that gets these models to open vino.\n \n \n And so we've we've invested in this anomaly segmentation,\n \n \n anomaly detection library and that we've recently open source\n \n \n and there's a great research paper about it about Anomali.\n \n \n But the idea is you can take just a few images\n \n \n and train a model and start detecting these defects.\n \n \n And so for this battery example, that's a more advanced example.\n \n \n But to make it simpler, you know, take some bolts and, you know, take ten bolts.\n \n \n You have one that has a scratch on it or one that is chipped\n \n \n or has some damage to it.\n \n \n And you can easily get started in training\n \n \n to recognize the bolts that do not have an anomaly.\n \n \n And the ones that do, which is a small data set\n \n \n and I think that's really one of the most important things today.\n \n \n \n Challenges is one is access to data, but the other is\n \n \n is needing a massive amount of data to do something meaningful.\n \n \n And so we're starting to try to change that dynamic with Anomali.\n \n \n So you may not need 100,000 images, you may need 100 images,\n \n \n and you can start detecting anomalies in everything from batteries to bolts to,\n \n \n you know, maybe even the wood varnish use case that you mentioned.\n \n \n \n That is very key point because often in that data scientist\n \n \n process, that data engineer and data scientist process, right.\n \n \n The one key thing is can you gather\n \n \n the data that you need for the input for the model training?\n \n \n And we've often sat at least people I've worked\n \n \n with over the last couple of years, you know, you need a lot of data.\n \n \n You need tens of thousands of correct images\n \n \n so we can sort out the difference between dogs versus cats, let's say,\n \n \n or you need dozens and dozens of situations\n \n \n where if it's a natural language processing scenario,\n \n \n you know, a good customer interaction, a good customer conversation,\n \n \n and in this case,\n \n \n it sounds like what you're saying is show us just the bad things, right?\n \n \n Fewer images, fewer incorrect things,\n \n \n and then let us look for those kind of anomalies.\n \n \n Can tell us more about that because that is very interesting.\n \n \n The concept that I can use a much smaller dataset as my input\n \n \n as opposed to gathering terabytes of data in some cases\n \n \n to just simply get my model training underway.\n \n \n \n You know, like you described, the idea is if you have some good images\n \n \n and then you have some of the the known defects\n \n \n and you can just label here's a set of good images\n \n \n and here's a few of the defects and you can right away\n \n \n start detecting those specific defects that you've identified.\n \n \n And then also, you know, be able to\n \n \n determine when it doesn't match\n \n \n the expected appearance of a non defective item.\n \n \n So if I have the undamaged screw and then I introduce\n \n \n one with some new anomaly that's never been seen before,\n \n \n I can say, you know, this one is not a valid screw.\n \n \n And so that's sort of the the approach that we're taking.\n \n \n And it's really important because so often you need to have\n \n \n subject matter experts often like if you think the take the battery example,\n \n \n there's these workers who are on the floor\n \n \n in a factory and they're the ones who know best when they look at these images,\n \n \n which one's going to have an issue, which one's defective?\n \n \n \n And then they also need to take that subject matter, expertise\n \n \n and then use it to annotate data sets.\n \n \n And when you have these, you know,\n \n \n tens of thousands of images you need to annotate, it's asking those people\n \n \n to stop working on the factory floor so they can come annotate some images.\n \n \n That's a tough business call to make, right?\n \n \n But if you only need them to annotate a handful of images, it's a much easier\n \n \n ask to get the ball rolling and demonstrate value.\n \n \n And maybe over time you will want to annotate more\n \n \n and more images because you'll get even better accuracy in the model.\n \n \n Even better, even if it's just small incremental improvements.\n \n \n You know, that's something that if it generates value for the business,\n \n \n it's something the business will invest in over time.\n \n \n But you have to convince the decision makers that it's worth\n \n \n the time of these subject matter experts to stop what they're doing\n \n \n and go and label some images of the things that they're working on in the factory.\n \n \n \n And that labeling process can be very labor intensive of the annotations,\n \n \n basically saying what is correct, what's wrong, what is this, what is that?\n \n \n And therefore, if we can minimize that time frame to get the value quicker,\n \n \n then there's something that's useful for the business, useful for the organization\n \n \n long before we necessarily good.\n \n \n There are huge model training based,\n \n \n \n so we talk about labeling and how that is labor intensive activity.\n \n \n But I love the idea of helping the human\n \n \n and helping the human models specifically not get bored.\n \n \n Basically, if the human is eyeballing a bunch of widgets flying by over time,\n \n \n they make mistakes, they get bored\n \n \n and they don't pay as close attention as they should.\n \n \n That's why the concept of Amazon specifically computer vision, augmenting\n \n \n that capability and really helping the human identify anomalies faster,\n \n \n more quickly, maybe with greater accuracy could be a big win.\n \n \n We focused on manufacturing, but let's actually go into health care\n \n \n and learn how these tools can be used in that sector and that industry.\n \n \n Ryan talked to me about how Open Windows runtime can be incorporated into medical\n \n \n imaging equipment with intel processors and better than c.T.\n \n \n MRI and ultrasound machines.\n \n \n Well, these inferences, this AML workload can be operating\n \n \n and executing right there in the same physical room as the patient.\n \n \n \n We did a presentation when she last year.\n \n \n I think they said\n \n \n there's at least 80 countries that have their X-ray machines deployed\n \n \n and they're doing things like helping doctors place breathing tubes in patients.\n \n \n So during COVID, during the pandemic, that was a really important tool\n \n \n to help with nurses and doctors who were intubating patients\n \n \n sometimes like in a parking lot or a hallway of the hospital.\n \n \n And, you know, when they had a statistic that you said, I think one out of four\n \n \n breathing tubes gets placed incorrectly\n \n \n when you're doing it outside the operating room,\n \n \n because when you're in an operating room, it's much more controlled\n \n \n and there's someone who's an expert at placing the tubes.\n \n \n It's something you have more of a controlled environment\n \n \n than when you're out in a parking lot, in a tent.\n \n \n You know, when the hospital's completely full and you're triaging patients\n \n \n with COVID, that's when they're more likely to make mistakes.\n \n \n And so they had this endotracheal tube placement\n \n \n model that they trained,\n \n \n and it helped to use an x ray and give an alert and say, hey,\n \n \n this tube is placed wrong, pull it out and do it again.\n \n \n And so things like that help doctors so that they can avoid mistakes.\n \n \n And, you know, having a breathing tube placed incorrectly\n \n \n can cause collapsed lung and a number of other unwanted side effects.\n \n \n So it's really important to do it correctly.\n \n \n Another example is Samsung Medicine.\n \n \n They actually are doing estimating fetal angle of progression.\n \n \n So this is analyzing ultrasound\n \n \n of pregnant women with that, being able to to help take measurements\n \n \n that are usually hard to calculate that can be done in an automated way.\n \n \n They're already taking the ultrasound scan and now they're executing this model.\n \n \n They can take some of these measurements to help the doctor avoid potentially more\n \n \n intrusive alternative methods so the patient wins.\n \n \n It makes their life better.\n \n \n And the doctors is getting help from this A.I.\n \n \n model.\n \n \n And those are, you know, just a few examples.\n \n \n \n Those are some amazing examples when it comes to all these things.\n \n \n We're talking like CT scans, right, and x rays, other examples of computer vision.\n \n \n One thing that's kind of interesting in the space, I think\n \n \n whenever I get a chance to work on, let's say an object traction model\n \n \n and one of our workshops, by the way, is actually putting that out\n \n \n in front of people to say, Hey, look, you can use your phone.\n \n \n And it basically sends the image over to our OpenShift, right,\n \n \n with our data science platform and then analyzes what you see.\n \n \n And even in my case, where I take a picture of my dog\n \n \n as an example, it can't really decide is it a dog or a cat?\n \n \n I have a very funny looking dog,\n \n \n \n and so there's always a percentage outcome, you know?\n \n \n In other words, I think it's a dog 52%.\n \n \n So I want to talk about that more.\n \n \n What how important is it to get to 100% accuracy?\n \n \n How important is it to really, depending on the use case, to allow\n \n \n for the gray area, if you will, where it's an 80% accuracy or 70% accuracy?\n \n \n And where are the trade offs there associated with the application?\n \n \n Can you can you discuss that more?\n \n \n \n Accuracy is definitely, you know, a touchy subject\n \n \n because how you measure it makes a huge difference.\n \n \n And then I think with like what you were describing with the dog example, there's\n \n \n sort of a top five potential classes that might may be identified.\n \n \n So let's say you're doing object detection and you detect a region of interest\n \n \n and it says 65% confidence.\n \n \n This is a dog.\n \n \n Well, the next potential label that could be maybe 50% confidence\n \n \n or 20% confidence might be something similar to a dog or in the case of models\n \n \n that have been trained on like the image net dataset\n \n \n or on cocoa data set, they have like actual breeds of dogs.\n \n \n So if I want to look at the top five labels for a dog,\n \n \n for my dog, for example, she's a mixed mostly Labrador retriever.\n \n \n \n But I may look at the top five labels and it may say 65% confidence that she's\n \n \n a flat coated retriever and then confidence that she's a husky,\n \n \n as you know, 20% and then 5% confidence that she's a Greyhound or something.\n \n \n Those labels, all of them are dogs.\n \n \n So if I'm just trying to figure out is, is this a dog,\n \n \n I could probably find all of the, you know, classes within the data set\n \n \n and say, well, these are all, you know, class ID\n \n \n 65, 132, 92 and 158 all belong to a group of dogs.\n \n \n So if I wanted to just write an application to tell me if this is a dog\n \n \n or not, I would probably use that to determine if it's a dog.\n \n \n But how you measure that is accuracy.\n \n \n Well, that's where it gets a little bit complicated,\n \n \n because if you're being really strict about the definition and you're\n \n \n trying to validate against the data set of labeled images\n \n \n and I have specific dog breeds or some specific detail\n \n \n and it doesn't match, well, then the accuracy is going to go down.\n \n \n \n That's especially important when we talk about things like compression\n \n \n and quantization,\n \n \n which, you know, historically has been difficult for to get adoption\n \n \n in some domains like health care, where even the hint of accuracy going down\n \n \n implies that we're not going to be able to help in some small case,\n \n \n maybe if it's even half a percent of the time\n \n \n we want to take that that tube is placed incorrectly or that, you know,\n \n \n that patient's, you know, lung has collapsed or something like that.\n \n \n And that's something that really prevents adoption of some of these methods\n \n \n that can really boost performance like quantization.\n \n \n But if you take that example of sort of different from the dog example\n \n \n and you think about like segmentation of kidneys.\n \n \n So if I'm doing kidney segmentation, which is, you know, taking a CT scan\n \n \n and then trying to pick the pixels out of that\n \n \n scan that belong to a kidney,\n \n \n how I measure accuracy may be\n \n \n how many of those pixels I'm able to detect and how many did I miss?\n \n \n \n Missing some of the pixels is maybe not a problem, right,\n \n \n depending on how you built the application because you still detect the kidney\n \n \n and maybe you just need to apply padding around the region of interest\n \n \n so that you don't miss any of the the actual kidney.\n \n \n When you compress the model and when you quantized the model. But\n \n \n that requires, you know, data scientist and email engineer somebody to really\n \n \n they have to be\n \n \n able to go and apply that after the fact, after the inference\n \n \n happens to make sure that you're not losing critical information,\n \n \n because the next step from detecting the kidney may be detecting a tumor.\n \n \n \n And so maybe you can use the more optimized model\n \n \n to detect the kidney, but then you can use a slower model to detect the tumor.\n \n \n But that also requires somebody to architect and make that decision\n \n \n or that tradeoff and say,\n \n \n well, I need to add padding, or I should only use the quantized model\n \n \n to detect the region of interest for the kidney and then use the model\n \n \n that takes longer to do the inference\n \n \n just to find the tumor, which is going to be on a smaller size.\n \n \n Right. The dimensions are going to be much smaller\n \n \n once we crop to the region of interest.\n \n \n But all of those details, that's maybe not easy to explain in a few sentences.\n \n \n And even the way I explained it is probably really confusing.\n \n \n \n I do love that use case.\n \n \n Like you mentioned, the cropping\n \n \n even in one such an area that we worked on for another project,\n \n \n we specifically decided to pix like the image that we had taken\n \n \n because we knew that we could get the outcome we wanted by even\n \n \n just using a smaller or less having less resolution in our image.\n \n \n And therefore, as we transferred it from the mobile device storage device\n \n \n up into the cloud, we wanted that smaller image just for transfer purposes\n \n \n and it still we could get the accuracy we needed by a lot of testing.\n \n \n \n And one thing that's interesting about that from my perspective is\n \n \n if you're doing image processing, sometimes it takes a while\n \n \n for this transaction to occur.\n \n \n Like I,\n \n \n I come from a traditional application background, you know, where I'm reading\n \n \n and writing things from a database\n \n \n or a message broker or moving data from one place to another.\n \n \n Those things happen subsequent.\n \n \n Normally, even with great latency between your data centers, you know,\n \n \n it's still subsequent.\n \n \n In most cases, while on a transaction like this, one can actually take 2 seconds\n \n \n or 4 seconds as it's doing its analysis and actually coming back with, you know,\n \n \n I think it's a dog, I think it's a kidney, I think it's whatever, and provided me\n \n \n that accuracy statement.\n \n \n So that concept of optimization is very important\n \n \n in the overall application architecture.\n \n \n Would you agree with that or how do you think about that concept?\n \n \n Yeah, definitely.\n \n \n \n It depends too on the use case.\n \n \n So if you think about how important it is to reduce the latency\n \n \n and increase the number of frames per second that you can process when you're\n \n \n talking about a loss prevention model that's running at a grocery store.\n \n \n So you want to keep the lines moving.\n \n \n You don't want every person who's at the self-checkout\n \n \n to have to wait 5 seconds for every item they scan.\n \n \n You need it to happen as quickly as possible.\n \n \n And if sometimes you, you know, the accuracy\n \n \n decreases slightly or the I'd say the accuracy of the whole pipeline.\n \n \n So not just looking at the individual model or the individual inference, but\n \n \n let's say that the the whole pipeline is not as successful at detecting\n \n \n when somebody steals one item from the self-checkout,\n \n \n it's not going to be a life threatening situation.\n \n \n Whereas, you know, being in the hooked up to the X-ray machine\n \n \n with the two placement model, they might be willing to have the doctor,\n \n \n the nurse wait 5 seconds to get the result.\n \n \n \n They don't need it to happen in 500 milliseconds.\n \n \n So they're willing their threshold for waiting is a little bit higher.\n \n \n So that, I think, also drives some of the decision, like\n \n \n you want to keep people moving through the checkout line\n \n \n and you can afford to to potentially if you lose a little bit of accuracy here\n \n \n and there, it's not going to\n \n \n cost the company that much money or it's not going to be life threatening.\n \n It's going to be worth the tradeoff of keeping the line moving\n and not having people leave the store and not check out at all.\n And to say, I'm not going to shop today because the line's too long.\n \n There are so many trade offs and enterprise\n AML use cases, things like latency, accuracy and availability.\n And certainly complexities abound, especially in an obviously ever evolving\n technological landscape where we are still very early in the adoption of AML.\n And to navigate that complexity, the direct feedback from real world\n end users is essential to Ryan and his team at Intel.\n What would you say are some of the big hurdles or big\n outcomes, big opportunities in that space?\n And do you agree that we're kind of still at the very beginning in our infancy,\n if you will,\n of adopting these technologies and and discovering what they can do for us?\n \n Yeah, I think we're definitely in the infancy\n and I think that what we've seen is our customers are evolving\n and the people who are deploying on Intel hardware, they're trying to run\n more complicated models.\n They're the models that are doing object detection or, you know,\n detecting defects and, you know, doing segmentation.\n You know, in the past you could say, oh, here's a generic model that will do face\n detection or person detection or vehicle detection and license plate detection.\n And those are sort of like\n general purpose models that you can just grab off the shelf and use them.\n But now we're moving into like the anomaly scenarios\n where I've got my own data and I'm trying to do something very specific\n and I'm the only one that has access to this data.\n And you don't have a public data set that you can go download\n that's under Creative Commons license for, you know, car batteries.\n It's, you know, it's just not something that's available.\n \n And so those use cases, the challenge with with training those models\n and and getting them optimized is the beginning of the pipeline.\n It's the data you have to get the data you have to annotated\n and the tools have to exist for you to do that.\n And that's part of the problem that we're trying to help solve.\n And then the models are getting more complex.\n So if you think, you know, just from working with customers recently,\n you know, they're no longer\n just trying to do image classification and, you know, like is it a dog or a cat?\n They've moved on to like 3D point clouds\n and, you know, 3D segmentation models and things that are like the speech\n synthesis example, doing things these GPT models that are generating,\n you know, you, you put a text input and it generates an image for you.\n It's just becoming much more advanced, much more sophisticated\n and on larger images.\n \n And so things like running super resolution enhancing images, upscaling\n images, instead of just trying to take that, you know, 200 by 200 pixel\n image and classifying if it's a cat.\n Now we're talking about gigantic\n huge images that we're processing and that all requires\n more resources or more optimized models.\n And, you know, every computer vision conference or A.I.\n conference, there's there's a new latest and greatest architecture.\n There's new research paper, and things are getting adopted much faster.\n The lead time for a nurse paper or CV PR\n for a company to actually adopt and put those into production.\n It's like the time shortens every year.\n \n Well, Ryan, I got to tell you, I could talk to you\n literally all day about these topics, the various use cases, the various ways\n models are being optimized,\n how to put models into a pipeline for average enterprise applications.\n I've enjoyed learning about pop and vino and anomalies,\n but I'm fascinated by this because I will have a chance to go try this myself.\n Taking advantage of Red Hat OpenShift\n and taking advantage of our data science platform.\n On top of that, I will definitely go be poking at this myself.\n So thank you so much for your time today.\n \n Thanks, Burr.\n This was a lot of fun.\n Thanks for having me.\n \n And you can check out\n the full transcript of our conversation and more resources,\n like a link to a white paper on open vino and normal lib at Red Hat dot\n com slash code Comments Podcast.\n This episode was produced by Brant Seminole and Caroline Prickett.\n Our sound designer is Christian.\n From our audio team includes Lee Day, Stephanie Wunderlich, Mike Esser,\n Laura Barnes, Claire Allison, Nick Burns, Aaron Williamson, Karen King,\n Booboo House, Rachel Artell, Mike Compton, Ocean\n Mathews, Laura Walters, Alex Trabelsi and Victoria Lutton.\n I'm your host, Burt Sutter.\n Thank you for joining me today on Code Comments.\n I hope you enjoyed today's session and today's conversation, and I\n look forward to many more in.\n \n
\n\n

Even with more headings

\n

This last heading is allowed to go back up to h2, but the player should still take h3 as its root heading level.

\n\n\n\n\n\n\n", "label": "Heading Levels" }, "demo/heading-levels/demo.css": { @@ -68,7 +68,7 @@ export const configure = project => project.config = { "demo/language-localization/index.html": { "contentType": "text/html", "selected": false, - "content": "

rh-audio-player: Language Localization

\n\n\n
\n

Options:

\n
    \n
  • \n
  • \n
  • \n \n
  • \n
\n
\n\n\n

Temporada 4, Episodio 1

\n

Minicomputadoras: el alma de las máquinas de antes

\n \n \n

Sí, es cierto, las minicomputadoras no caben en tu bolsillo, pero en su momento representaron un avance importante porque redujeron el espacio que necesitaban sus antecesoras, las mainframes,\n que ocupaban habitaciones enteras. Además, abrieron la posibilidad de que las computadoras personales cupieran en una bolsa y de que, posteriormente, se convirtieran en el teléfono que traes en\n tu bolsillo.

\n

Las computadoras de 16 bits cambiaron el mundo de la tecnología de la información en los años 70. Gracias a ellas, las empresas tuvieron la posibilidad de darle a cada ingeniero su propia\n máquina. Pero los avances aún no eran suficientes; todavía faltaba que llegaran las versiones de 32 bits.

\n

Carl Alsing y Jim Guyer nos hablan del trabajo que realizaron en Data General para crear una nueva y revolucionaria máquina de 32 bits. Y aunque ahora esos esfuerzos son toda una leyenda, en su\n momento se realizaron en secreto. “Eagle” era el nombre clave de la computadora que diseñaron, cuyo primer propósito era competir con otra máquina que estaba desarrollando otro equipo de la\n misma empresa. Los ingenieros nos hablan de las políticas corporativas y nos explican todas las tramas necesarias para que el proyecto pudiera seguir su curso, e incluso nos dicen cómo lograron\n que las restricciones jugaran a su favor. Neal Firth nos cuenta cómo vivió un proyecto muy emocionante pero exigente, en que nuestros héroes trabajaron juntos por pura voluntad, sin ninguna\n expectativa de fama ni fortuna. Y los tres nos mencionan que la historia quedó inmortalizada en el libro clásico de ingeniería de Tracy Kidder, El alma de una nueva máquina, que se basa\n en hechos reales.

\n
\n \n \n Corría el año de 1978 y en el sector de las minicomputadoras había una guerra a punto de estallar. Apenas un año antes, Digital Equipment Corporation, o DEC, había lanzado su computadora VAX\n 11 780 de 32 bits. Tenía una capacidad mucho mayor que las máquinas de 16 bits del mercado. Las ventas de la VAX pronto arrasaron con las de la competencia, que ofrecía computadoras más\n lentas. A Data General, la archienemiga de DEC, le urgía diseñar una nueva máquina capaz de competir con la VAX. Necesitaba su propia computadora de 32 bits y la necesitaba ya, pero la\n competencia entre Data General y DEC no era el único conflicto del momento. También había una disputa territorial en el interior de Data General, y el resultado de ambas guerras sería la\n creación de una computadora increíble, en circunstancias igual de increíbles. Una laptop de 13 pulgadas pesa como kilo y medio. Hoy en día damos por hecho la portabilidad y la practicidad de\n nuestras computadoras, pero en la década de 1970 la mayoría eran mainframes del tamaño de una habitación; eran aparatos que costaban millones de dólares y pesaban varias toneladas. Luego,\n cuando se desplomaron los costos del hardware, comenzó la carrera para desarrollar computadoras más pequeñas, más rápidas y más baratas. La minicomputadora abrió la posibilidad de que los\n ingenieros y los investigadores tuvieran su propia terminal, y nos trajo a donde estamos en la actualidad.\n \n \n En la temporada pasada de Command Line Heroes en español, analizamos un área clave para el desarrollo del software: el mundo de los lenguajes de programación. Hablamos de su historia, de los\n problemas que resolvieron y de su evolución a través del tiempo. Abordamos lenguajes como JavaScript, Python, C, Perl, COBOL y Go. En esta temporada, que es la cuarta, por si alguien lleva la\n cuenta, vamos a profundizar en el hardware en que se ejecuta nuestro software. Te vamos a contar siete historias maravillosas sobre las personas y los equipos que se atrevieron a cambiar las\n reglas del hardware. Piensa en la laptop que está en tu escritorio, o en el teléfono que traes en el bolsillo… Los héroes de la línea de comandos siempre dejan el alma en tu hardware; con su\n pasión por el diseño informático y su ingenio para que cada pieza se vuelva realidad, han revolucionado la forma en que programamos hoy en día.\n \n \n Esto es Command Line Heroes en español, un podcast original de Red Hat.\n \n \n El primer episodio de esta temporada cuenta la carrera contrarreloj de un equipo de ingenieros que tenían que diseñar, depurar y entregar una computadora de vanguardia. Su trabajo se\n convirtió en el tema principal del bestseller El alma de una nueva máquina, de Tracy Kidder, que posteriormente se haría acreedor al premio Pulitzer y que habla de muchos de los invitados de\n este episodio.\n \n \n Pero volvamos a Data General. El presidente de la compañía, Ed de Castro, había trazado un plan para competir con DEC. Dividió al departamento de ingeniería y trasladó a una parte del equipo\n de la sede de Westboro, Massachusetts, en Estados Unidos, a una nueva oficina que estaba en Carolina del Norte. ¿Su misión? Diseñar una computadora avanzada de 32 bits que hiciera trizas a la\n VAX. El proyecto se llamaba Fountainhead, y de Castro le dio apoyo y recursos casi ilimitados. Fountainhead iba a ser la salvación de la empresa. Los pocos ingenieros que se quedaron en\n Massachusetts se sintieron terriblemente menospreciados. Sabían que eran capaces de crear una computadora que destrozara a la VAX, y que probablemente sería mejor que la de Fountainhead, pero\n de Castro no les daba la oportunidad. Así que Tom West, que era el líder del grupo, decidió ocuparse personalmente del asunto. El ingeniero en Computación Tom West, de formación autodidacta,\n dirigía el departamento Eclipse de Data General. Eclipse era la gama de minicomputadoras de 16 bits más exitosa de Data General. Tom sabía fabricar y distribuir computadoras, y también sabía\n lo que quería el mercado. Después de poner en marcha el proyecto Fountainhead, de Castro les pidió a los demás ingenieros que siguieran mejorando la gama de productos del año anterior. Ni a\n Tom ni a los demás les convencía la idea.\n \n \n No nos hacía ninguna gracia. Algunos decidieron cambiar de empleo y otros estábamos deprimidos y preocupados por nuestras carreras; no nos sentíamos nada entusiasmados. Y nos imaginábamos que\n el otro grupo no lo iba a lograr.\n \n \n Carl Alsing era el gerente del grupo de microprogramación de Data General. Era el segundo al mando, después de Tom. Así que los dos decidieron empezar su propio proyecto.\n \n \n Iba a ser un diseño completamente nuevo, con las técnicas más avanzadas, para diseñar una computadora de 32 bits que superara a la VAX de DEC. Preparamos nuestra propuesta, se la presentamos\n al presidente, Ed de Castro, que nos dice: “No, para nada. El grupo de Carolina del Norte está en eso. No se preocupen”. Nos desanimamos, pero se nos ocurrió otra propuesta a la que le pusimos\n Víctor. Buscamos formas de mejorar el producto del año pasado. Le pusimos un pequeño interruptor, un bit de modo en el sistema; si lo encendías permitía que la computadora funcionara como una\n minicomputadora moderna de 32 bits, pero lenta. Se lo llevamos a Ed de Castro y se lo presentamos. Y total que nos dijo: “Eso es un bit de modo. No quiero ni ver diseños con bits de modo. La\n que se encarga de los nuevos diseños es Carolina del Norte”. Entonces otra vez nos desanimamos, y creo que en fue en ese momento que Tom West decidió hacer algo a escondidas.\n \n \n A Tom se le ocurrieron dos cosas. Una de ellas era para de Castro. Iban a mejorar la antigua línea de productos Eclipse: la harían un poco más rápida, le agregarían unos cuantos botones, le\n cambiarían el color. Tom lo presentó como una especie de plan b, en caso de que algo saliera mal en Carolina del Norte. De Castro lo aprobó. Pero a su equipo Tom le contó otra historia, una\n más interesante.\n \n \n Tom West nos propuso diseñar una computadora moderna, muy buena, que fuera totalmente compatible con las anteriores y que pudiera manejar lo último en alta tecnología. Iba a tener memoria\n virtual, 32 bits, códigos de corrección de errores y esas cosas. Multitareas, multiprocesamiento, mucha memoria. “Oigan, vamos a diseñar una computadora nueva que se va a comer vivo al\n mercado”.\n \n \n El código de esta maravilla informática: la “Eagle”. Actualmente parece que no hay límites con lo que podemos hacer con la memoria integrada de nuestra computadora, pero en ese entonces,\n pasar de 16 a 32 bits era un paso enorme. De un día para otro, el espacio de direcciones había pasado de 65 mil bytes de información a más de 4 mil millones. Y con ese aumento, el software\n podía procesar mayores cantidades de datos. Esto generó dos grandes desafíos para las empresas de informática: obviamente había que pasar de 16 a 32 bits, pero además había que dejar conformes\n a los antiguos clientes, que todavía utilizaban el software anterior. Así que había que desarrollar una computadora que pudiera funcionar con el viejo software; una computadora de 32 bits que\n fuera compatible con lo anterior. La VAX tenía una gran potencia, pero no tenía ninguna solución elegante para el segundo problema. Tom estaba decidido a que su Eagle fuera la respuesta.\n \n \n La Eagle estaba escondida en el sótano del edificio Westborough, 14 AB. Tom le pidió a Carl que dirigiera la microcodificación. Carl nombró a Chuck Holland como gerente de los programadores,\n que se pusieron el nombre de Micro Kids. Mientras, Ed Rasala supervisaría el hardware. Y Ed designó a Ken Holberger para que dirigiera al equipo, al que llamaron, muy apropiadamente, los Hardy\n Boys. Tom encontró un aliado: el vicepresidente de Ingeniería, Carl Carman. Carman también tenía cuentas pendientes con De Castro, que se había negado a ponerlo a cargo del grupo de Carolina\n del Norte.\n \n \n Carl Carman sabía en qué andábamos, pero no le dijo nada a su jefe. Él era el que nos financiaba; el problema es que necesitábamos ingenieros muy, pero muy buenos, pero teníamos que mantener\n bajos los salarios. Así que decidimos contratar estudiantes universitarios. Una de las ventajas es que no conocen tus límites. Creen que puedes hacer cualquier cosa.\n \n \n Jim Guyer había egresado de la universidad dos años antes y trabajaba en Data General cuando lo pusieron a cargo de los Hardy Boys.\n \n \n La computadora que estaban desarrollando en Carolina del Norte tenía una tecnología informática mucho más avanzada, casi como una mainframe. Y bueno, digamos que en esa época no era cualquier\n cosa ponerse a competir con IBM y las demás empresas de mainframes. Creíamos que teníamos ventaja porque nuestro proyecto no era tan ambicioso y estábamos muy, muy concentrados en una\n implementación clara, sencilla y elegante, de bajo costo, pocos componentes... cosas así.\n \n \n Bajo costo, diseño sencillo... Eso los hizo entender que tendrían que usar el firmware para controlar todo. Mientras más funciones lograran implementar en el firmware en vez del hardware, más\n barato y flexible sería el resultado\n \n \n Además, podrían hacer los cambios a medida que se necesitaran. Actualmente nos parece lógico porque así funcionan las computadoras, pero en 1978 era algo completamente nuevo.\n \n \n El diseño que estábamos haciendo era algo básico. Lo que queríamos era encontrar formas sencillas y directas de hacer las cosas, sin complicaciones, porque sabíamos que no podíamos terminar\n diseñando una computadora grande y cara. Necesitábamos usar pocas tarjetas, pocos circuitos, y de hecho eso nos ayudaba para que fuera rápida. No es lo mismo diseñar un producto seguro y sin\n riesgos, que diseñar un producto exitoso. Y no nos importaban los riesgos. Nos importaba el éxito. Queríamos que nuestra computadora fuera rápida y barata, y queríamos diseñarla rápido. Así\n que le pusimos unas tres o cuatro tarjetas, lo mínimo que podíamos de hardware, y lo compensamos con el firmware.\n \n \n Pero el equipo de la Eagle se enfrentaba a varios obstáculos difíciles de superar. La VAX era la computadora de 32 bits con mejor rendimiento del mundo. La Eagle necesitaba estar a la altura.\n Pero además, tenía que ser compatible con la arquitectura anterior de 16 bits de Data General. Para lograr todo eso, pero con menos tiempo y dinero que los demás equipos, había que apostarle\n mucho a la Eagle. Pero el equipo de Tom West estaba dispuesto a jugárselo todo.\n \n \n Había dos sistemas que funcionaban las 24 horas del día, los 7 días de la semana, y teníamos dos turnos de ingenieros que trabajaban en eso. Todos necesitábamos entender cómo funcionaba todo.\n Así que tuvimos que aprender qué hacía cada una de las piezas que construían los demás. Me costó mucho trabajo, pero al mismo tiempo aprendí muchísimo. Todos participábamos en el trabajo de\n los demás y pensábamos: “¿Cuál es el siguiente paso para resolver este problema? ¿En qué hay que fijarse?” Todos revisábamos los diagramas de circuitos y demás documentos para tratar de\n entender: “A ver, fíjate en esta señal, ve el estado de la computadora, revisa la secuencia de pasos del microcódigo. ¿Sí está haciendo lo que tiene que hacer? Uy, espérense, va para el otro\n lado. Ay, ¿pero por qué hizo eso?”\n \n \n Lo tomábamos muy en serio, era parte de la ética de trabajo. El ambiente era intenso. A veces había discusiones sobre la manera de hacer las cosas. Por ejemplo, tal vez había una forma un\n poco más cara y otra que era más barata pero no tan rápida o eficaz. Y había discusiones acaloradas y reuniones en las que teníamos que esforzarnos por llegar a un acuerdo. Pero al final\n lográbamos tomar una decisión. Y empezábamos a trabajar juntos.\n \n \n Trabajábamos día y noche, nos repartíamos las horas que se necesitaban para diseñar el prototipo. Solo teníamos dos prototipos, y era muy importante que los dos equipos trabajaran en ellos.\n Algunos trabajaban en la noche, otros trabajaban en el día, y ya empezábamos a cansarnos. Pero estábamos muy motivados, así que sentíamos mucha satisfacción. Así que nadie se quejaba mucho de\n las condiciones laborales.\n \n \n Las condiciones laborales. Algunos relatos de esa época dicen que, para que el equipo funcionara, Tom West puso en práctica una cosa que se llama “la gestión de los hongos”: si les das de\n comer cualquier porquería y los mantienes en la oscuridad vas a verlos crecer. Estaban encerrados en un espacio de trabajo abarrotado y caluroso, así que las horas se hacían largas y los\n plazos eran poco realistas. Dicen que Tom era enigmático, frío, indiferente. Uno de los ingenieros incluso lo llamaba el “Príncipe de las Tinieblas”. ¿Pero a Tom West le importaba tanto lograr\n el éxito que se aprovechó de su equipo? ¿Sacrificó el bienestar de los Micro Kids y los Hardy Boys para diseñar la computadora perfecta?\n \n \n Era interesante trabajar con Tom. Porque tenía muchas expectativas, pero no te daba suficientes instrucciones. Esperaba que entendieras lo que tenías que hacer, y si no, pues qué pena, te\n sacaba del equipo.\n \n \n Los que daban instrucciones eran Carl y Ed, los gerentes de línea que trabajaban codo a codo con Jim y el resto del equipo. Pero estos jóvenes ingenieros también buscaban el éxito, y les\n gustaba tener la oportunidad de resolver las cosas ellos mismos.\n \n \n Yo me gané el primer lugar de los Micro Kids por aguantar toda la noche sin dormir. Quién sabe, a lo mejor éramos jóvenes, empezábamos nuestra vida profesional, éramos bravucones, muy\n seguros, y no entendíamos nada de nada. Confiábamos en nosotros mismos. Nos sentíamos muy inteligentes, creíamos que podíamos resolver todo, y yo supongo que el ego de los demás también nos...\n nos alimentaba, en cierto sentido. Yo me la pasaba muy bien. Yo creo que la mayoría de nosotros nos divertíamos mucho.\n \n \n Carl no está de acuerdo con lo de la gestión de los hongos. En su opinión no estaban en la oscuridad, sino al contrario: todos sabían exactamente lo que estaba pasando y lo que se esperaba.\n Los directores eran los que no sabían. Al mismo tiempo, Tom West estaba bajo una enorme presión de varios frentes, y se la transmitía al grupo.\n \n \n Tom mantenía en secreto la verdadera finalidad del proyecto. Así que no hablaba mucho con los ingenieros, se mantenía a distancia y obviamente les decía que no hablaran del proyecto fuera del\n grupo, ni siquiera en su casa. Les decía que ni mencionaran la palabra Eagle. Así que también dejábamos muy claro que esto era muy urgente, que teníamos que lograrlo en un año, que la\n competencia ya estaba en el mercado, y si queríamos salir al mercado en medio del pico de ventas, teníamos que lograrlo ya. Estaban muy estresados, y se esperaba que trabajaran en la noche y\n los fines de semana; se esperaba que olvidaran los picnics con la familia; no había tiempo para nada que no fuera del trabajo.\n \n \n Como me daba curiosidad saber cómo era trabajar en las trincheras del Edificio 14 AB, me senté a conversar con Neal Firth, que era uno de los Micro Kids. Acababa de salir de la universidad\n cuando se incorporó al equipo.\n \n \n ¿Cómo era trabajar para Tom West? ¿Te comunicabas mucho con él?\n \n \n No tanto. Era como un fantasma. A veces lo veíamos por ahí. Intentaba no interferir para que hiciéramos lo que necesitábamos y alcanzáramos los objetivos. El proyecto era algo completamente\n nuevo en comparación con lo que hacía Data General, y Tom no quería imponernos nada forzoso respecto a la generación anterior de procesadores.\n \n \n Suena intenso, suena a que había que trabajar sin descanso y a que siempre había algo que resolver. ¿Cómo te sentías de que no tuvieran el tiempo necesario para lograrlo?\n \n \n Sinceramente no nos preocupaba. En realidad la falta de tiempo no era problema. Nosotros nos tomábamos el tiempo que hiciera falta para lograr el resultado. Por eso necesitábamos que nuestras\n esposas nos apoyaran y fueran comprensivas, porque no siempre aceptaban todo. Era más o menos lo que sucedía con las personas de Silicon Valley de esa época, o con Jobs y Wozniak: “vamos a\n ponernos a hacer esto hasta terminarlo”. No vivíamos en el mismo departamento ni nos sentábamos en el piso a escribir código, pero teníamos mucho en común con ellos.\n \n \n ¿Y qué te impulsaba a seguir adelante? ¿Por qué estabas tan motivado?\n \n \n La verdad solo era la posibilidad de resolver algún problema. Siempre me habían gustado los acertijos, los problemas que necesitaban solución. De hecho, así éramos casi todos. Todos\n compartíamos eso, y todos lo disfrutábamos. Nos motivaba resolver los problemas, solucionar esas cosas, descubrir una manera nueva de hacer algo.\n \n \n ¿Y cuál fue el momento del proyecto que no vas a poder olvidar?\n \n \n Fue... Ya llevábamos mucho tiempo con el proyecto, y estábamos ejecutando el simulador de microcódigo. Y resulta que lo que se estaba ejecutando era la propuesta del simulador de producción,\n que ya llevaba como 10 o 12 horas funcionando. Y de repente aparece la letra E en la consola… Nos esperamos un rato y de pronto aparece otra letra, y luego otra. Y entonces nos dimos cuenta de\n que lo que estábamos ejecutando como código de prueba era el diagnóstico que estábamos diseñando para que se ejecutara. Así que el simulador ejecutaba el microcódigo, y ya había empezado a\n imprimir letras como si realmente estuviera funcionando. Era mil veces más lento que en la vida real, o sea, era más lento que cuando se lanzó realmente, pero ese fue uno de los momentos que\n nunca voy a olvidar.\n \n \n Y ahora que lo piensas, ¿te parece que te explotaron?\n \n \n No. O sea, yo sabía. Yo sabía lo que estaba pasando. Entonces… no. No me siento explotado. En realidad, mis expectativas... yo nunca hubiera esperado participar en un proyecto tan importante\n justo al salir de la universidad, ni tener la oportunidad de desempeñar un papel tan interesante en un proyecto así.\n \n \n Me gustaría saber tu opinión sobre el sacrificio que requiere el inventar algo, porque cuando hacemos algo importante, en general hay que renunciar a algo para lograrlo, ¿no? Para lograr\n algo, hay que renunciar a algo, ¿no?¿Ese fue el caso? Y si sí, ¿a qué tuviste que renunciar?\n \n \n Yo no creo que haya tenido la conciencia de que iba a renunciar a algo. Más bien creo que lo que pasó fue que empecé a ser un poco más consciente de lo que estaba haciendo, y de que eso\n afectaba a los que me rodeaban.\n \n \n Pero para mí no... no era un sacrificio, y las personas que me rodeaban lo vivían como algo normal; así son las cosas y punto. A mí me han contado cosas horribles de lo que se vive hoy:\n amanece, te despiertas, te inyectas café, muerdes un pedazo de pizza o cualquier cosa... y empiezas a escribir código hasta que te quedas dormido encima del teclado. Y al día siguiente, igual.\n \n \n Nosotros no hacíamos tantos sacrificios. Digo, yo seguía casado, tenía amigos, los veía... Sí, no era un trabajo de nueve a cinco, pero me permitió obtener muchos logros personales y\n técnicos, y pude compartirlos con mi esposa, mi hermana, mi mamá, mi papá y mi suegro. O sea, mi familia lo apreciaba.\n \n \n Sí. ¿Y cuál es el secreto para lograr algo maravilloso?\n \n \n ¿Para lograr algo maravilloso? Qué interesante. Creo que la cosa es que quien participe lo haga porque quiere, no porque busca logros, fama o dinero. Porque esas son cosas muy fugaces y...\n casi nunca te dejan satisfecho. Pero si la idea es alcanzar un objetivo, y colaboras con muchas personas y lo logras, ahí vas a saber lo que es la satisfacción.\n \n \n Neal Firth era uno de los Micro Kids del proyecto Eagle. Hoy en día es el presidente de VIZIM Worldwide, que es una empresa de software.\n \n \n Como bien dice el libro de Tracy Kidder, la indiferencia y el distanciamiento de Tom West eran a propósito. Era un intento de mantener la cabeza despejada, por encima de toda la cháchara\n diaria, para conservar intacto el objetivo de la Eagle. Pero lo que más quería era proteger al equipo, aislarlo de la política y de los estira y afloja corporativos de su entorno. También\n protegió a los Micro Kids y a los Hardy Boys de las ideas preconcebidas de lo que se podía lograr.\n \n \n En 1980 se terminó el proyecto Eagle. Un año después de lo que Tom había prometido, pero se logró, a diferencia de Fountainhead. Y tal como pensaba el equipo sénior, el objetivo de\n Fountainhead no se logró, y el proyecto se quedó olvidado en algún cajón. Bill Foster, que en ese entonces era director de desarrollo de software, nos cuenta las dificultades de Fountainhead.\n\n \n \n Creo que el mayor error fue que no se les puso ningún límite. Había que hacer la mejor computadora del mundo. “¿Pero para cuándo?” “Pues... la verdad no tenemos fecha.”. “¿Y cuánto debe\n costar?” “Eh… tampoco sabemos”. Y yo le atribuyo el fracaso a Edson. No les puso suficientes límites a los programadores ni a los ingenieros.\n \n \n ¿Y sabes qué pasa cuando no les pones límites? Diseñan algo tan amplio y complejo que simplemente no se puede concretar.\n \n \n Pero a ver, vamos a hacer memoria. Tom y su equipo decidieron diseñar la Eagle a escondidas, y es lo que hicieron durante dos años. Y el presidente de la empresa nunca supo lo que estaba\n pasando. La computadora ahora se llamaba oficialmente Eclipse MV/8000, y cuando ya estaba lista para salir al mercado, el jefe de marketing fue a ver a Ed de Castro para que aprobara la\n campaña de publicidad. Vamos a escuchar a Carl Alsing.\n \n \n El jefe de marketing nos dijo: “Bueno, pues ya estamos listos para lanzar la Eagle, y vamos a necesitar varios miles de dólares. Vamos a hacer una conferencia de prensa en seis ciudades del mundo.\n Y\n después vamos a hacer una gira para visitar muchas ciudades, vamos a filmar una película y a mostrarla, y vamos a ser la sensación”.\n \n \n Pero Ed de Castro contestó: “No entiendo. ¿Para qué quieren hacer eso?” Va a ser un peso más para la Eclipse. Es como hacerle cirugía estética: promocionarla por encimita. Pero el gerente de\n marketing le respondió: “No, es una computadora completamente nueva. Es una computadora de 32 bits. Tiene memoria virtual. Es compatible. Va a arrasar con la VAX. Tiene todo”.\n \n \n Ed de Castro no entendía nada. Pensaba que nos habíamos equivocado en Carolina del Norte, y que ese era el fin de la empresa, pero en realidad le habíamos salvado el pellejo. Un día nos invitó a\n todos a almorzar. Había sándwiches y gaseosas, y de repente nos dice: “Bueno, pues felicidades por el trabajo que hicieron, estoy sorprendido. Yo no sabía que estaban con ese proyecto, pero vamos\n a lanzarlo, y tengo entendido que va a haber una película y varias giras, y ustedes van a participar en eso, así que gracias y buen provecho con los sándwiches”.\n \n \n La Eagle, que ahora se llamaba MV/8000, apareció en la portada de la revista Computer World. El lanzamiento con bombos y platillos en los medios de comunicación les dio cierta fama a aquellos\n empleados, que hasta entonces se habían escondido en el sótano. Habían salvado a Data General.\n \n \n Pero todo lo bueno dura poco. Tom West ya no podía seguir protegiendo al grupo de la política interna de la empresa. Y el equipo no estaba preparado para los resentimientos que surgieron. En la\n compañía había gente que envidiaba sus logros y no podía creer que se hubieran salido con la suya durante tanto tiempo con un proyecto secreto.\n \n \n Pronto, el nuevo vicepresidente de Ingeniería reemplazó a Carl Carman, que era el aliado del grupo. El recién llegado desarmó el grupo de Eagle y envió a Tom a la oficina de Data General de Japón\n antes de que se vendiera la primera MV/8000.\n \n \n Yo creía que habíamos hecho la mejor superminicomputadora de 32 bits que el dinero podía comprar, lo cual era excelente para Data General, y que durante un tiempo destronaríamos a Digital\n Equipment Corporation, no que ya habíamos acabado con ellos. La competencia era salvaje en esos tiempos, y no es fácil tener éxito en el sector de la alta tecnología, pero yo pensaba que lo que\n habíamos hecho valía la pena.\n \n \n Sin duda, el lanzamiento de la Eagle salvó a Data General, pero habían perdido participación en el mercado frente a DEC durante tres años, así que la empresa nunca se recuperó realmente y la\n industria había seguido avanzando. Las minicomputadoras ya no eran lo más importante. La carrera de las microcomputadoras ya había comenzado, y le abrió camino a la revolución de las computadoras\n personales.\n \n \n Data General siguió adelante, sacó nuevas versiones, las mejoró en los siguientes modelos y las vendió durante un tiempo, así que disfrutó de cierto éxito. Pero, bueno, las cosas cambian. El\n mercado cambió y... ellos se convirtieron en una empresa de software, y finalmente otra empresa los compró. Y ahora creo que lo único que queda de ellos es algún archivador en alguna empresa de\n Hopkinton, Massachusetts.\n \n \n Un año después, muchos de los integrantes del grupo de la Eagle habían dejado Data General. Algunos estaban agotados. Otros ya querían diseñar alguna otra cosa. Otros se fueron al oeste, hacia\n Silicon Valley, y estaban ansiosos por encontrar la siguiente chispa creativa. Cualquiera que fuera el caso, no tenía mucho sentido quedarse en una empresa que no reconocía todo lo que habían\n hecho para salvarla. En ese mismo año, en 1981, se publicó El alma de una nueva máquina, de Tracy Kidder. Ahora el mundo sabría cómo se había diseñado la Eagle.\n \n \n Si me preguntas qué constituye el alma de una nueva máquina, yo diría que las personas y lo que les pasa a esas personas; los sacrificios que hacen, el esfuerzo y el entusiasmo que sienten, y las\n satisfacciones que esperan obtener. Tal vez lo logren, tal vez no, pero tienen un objetivo y luchan por él.\n \n \n En realidad, la computadora era un personaje secundario. El corazón del proyecto era la gente.\n \n \n En el próximo episodio de nuestra nueva temporada sobre el hardware, vamos a retroceder en el tiempo hasta la era de las computadoras mainframe, y te contaremos la historia de otro grupo de\n empleados rebeldes. La computadora que construyeron hizo surgir un lenguaje de programación que cambió el mundo.\n \n \n Command Line Heroes en español es un podcast original de Red Hat. Para esta temporada, recopilamos excelentes materiales de investigación para que puedas saber más sobre la historia del hardware\n del que estamos hablando. Si quieres saber más sobre la Eagle y el equipo que la diseñó, visita redhat.com/commandlineheroes. Hasta la próxima, sigan programando.\n \n \n
\n\n\n\n\n\n", + "content": "

rh-audio-player: Language Localization

\n\n\n
\n

Options:

\n
    \n
  • \n
  • \n
  • \n \n
  • \n
\n
\n\n\n

Temporada 4, Episodio 1

\n

Minicomputadoras: el alma de las máquinas de antes

\n \n \n

Sí, es cierto, las minicomputadoras no caben en tu bolsillo, pero en su momento representaron un avance importante porque redujeron el espacio que necesitaban sus antecesoras, las mainframes,\n que ocupaban habitaciones enteras. Además, abrieron la posibilidad de que las computadoras personales cupieran en una bolsa y de que, posteriormente, se convirtieran en el teléfono que traes en\n tu bolsillo.

\n

Las computadoras de 16 bits cambiaron el mundo de la tecnología de la información en los años 70. Gracias a ellas, las empresas tuvieron la posibilidad de darle a cada ingeniero su propia\n máquina. Pero los avances aún no eran suficientes; todavía faltaba que llegaran las versiones de 32 bits.

\n

Carl Alsing y Jim Guyer nos hablan del trabajo que realizaron en Data General para crear una nueva y revolucionaria máquina de 32 bits. Y aunque ahora esos esfuerzos son toda una leyenda, en su\n momento se realizaron en secreto. “Eagle” era el nombre clave de la computadora que diseñaron, cuyo primer propósito era competir con otra máquina que estaba desarrollando otro equipo de la\n misma empresa. Los ingenieros nos hablan de las políticas corporativas y nos explican todas las tramas necesarias para que el proyecto pudiera seguir su curso, e incluso nos dicen cómo lograron\n que las restricciones jugaran a su favor. Neal Firth nos cuenta cómo vivió un proyecto muy emocionante pero exigente, en que nuestros héroes trabajaron juntos por pura voluntad, sin ninguna\n expectativa de fama ni fortuna. Y los tres nos mencionan que la historia quedó inmortalizada en el libro clásico de ingeniería de Tracy Kidder, El alma de una nueva máquina, que se basa\n en hechos reales.

\n
\n \n \n Corría el año de 1978 y en el sector de las minicomputadoras había una guerra a punto de estallar. Apenas un año antes, Digital Equipment Corporation, o DEC, había lanzado su computadora VAX\n 11 780 de 32 bits. Tenía una capacidad mucho mayor que las máquinas de 16 bits del mercado. Las ventas de la VAX pronto arrasaron con las de la competencia, que ofrecía computadoras más\n lentas. A Data General, la archienemiga de DEC, le urgía diseñar una nueva máquina capaz de competir con la VAX. Necesitaba su propia computadora de 32 bits y la necesitaba ya, pero la\n competencia entre Data General y DEC no era el único conflicto del momento. También había una disputa territorial en el interior de Data General, y el resultado de ambas guerras sería la\n creación de una computadora increíble, en circunstancias igual de increíbles. Una laptop de 13 pulgadas pesa como kilo y medio. Hoy en día damos por hecho la portabilidad y la practicidad de\n nuestras computadoras, pero en la década de 1970 la mayoría eran mainframes del tamaño de una habitación; eran aparatos que costaban millones de dólares y pesaban varias toneladas. Luego,\n cuando se desplomaron los costos del hardware, comenzó la carrera para desarrollar computadoras más pequeñas, más rápidas y más baratas. La minicomputadora abrió la posibilidad de que los\n ingenieros y los investigadores tuvieran su propia terminal, y nos trajo a donde estamos en la actualidad.\n \n \n En la temporada pasada de Command Line Heroes en español, analizamos un área clave para el desarrollo del software: el mundo de los lenguajes de programación. Hablamos de su historia, de los\n problemas que resolvieron y de su evolución a través del tiempo. Abordamos lenguajes como JavaScript, Python, C, Perl, COBOL y Go. En esta temporada, que es la cuarta, por si alguien lleva la\n cuenta, vamos a profundizar en el hardware en que se ejecuta nuestro software. Te vamos a contar siete historias maravillosas sobre las personas y los equipos que se atrevieron a cambiar las\n reglas del hardware. Piensa en la laptop que está en tu escritorio, o en el teléfono que traes en el bolsillo… Los héroes de la línea de comandos siempre dejan el alma en tu hardware; con su\n pasión por el diseño informático y su ingenio para que cada pieza se vuelva realidad, han revolucionado la forma en que programamos hoy en día.\n \n \n Esto es Command Line Heroes en español, un podcast original de Red Hat.\n \n \n El primer episodio de esta temporada cuenta la carrera contrarreloj de un equipo de ingenieros que tenían que diseñar, depurar y entregar una computadora de vanguardia. Su trabajo se\n convirtió en el tema principal del bestseller El alma de una nueva máquina, de Tracy Kidder, que posteriormente se haría acreedor al premio Pulitzer y que habla de muchos de los invitados de\n este episodio.\n \n \n Pero volvamos a Data General. El presidente de la compañía, Ed de Castro, había trazado un plan para competir con DEC. Dividió al departamento de ingeniería y trasladó a una parte del equipo\n de la sede de Westboro, Massachusetts, en Estados Unidos, a una nueva oficina que estaba en Carolina del Norte. ¿Su misión? Diseñar una computadora avanzada de 32 bits que hiciera trizas a la\n VAX. El proyecto se llamaba Fountainhead, y de Castro le dio apoyo y recursos casi ilimitados. Fountainhead iba a ser la salvación de la empresa. Los pocos ingenieros que se quedaron en\n Massachusetts se sintieron terriblemente menospreciados. Sabían que eran capaces de crear una computadora que destrozara a la VAX, y que probablemente sería mejor que la de Fountainhead, pero\n de Castro no les daba la oportunidad. Así que Tom West, que era el líder del grupo, decidió ocuparse personalmente del asunto. El ingeniero en Computación Tom West, de formación autodidacta,\n dirigía el departamento Eclipse de Data General. Eclipse era la gama de minicomputadoras de 16 bits más exitosa de Data General. Tom sabía fabricar y distribuir computadoras, y también sabía\n lo que quería el mercado. Después de poner en marcha el proyecto Fountainhead, de Castro les pidió a los demás ingenieros que siguieran mejorando la gama de productos del año anterior. Ni a\n Tom ni a los demás les convencía la idea.\n \n \n No nos hacía ninguna gracia. Algunos decidieron cambiar de empleo y otros estábamos deprimidos y preocupados por nuestras carreras; no nos sentíamos nada entusiasmados. Y nos imaginábamos que\n el otro grupo no lo iba a lograr.\n \n \n Carl Alsing era el gerente del grupo de microprogramación de Data General. Era el segundo al mando, después de Tom. Así que los dos decidieron empezar su propio proyecto.\n \n \n Iba a ser un diseño completamente nuevo, con las técnicas más avanzadas, para diseñar una computadora de 32 bits que superara a la VAX de DEC. Preparamos nuestra propuesta, se la presentamos\n al presidente, Ed de Castro, que nos dice: “No, para nada. El grupo de Carolina del Norte está en eso. No se preocupen”. Nos desanimamos, pero se nos ocurrió otra propuesta a la que le pusimos\n Víctor. Buscamos formas de mejorar el producto del año pasado. Le pusimos un pequeño interruptor, un bit de modo en el sistema; si lo encendías permitía que la computadora funcionara como una\n minicomputadora moderna de 32 bits, pero lenta. Se lo llevamos a Ed de Castro y se lo presentamos. Y total que nos dijo: “Eso es un bit de modo. No quiero ni ver diseños con bits de modo. La\n que se encarga de los nuevos diseños es Carolina del Norte”. Entonces otra vez nos desanimamos, y creo que en fue en ese momento que Tom West decidió hacer algo a escondidas.\n \n \n A Tom se le ocurrieron dos cosas. Una de ellas era para de Castro. Iban a mejorar la antigua línea de productos Eclipse: la harían un poco más rápida, le agregarían unos cuantos botones, le\n cambiarían el color. Tom lo presentó como una especie de plan b, en caso de que algo saliera mal en Carolina del Norte. De Castro lo aprobó. Pero a su equipo Tom le contó otra historia, una\n más interesante.\n \n \n Tom West nos propuso diseñar una computadora moderna, muy buena, que fuera totalmente compatible con las anteriores y que pudiera manejar lo último en alta tecnología. Iba a tener memoria\n virtual, 32 bits, códigos de corrección de errores y esas cosas. Multitareas, multiprocesamiento, mucha memoria. “Oigan, vamos a diseñar una computadora nueva que se va a comer vivo al\n mercado”.\n \n \n El código de esta maravilla informática: la “Eagle”. Actualmente parece que no hay límites con lo que podemos hacer con la memoria integrada de nuestra computadora, pero en ese entonces,\n pasar de 16 a 32 bits era un paso enorme. De un día para otro, el espacio de direcciones había pasado de 65 mil bytes de información a más de 4 mil millones. Y con ese aumento, el software\n podía procesar mayores cantidades de datos. Esto generó dos grandes desafíos para las empresas de informática: obviamente había que pasar de 16 a 32 bits, pero además había que dejar conformes\n a los antiguos clientes, que todavía utilizaban el software anterior. Así que había que desarrollar una computadora que pudiera funcionar con el viejo software; una computadora de 32 bits que\n fuera compatible con lo anterior. La VAX tenía una gran potencia, pero no tenía ninguna solución elegante para el segundo problema. Tom estaba decidido a que su Eagle fuera la respuesta.\n \n \n La Eagle estaba escondida en el sótano del edificio Westborough, 14 AB. Tom le pidió a Carl que dirigiera la microcodificación. Carl nombró a Chuck Holland como gerente de los programadores,\n que se pusieron el nombre de Micro Kids. Mientras, Ed Rasala supervisaría el hardware. Y Ed designó a Ken Holberger para que dirigiera al equipo, al que llamaron, muy apropiadamente, los Hardy\n Boys. Tom encontró un aliado: el vicepresidente de Ingeniería, Carl Carman. Carman también tenía cuentas pendientes con De Castro, que se había negado a ponerlo a cargo del grupo de Carolina\n del Norte.\n \n \n Carl Carman sabía en qué andábamos, pero no le dijo nada a su jefe. Él era el que nos financiaba; el problema es que necesitábamos ingenieros muy, pero muy buenos, pero teníamos que mantener\n bajos los salarios. Así que decidimos contratar estudiantes universitarios. Una de las ventajas es que no conocen tus límites. Creen que puedes hacer cualquier cosa.\n \n \n Jim Guyer había egresado de la universidad dos años antes y trabajaba en Data General cuando lo pusieron a cargo de los Hardy Boys.\n \n \n La computadora que estaban desarrollando en Carolina del Norte tenía una tecnología informática mucho más avanzada, casi como una mainframe. Y bueno, digamos que en esa época no era cualquier\n cosa ponerse a competir con IBM y las demás empresas de mainframes. Creíamos que teníamos ventaja porque nuestro proyecto no era tan ambicioso y estábamos muy, muy concentrados en una\n implementación clara, sencilla y elegante, de bajo costo, pocos componentes... cosas así.\n \n \n Bajo costo, diseño sencillo... Eso los hizo entender que tendrían que usar el firmware para controlar todo. Mientras más funciones lograran implementar en el firmware en vez del hardware, más\n barato y flexible sería el resultado\n \n \n Además, podrían hacer los cambios a medida que se necesitaran. Actualmente nos parece lógico porque así funcionan las computadoras, pero en 1978 era algo completamente nuevo.\n \n \n El diseño que estábamos haciendo era algo básico. Lo que queríamos era encontrar formas sencillas y directas de hacer las cosas, sin complicaciones, porque sabíamos que no podíamos terminar\n diseñando una computadora grande y cara. Necesitábamos usar pocas tarjetas, pocos circuitos, y de hecho eso nos ayudaba para que fuera rápida. No es lo mismo diseñar un producto seguro y sin\n riesgos, que diseñar un producto exitoso. Y no nos importaban los riesgos. Nos importaba el éxito. Queríamos que nuestra computadora fuera rápida y barata, y queríamos diseñarla rápido. Así\n que le pusimos unas tres o cuatro tarjetas, lo mínimo que podíamos de hardware, y lo compensamos con el firmware.\n \n \n Pero el equipo de la Eagle se enfrentaba a varios obstáculos difíciles de superar. La VAX era la computadora de 32 bits con mejor rendimiento del mundo. La Eagle necesitaba estar a la altura.\n Pero además, tenía que ser compatible con la arquitectura anterior de 16 bits de Data General. Para lograr todo eso, pero con menos tiempo y dinero que los demás equipos, había que apostarle\n mucho a la Eagle. Pero el equipo de Tom West estaba dispuesto a jugárselo todo.\n \n \n Había dos sistemas que funcionaban las 24 horas del día, los 7 días de la semana, y teníamos dos turnos de ingenieros que trabajaban en eso. Todos necesitábamos entender cómo funcionaba todo.\n Así que tuvimos que aprender qué hacía cada una de las piezas que construían los demás. Me costó mucho trabajo, pero al mismo tiempo aprendí muchísimo. Todos participábamos en el trabajo de\n los demás y pensábamos: “¿Cuál es el siguiente paso para resolver este problema? ¿En qué hay que fijarse?” Todos revisábamos los diagramas de circuitos y demás documentos para tratar de\n entender: “A ver, fíjate en esta señal, ve el estado de la computadora, revisa la secuencia de pasos del microcódigo. ¿Sí está haciendo lo que tiene que hacer? Uy, espérense, va para el otro\n lado. Ay, ¿pero por qué hizo eso?”\n \n \n Lo tomábamos muy en serio, era parte de la ética de trabajo. El ambiente era intenso. A veces había discusiones sobre la manera de hacer las cosas. Por ejemplo, tal vez había una forma un\n poco más cara y otra que era más barata pero no tan rápida o eficaz. Y había discusiones acaloradas y reuniones en las que teníamos que esforzarnos por llegar a un acuerdo. Pero al final\n lográbamos tomar una decisión. Y empezábamos a trabajar juntos.\n \n \n Trabajábamos día y noche, nos repartíamos las horas que se necesitaban para diseñar el prototipo. Solo teníamos dos prototipos, y era muy importante que los dos equipos trabajaran en ellos.\n Algunos trabajaban en la noche, otros trabajaban en el día, y ya empezábamos a cansarnos. Pero estábamos muy motivados, así que sentíamos mucha satisfacción. Así que nadie se quejaba mucho de\n las condiciones laborales.\n \n \n Las condiciones laborales. Algunos relatos de esa época dicen que, para que el equipo funcionara, Tom West puso en práctica una cosa que se llama “la gestión de los hongos”: si les das de\n comer cualquier porquería y los mantienes en la oscuridad vas a verlos crecer. Estaban encerrados en un espacio de trabajo abarrotado y caluroso, así que las horas se hacían largas y los\n plazos eran poco realistas. Dicen que Tom era enigmático, frío, indiferente. Uno de los ingenieros incluso lo llamaba el “Príncipe de las Tinieblas”. ¿Pero a Tom West le importaba tanto lograr\n el éxito que se aprovechó de su equipo? ¿Sacrificó el bienestar de los Micro Kids y los Hardy Boys para diseñar la computadora perfecta?\n \n \n Era interesante trabajar con Tom. Porque tenía muchas expectativas, pero no te daba suficientes instrucciones. Esperaba que entendieras lo que tenías que hacer, y si no, pues qué pena, te\n sacaba del equipo.\n \n \n Los que daban instrucciones eran Carl y Ed, los gerentes de línea que trabajaban codo a codo con Jim y el resto del equipo. Pero estos jóvenes ingenieros también buscaban el éxito, y les\n gustaba tener la oportunidad de resolver las cosas ellos mismos.\n \n \n Yo me gané el primer lugar de los Micro Kids por aguantar toda la noche sin dormir. Quién sabe, a lo mejor éramos jóvenes, empezábamos nuestra vida profesional, éramos bravucones, muy\n seguros, y no entendíamos nada de nada. Confiábamos en nosotros mismos. Nos sentíamos muy inteligentes, creíamos que podíamos resolver todo, y yo supongo que el ego de los demás también nos...\n nos alimentaba, en cierto sentido. Yo me la pasaba muy bien. Yo creo que la mayoría de nosotros nos divertíamos mucho.\n \n \n Carl no está de acuerdo con lo de la gestión de los hongos. En su opinión no estaban en la oscuridad, sino al contrario: todos sabían exactamente lo que estaba pasando y lo que se esperaba.\n Los directores eran los que no sabían. Al mismo tiempo, Tom West estaba bajo una enorme presión de varios frentes, y se la transmitía al grupo.\n \n \n Tom mantenía en secreto la verdadera finalidad del proyecto. Así que no hablaba mucho con los ingenieros, se mantenía a distancia y obviamente les decía que no hablaran del proyecto fuera del\n grupo, ni siquiera en su casa. Les decía que ni mencionaran la palabra Eagle. Así que también dejábamos muy claro que esto era muy urgente, que teníamos que lograrlo en un año, que la\n competencia ya estaba en el mercado, y si queríamos salir al mercado en medio del pico de ventas, teníamos que lograrlo ya. Estaban muy estresados, y se esperaba que trabajaran en la noche y\n los fines de semana; se esperaba que olvidaran los picnics con la familia; no había tiempo para nada que no fuera del trabajo.\n \n \n Como me daba curiosidad saber cómo era trabajar en las trincheras del Edificio 14 AB, me senté a conversar con Neal Firth, que era uno de los Micro Kids. Acababa de salir de la universidad\n cuando se incorporó al equipo.\n \n \n ¿Cómo era trabajar para Tom West? ¿Te comunicabas mucho con él?\n \n \n No tanto. Era como un fantasma. A veces lo veíamos por ahí. Intentaba no interferir para que hiciéramos lo que necesitábamos y alcanzáramos los objetivos. El proyecto era algo completamente\n nuevo en comparación con lo que hacía Data General, y Tom no quería imponernos nada forzoso respecto a la generación anterior de procesadores.\n \n \n Suena intenso, suena a que había que trabajar sin descanso y a que siempre había algo que resolver. ¿Cómo te sentías de que no tuvieran el tiempo necesario para lograrlo?\n \n \n Sinceramente no nos preocupaba. En realidad la falta de tiempo no era problema. Nosotros nos tomábamos el tiempo que hiciera falta para lograr el resultado. Por eso necesitábamos que nuestras\n esposas nos apoyaran y fueran comprensivas, porque no siempre aceptaban todo. Era más o menos lo que sucedía con las personas de Silicon Valley de esa época, o con Jobs y Wozniak: “vamos a\n ponernos a hacer esto hasta terminarlo”. No vivíamos en el mismo departamento ni nos sentábamos en el piso a escribir código, pero teníamos mucho en común con ellos.\n \n \n ¿Y qué te impulsaba a seguir adelante? ¿Por qué estabas tan motivado?\n \n \n La verdad solo era la posibilidad de resolver algún problema. Siempre me habían gustado los acertijos, los problemas que necesitaban solución. De hecho, así éramos casi todos. Todos\n compartíamos eso, y todos lo disfrutábamos. Nos motivaba resolver los problemas, solucionar esas cosas, descubrir una manera nueva de hacer algo.\n \n \n ¿Y cuál fue el momento del proyecto que no vas a poder olvidar?\n \n \n Fue... Ya llevábamos mucho tiempo con el proyecto, y estábamos ejecutando el simulador de microcódigo. Y resulta que lo que se estaba ejecutando era la propuesta del simulador de producción,\n que ya llevaba como 10 o 12 horas funcionando. Y de repente aparece la letra E en la consola… Nos esperamos un rato y de pronto aparece otra letra, y luego otra. Y entonces nos dimos cuenta de\n que lo que estábamos ejecutando como código de prueba era el diagnóstico que estábamos diseñando para que se ejecutara. Así que el simulador ejecutaba el microcódigo, y ya había empezado a\n imprimir letras como si realmente estuviera funcionando. Era mil veces más lento que en la vida real, o sea, era más lento que cuando se lanzó realmente, pero ese fue uno de los momentos que\n nunca voy a olvidar.\n \n \n Y ahora que lo piensas, ¿te parece que te explotaron?\n \n \n No. O sea, yo sabía. Yo sabía lo que estaba pasando. Entonces… no. No me siento explotado. En realidad, mis expectativas... yo nunca hubiera esperado participar en un proyecto tan importante\n justo al salir de la universidad, ni tener la oportunidad de desempeñar un papel tan interesante en un proyecto así.\n \n \n Me gustaría saber tu opinión sobre el sacrificio que requiere el inventar algo, porque cuando hacemos algo importante, en general hay que renunciar a algo para lograrlo, ¿no? Para lograr\n algo, hay que renunciar a algo, ¿no?¿Ese fue el caso? Y si sí, ¿a qué tuviste que renunciar?\n \n \n Yo no creo que haya tenido la conciencia de que iba a renunciar a algo. Más bien creo que lo que pasó fue que empecé a ser un poco más consciente de lo que estaba haciendo, y de que eso\n afectaba a los que me rodeaban.\n \n \n Pero para mí no... no era un sacrificio, y las personas que me rodeaban lo vivían como algo normal; así son las cosas y punto. A mí me han contado cosas horribles de lo que se vive hoy:\n amanece, te despiertas, te inyectas café, muerdes un pedazo de pizza o cualquier cosa... y empiezas a escribir código hasta que te quedas dormido encima del teclado. Y al día siguiente, igual.\n \n \n Nosotros no hacíamos tantos sacrificios. Digo, yo seguía casado, tenía amigos, los veía... Sí, no era un trabajo de nueve a cinco, pero me permitió obtener muchos logros personales y\n técnicos, y pude compartirlos con mi esposa, mi hermana, mi mamá, mi papá y mi suegro. O sea, mi familia lo apreciaba.\n \n \n Sí. ¿Y cuál es el secreto para lograr algo maravilloso?\n \n \n ¿Para lograr algo maravilloso? Qué interesante. Creo que la cosa es que quien participe lo haga porque quiere, no porque busca logros, fama o dinero. Porque esas son cosas muy fugaces y...\n casi nunca te dejan satisfecho. Pero si la idea es alcanzar un objetivo, y colaboras con muchas personas y lo logras, ahí vas a saber lo que es la satisfacción.\n \n \n Neal Firth era uno de los Micro Kids del proyecto Eagle. Hoy en día es el presidente de VIZIM Worldwide, que es una empresa de software.\n \n \n Como bien dice el libro de Tracy Kidder, la indiferencia y el distanciamiento de Tom West eran a propósito. Era un intento de mantener la cabeza despejada, por encima de toda la cháchara\n diaria, para conservar intacto el objetivo de la Eagle. Pero lo que más quería era proteger al equipo, aislarlo de la política y de los estira y afloja corporativos de su entorno. También\n protegió a los Micro Kids y a los Hardy Boys de las ideas preconcebidas de lo que se podía lograr.\n \n \n En 1980 se terminó el proyecto Eagle. Un año después de lo que Tom había prometido, pero se logró, a diferencia de Fountainhead. Y tal como pensaba el equipo sénior, el objetivo de\n Fountainhead no se logró, y el proyecto se quedó olvidado en algún cajón. Bill Foster, que en ese entonces era director de desarrollo de software, nos cuenta las dificultades de Fountainhead.\n\n \n \n Creo que el mayor error fue que no se les puso ningún límite. Había que hacer la mejor computadora del mundo. “¿Pero para cuándo?” “Pues... la verdad no tenemos fecha.”. “¿Y cuánto debe\n costar?” “Eh… tampoco sabemos”. Y yo le atribuyo el fracaso a Edson. No les puso suficientes límites a los programadores ni a los ingenieros.\n \n \n ¿Y sabes qué pasa cuando no les pones límites? Diseñan algo tan amplio y complejo que simplemente no se puede concretar.\n \n \n Pero a ver, vamos a hacer memoria. Tom y su equipo decidieron diseñar la Eagle a escondidas, y es lo que hicieron durante dos años. Y el presidente de la empresa nunca supo lo que estaba\n pasando. La computadora ahora se llamaba oficialmente Eclipse MV/8000, y cuando ya estaba lista para salir al mercado, el jefe de marketing fue a ver a Ed de Castro para que aprobara la\n campaña de publicidad. Vamos a escuchar a Carl Alsing.\n \n \n El jefe de marketing nos dijo: “Bueno, pues ya estamos listos para lanzar la Eagle, y vamos a necesitar varios miles de dólares. Vamos a hacer una conferencia de prensa en seis ciudades del mundo.\n Y\n después vamos a hacer una gira para visitar muchas ciudades, vamos a filmar una película y a mostrarla, y vamos a ser la sensación”.\n \n \n Pero Ed de Castro contestó: “No entiendo. ¿Para qué quieren hacer eso?” Va a ser un peso más para la Eclipse. Es como hacerle cirugía estética: promocionarla por encimita. Pero el gerente de\n marketing le respondió: “No, es una computadora completamente nueva. Es una computadora de 32 bits. Tiene memoria virtual. Es compatible. Va a arrasar con la VAX. Tiene todo”.\n \n \n Ed de Castro no entendía nada. Pensaba que nos habíamos equivocado en Carolina del Norte, y que ese era el fin de la empresa, pero en realidad le habíamos salvado el pellejo. Un día nos invitó a\n todos a almorzar. Había sándwiches y gaseosas, y de repente nos dice: “Bueno, pues felicidades por el trabajo que hicieron, estoy sorprendido. Yo no sabía que estaban con ese proyecto, pero vamos\n a lanzarlo, y tengo entendido que va a haber una película y varias giras, y ustedes van a participar en eso, así que gracias y buen provecho con los sándwiches”.\n \n \n La Eagle, que ahora se llamaba MV/8000, apareció en la portada de la revista Computer World. El lanzamiento con bombos y platillos en los medios de comunicación les dio cierta fama a aquellos\n empleados, que hasta entonces se habían escondido en el sótano. Habían salvado a Data General.\n \n \n Pero todo lo bueno dura poco. Tom West ya no podía seguir protegiendo al grupo de la política interna de la empresa. Y el equipo no estaba preparado para los resentimientos que surgieron. En la\n compañía había gente que envidiaba sus logros y no podía creer que se hubieran salido con la suya durante tanto tiempo con un proyecto secreto.\n \n \n Pronto, el nuevo vicepresidente de Ingeniería reemplazó a Carl Carman, que era el aliado del grupo. El recién llegado desarmó el grupo de Eagle y envió a Tom a la oficina de Data General de Japón\n antes de que se vendiera la primera MV/8000.\n \n \n Yo creía que habíamos hecho la mejor superminicomputadora de 32 bits que el dinero podía comprar, lo cual era excelente para Data General, y que durante un tiempo destronaríamos a Digital\n Equipment Corporation, no que ya habíamos acabado con ellos. La competencia era salvaje en esos tiempos, y no es fácil tener éxito en el sector de la alta tecnología, pero yo pensaba que lo que\n habíamos hecho valía la pena.\n \n \n Sin duda, el lanzamiento de la Eagle salvó a Data General, pero habían perdido participación en el mercado frente a DEC durante tres años, así que la empresa nunca se recuperó realmente y la\n industria había seguido avanzando. Las minicomputadoras ya no eran lo más importante. La carrera de las microcomputadoras ya había comenzado, y le abrió camino a la revolución de las computadoras\n personales.\n \n \n Data General siguió adelante, sacó nuevas versiones, las mejoró en los siguientes modelos y las vendió durante un tiempo, así que disfrutó de cierto éxito. Pero, bueno, las cosas cambian. El\n mercado cambió y... ellos se convirtieron en una empresa de software, y finalmente otra empresa los compró. Y ahora creo que lo único que queda de ellos es algún archivador en alguna empresa de\n Hopkinton, Massachusetts.\n \n \n Un año después, muchos de los integrantes del grupo de la Eagle habían dejado Data General. Algunos estaban agotados. Otros ya querían diseñar alguna otra cosa. Otros se fueron al oeste, hacia\n Silicon Valley, y estaban ansiosos por encontrar la siguiente chispa creativa. Cualquiera que fuera el caso, no tenía mucho sentido quedarse en una empresa que no reconocía todo lo que habían\n hecho para salvarla. En ese mismo año, en 1981, se publicó El alma de una nueva máquina, de Tracy Kidder. Ahora el mundo sabría cómo se había diseñado la Eagle.\n \n \n Si me preguntas qué constituye el alma de una nueva máquina, yo diría que las personas y lo que les pasa a esas personas; los sacrificios que hacen, el esfuerzo y el entusiasmo que sienten, y las\n satisfacciones que esperan obtener. Tal vez lo logren, tal vez no, pero tienen un objetivo y luchan por él.\n \n \n En realidad, la computadora era un personaje secundario. El corazón del proyecto era la gente.\n \n \n En el próximo episodio de nuestra nueva temporada sobre el hardware, vamos a retroceder en el tiempo hasta la era de las computadoras mainframe, y te contaremos la historia de otro grupo de\n empleados rebeldes. La computadora que construyeron hizo surgir un lenguaje de programación que cambió el mundo.\n \n \n Command Line Heroes en español es un podcast original de Red Hat. Para esta temporada, recopilamos excelentes materiales de investigación para que puedas saber más sobre la historia del hardware\n del que estamos hablando. Si quieres saber más sobre la Eagle y el equipo que la diseñó, visita redhat.com/commandlineheroes. Hasta la próxima, sigan programando.\n \n \n
\n\n\n\n\n\n\n\n", "label": "Language Localization" }, "demo/language-localization/demo.css": { @@ -82,7 +82,7 @@ export const configure = project => project.config = { "demo/prevent-concurrent-playback/index.html": { "contentType": "text/html", "selected": false, - "content": "

rh-audio-player: Prevent Concurrent Playback

\n\n

Pressing play on any rh-audio-player element will pause\n any other currently playing rh-audio-player elements.

\n\n\n

Code Comments

\n

Bringing Deep Learning to Enterprise Applications

\n \n
\n\n\n

Code Comments

\n

Rethinking Networks In Telecommunications

\n \n
\n\n\n\n\n", + "content": "

rh-audio-player: Prevent Concurrent Playback

\n\n

Pressing play on any rh-audio-player element will pause\n any other currently playing rh-audio-player elements.

\n\n\n

Code Comments

\n

Bringing Deep Learning to Enterprise Applications

\n \n
\n\n\n

Code Comments

\n

Rethinking Networks In Telecommunications

\n \n
\n\n\n\n\n\n\n", "label": "Prevent Concurrent Playback" }, "demo/prevent-concurrent-playback/demo.css": { @@ -92,7 +92,7 @@ export const configure = project => project.config = { "demo/right-to-left/index.html": { "contentType": "text/html", "selected": false, - "content": "

rh-audio-player: Right-to-left

\n\n
\n

Options:

\n
    \n
  • \n
  • \n
  • \n \n
  • \n
\n
\n\n\n
\n \n

Code Comments

\n

Bringing Deep Learning to Enterprise Applications

\n \n

About the episode

\n

\n There are a lot of publicly available data sets out there. But when it\n comes to specific enterprise use cases, you're not necessarily going to\n able to find one to train your models. To realize the power of AI/ML in\n enterprise environments, end users need an inference engine to run on\n their hardware. Ryan Loney takes us through OpenVINO and Anomalib, open\n toolkits from Intel that do precisely that. He looks specifically at\n anomaly detection in use cases as varied as medical imaging and\n manufacturing.\n

\n

\n Want to learn more about Anomalib? Check out the research paper that\n introduces the deep learning library.\n

\n \n Ryan Loney\n Product manager, OpenVINO Developer Tools, Intel®\n \n
\n \n \n

Subscribe

\n

Subscribe here:

\n \n \"Listen\n \n \n \"Listen\n \n \n \"Listen\n \n \n \"Subscribe\n \n
\n \n

Transcript

\n \n Hi, I'm Burr Sutter. I'm a Red Hatter who spends a lot of time talking to technologists about technologies. We say this a lot at Red Hat. No single technology provider holds the key to\n success, including us. And I would say the same thing about myself. I love to share ideas, so I thought it would be awesome to talk to some brilliant technologists at Red Hat Partners. This\n is Code Comments, an original podcast from Red Hat.\n \n \n I'm sure, like many of you here, you have been thinking about AI/ML, artificial intelligence and machine learning. I've been thinking about that for quite some time and I actually had the\n opportunity to work on a few successful projects, here at Red Hat, using those technologies, actually enabling a data set, gathering a data set, working with a data scientist and data\n engineering team, and then training a model and putting that model into production runtime environment. It was an exciting set of projects and you can see those on numerous YouTube videos\n that have published out there before. But I want you to think about the problem space a little bit, because there are some interesting challenges about a AI/ML. One is simply just getting\n access to the data, and while there are numerous publicly available data sets, when it comes to your specific enterprise use case, you might not be to find publicly available data.\n \n \n In many cases you cannot, even for our applications that we created, we had to create our data set, capture our data set, explore the data set, and of course, train a model accordingly. And\n we also found there's another challenge to be overcome in this a AI/ML world, and that is access to certain types of hardware. If you think about an enterprise environment and the creation\n of an enterprise application specifically for a AI/ML, end users need an inference engine to run on their hardware. Hardware that's available to them, to be effective for their application.\n Let's say an application like Computer Vision, one that can detect anomalies and medical imaging or maybe on a factory floor. As those things are whizzing by on the factory line there,\n looking at them and trying to determine if there is an error or not.\n \n \n Well, how do you actually make it run on your hardware, your accessible technology that you have today? Well, there's a solution for this as an open toolkit called OpenVINO. And you might\n be thinking, \"Hey, wait a minute, don't you need a GPU for AI inferencing, a GPU for artificial intelligence, machine learning? Well, not according to Ryan Loney, product manager of OpenVINO\n Developer Tools at Intel.\n \n \n I guess I'll start with trying to maybe dispel a myth. I think that CPUs are widely used for inference today. So if we look at the data center segment, about 70% of the AI inference is\n happening on Intel Xeon, on our data center CPUs. And so you don't need a GPU especially for running inference. And that's part of the value of OpenVINO, is that we're taking models that may\n have been trained on a GPU using deep learning frameworks like PyTorch or TensorFlow, and then optimizing them to run on Intel hardware.\n \n \n Ryan joined me to discuss AI/ML in the enterprise across various industries and exploring numerous use cases. Let's talk a little bit about the origin story behind OpenVINO. Tell us more\n about it and how it came to be and why it came out of Intel.\n \n \n Definitely. We had the first release of OpenVINO, was back in 2018, so still relatively new. And at that time, we were focused on Computer Vision and pretty tightly coupled with OpenCV,\n which is another open source library with origins at Intel. It had its first release back in 1999, so it's been around a little bit longer. And many of the software engineers and architects\n at Intel that were involved with and contributing to OpenCV are working on OpenVINO. So you can think of OpenVINO as complimentary software to OpenCV and we're providing an engine for\n executing inferences as part of a Computer Vision pipeline, or at least that's how we started.\n \n \n But since 2018, we've started to move beyond just Computer Vision inference. So when I say Computer Vision inference, I mean image classification, object detection, segmentation, and now\n we're moving into natural language processing. Things like speech synthesis, speech recognition, knowledge graphs, time series forecasting and other use cases that don't involve Computer\n Vision and don't involve inference on pixels. Our latest release, the 2022.1 that came out earlier this year, that was the most significant update that we've had to OpenVINO, since we\n started in 2018. And the major focus of that release was optimizing for use cases that go beyond Computer Vision.\n \n \n And I like that concept that you just mentioned right there, Computer Vision, and you said that you extended those use cases and went beyond that. Could you give us some more concrete\n examples of Computer Vision?\n \n \n Sure. When you think about manufacturing, quality control in factories, everything from arc welding, defect detection to inspecting BMW cars on assembly lines, they're using cameras or\n sensors to collect data and usually it's cameras collecting images like RGB images that you and I can see and looks like something taken from a camera or video camera. But also, things like\n infrared or computerized tomography scans used in healthcare, X-ray, different types of images where we can draw bounding boxes around regions of interest and say, \"This is a defect,\" or,\n \"This is not a defect.\" And also, \"Is this worker wearing a safety hat or did they forget to put it on?\" And so, you can take this and integrate it into a pipeline where you're triggering an\n alert if somebody forgets to wear their safety mask, or if there's a defect in a product on an assembly line, you can just use cameras and OpenVINO and OpenCV running these on Intel hardware\n and help to analyze.\n \n \n And that's what a lot of the partners that we work with are doing, so these independent software vendors. And there's other use cases for things like retail. You think about going to a\n store and using an automated checkout system. Sometimes people use those automated checkouts and they slide a few extra items into their bag that they don't scan and it's a huge loss for the\n retail outlets that are providing this way to check out realtime shelf monitoring. We have a Vispera, one of our ISVs that helps keep store shelves stocked by just analyzing the cameras in\n the stores, detecting when objects are missing from the shelves so that they can be restocked. We have Vistry, another ISV that works with quick service restaurants. When you think about\n automating the process of, when do I drop the fries into the fryer so that they're warm when the car gets to the drive through window, there's quite a bit of industrial healthcare retail\n examples that we can walk through.\n \n \n And we should dig into some more of those, but I got to tell you, I have a personal experience in this category that I want to share with and you can tell me how silly you might think at\n this point in time it is. We actually built a keynote demonstration for the Red Hat big stage back in 2015. And I really want to illustrate the concept of asset tracking. So we actually gave\n everybody in the conference a little Bluetooth token with a little battery, a little watch battery, and a little Bluetooth emitter. And we basically tracked those things around the\n conference. We basically put a raspberry pi in each of the meeting rooms and up in the lunch room and you could see how the tokens moved from room to room to room.\n \n \n It was a relatively simple application, but it occurred to me, after we figured out how to do that with Bluetooth and triangulating Bluetooth signals by looking at relative signal strength\n from one radio to another and putting that through an Apache Spark application at the time, we then realized, \"You know what? This is easier done with cameras.\" And just simply looking at a\n camera and having some form of a AI/ML model, a machine learning model, that would say, \"There are people here now,\" or, \"There are no people here now.\" What do you think about that?\n \n \n What you just described is exactly the product that Pathr, one of our partners is offering, but they're doing it with Computer Vision and cameras. So when Pathr tries to help retail stores\n analyze the foot traffic and understand, with heat maps, where are people spending the most time in stores, how many people are coming in, what size groups are coming into the store and\n trying to help understand if there was a successful transaction from the people who entered the store and left the store, to help with the retail analytics and marketing sales and\n positioning of products. And so, they're doing that in a way that also protects privacy. And that's something that's really important. So when you talked about those Bluetooth beacons,\n probably if everyone who walked into a grocery store was asked to put a tracking device in their cart or on their person and say, \"You're going to be tracked around the store,\" they probably\n wouldn't want to do that.\n \n \n The way that you can do this with cameras, is you can detect people as they enter and remove their face. So you can ignore any biometric information and just track the person based on\n pixels that are present in the detected region of interest. So they're able to analyze... Say a family walks in the door and they can group those people together with object detection and\n then they can track their movement throughout the store without keeping track of their face, or any biometric, or any personal identifiable information, to avoid things like bias and to make\n sure that they're protecting the privacy of the shoppers in the store, while still getting that really useful marketing analytics data. So that they can make better decisions about where to\n place their products. That's one really good example of how Computer Vision, AI with OpenVINO is being used today.\n \n \n And that is a great example, because you're definitely spot on. It is invasive when you hand someone a Bluetooth device and say, \"Please, keep this with you as you go throughout our store,\n our mall or throughout our hospital, wherever you might be.\" Now you mentioned another example earlier in the conversation which was related to worker safety. \"Are they wearing a helmet?\" I\n want to talk more about that concept in a real industrial setting, a manufacturing setting, where there might be a factory floor and there's certain requirements. Or better yet there's like\n a quality assurance requirement, let's say, when it comes to looking at a factory line. I've run that use case often with some of our customers. Can you talk more about those kinds of use\n cases?\n \n \n One of our partners, Robotron, we published a case study, I think last year, where they were working with BMW at one of their factories. And they do quality control inspection, but they're\n also doing things related to worker safety and analyzing. I use the safety hat example. There's a number of our ISVs and partners who have similar use cases and it comes down to, there's a\n few reasons that are motivating this and some are related to insurance. It's important to make sure that if you want to have your factory insured, that your workers are protecting themselves\n and wearing the gear regulatory compliance, you're being asked to properly protect from exposure to chemicals or potentially having something fall and hit someone on the head. So wearing a\n safety vest, wearing goggles, wearing a helmet, these are things that you need to do inside the factory and you can really easily automate and detect and sometimes without bias.\n \n \n I think that's one of the interesting things about the Robotron-BMW example is that they were also blurring, blacking out, so drawing a box to cover the face of the workers in the factory,\n so that somebody who was analyzing the video footage and getting the alerts saying that, \"Bay 21 has a worker without a hat on,\" that it's not sending their face and in the alert and\n potentially invading or going against privacy laws or just the ethics of the company. They don't want to introduce bias or have people targeted because it's much better to blur the face and\n alert and have somebody take care of it on the floor. And then, if you ever need to audit that information later, they have a way to do it where people who need to be able to see who the\n employee was and look up their personal information, they can do that.\n \n \n But then just for the purposes of maintaining safety, they don't need to have access to that personal information, or biometric information. Because that's one thing that when you hear\n about Computer Vision or person tracking, object detection, there's a lot of concern, and rightfully so, about privacy being invaded and about tracking information, face re-identification,\n identifying people who may have committed crimes through video footage. And that's just not something that a lot of companies want to... They want to protect privacy and they don't want to\n be in a situation where they might be violating someone's rights.\n \n \n Well, privacy is certainly opening up Pandora's box. There's a lot to be explored in that area, especially in a digital world that we now live in. But for now, let's move on and explore a\n different area. I'm interested in how machines and computers offer advantages specifically in certain use cases like a quality control scenario. I asked Ryan to explain how a AI/ML and\n specifically machines, computers, could augment that capability.\n \n \n I can give a specific example where we have a partner that's doing defect detection, looking for anomalies in batteries. I'm sure you've heard there's a lot of interest right now in\n electric vehicles, a lot of batteries being produced. And so, if you go into one of these factories, they have images that they collect of every battery that's going through this assembly\n line. And through these images, people can look and see and visually inspect what their eyes and say, \"This battery has a defect, send it back.\" And that's one step in the quality control\n process, there's other steps I'm sure, like running diagnostic tests and measuring voltage and doing other types of non-visual inspection. But for the visual inspection piece, where you can\n really easily identify some problems, it's much more efficient to introduce Computer Vision. And so, that's where we have this new library that we've introduced, called Anomalib.\n \n \n So OpenVINO, while we're focused on inference, we're also thinking about the pipeline, or the funnel, that gets these models to OpenVINO. And so, we've invested in this anomaly\n segmentation, anomaly detection library that we've recently open sourced and there's a great research paper about it, about Anomalib, but the idea is you can take just a few images and train\n a model and start detecting these defects. And so, for this battery example, that's a more advanced example, but to make it simpler, take some bolts and... Take 10 bolts. You have one that\n has a scratch on it, or one that is chipped, or has some damage to it, and you can easily get started in training to recognize the bolts that do not have an anomaly and the ones that do,\n which is a small data set. And I think that's really one of the most important things today.\n \n \n Challenges, one is access to data, but the other is needing a massive amount of data to do something meaningful. And so we're starting to try to change that dynamic with Anomalib. You may\n not need a 100,000 images, you may need 100 images and you can start detecting anomalies in everything from batteries to bolts to, maybe even the wood varnish use case that you mentioned.\n\n \n \n That is a very key point because often in that data scientist process, that data engineering data scientist process, the one key thing is, can you gather the data that you need for the\n input for the model training? And we've often said, at least people I've worked with over the last couple years, \"You need a lot of data, you need tens of thousands of correct images, so we\n can sort out the difference between dogs versus cats,\" let's say. Or you need dozens and dozens of situations where if it's a natural language processing scenario, a good customer\n interaction, a good customer conversation. And this case it sounds like what you're saying is, \"Show us just the bad things, fewer images, fewer incorrect things, and then let us look for\n those kind of anomalies.\" Can you tell us more about that? Because that is very interesting. The concept that I can use a much smaller data set as my input, as opposed to gathering terabytes\n of data in some cases, to just simply get my model training underway.\n \n \n Like you described, the idea is, if you have some good images and then you have some of the known defects, and you can just label, \"Here's a set of good images and here's a few of the\n defects.\" And you can right away start detecting those specific defects that you've identified. And then, also be able to determine when it doesn't match the expected appearance of a non\n defective item. So if I have the undamaged screw and then I introduce one with some new anomaly that's never been seen before, I can say this one is not a valid screw. And so, that's the\n approach that we're taking and it's really important because so often you need to have subject matter experts. Take the battery example, there's these workers who are on the floor, in a\n factory and they're the ones who know best when they look at these images, which one's going to have an issue, which one's defective.\n \n \n And then they also need to take that subject matter expertise and then use it to annotate data sets. And when you have these tens of thousands of images you need to annotate, it's asking\n those people to stop working on the factory floor so they can come annotate some images. That's a tough business call to make, right? But if you only need them to annotate a handful of\n images, it's a much easier ask to get the ball rolling and demonstrate value. And maybe over time you will want to annotate more and more images because you'll get even better accuracy in\n the model. Even better, even if it's just small incremental improvements, that's something that if it generates value for the business, it's something the business will invest in over time.\n But you have to convince the decision makers that it's worth the time of these subject matter experts to stop what they're doing and go and label some images of the things that they're\n working on in the factory.\n \n \n And that labeling process can be very labor intensive. If the annotation is basically saying what is correct, what's wrong, what is this, what is that. And therefore if we can minimize that\n timeframe to get the value quicker, then there's something that's useful for the business, useful for the organization, long before we necessarily go through a whole huge model training\n phase.\n \n \n So we talked about labeling and how that is labor intensive activity, but I love the idea of helping the human. And helping the human most specifically not get bored. Basically if the human\n is eyeballing a bunch of widgets flying by, over time they make mistakes, they get bored and they don't pay as close attention as they should. That's why the constant of AI/ML, and\n specifically Computer Vision augmenting that capability and really helping the human identify anomalies faster, more quickly, maybe with greater accuracy, could be a big win. We focused on\n manufacturing, but let's actually go into healthcare and learn how these tools can be used in that sector and that industry. Ryan talked me about how OpenVINO's run time can be incorporated\n into medical imaging equipment with Intel processors embedded in CT, MRI and ultrasound machines. While these inferences, this AI/ML workload, can be operating and executing right there in\n the same physical room as the patient.\n \n \n We did a presentation with GE last year, I think they said there's at least 80 countries that have their x-ray machines deployed. And they're doing things like helping doctors place\n breathing tubes in patients. So during COVID, during the pandemic, that was a really important tool to help with nurses and doctors who were intubating patients, sometimes in a parking lot\n or a hallway of a hospital. And when they had a statistic that GE said, I think one out of four breathing tubes gets placed incorrectly when you're doing it outside the operating room.\n Because when you're in an operating room it's much more controlled and there's someone who's an expert at placing the tubes, it's something you have more of a controlled environment. But\n when you're out, in a parking lot, in a tent, when the hospital's completely full and you're triaging patients with COVID, that's when they're more likely to make mistakes.And so, they had\n this endotracheal tube placement, ETT, model that they trained and it helped to use an x-ray and give an alert and say, \"This tube is placed wrong, pull it out and do it again.\" And so,\n things like that help doctors so that they can avoid mistakes. And having a breathing tube placed incorrectly can cause collapsed lung and a number of other unwanted side effects. So it's\n really important to do it correctly. Another example is Samsung Medison. They actually are estimating fetal angle of progression. So this is analyzing ultrasound of pregnant women being able\n to help take measurements that are usually hard to calculate, but it can be done in an automated way. They're already taking an ultrasound scan and now they're executing this model that can\n take some of these measurements to help the doctor avoid potentially more intrusive alternative methods. So the patient wins, it makes their life better and the doctor is getting help from\n this AI model. And those are just a few examples.\n \n \n Those are some amazing examples when it comes to all these things, we're talking CT scans and x-rays, other examples of Computer Vision. One thing that's kind of interesting in this space,\n I think, whenever I get a chance to work on, let's say an object detection model, and one of our workshops, by the way, is actually putting that out in front of people to say, \"Look, you can\n use your phone and it basically sends the image over to our OpenShift with our data science platform and then analyzes what you see.\" And even in my case, where I take a picture of my dog as\n an example, it can't really decide, is it a dog or a cat? I have a very funny looking dog.\n \n \n And so there's always a percentage outcome. In other words, \"I think it's a dog, 52%.\" So I want to talk about that more. How important is it to get to that a hundred percent accuracy? How\n important is it to really, depending on the use case, to allow for the gray area if you will, where it's an 80% accuracy or a 70% accuracy, and what are the trade offs there associated with\n the application? Can you discuss that more?\n \n \n Accuracy is definitely a touchy subject, because how you measure it makes a huge difference. I think what you were describing with the dog example, there's sort of a top five potential\n classes that might maybe be identified. So let's say you're doing object detection and you detect a region of interest, and it says 65% confidence this is a dog. Well, the next potential\n label that could be maybe 50% confidence or 20% confidence might be something similar to a dog. Or in the case of models that have been trained on the ImageNet dataset or on COCO dataset,\n they have actual breeds of dogs. If I want to look at the top five labels for a dog, for my dog for example, she's a mix, mostly a Labrador retriever, but I may look at the top five labels\n and it may say 65% confidence that she's a flat coated retriever.\n \n \n And then confidence that she's a husky as 20%, and then 5% confidence that she's a greyhound or something. Those labels, all of them are dogs. So if I'm just trying to figure out, is this a\n dog? I could probably find all of the classes within the data set and say, \"Well, these all, class ID 65, 132, 92 and 158, all belong to a group of dogs.\" So if I want to just write an\n application to tell me if this is a dog or not, I would probably use that to determine if it's a dog. But how you measure that as accuracy, well that's where it gets a little bit\n complicated. Because if you're being really strict about the definition and you're trying to validate against the data set of labeled images, and I have specific dog breeds or some specific\n detail and it doesn't match, well then, the accuracy's going to go down.\n \n \n And that's especially important when we talk about things like compression and quantization, which historically, has been difficult to get adoption in some domains, like healthcare, where\n even the hint of accuracy going down implies that we're not going to be able to help. In some small case, maybe if it's even half a percent of the time, we won't detect that that tube is\n placed incorrectly or that that patient's lung has collapsed or something like that. And that's something that really prevents adoption of some of these methods that can really boost\n performance, like quantization. But if you take that example of... Different from the dog example, and you think about segmentation of kidneys. If I'm doing kidney segmentation, which is\n taking a CT scan and then trying to pick the pixels out of that scan that belong to a kidney, how I measure accuracy may be how many of those pixels I'm able to detect and how many did I\n miss?\n \n \n Missing some of the pixels is maybe not a problem, depending on how you've built the application, because you still detect the kidney, and maybe you just need to apply padding around the\n region of interest, so that you don't miss any of the actual kidney when you compress the model and when you quantize the model. But that requires a data scientist, an ML engineer, somebody\n to really, they have to be able to go and apply that after the fact, after the inference happens, to make sure that you're not losing critical information. Because the next step from\n detecting the kidney, may be detecting a tumor.\n \n \n And so, maybe you can use the more optimized model to detect the kidney, but then you can use a slower model to detect the tumor. But that also requires somebody to architect and make that\n decision or that trade off and say, \"Well, I need to add padding,\" or, \"I should only use the quantized model to detect the region of interest for the kidney.\" And then, use the model that\n takes longer to do the inference just to find the tumor, which is going to be on a smaller size. The dimensions are going to be much smaller once we crop to the region of interest. But all\n of those details, that's maybe not easy to explain in a few sentences and even the way I explained it is probably really confusing.\n \n \n I do love that use case, like you mentioned, the cropping, even in one scenario that we worked on for another project, we specifically decided to pixelate the image that we had taken,\n because we knew that we could get the outcome we wanted by even just using a smaller or having less resolution in our image. And therefore, as we transferred it from the mobile device, the\n edge device, up into the cloud, we wanted that smaller image just for transfer purposes. And still, we could get the accuracy we needed by a lot of testing.\n \n \n And one thing that's interesting about that, from my perspective, is, if you're doing image processing, sometimes it takes a while for this transaction to occur. I come from a traditional\n application background, where I'm reading and writing things from a database, or a message broker, or moving data from one place to another. Those things happen sub-second normally, even\n with great latency between your data centers, it's still sub-second in most cases. While a transaction like this one can actually take two seconds or four seconds, as it's doing its analysis\n and actually coming back with its, \"I think it's a dog, I think it's a kidney, I think it's whatever.\" And providing me that accuracy statement. That concept of optimization is very\n important in the overall application architecture. Would you agree with that or how do you think about that concept?\n \n \n Definitely. It depends too on the use case. So if you think about how important it is to reduce the latency and increase the number of frames per second that you can process when you're\n talking about a loss prevention model that's running at a grocery store. You want to keep the lines moving, you don't want every person who's at the self checkout to have to wait five\n seconds for every item they scan. You need it to happen as quickly as possible. And if sometimes the accuracy decreases slightly, or I'd say the accuracy of the whole pipeline, so not just\n looking at the individual model or the individual inference, but let's say that the whole pipeline is not as successful at detecting when somebody steals one item from the self checkout,\n it's not going to be a life threatening situation. Whereas being hooked up to the x-ray machine with the tube placement model, they might be willing to have the doctor or the nurse wait five\n seconds to get the result.\n \n \n They don't need it to happen in 500 milliseconds. Their threshold for waiting is a little bit higher. That, I think, also drives some of the decision. You want to keep people moving through\n the checkout line and you can afford to, potentially, if you lose a little bit of accuracy here and there, it's not going to cost the company that much money or it's not going to be life\n threatening. It's going to be worth the trade off of keeping the line moving and not having people leave the store and not check out at all, to say, \"I'm not going to shop today because the\n line's too long.\"\n \n \n There are so many trade-offs in enterprise AI/ML use cases, things like latency, accuracy and availability, and certainly complexities abound, especially in an obviously ever-evolving\n technological landscape where we are still very early in the adoption of AI/ML. And to navigate that complexity, that direct feedback from real world end users is essential to Ryan and his\n team at Intel. What would you say are some of the big hurdles or big outcomes, big opportunities in that space? And do you agree that we're still at the very beginning, in our infancy if you\n will, of adopting these technologies and discovering what they can do for us?\n \n \n Yeah, I think we're definitely in the infancy and I think that what we've seen is, our customers are evolving and the people who are deploying on Intel hardware, they're trying to run more\n complicated models. They're the models that are doing object detection or detecting defects and doing segmentation. In the past you could say, \"Here's a generic model that will do face\n detection, or person detection, or vehicle detection, license plate detection.\" And those are general purpose models that you can just grab off the shelf and use them. But now we're moving\n into the Anomalib scenarios, where I've got my own data and I'm trying to do something very specific and I'm the only one that has access to this data. You don't have that public data set\n that you can go download that's under Creative Commons license for car batteries. It's just not something that's available.\n \n \n And so, those use cases, the challenge with training those models and getting them optimized is the beginning of the pipeline. It's the data. You have to get the data, you have to annotate\n it and the tools have to exist for you to do that. And that's part of the problem that we're trying to help solve. And then, the models are getting more complex. So if you think, just from\n working with customers recently, they're no longer just trying to do image classification, \"Is it a dog or a cat?\" They've moved on to 3D point clouds and 3D segmentation models and things\n that are like the speech synthesis example. These GPT models that are generating... You put a text input and it generates an image for you. It's just becoming much more advanced, much more\n sophisticated and on larger images.\n \n \n And so things like running super resolution and enhancing images, upscaling images, instead of just trying to take that 200 by 200 pixel image and classifying if it's a cat, now we're\n talking about gigantic, huge images that we're processing and that all requires more resources or more optimized models. And every Computer Vision conference or AI conference, there's a new\n latest and greatest architecture, there's new research paper, and things are getting adopted much faster. The lead time for a NeurIPS paper, CVPR, for a company to actually adopt and put\n those into production, the time shortens every year.\n \n \n Well Ryan, I got to tell you, I could talk to you, literally, all day about these topics, the various use cases, the various ways models are being optimized, how to put models into a\n pipeline for average enterprise applications. I've enjoyed learning about OpenVINO and Anomalib. I'm fascinated by this, because I'll have a chance to go try this myself, taking advantage of\n Red Hat OpenShift and taking advantage of our data science platform. On top of that, I will definitely go be poking at this myself. Thank you so much for your time today.\n \n \n Thanks, Burr. This was a lot of fun. Thanks for having me.\n \n \n You can check out the full transcript of our conversation and more resources, like a link to a white paper on OpenVINO and Anomalib at redhat.com/codecommentspodcast. This episode was\n produced by Brent Simoneaux and Caroline Creaghead. Our sound designer is Christian Prohom. Our audio team includes Leigh Day, Stephanie Wonderlick, Mike Esser, Laura Barnes, Claire Allison,\n Nick Burns, Aaron Williamson, Karen King, Boo Boo Howse, Rachel Ertel, Mike Compton, Ocean Matthews, Laura Walters, Alex Traboulsi, and Victoria Lawton. I'm your host, Burr Sutter. Thank you\n for joining me today on Code Comments. I hope you enjoyed today's session and today's conversation, and I look forward to many more.\n \n
\n
\n
\n\n\n\n\n", + "content": "

rh-audio-player: Right-to-left

\n\n
\n

Options:

\n
    \n
  • \n
  • \n
  • \n \n
  • \n
\n
\n\n\n
\n \n

Code Comments

\n

Bringing Deep Learning to Enterprise Applications

\n \n

About the episode

\n

\n There are a lot of publicly available data sets out there. But when it\n comes to specific enterprise use cases, you're not necessarily going to\n able to find one to train your models. To realize the power of AI/ML in\n enterprise environments, end users need an inference engine to run on\n their hardware. Ryan Loney takes us through OpenVINO and Anomalib, open\n toolkits from Intel that do precisely that. He looks specifically at\n anomaly detection in use cases as varied as medical imaging and\n manufacturing.\n

\n

\n Want to learn more about Anomalib? Check out the research paper that\n introduces the deep learning library.\n

\n \n Ryan Loney\n Product manager, OpenVINO Developer Tools, Intel®\n \n
\n \n \n

Subscribe

\n

Subscribe here:

\n \n \"Listen\n \n \n \"Listen\n \n \n \"Listen\n \n \n \"Subscribe\n \n
\n \n

Transcript

\n \n Hi, I'm Burr Sutter. I'm a Red Hatter who spends a lot of time talking to technologists about technologies. We say this a lot at Red Hat. No single technology provider holds the key to\n success, including us. And I would say the same thing about myself. I love to share ideas, so I thought it would be awesome to talk to some brilliant technologists at Red Hat Partners. This\n is Code Comments, an original podcast from Red Hat.\n \n \n I'm sure, like many of you here, you have been thinking about AI/ML, artificial intelligence and machine learning. I've been thinking about that for quite some time and I actually had the\n opportunity to work on a few successful projects, here at Red Hat, using those technologies, actually enabling a data set, gathering a data set, working with a data scientist and data\n engineering team, and then training a model and putting that model into production runtime environment. It was an exciting set of projects and you can see those on numerous YouTube videos\n that have published out there before. But I want you to think about the problem space a little bit, because there are some interesting challenges about a AI/ML. One is simply just getting\n access to the data, and while there are numerous publicly available data sets, when it comes to your specific enterprise use case, you might not be to find publicly available data.\n \n \n In many cases you cannot, even for our applications that we created, we had to create our data set, capture our data set, explore the data set, and of course, train a model accordingly. And\n we also found there's another challenge to be overcome in this a AI/ML world, and that is access to certain types of hardware. If you think about an enterprise environment and the creation\n of an enterprise application specifically for a AI/ML, end users need an inference engine to run on their hardware. Hardware that's available to them, to be effective for their application.\n Let's say an application like Computer Vision, one that can detect anomalies and medical imaging or maybe on a factory floor. As those things are whizzing by on the factory line there,\n looking at them and trying to determine if there is an error or not.\n \n \n Well, how do you actually make it run on your hardware, your accessible technology that you have today? Well, there's a solution for this as an open toolkit called OpenVINO. And you might\n be thinking, \"Hey, wait a minute, don't you need a GPU for AI inferencing, a GPU for artificial intelligence, machine learning? Well, not according to Ryan Loney, product manager of OpenVINO\n Developer Tools at Intel.\n \n \n I guess I'll start with trying to maybe dispel a myth. I think that CPUs are widely used for inference today. So if we look at the data center segment, about 70% of the AI inference is\n happening on Intel Xeon, on our data center CPUs. And so you don't need a GPU especially for running inference. And that's part of the value of OpenVINO, is that we're taking models that may\n have been trained on a GPU using deep learning frameworks like PyTorch or TensorFlow, and then optimizing them to run on Intel hardware.\n \n \n Ryan joined me to discuss AI/ML in the enterprise across various industries and exploring numerous use cases. Let's talk a little bit about the origin story behind OpenVINO. Tell us more\n about it and how it came to be and why it came out of Intel.\n \n \n Definitely. We had the first release of OpenVINO, was back in 2018, so still relatively new. And at that time, we were focused on Computer Vision and pretty tightly coupled with OpenCV,\n which is another open source library with origins at Intel. It had its first release back in 1999, so it's been around a little bit longer. And many of the software engineers and architects\n at Intel that were involved with and contributing to OpenCV are working on OpenVINO. So you can think of OpenVINO as complimentary software to OpenCV and we're providing an engine for\n executing inferences as part of a Computer Vision pipeline, or at least that's how we started.\n \n \n But since 2018, we've started to move beyond just Computer Vision inference. So when I say Computer Vision inference, I mean image classification, object detection, segmentation, and now\n we're moving into natural language processing. Things like speech synthesis, speech recognition, knowledge graphs, time series forecasting and other use cases that don't involve Computer\n Vision and don't involve inference on pixels. Our latest release, the 2022.1 that came out earlier this year, that was the most significant update that we've had to OpenVINO, since we\n started in 2018. And the major focus of that release was optimizing for use cases that go beyond Computer Vision.\n \n \n And I like that concept that you just mentioned right there, Computer Vision, and you said that you extended those use cases and went beyond that. Could you give us some more concrete\n examples of Computer Vision?\n \n \n Sure. When you think about manufacturing, quality control in factories, everything from arc welding, defect detection to inspecting BMW cars on assembly lines, they're using cameras or\n sensors to collect data and usually it's cameras collecting images like RGB images that you and I can see and looks like something taken from a camera or video camera. But also, things like\n infrared or computerized tomography scans used in healthcare, X-ray, different types of images where we can draw bounding boxes around regions of interest and say, \"This is a defect,\" or,\n \"This is not a defect.\" And also, \"Is this worker wearing a safety hat or did they forget to put it on?\" And so, you can take this and integrate it into a pipeline where you're triggering an\n alert if somebody forgets to wear their safety mask, or if there's a defect in a product on an assembly line, you can just use cameras and OpenVINO and OpenCV running these on Intel hardware\n and help to analyze.\n \n \n And that's what a lot of the partners that we work with are doing, so these independent software vendors. And there's other use cases for things like retail. You think about going to a\n store and using an automated checkout system. Sometimes people use those automated checkouts and they slide a few extra items into their bag that they don't scan and it's a huge loss for the\n retail outlets that are providing this way to check out realtime shelf monitoring. We have a Vispera, one of our ISVs that helps keep store shelves stocked by just analyzing the cameras in\n the stores, detecting when objects are missing from the shelves so that they can be restocked. We have Vistry, another ISV that works with quick service restaurants. When you think about\n automating the process of, when do I drop the fries into the fryer so that they're warm when the car gets to the drive through window, there's quite a bit of industrial healthcare retail\n examples that we can walk through.\n \n \n And we should dig into some more of those, but I got to tell you, I have a personal experience in this category that I want to share with and you can tell me how silly you might think at\n this point in time it is. We actually built a keynote demonstration for the Red Hat big stage back in 2015. And I really want to illustrate the concept of asset tracking. So we actually gave\n everybody in the conference a little Bluetooth token with a little battery, a little watch battery, and a little Bluetooth emitter. And we basically tracked those things around the\n conference. We basically put a raspberry pi in each of the meeting rooms and up in the lunch room and you could see how the tokens moved from room to room to room.\n \n \n It was a relatively simple application, but it occurred to me, after we figured out how to do that with Bluetooth and triangulating Bluetooth signals by looking at relative signal strength\n from one radio to another and putting that through an Apache Spark application at the time, we then realized, \"You know what? This is easier done with cameras.\" And just simply looking at a\n camera and having some form of a AI/ML model, a machine learning model, that would say, \"There are people here now,\" or, \"There are no people here now.\" What do you think about that?\n \n \n What you just described is exactly the product that Pathr, one of our partners is offering, but they're doing it with Computer Vision and cameras. So when Pathr tries to help retail stores\n analyze the foot traffic and understand, with heat maps, where are people spending the most time in stores, how many people are coming in, what size groups are coming into the store and\n trying to help understand if there was a successful transaction from the people who entered the store and left the store, to help with the retail analytics and marketing sales and\n positioning of products. And so, they're doing that in a way that also protects privacy. And that's something that's really important. So when you talked about those Bluetooth beacons,\n probably if everyone who walked into a grocery store was asked to put a tracking device in their cart or on their person and say, \"You're going to be tracked around the store,\" they probably\n wouldn't want to do that.\n \n \n The way that you can do this with cameras, is you can detect people as they enter and remove their face. So you can ignore any biometric information and just track the person based on\n pixels that are present in the detected region of interest. So they're able to analyze... Say a family walks in the door and they can group those people together with object detection and\n then they can track their movement throughout the store without keeping track of their face, or any biometric, or any personal identifiable information, to avoid things like bias and to make\n sure that they're protecting the privacy of the shoppers in the store, while still getting that really useful marketing analytics data. So that they can make better decisions about where to\n place their products. That's one really good example of how Computer Vision, AI with OpenVINO is being used today.\n \n \n And that is a great example, because you're definitely spot on. It is invasive when you hand someone a Bluetooth device and say, \"Please, keep this with you as you go throughout our store,\n our mall or throughout our hospital, wherever you might be.\" Now you mentioned another example earlier in the conversation which was related to worker safety. \"Are they wearing a helmet?\" I\n want to talk more about that concept in a real industrial setting, a manufacturing setting, where there might be a factory floor and there's certain requirements. Or better yet there's like\n a quality assurance requirement, let's say, when it comes to looking at a factory line. I've run that use case often with some of our customers. Can you talk more about those kinds of use\n cases?\n \n \n One of our partners, Robotron, we published a case study, I think last year, where they were working with BMW at one of their factories. And they do quality control inspection, but they're\n also doing things related to worker safety and analyzing. I use the safety hat example. There's a number of our ISVs and partners who have similar use cases and it comes down to, there's a\n few reasons that are motivating this and some are related to insurance. It's important to make sure that if you want to have your factory insured, that your workers are protecting themselves\n and wearing the gear regulatory compliance, you're being asked to properly protect from exposure to chemicals or potentially having something fall and hit someone on the head. So wearing a\n safety vest, wearing goggles, wearing a helmet, these are things that you need to do inside the factory and you can really easily automate and detect and sometimes without bias.\n \n \n I think that's one of the interesting things about the Robotron-BMW example is that they were also blurring, blacking out, so drawing a box to cover the face of the workers in the factory,\n so that somebody who was analyzing the video footage and getting the alerts saying that, \"Bay 21 has a worker without a hat on,\" that it's not sending their face and in the alert and\n potentially invading or going against privacy laws or just the ethics of the company. They don't want to introduce bias or have people targeted because it's much better to blur the face and\n alert and have somebody take care of it on the floor. And then, if you ever need to audit that information later, they have a way to do it where people who need to be able to see who the\n employee was and look up their personal information, they can do that.\n \n \n But then just for the purposes of maintaining safety, they don't need to have access to that personal information, or biometric information. Because that's one thing that when you hear\n about Computer Vision or person tracking, object detection, there's a lot of concern, and rightfully so, about privacy being invaded and about tracking information, face re-identification,\n identifying people who may have committed crimes through video footage. And that's just not something that a lot of companies want to... They want to protect privacy and they don't want to\n be in a situation where they might be violating someone's rights.\n \n \n Well, privacy is certainly opening up Pandora's box. There's a lot to be explored in that area, especially in a digital world that we now live in. But for now, let's move on and explore a\n different area. I'm interested in how machines and computers offer advantages specifically in certain use cases like a quality control scenario. I asked Ryan to explain how a AI/ML and\n specifically machines, computers, could augment that capability.\n \n \n I can give a specific example where we have a partner that's doing defect detection, looking for anomalies in batteries. I'm sure you've heard there's a lot of interest right now in\n electric vehicles, a lot of batteries being produced. And so, if you go into one of these factories, they have images that they collect of every battery that's going through this assembly\n line. And through these images, people can look and see and visually inspect what their eyes and say, \"This battery has a defect, send it back.\" And that's one step in the quality control\n process, there's other steps I'm sure, like running diagnostic tests and measuring voltage and doing other types of non-visual inspection. But for the visual inspection piece, where you can\n really easily identify some problems, it's much more efficient to introduce Computer Vision. And so, that's where we have this new library that we've introduced, called Anomalib.\n \n \n So OpenVINO, while we're focused on inference, we're also thinking about the pipeline, or the funnel, that gets these models to OpenVINO. And so, we've invested in this anomaly\n segmentation, anomaly detection library that we've recently open sourced and there's a great research paper about it, about Anomalib, but the idea is you can take just a few images and train\n a model and start detecting these defects. And so, for this battery example, that's a more advanced example, but to make it simpler, take some bolts and... Take 10 bolts. You have one that\n has a scratch on it, or one that is chipped, or has some damage to it, and you can easily get started in training to recognize the bolts that do not have an anomaly and the ones that do,\n which is a small data set. And I think that's really one of the most important things today.\n \n \n Challenges, one is access to data, but the other is needing a massive amount of data to do something meaningful. And so we're starting to try to change that dynamic with Anomalib. You may\n not need a 100,000 images, you may need 100 images and you can start detecting anomalies in everything from batteries to bolts to, maybe even the wood varnish use case that you mentioned.\n\n \n \n That is a very key point because often in that data scientist process, that data engineering data scientist process, the one key thing is, can you gather the data that you need for the\n input for the model training? And we've often said, at least people I've worked with over the last couple years, \"You need a lot of data, you need tens of thousands of correct images, so we\n can sort out the difference between dogs versus cats,\" let's say. Or you need dozens and dozens of situations where if it's a natural language processing scenario, a good customer\n interaction, a good customer conversation. And this case it sounds like what you're saying is, \"Show us just the bad things, fewer images, fewer incorrect things, and then let us look for\n those kind of anomalies.\" Can you tell us more about that? Because that is very interesting. The concept that I can use a much smaller data set as my input, as opposed to gathering terabytes\n of data in some cases, to just simply get my model training underway.\n \n \n Like you described, the idea is, if you have some good images and then you have some of the known defects, and you can just label, \"Here's a set of good images and here's a few of the\n defects.\" And you can right away start detecting those specific defects that you've identified. And then, also be able to determine when it doesn't match the expected appearance of a non\n defective item. So if I have the undamaged screw and then I introduce one with some new anomaly that's never been seen before, I can say this one is not a valid screw. And so, that's the\n approach that we're taking and it's really important because so often you need to have subject matter experts. Take the battery example, there's these workers who are on the floor, in a\n factory and they're the ones who know best when they look at these images, which one's going to have an issue, which one's defective.\n \n \n And then they also need to take that subject matter expertise and then use it to annotate data sets. And when you have these tens of thousands of images you need to annotate, it's asking\n those people to stop working on the factory floor so they can come annotate some images. That's a tough business call to make, right? But if you only need them to annotate a handful of\n images, it's a much easier ask to get the ball rolling and demonstrate value. And maybe over time you will want to annotate more and more images because you'll get even better accuracy in\n the model. Even better, even if it's just small incremental improvements, that's something that if it generates value for the business, it's something the business will invest in over time.\n But you have to convince the decision makers that it's worth the time of these subject matter experts to stop what they're doing and go and label some images of the things that they're\n working on in the factory.\n \n \n And that labeling process can be very labor intensive. If the annotation is basically saying what is correct, what's wrong, what is this, what is that. And therefore if we can minimize that\n timeframe to get the value quicker, then there's something that's useful for the business, useful for the organization, long before we necessarily go through a whole huge model training\n phase.\n \n \n So we talked about labeling and how that is labor intensive activity, but I love the idea of helping the human. And helping the human most specifically not get bored. Basically if the human\n is eyeballing a bunch of widgets flying by, over time they make mistakes, they get bored and they don't pay as close attention as they should. That's why the constant of AI/ML, and\n specifically Computer Vision augmenting that capability and really helping the human identify anomalies faster, more quickly, maybe with greater accuracy, could be a big win. We focused on\n manufacturing, but let's actually go into healthcare and learn how these tools can be used in that sector and that industry. Ryan talked me about how OpenVINO's run time can be incorporated\n into medical imaging equipment with Intel processors embedded in CT, MRI and ultrasound machines. While these inferences, this AI/ML workload, can be operating and executing right there in\n the same physical room as the patient.\n \n \n We did a presentation with GE last year, I think they said there's at least 80 countries that have their x-ray machines deployed. And they're doing things like helping doctors place\n breathing tubes in patients. So during COVID, during the pandemic, that was a really important tool to help with nurses and doctors who were intubating patients, sometimes in a parking lot\n or a hallway of a hospital. And when they had a statistic that GE said, I think one out of four breathing tubes gets placed incorrectly when you're doing it outside the operating room.\n Because when you're in an operating room it's much more controlled and there's someone who's an expert at placing the tubes, it's something you have more of a controlled environment. But\n when you're out, in a parking lot, in a tent, when the hospital's completely full and you're triaging patients with COVID, that's when they're more likely to make mistakes.And so, they had\n this endotracheal tube placement, ETT, model that they trained and it helped to use an x-ray and give an alert and say, \"This tube is placed wrong, pull it out and do it again.\" And so,\n things like that help doctors so that they can avoid mistakes. And having a breathing tube placed incorrectly can cause collapsed lung and a number of other unwanted side effects. So it's\n really important to do it correctly. Another example is Samsung Medison. They actually are estimating fetal angle of progression. So this is analyzing ultrasound of pregnant women being able\n to help take measurements that are usually hard to calculate, but it can be done in an automated way. They're already taking an ultrasound scan and now they're executing this model that can\n take some of these measurements to help the doctor avoid potentially more intrusive alternative methods. So the patient wins, it makes their life better and the doctor is getting help from\n this AI model. And those are just a few examples.\n \n \n Those are some amazing examples when it comes to all these things, we're talking CT scans and x-rays, other examples of Computer Vision. One thing that's kind of interesting in this space,\n I think, whenever I get a chance to work on, let's say an object detection model, and one of our workshops, by the way, is actually putting that out in front of people to say, \"Look, you can\n use your phone and it basically sends the image over to our OpenShift with our data science platform and then analyzes what you see.\" And even in my case, where I take a picture of my dog as\n an example, it can't really decide, is it a dog or a cat? I have a very funny looking dog.\n \n \n And so there's always a percentage outcome. In other words, \"I think it's a dog, 52%.\" So I want to talk about that more. How important is it to get to that a hundred percent accuracy? How\n important is it to really, depending on the use case, to allow for the gray area if you will, where it's an 80% accuracy or a 70% accuracy, and what are the trade offs there associated with\n the application? Can you discuss that more?\n \n \n Accuracy is definitely a touchy subject, because how you measure it makes a huge difference. I think what you were describing with the dog example, there's sort of a top five potential\n classes that might maybe be identified. So let's say you're doing object detection and you detect a region of interest, and it says 65% confidence this is a dog. Well, the next potential\n label that could be maybe 50% confidence or 20% confidence might be something similar to a dog. Or in the case of models that have been trained on the ImageNet dataset or on COCO dataset,\n they have actual breeds of dogs. If I want to look at the top five labels for a dog, for my dog for example, she's a mix, mostly a Labrador retriever, but I may look at the top five labels\n and it may say 65% confidence that she's a flat coated retriever.\n \n \n And then confidence that she's a husky as 20%, and then 5% confidence that she's a greyhound or something. Those labels, all of them are dogs. So if I'm just trying to figure out, is this a\n dog? I could probably find all of the classes within the data set and say, \"Well, these all, class ID 65, 132, 92 and 158, all belong to a group of dogs.\" So if I want to just write an\n application to tell me if this is a dog or not, I would probably use that to determine if it's a dog. But how you measure that as accuracy, well that's where it gets a little bit\n complicated. Because if you're being really strict about the definition and you're trying to validate against the data set of labeled images, and I have specific dog breeds or some specific\n detail and it doesn't match, well then, the accuracy's going to go down.\n \n \n And that's especially important when we talk about things like compression and quantization, which historically, has been difficult to get adoption in some domains, like healthcare, where\n even the hint of accuracy going down implies that we're not going to be able to help. In some small case, maybe if it's even half a percent of the time, we won't detect that that tube is\n placed incorrectly or that that patient's lung has collapsed or something like that. And that's something that really prevents adoption of some of these methods that can really boost\n performance, like quantization. But if you take that example of... Different from the dog example, and you think about segmentation of kidneys. If I'm doing kidney segmentation, which is\n taking a CT scan and then trying to pick the pixels out of that scan that belong to a kidney, how I measure accuracy may be how many of those pixels I'm able to detect and how many did I\n miss?\n \n \n Missing some of the pixels is maybe not a problem, depending on how you've built the application, because you still detect the kidney, and maybe you just need to apply padding around the\n region of interest, so that you don't miss any of the actual kidney when you compress the model and when you quantize the model. But that requires a data scientist, an ML engineer, somebody\n to really, they have to be able to go and apply that after the fact, after the inference happens, to make sure that you're not losing critical information. Because the next step from\n detecting the kidney, may be detecting a tumor.\n \n \n And so, maybe you can use the more optimized model to detect the kidney, but then you can use a slower model to detect the tumor. But that also requires somebody to architect and make that\n decision or that trade off and say, \"Well, I need to add padding,\" or, \"I should only use the quantized model to detect the region of interest for the kidney.\" And then, use the model that\n takes longer to do the inference just to find the tumor, which is going to be on a smaller size. The dimensions are going to be much smaller once we crop to the region of interest. But all\n of those details, that's maybe not easy to explain in a few sentences and even the way I explained it is probably really confusing.\n \n \n I do love that use case, like you mentioned, the cropping, even in one scenario that we worked on for another project, we specifically decided to pixelate the image that we had taken,\n because we knew that we could get the outcome we wanted by even just using a smaller or having less resolution in our image. And therefore, as we transferred it from the mobile device, the\n edge device, up into the cloud, we wanted that smaller image just for transfer purposes. And still, we could get the accuracy we needed by a lot of testing.\n \n \n And one thing that's interesting about that, from my perspective, is, if you're doing image processing, sometimes it takes a while for this transaction to occur. I come from a traditional\n application background, where I'm reading and writing things from a database, or a message broker, or moving data from one place to another. Those things happen sub-second normally, even\n with great latency between your data centers, it's still sub-second in most cases. While a transaction like this one can actually take two seconds or four seconds, as it's doing its analysis\n and actually coming back with its, \"I think it's a dog, I think it's a kidney, I think it's whatever.\" And providing me that accuracy statement. That concept of optimization is very\n important in the overall application architecture. Would you agree with that or how do you think about that concept?\n \n \n Definitely. It depends too on the use case. So if you think about how important it is to reduce the latency and increase the number of frames per second that you can process when you're\n talking about a loss prevention model that's running at a grocery store. You want to keep the lines moving, you don't want every person who's at the self checkout to have to wait five\n seconds for every item they scan. You need it to happen as quickly as possible. And if sometimes the accuracy decreases slightly, or I'd say the accuracy of the whole pipeline, so not just\n looking at the individual model or the individual inference, but let's say that the whole pipeline is not as successful at detecting when somebody steals one item from the self checkout,\n it's not going to be a life threatening situation. Whereas being hooked up to the x-ray machine with the tube placement model, they might be willing to have the doctor or the nurse wait five\n seconds to get the result.\n \n \n They don't need it to happen in 500 milliseconds. Their threshold for waiting is a little bit higher. That, I think, also drives some of the decision. You want to keep people moving through\n the checkout line and you can afford to, potentially, if you lose a little bit of accuracy here and there, it's not going to cost the company that much money or it's not going to be life\n threatening. It's going to be worth the trade off of keeping the line moving and not having people leave the store and not check out at all, to say, \"I'm not going to shop today because the\n line's too long.\"\n \n \n There are so many trade-offs in enterprise AI/ML use cases, things like latency, accuracy and availability, and certainly complexities abound, especially in an obviously ever-evolving\n technological landscape where we are still very early in the adoption of AI/ML. And to navigate that complexity, that direct feedback from real world end users is essential to Ryan and his\n team at Intel. What would you say are some of the big hurdles or big outcomes, big opportunities in that space? And do you agree that we're still at the very beginning, in our infancy if you\n will, of adopting these technologies and discovering what they can do for us?\n \n \n Yeah, I think we're definitely in the infancy and I think that what we've seen is, our customers are evolving and the people who are deploying on Intel hardware, they're trying to run more\n complicated models. They're the models that are doing object detection or detecting defects and doing segmentation. In the past you could say, \"Here's a generic model that will do face\n detection, or person detection, or vehicle detection, license plate detection.\" And those are general purpose models that you can just grab off the shelf and use them. But now we're moving\n into the Anomalib scenarios, where I've got my own data and I'm trying to do something very specific and I'm the only one that has access to this data. You don't have that public data set\n that you can go download that's under Creative Commons license for car batteries. It's just not something that's available.\n \n \n And so, those use cases, the challenge with training those models and getting them optimized is the beginning of the pipeline. It's the data. You have to get the data, you have to annotate\n it and the tools have to exist for you to do that. And that's part of the problem that we're trying to help solve. And then, the models are getting more complex. So if you think, just from\n working with customers recently, they're no longer just trying to do image classification, \"Is it a dog or a cat?\" They've moved on to 3D point clouds and 3D segmentation models and things\n that are like the speech synthesis example. These GPT models that are generating... You put a text input and it generates an image for you. It's just becoming much more advanced, much more\n sophisticated and on larger images.\n \n \n And so things like running super resolution and enhancing images, upscaling images, instead of just trying to take that 200 by 200 pixel image and classifying if it's a cat, now we're\n talking about gigantic, huge images that we're processing and that all requires more resources or more optimized models. And every Computer Vision conference or AI conference, there's a new\n latest and greatest architecture, there's new research paper, and things are getting adopted much faster. The lead time for a NeurIPS paper, CVPR, for a company to actually adopt and put\n those into production, the time shortens every year.\n \n \n Well Ryan, I got to tell you, I could talk to you, literally, all day about these topics, the various use cases, the various ways models are being optimized, how to put models into a\n pipeline for average enterprise applications. I've enjoyed learning about OpenVINO and Anomalib. I'm fascinated by this, because I'll have a chance to go try this myself, taking advantage of\n Red Hat OpenShift and taking advantage of our data science platform. On top of that, I will definitely go be poking at this myself. Thank you so much for your time today.\n \n \n Thanks, Burr. This was a lot of fun. Thanks for having me.\n \n \n You can check out the full transcript of our conversation and more resources, like a link to a white paper on OpenVINO and Anomalib at redhat.com/codecommentspodcast. This episode was\n produced by Brent Simoneaux and Caroline Creaghead. Our sound designer is Christian Prohom. Our audio team includes Leigh Day, Stephanie Wonderlick, Mike Esser, Laura Barnes, Claire Allison,\n Nick Burns, Aaron Williamson, Karen King, Boo Boo Howse, Rachel Ertel, Mike Compton, Ocean Matthews, Laura Walters, Alex Traboulsi, and Victoria Lawton. I'm your host, Burr Sutter. Thank you\n for joining me today on Code Comments. I hope you enjoyed today's session and today's conversation, and I look forward to many more.\n \n
\n
\n
\n\n\n\n\n\n\n", "label": "Right To Left" }, "demo/right-to-left/demo.css": { diff --git a/assets/playgrounds/rh-avatar-playground.js b/assets/playgrounds/rh-avatar-playground.js index 3a8990d677..4f1918319a 100644 --- a/assets/playgrounds/rh-avatar-playground.js +++ b/assets/playgrounds/rh-avatar-playground.js @@ -8,7 +8,7 @@ export const configure = project => project.config = { "demo/index.html": { "contentType": "text/html", "selected": true, - "content": "\n\n\n\n\n\n\n", + "content": "\n\n\n\n\n\n\n\n\n", "label": "Avatar" }, "demo/demo.css": { @@ -18,7 +18,7 @@ export const configure = project => project.config = { "demo/color-context/index.html": { "contentType": "text/html", "selected": false, - "content": "\n\n\n
\n
Default
\n \n
\n\n
\n
Position Below
\n \n
\n\n
\n
With link
\n George Boole\n Professor of Mathematics, \n Queen's College, Cork\n \n
\n\n\n
\n
Long Subtitle
\n Moses Schoenfinkle\n \n Inventor of Combinatorics,\n often uncreditted for inventing the process of \"currying\" functions,\n however, \"schoenfinkling\" doesn't exactly roll off the tongue, so we'll\n let it slide\n \n \n
\n\n\n
\n
Squares pattern
\n \n
\n\n
\n
Triangles pattern
\n \n
\n\n
\n
Plain
\n \n \n \n \n
\n
\n\n\n\n\n", + "content": "\n\n\n
\n
Default
\n \n
\n\n
\n
Position Below
\n \n
\n\n
\n
With link
\n George Boole\n Professor of Mathematics, \n Queen's College, Cork\n \n
\n\n\n
\n
Long Subtitle
\n Moses Schoenfinkle\n \n Inventor of Combinatorics,\n often uncreditted for inventing the process of \"currying\" functions,\n however, \"schoenfinkling\" doesn't exactly roll off the tongue, so we'll\n let it slide\n \n \n
\n\n\n
\n
Squares pattern
\n \n
\n\n
\n
Triangles pattern
\n \n
\n\n
\n
Plain
\n \n \n \n \n
\n
\n\n\n\n\n\n\n", "label": "Color Context" }, "demo/color-context/demo.css": { @@ -28,7 +28,7 @@ export const configure = project => project.config = { "demo/links/index.html": { "contentType": "text/html", "selected": false, - "content": "
\n
Links applied to Name
\n \n Jeannette Wing\n Avanessians Director of the Data Science Institute, Columbia University\n \n
\n\n
\n
Links applied to job details
\n George Boole\n Professor of Mathematics, \n Queen's College, Cork\n \n
\n\n\n\n\n", + "content": "
\n
Links applied to Name
\n \n Jeannette Wing\n Avanessians Director of the Data Science Institute, Columbia University\n \n
\n\n
\n
Links applied to job details
\n George Boole\n Professor of Mathematics, \n Queen's College, Cork\n \n
\n\n\n\n\n\n\n", "label": "Links" }, "demo/links/demo.css": { @@ -38,7 +38,7 @@ export const configure = project => project.config = { "demo/pattern/index.html": { "contentType": "text/html", "selected": false, - "content": "
\n
Squares pattern
\n \n
\n\n
\n
Triangles pattern
\n \n
\n\n\n\n\n", + "content": "
\n
Squares pattern
\n \n
\n\n
\n
Triangles pattern
\n \n
\n\n\n\n\n\n\n", "label": "Pattern" }, "demo/pattern/demo.css": { @@ -48,7 +48,7 @@ export const configure = project => project.config = { "demo/plain/index.html": { "contentType": "text/html", "selected": false, - "content": "
\n
Plain
\n \n \n \n \n
\n\n\n\n\n", + "content": "
\n
Plain
\n \n \n \n \n
\n\n\n\n\n\n\n", "label": "Plain" }, "demo/plain/demo.css": { @@ -58,7 +58,7 @@ export const configure = project => project.config = { "demo/position/index.html": { "contentType": "text/html", "selected": false, - "content": "
\n
Position Below
\n \n
\n\n\n\n\n", + "content": "
\n
Position Below
\n \n
\n\n\n\n\n\n\n", "label": "Position" }, "demo/position/demo.css": { @@ -68,7 +68,7 @@ export const configure = project => project.config = { "demo/sizes/index.html": { "contentType": "text/html", "selected": false, - "content": "
\n
--rh-size-icon-03
\n \n \n
\n\n
\n
--rh-size-icon-05
\n \n Co-founder, Intel\n \n
\n\n
\n
--rh-size-icon-06 (default)
\n \n \n
\n\n
\n
\n --rh-size-icon-08\n Avatars cannot be larger than --rh-size-icon-06\n
\n \n
\n\n\n\n\n", + "content": "
\n
--rh-size-icon-03
\n \n \n
\n\n
\n
--rh-size-icon-05
\n \n Co-founder, Intel\n \n
\n\n
\n
--rh-size-icon-06 (default)
\n \n \n
\n\n
\n
\n --rh-size-icon-08\n Avatars cannot be larger than --rh-size-icon-06\n
\n \n
\n\n\n\n\n\n\n", "label": "Sizes" }, "demo/sizes/demo.css": { @@ -78,7 +78,7 @@ export const configure = project => project.config = { "demo/subtitles/index.html": { "contentType": "text/html", "selected": false, - "content": "
\n
Long subtitle
\n Moses Schoenfinkle\n \n Inventor of Combinatorics,\n often uncreditted for inventing the process of \"currying\" functions,\n however, \"schoenfinkling\" doesn't exactly roll off the tongue, so we'll\n let it slide\n \n \n
\n\n\n\n\n", + "content": "
\n
Long subtitle
\n Moses Schoenfinkle\n \n Inventor of Combinatorics,\n often uncreditted for inventing the process of \"currying\" functions,\n however, \"schoenfinkling\" doesn't exactly roll off the tongue, so we'll\n let it slide\n \n \n
\n\n\n\n\n\n\n", "label": "Subtitles" }, "demo/subtitles/demo.css": { diff --git a/assets/playgrounds/rh-badge-playground.js b/assets/playgrounds/rh-badge-playground.js index 992b8b82ce..2e40f7b3d1 100644 --- a/assets/playgrounds/rh-badge-playground.js +++ b/assets/playgrounds/rh-badge-playground.js @@ -8,7 +8,7 @@ export const configure = project => project.config = { "demo/index.html": { "contentType": "text/html", "selected": true, - "content": "\n\n\n
\n
State: Default
\n
\n 7\n 24\n 240\n 999\n
\n\n
State: Info
\n
\n 7\n 24\n 240\n 999\n
\n\n
State: Success
\n
\n 7\n 24\n 240\n 999\n
\n\n
State: Moderate
\n
\n 7\n 24\n 240\n 999\n
\n\n
State: Important
\n
\n 7\n 24\n 240\n 999\n
\n\n
State: Critical
\n
\n 7\n 24\n 240\n 999\n
\n\n
Threshold exceeded
\n
\n 900 (Threshold = 100)\n

Should add '+' sign if the value exceeds the threshold

\n
\n\n
Threshold not exceeded
\n
\n 900\n (Threshold = 10000)\n

Shouldn't add a '+' sign if the value doesn't exceed the threshold

\n
\n
\n\n", + "content": "\n\n\n
\n
State: Default
\n
\n 7\n 24\n 240\n 999\n
\n\n
State: Info
\n
\n 7\n 24\n 240\n 999\n
\n\n
State: Success
\n
\n 7\n 24\n 240\n 999\n
\n\n
State: Moderate
\n
\n 7\n 24\n 240\n 999\n
\n\n
State: Important
\n
\n 7\n 24\n 240\n 999\n
\n\n
State: Critical
\n
\n 7\n 24\n 240\n 999\n
\n\n
Threshold exceeded
\n
\n 900 (Threshold = 100)\n

Should add '+' sign if the value exceeds the threshold

\n
\n\n
Threshold not exceeded
\n
\n 900\n (Threshold = 10000)\n

Shouldn't add a '+' sign if the value doesn't exceed the threshold

\n
\n
\n\n\n\n", "label": "Badge" }, "demo/demo.css": { diff --git a/assets/playgrounds/rh-blockquote-playground.js b/assets/playgrounds/rh-blockquote-playground.js index 65dd5ebd91..2cd76116d6 100644 --- a/assets/playgrounds/rh-blockquote-playground.js +++ b/assets/playgrounds/rh-blockquote-playground.js @@ -8,7 +8,7 @@ export const configure = project => project.config = { "demo/index.html": { "contentType": "text/html", "selected": true, - "content": "\n\n\n\n
\n

Light Theme

\n

Default

\n
\n \n \n

In open source, we feel strongly that to really do something well, you have to get a lot of people involved.

\n Linus Torvalds\n Software Engineer\n
\n\n

Default, Centered

\n \n

In open source, we feel strongly that to really do something well, you have to get a lot of people involved.

\n Linus Torvalds\n Software Engineer\n
\n\n

Default, Highlighted

\n \n

In open source, we feel strongly that to really do something well, you have to get a lot of people involved.

\n Linus Torvalds\n Software Engineer\n
\n\n

Large

\n \n

In open source, we feel strongly that to really do something well, you have to get a lot of people involved.

\n Linus Torvalds\n Software Engineer\n
\n
\n\n\n
\n

Dark Theme

\n

Default

\n
\n\n \n

In open source, we feel strongly that to really do something well, you have to get a lot of people involved.

\n Linus Torvalds\n Software Engineer\n
\n\n

Default, Centered

\n \n

In open source, we feel strongly that to really do something well, you have to get a lot of people involved.

\n Linus Torvalds\n Software Engineer\n
\n\n

Default, Highlighted

\n \n

In open source, we feel strongly that to really do something well, you have to get a lot of people involved.

\n Linus Torvalds\n Software Engineer\n
\n\n

Large

\n \n

In open source, we feel strongly that to really do something well, you have to get a lot of people involved.

\n Linus Torvalds\n Software Engineer\n
\n
\n", + "content": "\n\n\n\n
\n

Light Theme

\n

Default

\n
\n \n \n

In open source, we feel strongly that to really do something well, you have to get a lot of people involved.

\n Linus Torvalds\n Software Engineer\n
\n\n

Default, Centered

\n \n

In open source, we feel strongly that to really do something well, you have to get a lot of people involved.

\n Linus Torvalds\n Software Engineer\n
\n\n

Default, Highlighted

\n \n

In open source, we feel strongly that to really do something well, you have to get a lot of people involved.

\n Linus Torvalds\n Software Engineer\n
\n\n

Large

\n \n

In open source, we feel strongly that to really do something well, you have to get a lot of people involved.

\n Linus Torvalds\n Software Engineer\n
\n
\n\n\n
\n

Dark Theme

\n

Default

\n
\n\n \n

In open source, we feel strongly that to really do something well, you have to get a lot of people involved.

\n Linus Torvalds\n Software Engineer\n
\n\n

Default, Centered

\n \n

In open source, we feel strongly that to really do something well, you have to get a lot of people involved.

\n Linus Torvalds\n Software Engineer\n
\n\n

Default, Highlighted

\n \n

In open source, we feel strongly that to really do something well, you have to get a lot of people involved.

\n Linus Torvalds\n Software Engineer\n
\n\n

Large

\n \n

In open source, we feel strongly that to really do something well, you have to get a lot of people involved.

\n Linus Torvalds\n Software Engineer\n
\n
\n\n\n", "label": "Blockquote" }, "demo/demo.css": { diff --git a/assets/playgrounds/rh-button-playground.js b/assets/playgrounds/rh-button-playground.js index 12834551b6..01267bdca9 100644 --- a/assets/playgrounds/rh-button-playground.js +++ b/assets/playgrounds/rh-button-playground.js @@ -8,7 +8,7 @@ export const configure = project => project.config = { "demo/index.html": { "contentType": "text/html", "selected": true, - "content": "\n\n\n
\n

Variants

\n Danger\n Primary\n Link\n Secondary\n Secondary Danger\n Tertiary\n Close\n Play\n Disabled\n
\n", + "content": "\n\n\n
\n

Variants

\n Danger\n Primary\n Link\n Secondary\n Secondary Danger\n Tertiary\n Close\n Play\n Disabled\n
\n\n\n", "label": "Button" }, "demo/demo.css": { @@ -22,7 +22,7 @@ export const configure = project => project.config = { "demo/color-context/index.html": { "contentType": "text/html", "selected": false, - "content": "\n\n\n\n\n\n\n\n\n\n\n\n", + "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n", "label": "Color Context" }, "demo/color-context/demo.css": { @@ -40,7 +40,7 @@ export const configure = project => project.config = { "demo/form-control/index.html": { "contentType": "text/html", "selected": false, - "content": "\n\n\n\n
\n

Form Control

\n
\n
\n \n rh-button in a <fieldset> element;\n clicking this button must submit the form\n \n Submit\n
\n\n
\n Use these checkboxes to toggle disabled state\n \n \n \n \n
\n\n
\n Observe and reset form state\n Reset\n \n Pending\n
\n
\n
\n", + "content": "\n\n\n\n
\n

Form Control

\n
\n
\n \n rh-button in a <fieldset> element;\n clicking this button must submit the form\n \n Submit\n
\n\n
\n Use these checkboxes to toggle disabled state\n \n \n \n \n
\n\n
\n Observe and reset form state\n Reset\n \n Pending\n
\n
\n
\n\n\n", "label": "Form Control" }, "demo/form-control/demo.css": { diff --git a/assets/playgrounds/rh-card-playground.js b/assets/playgrounds/rh-card-playground.js index c7d4ea6282..7bea68c275 100644 --- a/assets/playgrounds/rh-card-playground.js +++ b/assets/playgrounds/rh-card-playground.js @@ -8,7 +8,7 @@ export const configure = project => project.config = { "demo/index.html": { "contentType": "text/html", "selected": true, - "content": "\n\n\n

Headline, sm

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n Nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. Pellentesque vel dapibus risus. Nullam aliquam\n felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

\n \n Call to action\n \n
\n", + "content": "\n\n\n

Headline, sm

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n Nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. Pellentesque vel dapibus risus. Nullam aliquam\n felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

\n \n Call to action\n \n
\n\n\n", "label": "Card" }, "demo/demo.css": { @@ -22,7 +22,7 @@ export const configure = project => project.config = { "demo/alignment/index.html": { "contentType": "text/html", "selected": false, - "content": "\n\n\n\n

Default

\n

\n lorem ipsum dolor sit amet, consectetur adipiscing elit. nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. pellentesque vel dapibus risus. nullam aliquam felis orci, eget cursus mi lacinia quis. vivamus at felis\n sem.\n

\n call to action\n
\n\n

Alignment Start

\n

\n lorem ipsum dolor sit amet, consectetur adipiscing elit. nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. pellentesque vel dapibus risus. nullam aliquam felis orci, eget cursus mi lacinia quis. vivamus at felis\n sem.\n

\n call to action\n
\n\n

Alignment Center

\n

\n lorem ipsum dolor sit amet, consectetur adipiscing elit. nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. pellentesque vel dapibus risus. nullam aliquam felis orci, eget cursus mi lacinia quis. vivamus at felis\n sem.\n

\n call to action\n
\n\n

Alignment End

\n

\n lorem ipsum dolor sit amet, consectetur adipiscing elit. nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. pellentesque vel dapibus risus. nullam aliquam felis orci, eget cursus mi lacinia quis. vivamus at felis\n sem.\n

\n call to action\n
\n\n

Default

\n

\n lorem ipsum dolor sit amet, consectetur adipiscing elit. nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. pellentesque vel dapibus risus. nullam aliquam felis orci, eget cursus mi lacinia quis. vivamus at felis\n sem.\n

\n call to action\n
\n\n

Alignment Start

\n

\n lorem ipsum dolor sit amet, consectetur adipiscing elit. nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. pellentesque vel dapibus risus. nullam aliquam felis orci, eget cursus mi lacinia quis. vivamus at felis\n sem.\n

\n call to action\n
\n\n

Alignment Center

\n

\n lorem ipsum dolor sit amet, consectetur adipiscing elit. nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. pellentesque vel dapibus risus. nullam aliquam felis orci, eget cursus mi lacinia quis. vivamus at felis\n sem.\n

\n call to action\n
\n\n

Alignment End

\n

\n lorem ipsum dolor sit amet, consectetur adipiscing elit. nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. pellentesque vel dapibus risus. nullam aliquam felis orci, eget cursus mi lacinia quis. vivamus at felis\n sem.\n

\n call to action\n
\n", + "content": "\n\n\n\n

Default

\n

\n lorem ipsum dolor sit amet, consectetur adipiscing elit. nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. pellentesque vel dapibus risus. nullam aliquam felis orci, eget cursus mi lacinia quis. vivamus at felis\n sem.\n

\n call to action\n
\n\n

Alignment Start

\n

\n lorem ipsum dolor sit amet, consectetur adipiscing elit. nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. pellentesque vel dapibus risus. nullam aliquam felis orci, eget cursus mi lacinia quis. vivamus at felis\n sem.\n

\n call to action\n
\n\n

Alignment Center

\n

\n lorem ipsum dolor sit amet, consectetur adipiscing elit. nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. pellentesque vel dapibus risus. nullam aliquam felis orci, eget cursus mi lacinia quis. vivamus at felis\n sem.\n

\n call to action\n
\n\n

Alignment End

\n

\n lorem ipsum dolor sit amet, consectetur adipiscing elit. nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. pellentesque vel dapibus risus. nullam aliquam felis orci, eget cursus mi lacinia quis. vivamus at felis\n sem.\n

\n call to action\n
\n\n

Default

\n

\n lorem ipsum dolor sit amet, consectetur adipiscing elit. nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. pellentesque vel dapibus risus. nullam aliquam felis orci, eget cursus mi lacinia quis. vivamus at felis\n sem.\n

\n call to action\n
\n\n

Alignment Start

\n

\n lorem ipsum dolor sit amet, consectetur adipiscing elit. nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. pellentesque vel dapibus risus. nullam aliquam felis orci, eget cursus mi lacinia quis. vivamus at felis\n sem.\n

\n call to action\n
\n\n

Alignment Center

\n

\n lorem ipsum dolor sit amet, consectetur adipiscing elit. nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. pellentesque vel dapibus risus. nullam aliquam felis orci, eget cursus mi lacinia quis. vivamus at felis\n sem.\n

\n call to action\n
\n\n

Alignment End

\n

\n lorem ipsum dolor sit amet, consectetur adipiscing elit. nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. pellentesque vel dapibus risus. nullam aliquam felis orci, eget cursus mi lacinia quis. vivamus at felis\n sem.\n

\n call to action\n
\n\n\n", "label": "Alignment" }, "demo/alignment/demo.css": { @@ -36,7 +36,7 @@ export const configure = project => project.config = { "demo/color-context/index.html": { "contentType": "text/html", "selected": false, - "content": "\n\n\n\n\n\n\n\n\n
\n
Default card, slotted content and footer
\n \n

Headline, sm

\n

\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est egestas, a\n sollicitudin mauris tincidunt. Pellentesque vel dapibus risus. Nullam aliquam felis orci, eget cursus mi\n lacinia quis. Vivamus at felis sem.\n

\n \n Call to action\n \n
\n
\n\n
\n
Slotted title, content, and footer
\n \n

Headline, sm

\n

\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est egestas, a\n sollicitudin mauris tincidunt. Pellentesque vel dapibus risus. Nullam aliquam felis orci, eget cursus mi\n lacinia quis. Vivamus at felis sem.\n

\n \n Call to action\n \n
\n
\n\n
\n
Alternative color scheme
\n \n

Headline, sm

\n

\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est egestas, a\n sollicitudin mauris tincidunt. Pellentesque vel dapibus risus. Nullam aliquam felis orci, eget cursus mi\n lacinia quis. Vivamus at felis sem.\n

\n \n Call to action\n \n
\n
\n\n
\n
Alternative color scheme and title bar
\n \n

Headline, sm

\n

\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est egestas, a\n sollicitudin mauris tincidunt. Pellentesque vel dapibus risus. Nullam aliquam felis orci, eget cursus mi\n lacinia quis. Vivamus at felis sem.\n

\n \n Call to action\n \n
\n
\n\n
\n
Title bar
\n \n

Headline, sm

\n

\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est egestas, a\n sollicitudin mauris tincidunt. Pellentesque vel dapibus risus. Nullam aliquam felis orci, eget cursus mi\n lacinia quis. Vivamus at felis sem.\n

\n \n Call to action\n \n
\n
\n\n
\n
Center aligned content, footer
\n \n

Headline, sm

\n

\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est egestas, a\n sollicitudin mauris tincidunt. Pellentesque vel dapibus risus. Nullam aliquam felis orci, eget cursus mi\n lacinia quis. Vivamus at felis sem.\n

\n \n Call to action\n \n
\n
\n\n
\n
End aligned content, footer
\n \n

Headline, sm

\n

\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est egestas, a\n sollicitudin mauris tincidunt. Pellentesque vel dapibus risus. Nullam aliquam felis orci, eget cursus mi\n lacinia quis. Vivamus at felis sem.\n

\n \n Call to action\n \n
\n
\n\n
\n
Card with slotted image header. Full width image.
\n \n \n

Heading, sm

\n

\n lorem ipsum dolor sit amet, consectetur adipiscing elit. nullam eleifend elit sed est egestas, a\n sollicitudin mauris\n tincidunt. pellentesque vel dapibus risus. nullam aliquam felis orci, eget cursus mi lacinia quis.\n vivamus\n at felis\n sem.\n

\n \n Call to action\n \n
\n
\n
\n", + "content": "\n\n\n\n\n\n\n\n\n
\n
Default card, slotted content and footer
\n \n

Headline, sm

\n

\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est egestas, a\n sollicitudin mauris tincidunt. Pellentesque vel dapibus risus. Nullam aliquam felis orci, eget cursus mi\n lacinia quis. Vivamus at felis sem.\n

\n \n Call to action\n \n
\n
\n\n
\n
Slotted title, content, and footer
\n \n

Headline, sm

\n

\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est egestas, a\n sollicitudin mauris tincidunt. Pellentesque vel dapibus risus. Nullam aliquam felis orci, eget cursus mi\n lacinia quis. Vivamus at felis sem.\n

\n \n Call to action\n \n
\n
\n\n
\n
Alternative color scheme
\n \n

Headline, sm

\n

\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est egestas, a\n sollicitudin mauris tincidunt. Pellentesque vel dapibus risus. Nullam aliquam felis orci, eget cursus mi\n lacinia quis. Vivamus at felis sem.\n

\n \n Call to action\n \n
\n
\n\n
\n
Alternative color scheme and title bar
\n \n

Headline, sm

\n

\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est egestas, a\n sollicitudin mauris tincidunt. Pellentesque vel dapibus risus. Nullam aliquam felis orci, eget cursus mi\n lacinia quis. Vivamus at felis sem.\n

\n \n Call to action\n \n
\n
\n\n
\n
Title bar
\n \n

Headline, sm

\n

\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est egestas, a\n sollicitudin mauris tincidunt. Pellentesque vel dapibus risus. Nullam aliquam felis orci, eget cursus mi\n lacinia quis. Vivamus at felis sem.\n

\n \n Call to action\n \n
\n
\n\n
\n
Center aligned content, footer
\n \n

Headline, sm

\n

\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est egestas, a\n sollicitudin mauris tincidunt. Pellentesque vel dapibus risus. Nullam aliquam felis orci, eget cursus mi\n lacinia quis. Vivamus at felis sem.\n

\n \n Call to action\n \n
\n
\n\n
\n
End aligned content, footer
\n \n

Headline, sm

\n

\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est egestas, a\n sollicitudin mauris tincidunt. Pellentesque vel dapibus risus. Nullam aliquam felis orci, eget cursus mi\n lacinia quis. Vivamus at felis sem.\n

\n \n Call to action\n \n
\n
\n\n
\n
Card with slotted image header. Full width image.
\n \n \n

Heading, sm

\n

\n lorem ipsum dolor sit amet, consectetur adipiscing elit. nullam eleifend elit sed est egestas, a\n sollicitudin mauris\n tincidunt. pellentesque vel dapibus risus. nullam aliquam felis orci, eget cursus mi lacinia quis.\n vivamus\n at felis\n sem.\n

\n \n Call to action\n \n
\n
\n
\n\n\n", "label": "Color Context" }, "demo/color-context/demo.css": { @@ -50,7 +50,7 @@ export const configure = project => project.config = { "demo/variants/index.html": { "contentType": "text/html", "selected": false, - "content": "\n\n\n
\n
\n
Default card, slotted content and footer
\n \n

Headline, sm

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n Nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. Pellentesque vel dapibus risus. Nullam aliquam\n felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

\n \n Call to action\n \n
\n
\n\n
\n
Slotted title, content, and footer
\n \n

Headline, sm

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n Nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. Pellentesque vel dapibus risus. Nullam aliquam\n felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

\n \n Call to action\n \n
\n
\n\n
\n
Alternative color scheme
\n \n

Headline, sm

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n Nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. Pellentesque vel dapibus risus. Nullam aliquam\n felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

\n \n Call to action\n \n
\n
\n\n
\n
Alternative color scheme and title bar
\n \n

Headline, sm

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n Nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. Pellentesque vel dapibus risus. Nullam aliquam\n felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

\n \n Call to action\n \n
\n
\n\n
\n
Title bar
\n \n

Headline, sm

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n Nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. Pellentesque vel dapibus risus. Nullam aliquam\n felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

\n \n Call to action\n \n
\n
\n\n
\n
Center aligned content, footer
\n \n

Headline, sm

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n Nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. Pellentesque vel dapibus risus. Nullam aliquam\n felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

\n \n Call to action\n \n
\n
\n\n
\n
End aligned content, footer
\n \n

Headline, sm

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n Nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. Pellentesque vel dapibus risus. Nullam aliquam\n felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

\n \n Call to action\n \n
\n
\n\n
\n
Card with slotted image header. Full width image.
\n \n \n

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n Nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. Pellentesque vel dapibus risus. Nullam aliquam\n felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

\n \n Call to action\n \n
\n
\n\n
\n
Card with slotted image header. Full width image.
\n \n \n

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n Nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. Pellentesque vel dapibus risus. Nullam aliquam\n felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

\n \n Call to action\n \n
\n
\n\n
\n
Card with slotted image header. Full width image.
\n \n \n

Headline, sm

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n Nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. Pellentesque vel dapibus risus. Nullam aliquam\n felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

\n \n Call to action\n \n
\n
\n
\n", + "content": "\n\n\n
\n
\n
Default card, slotted content and footer
\n \n

Headline, sm

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n Nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. Pellentesque vel dapibus risus. Nullam aliquam\n felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

\n \n Call to action\n \n
\n
\n\n
\n
Slotted title, content, and footer
\n \n

Headline, sm

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n Nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. Pellentesque vel dapibus risus. Nullam aliquam\n felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

\n \n Call to action\n \n
\n
\n\n
\n
Alternative color scheme
\n \n

Headline, sm

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n Nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. Pellentesque vel dapibus risus. Nullam aliquam\n felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

\n \n Call to action\n \n
\n
\n\n
\n
Alternative color scheme and title bar
\n \n

Headline, sm

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n Nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. Pellentesque vel dapibus risus. Nullam aliquam\n felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

\n \n Call to action\n \n
\n
\n\n
\n
Title bar
\n \n

Headline, sm

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n Nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. Pellentesque vel dapibus risus. Nullam aliquam\n felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

\n \n Call to action\n \n
\n
\n\n
\n
Center aligned content, footer
\n \n

Headline, sm

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n Nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. Pellentesque vel dapibus risus. Nullam aliquam\n felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

\n \n Call to action\n \n
\n
\n\n
\n
End aligned content, footer
\n \n

Headline, sm

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n Nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. Pellentesque vel dapibus risus. Nullam aliquam\n felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

\n \n Call to action\n \n
\n
\n\n
\n
Card with slotted image header. Full width image.
\n \n \n

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n Nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. Pellentesque vel dapibus risus. Nullam aliquam\n felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

\n \n Call to action\n \n
\n
\n\n
\n
Card with slotted image header. Full width image.
\n \n \n

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n Nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. Pellentesque vel dapibus risus. Nullam aliquam\n felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

\n \n Call to action\n \n
\n
\n\n
\n
Card with slotted image header. Full width image.
\n \n \n

Headline, sm

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n Nullam eleifend elit sed est egestas, a sollicitudin mauris\n tincidunt. Pellentesque vel dapibus risus. Nullam aliquam\n felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

\n \n Call to action\n \n
\n
\n
\n\n\n", "label": "Variants" }, "demo/variants/demo.css": { diff --git a/assets/playgrounds/rh-code-block-playground.js b/assets/playgrounds/rh-code-block-playground.js index 05d2e753f1..28613be46f 100644 --- a/assets/playgrounds/rh-code-block-playground.js +++ b/assets/playgrounds/rh-code-block-playground.js @@ -8,25 +8,25 @@ export const configure = project => project.config = { "demo/index.html": { "contentType": "text/html", "selected": true, - "content": "\n \n\n\n\n\n", + "content": "\n \n\n\n\n\n\n\n", "label": "Code Block" }, "demo/color-context/index.html": { "contentType": "text/html", "selected": false, - "content": "\n\n\n\n\n \n\n\n\n\n\n\n", + "content": "\n\n\n\n\n \n\n\n\n\n\n\n\n\n", "label": "Color Context" }, "demo/resizable/index.html": { "contentType": "text/html", "selected": false, - "content": "

Resizable

\n\n\n\n\n\n", + "content": "

Resizable

\n\n\n\n\n\n\n\n", "label": "Resizable" }, "demo/sizes/index.html": { "contentType": "text/html", "selected": false, - "content": "
\n

Sizes

\n

Standard

\n
\n\n\n \n\n\n\n \n\n\n

Compact

\n\n\n \n\n\n\n \n\n\n

No fixed width

\n\n\n \n\n\n\n \n\n\n\n\n\n", + "content": "
\n

Sizes

\n

Standard

\n
\n\n\n \n\n\n\n \n\n\n

Compact

\n\n\n \n\n\n\n \n\n\n

No fixed width

\n\n\n \n\n\n\n \n\n\n\n\n\n\n\n", "label": "Sizes" } } diff --git a/assets/playgrounds/rh-cta-playground.js b/assets/playgrounds/rh-cta-playground.js index f0be1b9524..7d2bdbd660 100644 --- a/assets/playgrounds/rh-cta-playground.js +++ b/assets/playgrounds/rh-cta-playground.js @@ -8,13 +8,13 @@ export const configure = project => project.config = { "demo/index.html": { "contentType": "text/html", "selected": true, - "content": "\n Call to Action\n\n\n\n", + "content": "\n Call to Action\n\n\n\n\n\n", "label": "Call to action" }, "demo/analytics/index.html": { "contentType": "text/html", "selected": false, - "content": "

In this demo, analytics events involving <rh-cta> elements are parsed by a\n document-level analytics event listener. Unlike <pfe-cta>, which implemented\n support for analytics internally, <rh-cta> users must implement their own\n analytics code, taking this demo as an example.

\n\n
\nfunction deepClosest(event, selector) {\n  for (const node of event.composedPath().reverse()) {\n    if (node.matches?.(selector)) {\n      return node;\n    }\n  }\n  return event.target.closest(selector);\n}\n\ndocument.addEventListener('click', function(event) {\n  const cta = deepClosest(event, 'rh-cta');\n  if (cta) {\n    const { href, text, title } = cta.cta;\n    const color = cta.colorPalette;\n    const type = cta.variant;\n    console.log('CTA ANALYTICS EVENT', { href, text, title, color, type });\n  }\n});\n
\n\n
\n

Simple Case: Light DOM Analytics

\n Default\n Primary\n Secondary\n Brick\n
\n\n
\n

Advanced Case: Deep Shadow Analytics

\n \n \n \n
\n\n
\n

Complex Case: Slotted Link, Deep CTA Analytics

\n \n Default\n Primary\n Secondary\n Brick\n \n
\n\n

Last CTA Analytics Event

\n{}\n\n\n\n\n\n\n\n\n", + "content": "

In this demo, analytics events involving <rh-cta> elements are parsed by a\n document-level analytics event listener. Unlike <pfe-cta>, which implemented\n support for analytics internally, <rh-cta> users must implement their own\n analytics code, taking this demo as an example.

\n\n
\nfunction deepClosest(event, selector) {\n  for (const node of event.composedPath().reverse()) {\n    if (node.matches?.(selector)) {\n      return node;\n    }\n  }\n  return event.target.closest(selector);\n}\n\ndocument.addEventListener('click', function(event) {\n  const cta = deepClosest(event, 'rh-cta');\n  if (cta) {\n    const { href, text, title } = cta.cta;\n    const color = cta.colorPalette;\n    const type = cta.variant;\n    console.log('CTA ANALYTICS EVENT', { href, text, title, color, type });\n  }\n});\n
\n\n
\n

Simple Case: Light DOM Analytics

\n Default\n Primary\n Secondary\n Brick\n
\n\n
\n

Advanced Case: Deep Shadow Analytics

\n \n \n \n
\n\n
\n

Complex Case: Slotted Link, Deep CTA Analytics

\n \n Default\n Primary\n Secondary\n Brick\n \n
\n\n

Last CTA Analytics Event

\n{}\n\n\n\n\n\n\n\n\n\n\n", "label": "Analytics" }, "demo/analytics/assets/prism.css": { @@ -24,37 +24,37 @@ export const configure = project => project.config = { "demo/brick/index.html": { "contentType": "text/html", "selected": false, - "content": "\n\n\n\n\n", + "content": "\n\n\n\n\n\n\n", "label": "Brick" }, "demo/button/index.html": { "contentType": "text/html", "selected": false, - "content": "
\n

Links

\n \n Link\n \n\n \n Link\n \n\n \n Link\n \n
\n\n
\n

Buttons

\n \n \n \n\n \n \n \n\n \n \n \n
\n\n\n\n\n", + "content": "
\n

Links

\n \n Link\n \n\n \n Link\n \n\n \n Link\n \n
\n\n
\n

Buttons

\n \n \n \n\n \n \n \n\n \n \n \n
\n\n\n\n\n\n\n", "label": "Button" }, "demo/color-context/index.html": { "contentType": "text/html", "selected": false, - "content": "\n\n\n Default\n Default Video\n Primary\n Video\n Secondary\n Brick\n Brick Video\n\n\n\n\n\n\n", + "content": "\n\n\n Default\n Default Video\n Primary\n Video\n Secondary\n Brick\n Brick Video\n\n\n\n\n\n\n\n\n", "label": "Color Context" }, "demo/resizing/index.html": { "contentType": "text/html", "selected": false, - "content": "
\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n

No matter the container size, the arrow trailing the CTA message should never appear on a line by itself.

\n\n \n\n \n\n

Long words should break in the middle

\n\n \n\n \n\n \n\n \n\n \n\n \n\n \n
\n\n\n\n\n", + "content": "
\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n

No matter the container size, the arrow trailing the CTA message should never appear on a line by itself.

\n\n \n\n \n\n

Long words should break in the middle

\n\n \n\n \n\n \n\n \n\n \n\n \n\n \n
\n\n\n\n\n\n\n", "label": "Resizing" }, "demo/right-to-left/index.html": { "contentType": "text/html", "selected": false, - "content": "
\n
\n

Right-to-Left Languages

\n
\n\n \n
\n\n
\n
\n

Deep Shadow RTL

\n

\n When the CTA is found within the shadow root of an element which is itself within a RTL context,\n it's own contents should also be displayed right-to-left, including the various box models, the placement\n of the icon, and the direction of the arrow. Authors should not need to specify the direction with the\n dir=\"rtl\" attribute if it is added to a containing element.\n In this demo, the shadow root's host element has a light blue background colour, in order distinguish it from the document content.\n

\n
\n \n \n \n
\n\n\n\n\n\n", + "content": "
\n
\n

Right-to-Left Languages

\n
\n\n \n
\n\n
\n
\n

Deep Shadow RTL

\n

\n When the CTA is found within the shadow root of an element which is itself within a RTL context,\n it's own contents should also be displayed right-to-left, including the various box models, the placement\n of the icon, and the direction of the arrow. Authors should not need to specify the direction with the\n dir=\"rtl\" attribute if it is added to a containing element.\n In this demo, the shadow root's host element has a light blue background colour, in order distinguish it from the document content.\n

\n
\n \n \n \n
\n\n\n\n\n\n\n\n", "label": "Right To Left" }, "demo/variants/index.html": { "contentType": "text/html", "selected": false, - "content": "
\n \n Default\n \n\n \n Default Video\n \n\n \n Primary\n \n\n \n Video\n \n\n \n Secondary\n \n\n
\n \n Brick\n \n \n Brick Icon\n \n
\n
\n\n\n\n\n\n", + "content": "
\n \n Default\n \n\n \n Default Video\n \n\n \n Primary\n \n\n \n Video\n \n\n \n Secondary\n \n\n
\n \n Brick\n \n \n Brick Icon\n \n
\n
\n\n\n\n\n\n\n\n", "label": "Variants" } } diff --git a/assets/playgrounds/rh-dialog-playground.js b/assets/playgrounds/rh-dialog-playground.js index 22f23b763d..babde64acc 100644 --- a/assets/playgrounds/rh-dialog-playground.js +++ b/assets/playgrounds/rh-dialog-playground.js @@ -8,7 +8,7 @@ export const configure = project => project.config = { "demo/index.html": { "contentType": "text/html", "selected": true, - "content": "\n\n\n
\n
Standard modal dialog
\n
\n Open\n
\n\n
Video modal dialog
\n
\n Open\n
\n\n
YouTube embed modal dialog
\n
\n Open\n
\n\n
No header content
\n
\n Open\n
\n\n
No headings
\n
\n Open\n
\n\n
A lot of content
\n
\n Open\n
\n
\n\n\n

Modal dialog with a header

\n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt\n ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut\n aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu\n fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit\n anim id est laborum.

\n \n Learn more\n \n
\n\n\n \n\n\n\n \n\n\n\n

A modal with no slotted header content

\n

This has no header content

\n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore\n magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo\n consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla\n pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est\n laborum.

\n \n Call-to-action\n \n
\n\n\n

This modal doesn't have any headings. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\n tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco\n laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse\n cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui\n officia deserunt mollit anim id est laborum.

\n \n Call-to-action\n \n
\n\n\n

Modal with a header with a truly excessive super duper long title containing entirely too many words and in addition to the remarkably verbose title it also contains and a lot of content

\n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor\n incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco\n laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit\n esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa\n qui officia deserunt mollit anim id est laborum.

\n

Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Sed posuere\n consectetur est at lobortis. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.

\n

Cras justo odio, dapibus ac facilisis in, egestas eget quam. Cum sociis natoque penatibus et magnis dis\n parturient montes, nascetur ridiculus mus. Curabitur blandit tempus porttitor. Lorem ipsum dolor sit amet,\n consectetur adipiscing elit. Curabitur blandit tempus porttitor. Duis mollis, est non commodo luctus, nisi\n erat porttitor ligula, eget lacinia odio sem nec elit. Curabitur blandit tempus porttitor.

\n

Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec sed\n odio dui. Maecenas faucibus mollis interdum. Fusce dapibus, tellus ac cursus commodo, tortor mauris\n condimentum nibh, ut fermentum massa justo sit amet risus.

\n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor\n incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco\n laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit\n esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa\n qui officia deserunt mollit anim id est laborum.

\n

Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Sed posuere\n consectetur est at lobortis. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.

\n

Cras justo odio, dapibus ac facilisis in, egestas eget quam. Cum sociis natoque penatibus et magnis dis\n parturient montes, nascetur ridiculus mus. Curabitur blandit tempus porttitor. Lorem ipsum dolor sit amet,\n consectetur adipiscing elit. Curabitur blandit tempus porttitor. Duis mollis, est non commodo luctus, nisi\n erat porttitor ligula, eget lacinia odio sem nec elit. Curabitur blandit tempus porttitor.

\n

Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec sed\n odio dui. Maecenas faucibus mollis interdum. Fusce dapibus, tellus ac cursus commodo, tortor mauris\n condimentum nibh, ut fermentum massa justo sit amet risus.

\n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor\n incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco\n laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit\n esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa\n qui officia deserunt mollit anim id est laborum.

\n

Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Sed posuere\n consectetur est at lobortis. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.

\n

Cras justo odio, dapibus ac facilisis in, egestas eget quam. Cum sociis natoque penatibus et magnis dis\n parturient montes, nascetur ridiculus mus. Curabitur blandit tempus porttitor. Lorem ipsum dolor sit amet,\n consectetur adipiscing elit. Curabitur blandit tempus porttitor. Duis mollis, est non commodo luctus, nisi\n erat porttitor ligula, eget lacinia odio sem nec elit. Curabitur blandit tempus porttitor.

\n

Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec sed\n odio dui. Maecenas faucibus mollis interdum. Fusce dapibus, tellus ac cursus commodo, tortor mauris\n condimentum nibh, ut fermentum massa justo sit amet risus.

\n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor\n incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco\n laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit\n esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa\n qui officia deserunt mollit anim id est laborum.

\n

Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Sed posuere\n consectetur est at lobortis. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.

\n

Cras justo odio, dapibus ac facilisis in, egestas eget quam. Cum sociis natoque penatibus et magnis dis\n parturient montes, nascetur ridiculus mus. Curabitur blandit tempus porttitor. Lorem ipsum dolor sit amet,\n consectetur adipiscing elit. Curabitur blandit tempus porttitor. Duis mollis, est non commodo luctus, nisi\n erat porttitor ligula, eget lacinia odio sem nec elit. Curabitur blandit tempus porttitor.

\n

Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec sed\n odio dui. Maecenas faucibus mollis interdum. Fusce dapibus, tellus ac cursus commodo, tortor mauris\n condimentum nibh, ut fermentum massa justo sit amet risus.

\n \n Learn more\n \n
\n\n
\n

Color Context

\n \n

Light

\n \n

Light Context

\n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor\n incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco\n laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit\n esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa\n qui officia deserunt mollit anim id est laborum.

\n

Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Sed posuere\n consectetur est at lobortis. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.

\n

Cras justo odio, dapibus ac facilisis in, egestas eget quam. Cum sociis natoque penatibus et magnis dis\n parturient montes, nascetur ridiculus mus. Curabitur blandit tempus porttitor. Lorem ipsum dolor sit amet,\n consectetur adipiscing elit. Curabitur blandit tempus porttitor. Duis mollis, est non commodo luctus, nisi\n erat porttitor ligula, eget lacinia odio sem nec elit. Curabitur blandit tempus porttitor.

\n

Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec sed\n odio dui. Maecenas faucibus mollis interdum. Fusce dapibus, tellus ac cursus commodo, tortor mauris\n condimentum nibh, ut fermentum massa justo sit amet risus.

\n \n Learn more\n \n
\n Open Dialog\n
\n\n \n

Dark

\n \n

Dark Context

\n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor\n incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco\n laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit\n esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa\n qui officia deserunt mollit anim id est laborum.

\n

Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Sed posuere\n consectetur est at lobortis. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.

\n

Cras justo odio, dapibus ac facilisis in, egestas eget quam. Cum sociis natoque penatibus et magnis dis\n parturient montes, nascetur ridiculus mus. Curabitur blandit tempus porttitor. Lorem ipsum dolor sit amet,\n consectetur adipiscing elit. Curabitur blandit tempus porttitor. Duis mollis, est non commodo luctus, nisi\n erat porttitor ligula, eget lacinia odio sem nec elit. Curabitur blandit tempus porttitor.

\n

Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec sed\n odio dui. Maecenas faucibus mollis interdum. Fusce dapibus, tellus ac cursus commodo, tortor mauris\n condimentum nibh, ut fermentum massa justo sit amet risus.

\n \n Learn more\n \n
\n Open Dialog\n
\n\n
\n", + "content": "\n\n\n
\n
Standard modal dialog
\n
\n Open\n
\n\n
Video modal dialog
\n
\n Open\n
\n\n
YouTube embed modal dialog
\n
\n Open\n
\n\n
No header content
\n
\n Open\n
\n\n
No headings
\n
\n Open\n
\n\n
A lot of content
\n
\n Open\n
\n
\n\n\n

Modal dialog with a header

\n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt\n ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut\n aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu\n fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit\n anim id est laborum.

\n \n Learn more\n \n
\n\n\n \n\n\n\n \n\n\n\n

A modal with no slotted header content

\n

This has no header content

\n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore\n magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo\n consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla\n pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est\n laborum.

\n \n Call-to-action\n \n
\n\n\n

This modal doesn't have any headings. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\n tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco\n laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse\n cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui\n officia deserunt mollit anim id est laborum.

\n \n Call-to-action\n \n
\n\n\n

Modal with a header with a truly excessive super duper long title containing entirely too many words and in addition to the remarkably verbose title it also contains and a lot of content

\n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor\n incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco\n laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit\n esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa\n qui officia deserunt mollit anim id est laborum.

\n

Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Sed posuere\n consectetur est at lobortis. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.

\n

Cras justo odio, dapibus ac facilisis in, egestas eget quam. Cum sociis natoque penatibus et magnis dis\n parturient montes, nascetur ridiculus mus. Curabitur blandit tempus porttitor. Lorem ipsum dolor sit amet,\n consectetur adipiscing elit. Curabitur blandit tempus porttitor. Duis mollis, est non commodo luctus, nisi\n erat porttitor ligula, eget lacinia odio sem nec elit. Curabitur blandit tempus porttitor.

\n

Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec sed\n odio dui. Maecenas faucibus mollis interdum. Fusce dapibus, tellus ac cursus commodo, tortor mauris\n condimentum nibh, ut fermentum massa justo sit amet risus.

\n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor\n incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco\n laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit\n esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa\n qui officia deserunt mollit anim id est laborum.

\n

Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Sed posuere\n consectetur est at lobortis. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.

\n

Cras justo odio, dapibus ac facilisis in, egestas eget quam. Cum sociis natoque penatibus et magnis dis\n parturient montes, nascetur ridiculus mus. Curabitur blandit tempus porttitor. Lorem ipsum dolor sit amet,\n consectetur adipiscing elit. Curabitur blandit tempus porttitor. Duis mollis, est non commodo luctus, nisi\n erat porttitor ligula, eget lacinia odio sem nec elit. Curabitur blandit tempus porttitor.

\n

Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec sed\n odio dui. Maecenas faucibus mollis interdum. Fusce dapibus, tellus ac cursus commodo, tortor mauris\n condimentum nibh, ut fermentum massa justo sit amet risus.

\n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor\n incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco\n laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit\n esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa\n qui officia deserunt mollit anim id est laborum.

\n

Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Sed posuere\n consectetur est at lobortis. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.

\n

Cras justo odio, dapibus ac facilisis in, egestas eget quam. Cum sociis natoque penatibus et magnis dis\n parturient montes, nascetur ridiculus mus. Curabitur blandit tempus porttitor. Lorem ipsum dolor sit amet,\n consectetur adipiscing elit. Curabitur blandit tempus porttitor. Duis mollis, est non commodo luctus, nisi\n erat porttitor ligula, eget lacinia odio sem nec elit. Curabitur blandit tempus porttitor.

\n

Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec sed\n odio dui. Maecenas faucibus mollis interdum. Fusce dapibus, tellus ac cursus commodo, tortor mauris\n condimentum nibh, ut fermentum massa justo sit amet risus.

\n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor\n incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco\n laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit\n esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa\n qui officia deserunt mollit anim id est laborum.

\n

Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Sed posuere\n consectetur est at lobortis. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.

\n

Cras justo odio, dapibus ac facilisis in, egestas eget quam. Cum sociis natoque penatibus et magnis dis\n parturient montes, nascetur ridiculus mus. Curabitur blandit tempus porttitor. Lorem ipsum dolor sit amet,\n consectetur adipiscing elit. Curabitur blandit tempus porttitor. Duis mollis, est non commodo luctus, nisi\n erat porttitor ligula, eget lacinia odio sem nec elit. Curabitur blandit tempus porttitor.

\n

Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec sed\n odio dui. Maecenas faucibus mollis interdum. Fusce dapibus, tellus ac cursus commodo, tortor mauris\n condimentum nibh, ut fermentum massa justo sit amet risus.

\n \n Learn more\n \n
\n\n
\n

Color Context

\n \n

Light

\n \n

Light Context

\n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor\n incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco\n laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit\n esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa\n qui officia deserunt mollit anim id est laborum.

\n

Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Sed posuere\n consectetur est at lobortis. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.

\n

Cras justo odio, dapibus ac facilisis in, egestas eget quam. Cum sociis natoque penatibus et magnis dis\n parturient montes, nascetur ridiculus mus. Curabitur blandit tempus porttitor. Lorem ipsum dolor sit amet,\n consectetur adipiscing elit. Curabitur blandit tempus porttitor. Duis mollis, est non commodo luctus, nisi\n erat porttitor ligula, eget lacinia odio sem nec elit. Curabitur blandit tempus porttitor.

\n

Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec sed\n odio dui. Maecenas faucibus mollis interdum. Fusce dapibus, tellus ac cursus commodo, tortor mauris\n condimentum nibh, ut fermentum massa justo sit amet risus.

\n \n Learn more\n \n
\n Open Dialog\n
\n\n \n

Dark

\n \n

Dark Context

\n

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor\n incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco\n laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit\n esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa\n qui officia deserunt mollit anim id est laborum.

\n

Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Sed posuere\n consectetur est at lobortis. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.

\n

Cras justo odio, dapibus ac facilisis in, egestas eget quam. Cum sociis natoque penatibus et magnis dis\n parturient montes, nascetur ridiculus mus. Curabitur blandit tempus porttitor. Lorem ipsum dolor sit amet,\n consectetur adipiscing elit. Curabitur blandit tempus porttitor. Duis mollis, est non commodo luctus, nisi\n erat porttitor ligula, eget lacinia odio sem nec elit. Curabitur blandit tempus porttitor.

\n

Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec sed\n odio dui. Maecenas faucibus mollis interdum. Fusce dapibus, tellus ac cursus commodo, tortor mauris\n condimentum nibh, ut fermentum massa justo sit amet risus.

\n \n Learn more\n \n
\n Open Dialog\n
\n\n
\n\n\n", "label": "Dialog" }, "demo/demo.css": { diff --git a/assets/playgrounds/rh-footer-playground.js b/assets/playgrounds/rh-footer-playground.js index d90f578171..ac94d4bb93 100644 --- a/assets/playgrounds/rh-footer-playground.js +++ b/assets/playgrounds/rh-footer-playground.js @@ -8,7 +8,7 @@ export const configure = project => project.config = { "demo/index.html": { "contentType": "text/html", "selected": true, - "content": "\n\n\n\n\n\n\n\n\n\n \n \"Red\n \n LinkedIn\n YouTube\n Facebook\n Twitter\n

Products

\n \n

Tools

\n \n

Try, buy & sell

\n \n

Communicate

\n \n \n

About Red Hat

\n

We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

\n
\n \n

Subscribe to our newsletter, Red Hat Shares

\n Sign up now\n
\n\n \n \n \n \n © 2022 Red Hat, Inc.\n \n \n \n
\n", + "content": "\n\n\n\n\n\n\n\n\n\n \n \"Red\n \n LinkedIn\n YouTube\n Facebook\n Twitter\n

Products

\n \n

Tools

\n \n

Try, buy & sell

\n \n

Communicate

\n \n \n

About Red Hat

\n

We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

\n
\n \n

Subscribe to our newsletter, Red Hat Shares

\n Sign up now\n
\n\n \n \n \n \n © 2022 Red Hat, Inc.\n \n \n \n
\n\n\n", "label": "Footer" }, "rh-footer-lightdom.css": { @@ -22,7 +22,7 @@ export const configure = project => project.config = { "demo/footer-universal/index.html": { "contentType": "text/html", "selected": false, - "content": "\n\n\n\n\n\n\n\n \n \n © 2022 Red Hat, Inc.\n \n \n\n\n", + "content": "\n\n\n\n\n\n\n\n \n \n © 2022 Red Hat, Inc.\n \n \n\n\n\n\n", "label": "Footer Universal" }, "demo/footer-universal/footer-universal.css": { diff --git a/assets/playgrounds/rh-menu-playground.js b/assets/playgrounds/rh-menu-playground.js index 434e3ea44c..60efacdaa4 100644 --- a/assets/playgrounds/rh-menu-playground.js +++ b/assets/playgrounds/rh-menu-playground.js @@ -8,13 +8,13 @@ export const configure = project => project.config = { "demo/index.html": { "contentType": "text/html", "selected": true, - "content": "\n Toggle Menu\n Menuitem1\n Menuitem2\n Menuitem3\n Menuitem4\n\n\n\n\n", + "content": "\n Toggle Menu\n Menuitem1\n Menuitem2\n Menuitem3\n Menuitem4\n\n\n\n\n\n\n", "label": "Menu" }, "demo/positioning/index.html": { "contentType": "text/html", "selected": false, - "content": "\n

Default, positioned bottom

\n

\n \n Toggle Menu\n Menuitem1\n Menuitem2\n Menuitem3\n Menuitem4\n \n

\n

Positioned right or left

\n

\n \n Toggle Links\n Link1\n Link2\n Link3\n Link4\n \n \n Toggle Settings\n Menuitem1\n Menuitem2\n Menuitem3\n Menuitem4\n \n

\n

Positioned top\n

\n \n Toggle Links\n Link1\n Link2\n Link3\n Link4\n \n \n Settings\n Menuitem1\n Menuitem2\n Menuitem3\n Menuitem4\n \n

\n

\n \n Toggle Menu\n Menuitem1\n Menuitem2\n Menuitem3\n Menuitem4\n \n

\n
\n\n

Default, positioned bottom

\n

\n \n Toggle Menu\n Menuitem1\n Menuitem2\n Menuitem3\n Menuitem4\n \n

\n

Positioned right or left

\n

\n \n Toggle Links\n Link1\n Link2\n Link3\n Link4\n \n \n Toggle Settings\n Menuitem1\n Menuitem2\n Menuitem3\n Menuitem4\n \n

\n

Positioned top

\n

\n \n Toggle Menu\n Menuitem1\n Menuitem2\n Menuitem3\n Menuitem4\n \n

\n
\n\n\n\n\n", + "content": "\n

Default, positioned bottom

\n

\n \n Toggle Menu\n Menuitem1\n Menuitem2\n Menuitem3\n Menuitem4\n \n

\n

Positioned right or left

\n

\n \n Toggle Links\n Link1\n Link2\n Link3\n Link4\n \n \n Toggle Settings\n Menuitem1\n Menuitem2\n Menuitem3\n Menuitem4\n \n

\n

Positioned top\n

\n \n Toggle Links\n Link1\n Link2\n Link3\n Link4\n \n \n Settings\n Menuitem1\n Menuitem2\n Menuitem3\n Menuitem4\n \n

\n

\n \n Toggle Menu\n Menuitem1\n Menuitem2\n Menuitem3\n Menuitem4\n \n

\n
\n\n

Default, positioned bottom

\n

\n \n Toggle Menu\n Menuitem1\n Menuitem2\n Menuitem3\n Menuitem4\n \n

\n

Positioned right or left

\n

\n \n Toggle Links\n Link1\n Link2\n Link3\n Link4\n \n \n Toggle Settings\n Menuitem1\n Menuitem2\n Menuitem3\n Menuitem4\n \n

\n

Positioned top

\n

\n \n Toggle Menu\n Menuitem1\n Menuitem2\n Menuitem3\n Menuitem4\n \n

\n
\n\n\n\n\n\n\n", "label": "Positioning" }, "demo/positioning/demo.css": { diff --git a/assets/playgrounds/rh-navigation-secondary-playground.js b/assets/playgrounds/rh-navigation-secondary-playground.js index 8e81c4245d..93cfd6c749 100644 --- a/assets/playgrounds/rh-navigation-secondary-playground.js +++ b/assets/playgrounds/rh-navigation-secondary-playground.js @@ -8,7 +8,7 @@ export const configure = project => project.config = { "demo/index.html": { "contentType": "text/html", "selected": true, - "content": "\n\n\n\n\n \n Logo/Title\n \n \n \n Call to Action\n \n\n\n\n
\n

Content Placeholder

\n Link placeholder\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt luctus odio, vitae accumsan tortor sagittis et. Integer facilisis rutrum suscipit. Morbi elementum purus vel varius tincidunt. Nulla fringilla lacus a nulla vehicula tincidunt. Praesent a turpis et elit laoreet ullamcorper et et metus. Praesent malesuada massa in tellus bibendum congue. Curabitur mollis purus et metus eleifend sagittis. Vivamus fringilla tincidunt sem id euismod. Maecenas a vestibulum nisl. Sed libero metus, ultrices in tortor facilisis, semper rhoncus nunc. Nullam ut diam et felis posuere lobortis vitae id leo. Sed hendrerit ex libero, a faucibus tellus maximus et. Aliquam erat volutpat. Phasellus vestibulum a lacus eget eleifend. Pellentesque ipsum nunc, scelerisque non neque id, bibendum vestibulum ante.

\n

Maecenas venenatis sollicitudin leo, vitae tincidunt lectus dapibus vel. Integer quis sapien dui. Nulla sagittis dapibus suscipit. Pellentesque consequat dapibus lorem id feugiat. Fusce ornare sapien at lacus porta maximus. Praesent gravida faucibus tellus et lobortis. Praesent ullamcorper facilisis semper. Praesent lobortis enim lacus, ut facilisis ex tristique in. Sed lobortis tortor ut sem lacinia pharetra. Nunc a varius risus. Proin volutpat eget justo quis fermentum. Nunc quis vestibulum ipsum. Donec vulputate laoreet sapien id mattis. Phasellus non enim laoreet, euismod mauris vel, vulputate est.

\n

Vivamus porta massa at nulla eleifend, a pellentesque eros dictum. Nam finibus nibh purus, in placerat nulla elementum at. Integer quis est condimentum, tempor mi ac, dapibus ante. Pellentesque fringilla hendrerit est, ut ultricies orci condimentum viverra. Aliquam a lacus consequat dolor vestibulum euismod eget quis ipsum. Pellentesque viverra, libero sed euismod consectetur, turpis nulla tristique massa, vel ultricies massa arcu sit amet mauris. Donec aliquet tortor ante, ut pulvinar odio gravida et. Proin laoreet et elit at tempus. In aliquam erat lacus, in volutpat neque faucibus a.

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt luctus odio, vitae accumsan tortor sagittis et. Integer facilisis rutrum suscipit. Morbi elementum purus vel varius tincidunt. Nulla fringilla lacus a nulla vehicula tincidunt. Praesent a turpis et elit laoreet ullamcorper et et metus. Praesent malesuada massa in tellus bibendum congue. Curabitur mollis purus et metus eleifend sagittis. Vivamus fringilla tincidunt sem id euismod. Maecenas a vestibulum nisl. Sed libero metus, ultrices in tortor facilisis, semper rhoncus nunc. Nullam ut diam et felis posuere lobortis vitae id leo. Sed hendrerit ex libero, a faucibus tellus maximus et. Aliquam erat volutpat. Phasellus vestibulum a lacus eget eleifend. Pellentesque ipsum nunc, scelerisque non neque id, bibendum vestibulum ante.

\n

Maecenas venenatis sollicitudin leo, vitae tincidunt lectus dapibus vel. Integer quis sapien dui. Nulla sagittis dapibus suscipit. Pellentesque consequat dapibus lorem id feugiat. Fusce ornare sapien at lacus porta maximus. Praesent gravida faucibus tellus et lobortis. Praesent ullamcorper facilisis semper. Praesent lobortis enim lacus, ut facilisis ex tristique in. Sed lobortis tortor ut sem lacinia pharetra. Nunc a varius risus. Proin volutpat eget justo quis fermentum. Nunc quis vestibulum ipsum. Donec vulputate laoreet sapien id mattis. Phasellus non enim laoreet, euismod mauris vel, vulputate est.

\n

Vivamus porta massa at nulla eleifend, a pellentesque eros dictum. Nam finibus nibh purus, in placerat nulla elementum at. Integer quis est condimentum, tempor mi ac, dapibus ante. Pellentesque fringilla hendrerit est, ut ultricies orci condimentum viverra. Aliquam a lacus consequat dolor vestibulum euismod eget quis ipsum. Pellentesque viverra, libero sed euismod consectetur, turpis nulla tristique massa, vel ultricies massa arcu sit amet mauris. Donec aliquet tortor ante, ut pulvinar odio gravida et. Proin laoreet et elit at tempus. In aliquam erat lacus, in volutpat neque faucibus a.

\n
\n
\n\n\n", + "content": "\n\n\n\n\n \n Logo/Title\n \n \n \n Call to Action\n \n\n\n\n
\n

Content Placeholder

\n Link placeholder\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt luctus odio, vitae accumsan tortor sagittis et. Integer facilisis rutrum suscipit. Morbi elementum purus vel varius tincidunt. Nulla fringilla lacus a nulla vehicula tincidunt. Praesent a turpis et elit laoreet ullamcorper et et metus. Praesent malesuada massa in tellus bibendum congue. Curabitur mollis purus et metus eleifend sagittis. Vivamus fringilla tincidunt sem id euismod. Maecenas a vestibulum nisl. Sed libero metus, ultrices in tortor facilisis, semper rhoncus nunc. Nullam ut diam et felis posuere lobortis vitae id leo. Sed hendrerit ex libero, a faucibus tellus maximus et. Aliquam erat volutpat. Phasellus vestibulum a lacus eget eleifend. Pellentesque ipsum nunc, scelerisque non neque id, bibendum vestibulum ante.

\n

Maecenas venenatis sollicitudin leo, vitae tincidunt lectus dapibus vel. Integer quis sapien dui. Nulla sagittis dapibus suscipit. Pellentesque consequat dapibus lorem id feugiat. Fusce ornare sapien at lacus porta maximus. Praesent gravida faucibus tellus et lobortis. Praesent ullamcorper facilisis semper. Praesent lobortis enim lacus, ut facilisis ex tristique in. Sed lobortis tortor ut sem lacinia pharetra. Nunc a varius risus. Proin volutpat eget justo quis fermentum. Nunc quis vestibulum ipsum. Donec vulputate laoreet sapien id mattis. Phasellus non enim laoreet, euismod mauris vel, vulputate est.

\n

Vivamus porta massa at nulla eleifend, a pellentesque eros dictum. Nam finibus nibh purus, in placerat nulla elementum at. Integer quis est condimentum, tempor mi ac, dapibus ante. Pellentesque fringilla hendrerit est, ut ultricies orci condimentum viverra. Aliquam a lacus consequat dolor vestibulum euismod eget quis ipsum. Pellentesque viverra, libero sed euismod consectetur, turpis nulla tristique massa, vel ultricies massa arcu sit amet mauris. Donec aliquet tortor ante, ut pulvinar odio gravida et. Proin laoreet et elit at tempus. In aliquam erat lacus, in volutpat neque faucibus a.

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt luctus odio, vitae accumsan tortor sagittis et. Integer facilisis rutrum suscipit. Morbi elementum purus vel varius tincidunt. Nulla fringilla lacus a nulla vehicula tincidunt. Praesent a turpis et elit laoreet ullamcorper et et metus. Praesent malesuada massa in tellus bibendum congue. Curabitur mollis purus et metus eleifend sagittis. Vivamus fringilla tincidunt sem id euismod. Maecenas a vestibulum nisl. Sed libero metus, ultrices in tortor facilisis, semper rhoncus nunc. Nullam ut diam et felis posuere lobortis vitae id leo. Sed hendrerit ex libero, a faucibus tellus maximus et. Aliquam erat volutpat. Phasellus vestibulum a lacus eget eleifend. Pellentesque ipsum nunc, scelerisque non neque id, bibendum vestibulum ante.

\n

Maecenas venenatis sollicitudin leo, vitae tincidunt lectus dapibus vel. Integer quis sapien dui. Nulla sagittis dapibus suscipit. Pellentesque consequat dapibus lorem id feugiat. Fusce ornare sapien at lacus porta maximus. Praesent gravida faucibus tellus et lobortis. Praesent ullamcorper facilisis semper. Praesent lobortis enim lacus, ut facilisis ex tristique in. Sed lobortis tortor ut sem lacinia pharetra. Nunc a varius risus. Proin volutpat eget justo quis fermentum. Nunc quis vestibulum ipsum. Donec vulputate laoreet sapien id mattis. Phasellus non enim laoreet, euismod mauris vel, vulputate est.

\n

Vivamus porta massa at nulla eleifend, a pellentesque eros dictum. Nam finibus nibh purus, in placerat nulla elementum at. Integer quis est condimentum, tempor mi ac, dapibus ante. Pellentesque fringilla hendrerit est, ut ultricies orci condimentum viverra. Aliquam a lacus consequat dolor vestibulum euismod eget quis ipsum. Pellentesque viverra, libero sed euismod consectetur, turpis nulla tristique massa, vel ultricies massa arcu sit amet mauris. Donec aliquet tortor ante, ut pulvinar odio gravida et. Proin laoreet et elit at tempus. In aliquam erat lacus, in volutpat neque faucibus a.

\n
\n
\n\n\n\n\n", "label": "Navigation (secondary)" }, "demo/demo.css": { @@ -26,7 +26,7 @@ export const configure = project => project.config = { "demo/analytics/index.html": { "contentType": "text/html", "selected": false, - "content": "\n\n\n\n
\n\n \n Red Hat Ansible Automation Platform\n \n \n \n Get started\n \n\n\n\n
\n

Content Placeholder

\n Link placeholder\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt luctus odio, vitae accumsan tortor sagittis et. Integer facilisis rutrum suscipit. Morbi elementum purus vel varius tincidunt. Nulla fringilla lacus a nulla vehicula tincidunt. Praesent a turpis et elit laoreet ullamcorper et et metus. Praesent malesuada massa in tellus bibendum congue. Curabitur mollis purus et metus eleifend sagittis. Vivamus fringilla tincidunt sem id euismod. Maecenas a vestibulum nisl. Sed libero metus, ultrices in tortor facilisis, semper rhoncus nunc. Nullam ut diam et felis posuere lobortis vitae id leo. Sed hendrerit ex libero, a faucibus tellus maximus et. Aliquam erat volutpat. Phasellus vestibulum a lacus eget eleifend. Pellentesque ipsum nunc, scelerisque non neque id, bibendum vestibulum ante.

\n

Maecenas venenatis sollicitudin leo, vitae tincidunt lectus dapibus vel. Integer quis sapien dui. Nulla sagittis dapibus suscipit. Pellentesque consequat dapibus lorem id feugiat. Fusce ornare sapien at lacus porta maximus. Praesent gravida faucibus tellus et lobortis. Praesent ullamcorper facilisis semper. Praesent lobortis enim lacus, ut facilisis ex tristique in. Sed lobortis tortor ut sem lacinia pharetra. Nunc a varius risus. Proin volutpat eget justo quis fermentum. Nunc quis vestibulum ipsum. Donec vulputate laoreet sapien id mattis. Phasellus non enim laoreet, euismod mauris vel, vulputate est.

\n

Vivamus porta massa at nulla eleifend, a pellentesque eros dictum. Nam finibus nibh purus, in placerat nulla elementum at. Integer quis est condimentum, tempor mi ac, dapibus ante. Pellentesque fringilla hendrerit est, ut ultricies orci condimentum viverra. Aliquam a lacus consequat dolor vestibulum euismod eget quis ipsum. Pellentesque viverra, libero sed euismod consectetur, turpis nulla tristique massa, vel ultricies massa arcu sit amet mauris. Donec aliquet tortor ante, ut pulvinar odio gravida et. Proin laoreet et elit at tempus. In aliquam erat lacus, in volutpat neque faucibus a.

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt luctus odio, vitae accumsan tortor sagittis et. Integer facilisis rutrum suscipit. Morbi elementum purus vel varius tincidunt. Nulla fringilla lacus a nulla vehicula tincidunt. Praesent a turpis et elit laoreet ullamcorper et et metus. Praesent malesuada massa in tellus bibendum congue. Curabitur mollis purus et metus eleifend sagittis. Vivamus fringilla tincidunt sem id euismod. Maecenas a vestibulum nisl. Sed libero metus, ultrices in tortor facilisis, semper rhoncus nunc. Nullam ut diam et felis posuere lobortis vitae id leo. Sed hendrerit ex libero, a faucibus tellus maximus et. Aliquam erat volutpat. Phasellus vestibulum a lacus eget eleifend. Pellentesque ipsum nunc, scelerisque non neque id, bibendum vestibulum ante.

\n

Maecenas venenatis sollicitudin leo, vitae tincidunt lectus dapibus vel. Integer quis sapien dui. Nulla sagittis dapibus suscipit. Pellentesque consequat dapibus lorem id feugiat. Fusce ornare sapien at lacus porta maximus. Praesent gravida faucibus tellus et lobortis. Praesent ullamcorper facilisis semper. Praesent lobortis enim lacus, ut facilisis ex tristique in. Sed lobortis tortor ut sem lacinia pharetra. Nunc a varius risus. Proin volutpat eget justo quis fermentum. Nunc quis vestibulum ipsum. Donec vulputate laoreet sapien id mattis. Phasellus non enim laoreet, euismod mauris vel, vulputate est.

\n

Vivamus porta massa at nulla eleifend, a pellentesque eros dictum. Nam finibus nibh purus, in placerat nulla elementum at. Integer quis est condimentum, tempor mi ac, dapibus ante. Pellentesque fringilla hendrerit est, ut ultricies orci condimentum viverra. Aliquam a lacus consequat dolor vestibulum euismod eget quis ipsum. Pellentesque viverra, libero sed euismod consectetur, turpis nulla tristique massa, vel ultricies massa arcu sit amet mauris. Donec aliquet tortor ante, ut pulvinar odio gravida et. Proin laoreet et elit at tempus. In aliquam erat lacus, in volutpat neque faucibus a.

\n
\n
\n", + "content": "\n\n\n\n
\n\n \n Red Hat Ansible Automation Platform\n \n \n \n Get started\n \n\n\n\n
\n

Content Placeholder

\n Link placeholder\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt luctus odio, vitae accumsan tortor sagittis et. Integer facilisis rutrum suscipit. Morbi elementum purus vel varius tincidunt. Nulla fringilla lacus a nulla vehicula tincidunt. Praesent a turpis et elit laoreet ullamcorper et et metus. Praesent malesuada massa in tellus bibendum congue. Curabitur mollis purus et metus eleifend sagittis. Vivamus fringilla tincidunt sem id euismod. Maecenas a vestibulum nisl. Sed libero metus, ultrices in tortor facilisis, semper rhoncus nunc. Nullam ut diam et felis posuere lobortis vitae id leo. Sed hendrerit ex libero, a faucibus tellus maximus et. Aliquam erat volutpat. Phasellus vestibulum a lacus eget eleifend. Pellentesque ipsum nunc, scelerisque non neque id, bibendum vestibulum ante.

\n

Maecenas venenatis sollicitudin leo, vitae tincidunt lectus dapibus vel. Integer quis sapien dui. Nulla sagittis dapibus suscipit. Pellentesque consequat dapibus lorem id feugiat. Fusce ornare sapien at lacus porta maximus. Praesent gravida faucibus tellus et lobortis. Praesent ullamcorper facilisis semper. Praesent lobortis enim lacus, ut facilisis ex tristique in. Sed lobortis tortor ut sem lacinia pharetra. Nunc a varius risus. Proin volutpat eget justo quis fermentum. Nunc quis vestibulum ipsum. Donec vulputate laoreet sapien id mattis. Phasellus non enim laoreet, euismod mauris vel, vulputate est.

\n

Vivamus porta massa at nulla eleifend, a pellentesque eros dictum. Nam finibus nibh purus, in placerat nulla elementum at. Integer quis est condimentum, tempor mi ac, dapibus ante. Pellentesque fringilla hendrerit est, ut ultricies orci condimentum viverra. Aliquam a lacus consequat dolor vestibulum euismod eget quis ipsum. Pellentesque viverra, libero sed euismod consectetur, turpis nulla tristique massa, vel ultricies massa arcu sit amet mauris. Donec aliquet tortor ante, ut pulvinar odio gravida et. Proin laoreet et elit at tempus. In aliquam erat lacus, in volutpat neque faucibus a.

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt luctus odio, vitae accumsan tortor sagittis et. Integer facilisis rutrum suscipit. Morbi elementum purus vel varius tincidunt. Nulla fringilla lacus a nulla vehicula tincidunt. Praesent a turpis et elit laoreet ullamcorper et et metus. Praesent malesuada massa in tellus bibendum congue. Curabitur mollis purus et metus eleifend sagittis. Vivamus fringilla tincidunt sem id euismod. Maecenas a vestibulum nisl. Sed libero metus, ultrices in tortor facilisis, semper rhoncus nunc. Nullam ut diam et felis posuere lobortis vitae id leo. Sed hendrerit ex libero, a faucibus tellus maximus et. Aliquam erat volutpat. Phasellus vestibulum a lacus eget eleifend. Pellentesque ipsum nunc, scelerisque non neque id, bibendum vestibulum ante.

\n

Maecenas venenatis sollicitudin leo, vitae tincidunt lectus dapibus vel. Integer quis sapien dui. Nulla sagittis dapibus suscipit. Pellentesque consequat dapibus lorem id feugiat. Fusce ornare sapien at lacus porta maximus. Praesent gravida faucibus tellus et lobortis. Praesent ullamcorper facilisis semper. Praesent lobortis enim lacus, ut facilisis ex tristique in. Sed lobortis tortor ut sem lacinia pharetra. Nunc a varius risus. Proin volutpat eget justo quis fermentum. Nunc quis vestibulum ipsum. Donec vulputate laoreet sapien id mattis. Phasellus non enim laoreet, euismod mauris vel, vulputate est.

\n

Vivamus porta massa at nulla eleifend, a pellentesque eros dictum. Nam finibus nibh purus, in placerat nulla elementum at. Integer quis est condimentum, tempor mi ac, dapibus ante. Pellentesque fringilla hendrerit est, ut ultricies orci condimentum viverra. Aliquam a lacus consequat dolor vestibulum euismod eget quis ipsum. Pellentesque viverra, libero sed euismod consectetur, turpis nulla tristique massa, vel ultricies massa arcu sit amet mauris. Donec aliquet tortor ante, ut pulvinar odio gravida et. Proin laoreet et elit at tempus. In aliquam erat lacus, in volutpat neque faucibus a.

\n
\n
\n\n\n", "label": "Analytics" }, "demo/analytics/demo.css": { @@ -44,7 +44,7 @@ export const configure = project => project.config = { "demo/current-page-indicator/index.html": { "contentType": "text/html", "selected": false, - "content": "\n\n\n\n\n\n \n Logo/Title\n \n \n \n Call to Action\n \n\n\n\n\n
\n Move current page to:\n
Previous link Next link
\n
First link
\n
Last link
\n\n Current Page Indicator: \n\n

Content Placeholder

\n Link placeholder\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt luctus odio, vitae accumsan tortor sagittis et. Integer facilisis rutrum suscipit. Morbi elementum purus vel varius tincidunt. Nulla fringilla lacus a nulla vehicula tincidunt. Praesent a turpis et elit laoreet ullamcorper et et metus. Praesent malesuada massa in tellus bibendum congue. Curabitur mollis purus et metus eleifend sagittis. Vivamus fringilla tincidunt sem id euismod. Maecenas a vestibulum nisl. Sed libero metus, ultrices in tortor facilisis, semper rhoncus nunc. Nullam ut diam et felis posuere lobortis vitae id leo. Sed hendrerit ex libero, a faucibus tellus maximus et. Aliquam erat volutpat. Phasellus vestibulum a lacus eget eleifend. Pellentesque ipsum nunc, scelerisque non neque id, bibendum vestibulum ante.

\n

Maecenas venenatis sollicitudin leo, vitae tincidunt lectus dapibus vel. Integer quis sapien dui. Nulla sagittis dapibus suscipit. Pellentesque consequat dapibus lorem id feugiat. Fusce ornare sapien at lacus porta maximus. Praesent gravida faucibus tellus et lobortis. Praesent ullamcorper facilisis semper. Praesent lobortis enim lacus, ut facilisis ex tristique in. Sed lobortis tortor ut sem lacinia pharetra. Nunc a varius risus. Proin volutpat eget justo quis fermentum. Nunc quis vestibulum ipsum. Donec vulputate laoreet sapien id mattis. Phasellus non enim laoreet, euismod mauris vel, vulputate est.

\n

Vivamus porta massa at nulla eleifend, a pellentesque eros dictum. Nam finibus nibh purus, in placerat nulla elementum at. Integer quis est condimentum, tempor mi ac, dapibus ante. Pellentesque fringilla hendrerit est, ut ultricies orci condimentum viverra. Aliquam a lacus consequat dolor vestibulum euismod eget quis ipsum. Pellentesque viverra, libero sed euismod consectetur, turpis nulla tristique massa, vel ultricies massa arcu sit amet mauris. Donec aliquet tortor ante, ut pulvinar odio gravida et. Proin laoreet et elit at tempus. In aliquam erat lacus, in volutpat neque faucibus a.

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt luctus odio, vitae accumsan tortor sagittis et. Integer facilisis rutrum suscipit. Morbi elementum purus vel varius tincidunt. Nulla fringilla lacus a nulla vehicula tincidunt. Praesent a turpis et elit laoreet ullamcorper et et metus. Praesent malesuada massa in tellus bibendum congue. Curabitur mollis purus et metus eleifend sagittis. Vivamus fringilla tincidunt sem id euismod. Maecenas a vestibulum nisl. Sed libero metus, ultrices in tortor facilisis, semper rhoncus nunc. Nullam ut diam et felis posuere lobortis vitae id leo. Sed hendrerit ex libero, a faucibus tellus maximus et. Aliquam erat volutpat. Phasellus vestibulum a lacus eget eleifend. Pellentesque ipsum nunc, scelerisque non neque id, bibendum vestibulum ante.

\n

Maecenas venenatis sollicitudin leo, vitae tincidunt lectus dapibus vel. Integer quis sapien dui. Nulla sagittis dapibus suscipit. Pellentesque consequat dapibus lorem id feugiat. Fusce ornare sapien at lacus porta maximus. Praesent gravida faucibus tellus et lobortis. Praesent ullamcorper facilisis semper. Praesent lobortis enim lacus, ut facilisis ex tristique in. Sed lobortis tortor ut sem lacinia pharetra. Nunc a varius risus. Proin volutpat eget justo quis fermentum. Nunc quis vestibulum ipsum. Donec vulputate laoreet sapien id mattis. Phasellus non enim laoreet, euismod mauris vel, vulputate est.

\n

Vivamus porta massa at nulla eleifend, a pellentesque eros dictum. Nam finibus nibh purus, in placerat nulla elementum at. Integer quis est condimentum, tempor mi ac, dapibus ante. Pellentesque fringilla hendrerit est, ut ultricies orci condimentum viverra. Aliquam a lacus consequat dolor vestibulum euismod eget quis ipsum. Pellentesque viverra, libero sed euismod consectetur, turpis nulla tristique massa, vel ultricies massa arcu sit amet mauris. Donec aliquet tortor ante, ut pulvinar odio gravida et. Proin laoreet et elit at tempus. In aliquam erat lacus, in volutpat neque faucibus a.

\n
\n
\n\n\n", + "content": "\n\n\n\n\n\n \n Logo/Title\n \n \n \n Call to Action\n \n\n\n\n\n
\n Move current page to:\n
Previous link Next link
\n
First link
\n
Last link
\n\n Current Page Indicator: \n\n

Content Placeholder

\n Link placeholder\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt luctus odio, vitae accumsan tortor sagittis et. Integer facilisis rutrum suscipit. Morbi elementum purus vel varius tincidunt. Nulla fringilla lacus a nulla vehicula tincidunt. Praesent a turpis et elit laoreet ullamcorper et et metus. Praesent malesuada massa in tellus bibendum congue. Curabitur mollis purus et metus eleifend sagittis. Vivamus fringilla tincidunt sem id euismod. Maecenas a vestibulum nisl. Sed libero metus, ultrices in tortor facilisis, semper rhoncus nunc. Nullam ut diam et felis posuere lobortis vitae id leo. Sed hendrerit ex libero, a faucibus tellus maximus et. Aliquam erat volutpat. Phasellus vestibulum a lacus eget eleifend. Pellentesque ipsum nunc, scelerisque non neque id, bibendum vestibulum ante.

\n

Maecenas venenatis sollicitudin leo, vitae tincidunt lectus dapibus vel. Integer quis sapien dui. Nulla sagittis dapibus suscipit. Pellentesque consequat dapibus lorem id feugiat. Fusce ornare sapien at lacus porta maximus. Praesent gravida faucibus tellus et lobortis. Praesent ullamcorper facilisis semper. Praesent lobortis enim lacus, ut facilisis ex tristique in. Sed lobortis tortor ut sem lacinia pharetra. Nunc a varius risus. Proin volutpat eget justo quis fermentum. Nunc quis vestibulum ipsum. Donec vulputate laoreet sapien id mattis. Phasellus non enim laoreet, euismod mauris vel, vulputate est.

\n

Vivamus porta massa at nulla eleifend, a pellentesque eros dictum. Nam finibus nibh purus, in placerat nulla elementum at. Integer quis est condimentum, tempor mi ac, dapibus ante. Pellentesque fringilla hendrerit est, ut ultricies orci condimentum viverra. Aliquam a lacus consequat dolor vestibulum euismod eget quis ipsum. Pellentesque viverra, libero sed euismod consectetur, turpis nulla tristique massa, vel ultricies massa arcu sit amet mauris. Donec aliquet tortor ante, ut pulvinar odio gravida et. Proin laoreet et elit at tempus. In aliquam erat lacus, in volutpat neque faucibus a.

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt luctus odio, vitae accumsan tortor sagittis et. Integer facilisis rutrum suscipit. Morbi elementum purus vel varius tincidunt. Nulla fringilla lacus a nulla vehicula tincidunt. Praesent a turpis et elit laoreet ullamcorper et et metus. Praesent malesuada massa in tellus bibendum congue. Curabitur mollis purus et metus eleifend sagittis. Vivamus fringilla tincidunt sem id euismod. Maecenas a vestibulum nisl. Sed libero metus, ultrices in tortor facilisis, semper rhoncus nunc. Nullam ut diam et felis posuere lobortis vitae id leo. Sed hendrerit ex libero, a faucibus tellus maximus et. Aliquam erat volutpat. Phasellus vestibulum a lacus eget eleifend. Pellentesque ipsum nunc, scelerisque non neque id, bibendum vestibulum ante.

\n

Maecenas venenatis sollicitudin leo, vitae tincidunt lectus dapibus vel. Integer quis sapien dui. Nulla sagittis dapibus suscipit. Pellentesque consequat dapibus lorem id feugiat. Fusce ornare sapien at lacus porta maximus. Praesent gravida faucibus tellus et lobortis. Praesent ullamcorper facilisis semper. Praesent lobortis enim lacus, ut facilisis ex tristique in. Sed lobortis tortor ut sem lacinia pharetra. Nunc a varius risus. Proin volutpat eget justo quis fermentum. Nunc quis vestibulum ipsum. Donec vulputate laoreet sapien id mattis. Phasellus non enim laoreet, euismod mauris vel, vulputate est.

\n

Vivamus porta massa at nulla eleifend, a pellentesque eros dictum. Nam finibus nibh purus, in placerat nulla elementum at. Integer quis est condimentum, tempor mi ac, dapibus ante. Pellentesque fringilla hendrerit est, ut ultricies orci condimentum viverra. Aliquam a lacus consequat dolor vestibulum euismod eget quis ipsum. Pellentesque viverra, libero sed euismod consectetur, turpis nulla tristique massa, vel ultricies massa arcu sit amet mauris. Donec aliquet tortor ante, ut pulvinar odio gravida et. Proin laoreet et elit at tempus. In aliquam erat lacus, in volutpat neque faucibus a.

\n
\n
\n\n\n\n\n", "label": "Current Page Indicator" }, "demo/current-page-indicator/demo.css": { @@ -62,7 +62,7 @@ export const configure = project => project.config = { "demo/dark-variant/index.html": { "contentType": "text/html", "selected": false, - "content": "\n\n\n\n
\n\n \n Red Hat Advanced Cluster Management for Kubernetes\n \n \n \n Get started\n \n\n\n
\n

Content Placeholder

\n Link placeholder\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt luctus odio, vitae accumsan tortor sagittis et. Integer facilisis rutrum suscipit. Morbi elementum purus vel varius tincidunt. Nulla fringilla lacus a nulla vehicula tincidunt. Praesent a turpis et elit laoreet ullamcorper et et metus. Praesent malesuada massa in tellus bibendum congue. Curabitur mollis purus et metus eleifend sagittis. Vivamus fringilla tincidunt sem id euismod. Maecenas a vestibulum nisl. Sed libero metus, ultrices in tortor facilisis, semper rhoncus nunc. Nullam ut diam et felis posuere lobortis vitae id leo. Sed hendrerit ex libero, a faucibus tellus maximus et. Aliquam erat volutpat. Phasellus vestibulum a lacus eget eleifend. Pellentesque ipsum nunc, scelerisque non neque id, bibendum vestibulum ante.

\n

Maecenas venenatis sollicitudin leo, vitae tincidunt lectus dapibus vel. Integer quis sapien dui. Nulla sagittis dapibus suscipit. Pellentesque consequat dapibus lorem id feugiat. Fusce ornare sapien at lacus porta maximus. Praesent gravida faucibus tellus et lobortis. Praesent ullamcorper facilisis semper. Praesent lobortis enim lacus, ut facilisis ex tristique in. Sed lobortis tortor ut sem lacinia pharetra. Nunc a varius risus. Proin volutpat eget justo quis fermentum. Nunc quis vestibulum ipsum. Donec vulputate laoreet sapien id mattis. Phasellus non enim laoreet, euismod mauris vel, vulputate est.

\n

Vivamus porta massa at nulla eleifend, a pellentesque eros dictum. Nam finibus nibh purus, in placerat nulla elementum at. Integer quis est condimentum, tempor mi ac, dapibus ante. Pellentesque fringilla hendrerit est, ut ultricies orci condimentum viverra. Aliquam a lacus consequat dolor vestibulum euismod eget quis ipsum. Pellentesque viverra, libero sed euismod consectetur, turpis nulla tristique massa, vel ultricies massa arcu sit amet mauris. Donec aliquet tortor ante, ut pulvinar odio gravida et. Proin laoreet et elit at tempus. In aliquam erat lacus, in volutpat neque faucibus a.

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt luctus odio, vitae accumsan tortor sagittis et. Integer facilisis rutrum suscipit. Morbi elementum purus vel varius tincidunt. Nulla fringilla lacus a nulla vehicula tincidunt. Praesent a turpis et elit laoreet ullamcorper et et metus. Praesent malesuada massa in tellus bibendum congue. Curabitur mollis purus et metus eleifend sagittis. Vivamus fringilla tincidunt sem id euismod. Maecenas a vestibulum nisl. Sed libero metus, ultrices in tortor facilisis, semper rhoncus nunc. Nullam ut diam et felis posuere lobortis vitae id leo. Sed hendrerit ex libero, a faucibus tellus maximus et. Aliquam erat volutpat. Phasellus vestibulum a lacus eget eleifend. Pellentesque ipsum nunc, scelerisque non neque id, bibendum vestibulum ante.

\n

Maecenas venenatis sollicitudin leo, vitae tincidunt lectus dapibus vel. Integer quis sapien dui. Nulla sagittis dapibus suscipit. Pellentesque consequat dapibus lorem id feugiat. Fusce ornare sapien at lacus porta maximus. Praesent gravida faucibus tellus et lobortis. Praesent ullamcorper facilisis semper. Praesent lobortis enim lacus, ut facilisis ex tristique in. Sed lobortis tortor ut sem lacinia pharetra. Nunc a varius risus. Proin volutpat eget justo quis fermentum. Nunc quis vestibulum ipsum. Donec vulputate laoreet sapien id mattis. Phasellus non enim laoreet, euismod mauris vel, vulputate est.

\n

Vivamus porta massa at nulla eleifend, a pellentesque eros dictum. Nam finibus nibh purus, in placerat nulla elementum at. Integer quis est condimentum, tempor mi ac, dapibus ante. Pellentesque fringilla hendrerit est, ut ultricies orci condimentum viverra. Aliquam a lacus consequat dolor vestibulum euismod eget quis ipsum. Pellentesque viverra, libero sed euismod consectetur, turpis nulla tristique massa, vel ultricies massa arcu sit amet mauris. Donec aliquet tortor ante, ut pulvinar odio gravida et. Proin laoreet et elit at tempus. In aliquam erat lacus, in volutpat neque faucibus a.

\n
\n
\n\n", + "content": "\n\n\n\n
\n\n \n Red Hat Advanced Cluster Management for Kubernetes\n \n \n \n Get started\n \n\n\n
\n

Content Placeholder

\n Link placeholder\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt luctus odio, vitae accumsan tortor sagittis et. Integer facilisis rutrum suscipit. Morbi elementum purus vel varius tincidunt. Nulla fringilla lacus a nulla vehicula tincidunt. Praesent a turpis et elit laoreet ullamcorper et et metus. Praesent malesuada massa in tellus bibendum congue. Curabitur mollis purus et metus eleifend sagittis. Vivamus fringilla tincidunt sem id euismod. Maecenas a vestibulum nisl. Sed libero metus, ultrices in tortor facilisis, semper rhoncus nunc. Nullam ut diam et felis posuere lobortis vitae id leo. Sed hendrerit ex libero, a faucibus tellus maximus et. Aliquam erat volutpat. Phasellus vestibulum a lacus eget eleifend. Pellentesque ipsum nunc, scelerisque non neque id, bibendum vestibulum ante.

\n

Maecenas venenatis sollicitudin leo, vitae tincidunt lectus dapibus vel. Integer quis sapien dui. Nulla sagittis dapibus suscipit. Pellentesque consequat dapibus lorem id feugiat. Fusce ornare sapien at lacus porta maximus. Praesent gravida faucibus tellus et lobortis. Praesent ullamcorper facilisis semper. Praesent lobortis enim lacus, ut facilisis ex tristique in. Sed lobortis tortor ut sem lacinia pharetra. Nunc a varius risus. Proin volutpat eget justo quis fermentum. Nunc quis vestibulum ipsum. Donec vulputate laoreet sapien id mattis. Phasellus non enim laoreet, euismod mauris vel, vulputate est.

\n

Vivamus porta massa at nulla eleifend, a pellentesque eros dictum. Nam finibus nibh purus, in placerat nulla elementum at. Integer quis est condimentum, tempor mi ac, dapibus ante. Pellentesque fringilla hendrerit est, ut ultricies orci condimentum viverra. Aliquam a lacus consequat dolor vestibulum euismod eget quis ipsum. Pellentesque viverra, libero sed euismod consectetur, turpis nulla tristique massa, vel ultricies massa arcu sit amet mauris. Donec aliquet tortor ante, ut pulvinar odio gravida et. Proin laoreet et elit at tempus. In aliquam erat lacus, in volutpat neque faucibus a.

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt luctus odio, vitae accumsan tortor sagittis et. Integer facilisis rutrum suscipit. Morbi elementum purus vel varius tincidunt. Nulla fringilla lacus a nulla vehicula tincidunt. Praesent a turpis et elit laoreet ullamcorper et et metus. Praesent malesuada massa in tellus bibendum congue. Curabitur mollis purus et metus eleifend sagittis. Vivamus fringilla tincidunt sem id euismod. Maecenas a vestibulum nisl. Sed libero metus, ultrices in tortor facilisis, semper rhoncus nunc. Nullam ut diam et felis posuere lobortis vitae id leo. Sed hendrerit ex libero, a faucibus tellus maximus et. Aliquam erat volutpat. Phasellus vestibulum a lacus eget eleifend. Pellentesque ipsum nunc, scelerisque non neque id, bibendum vestibulum ante.

\n

Maecenas venenatis sollicitudin leo, vitae tincidunt lectus dapibus vel. Integer quis sapien dui. Nulla sagittis dapibus suscipit. Pellentesque consequat dapibus lorem id feugiat. Fusce ornare sapien at lacus porta maximus. Praesent gravida faucibus tellus et lobortis. Praesent ullamcorper facilisis semper. Praesent lobortis enim lacus, ut facilisis ex tristique in. Sed lobortis tortor ut sem lacinia pharetra. Nunc a varius risus. Proin volutpat eget justo quis fermentum. Nunc quis vestibulum ipsum. Donec vulputate laoreet sapien id mattis. Phasellus non enim laoreet, euismod mauris vel, vulputate est.

\n

Vivamus porta massa at nulla eleifend, a pellentesque eros dictum. Nam finibus nibh purus, in placerat nulla elementum at. Integer quis est condimentum, tempor mi ac, dapibus ante. Pellentesque fringilla hendrerit est, ut ultricies orci condimentum viverra. Aliquam a lacus consequat dolor vestibulum euismod eget quis ipsum. Pellentesque viverra, libero sed euismod consectetur, turpis nulla tristique massa, vel ultricies massa arcu sit amet mauris. Donec aliquet tortor ante, ut pulvinar odio gravida et. Proin laoreet et elit at tempus. In aliquam erat lacus, in volutpat neque faucibus a.

\n
\n
\n\n\n\n", "label": "Dark Variant" }, "demo/dark-variant/demo.css": { @@ -76,7 +76,7 @@ export const configure = project => project.config = { "demo/deprecated/index.html": { "contentType": "text/html", "selected": false, - "content": "\n\n\n\n
\n\n \n Red Hat Ansible Automation Platform\n \n \n \n Get started\n \n\n\n\n
\n

Content Placeholder

\n Link placeholder\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt luctus odio, vitae accumsan tortor sagittis et. Integer facilisis rutrum suscipit. Morbi elementum purus vel varius tincidunt. Nulla fringilla lacus a nulla vehicula tincidunt. Praesent a turpis et elit laoreet ullamcorper et et metus. Praesent malesuada massa in tellus bibendum congue. Curabitur mollis purus et metus eleifend sagittis. Vivamus fringilla tincidunt sem id euismod. Maecenas a vestibulum nisl. Sed libero metus, ultrices in tortor facilisis, semper rhoncus nunc. Nullam ut diam et felis posuere lobortis vitae id leo. Sed hendrerit ex libero, a faucibus tellus maximus et. Aliquam erat volutpat. Phasellus vestibulum a lacus eget eleifend. Pellentesque ipsum nunc, scelerisque non neque id, bibendum vestibulum ante.

\n

Maecenas venenatis sollicitudin leo, vitae tincidunt lectus dapibus vel. Integer quis sapien dui. Nulla sagittis dapibus suscipit. Pellentesque consequat dapibus lorem id feugiat. Fusce ornare sapien at lacus porta maximus. Praesent gravida faucibus tellus et lobortis. Praesent ullamcorper facilisis semper. Praesent lobortis enim lacus, ut facilisis ex tristique in. Sed lobortis tortor ut sem lacinia pharetra. Nunc a varius risus. Proin volutpat eget justo quis fermentum. Nunc quis vestibulum ipsum. Donec vulputate laoreet sapien id mattis. Phasellus non enim laoreet, euismod mauris vel, vulputate est.

\n

Vivamus porta massa at nulla eleifend, a pellentesque eros dictum. Nam finibus nibh purus, in placerat nulla elementum at. Integer quis est condimentum, tempor mi ac, dapibus ante. Pellentesque fringilla hendrerit est, ut ultricies orci condimentum viverra. Aliquam a lacus consequat dolor vestibulum euismod eget quis ipsum. Pellentesque viverra, libero sed euismod consectetur, turpis nulla tristique massa, vel ultricies massa arcu sit amet mauris. Donec aliquet tortor ante, ut pulvinar odio gravida et. Proin laoreet et elit at tempus. In aliquam erat lacus, in volutpat neque faucibus a.

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt luctus odio, vitae accumsan tortor sagittis et. Integer facilisis rutrum suscipit. Morbi elementum purus vel varius tincidunt. Nulla fringilla lacus a nulla vehicula tincidunt. Praesent a turpis et elit laoreet ullamcorper et et metus. Praesent malesuada massa in tellus bibendum congue. Curabitur mollis purus et metus eleifend sagittis. Vivamus fringilla tincidunt sem id euismod. Maecenas a vestibulum nisl. Sed libero metus, ultrices in tortor facilisis, semper rhoncus nunc. Nullam ut diam et felis posuere lobortis vitae id leo. Sed hendrerit ex libero, a faucibus tellus maximus et. Aliquam erat volutpat. Phasellus vestibulum a lacus eget eleifend. Pellentesque ipsum nunc, scelerisque non neque id, bibendum vestibulum ante.

\n

Maecenas venenatis sollicitudin leo, vitae tincidunt lectus dapibus vel. Integer quis sapien dui. Nulla sagittis dapibus suscipit. Pellentesque consequat dapibus lorem id feugiat. Fusce ornare sapien at lacus porta maximus. Praesent gravida faucibus tellus et lobortis. Praesent ullamcorper facilisis semper. Praesent lobortis enim lacus, ut facilisis ex tristique in. Sed lobortis tortor ut sem lacinia pharetra. Nunc a varius risus. Proin volutpat eget justo quis fermentum. Nunc quis vestibulum ipsum. Donec vulputate laoreet sapien id mattis. Phasellus non enim laoreet, euismod mauris vel, vulputate est.

\n

Vivamus porta massa at nulla eleifend, a pellentesque eros dictum. Nam finibus nibh purus, in placerat nulla elementum at. Integer quis est condimentum, tempor mi ac, dapibus ante. Pellentesque fringilla hendrerit est, ut ultricies orci condimentum viverra. Aliquam a lacus consequat dolor vestibulum euismod eget quis ipsum. Pellentesque viverra, libero sed euismod consectetur, turpis nulla tristique massa, vel ultricies massa arcu sit amet mauris. Donec aliquet tortor ante, ut pulvinar odio gravida et. Proin laoreet et elit at tempus. In aliquam erat lacus, in volutpat neque faucibus a.

\n
\n
\n\n\n", + "content": "\n\n\n\n
\n\n \n Red Hat Ansible Automation Platform\n \n \n \n Get started\n \n\n\n\n
\n

Content Placeholder

\n Link placeholder\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt luctus odio, vitae accumsan tortor sagittis et. Integer facilisis rutrum suscipit. Morbi elementum purus vel varius tincidunt. Nulla fringilla lacus a nulla vehicula tincidunt. Praesent a turpis et elit laoreet ullamcorper et et metus. Praesent malesuada massa in tellus bibendum congue. Curabitur mollis purus et metus eleifend sagittis. Vivamus fringilla tincidunt sem id euismod. Maecenas a vestibulum nisl. Sed libero metus, ultrices in tortor facilisis, semper rhoncus nunc. Nullam ut diam et felis posuere lobortis vitae id leo. Sed hendrerit ex libero, a faucibus tellus maximus et. Aliquam erat volutpat. Phasellus vestibulum a lacus eget eleifend. Pellentesque ipsum nunc, scelerisque non neque id, bibendum vestibulum ante.

\n

Maecenas venenatis sollicitudin leo, vitae tincidunt lectus dapibus vel. Integer quis sapien dui. Nulla sagittis dapibus suscipit. Pellentesque consequat dapibus lorem id feugiat. Fusce ornare sapien at lacus porta maximus. Praesent gravida faucibus tellus et lobortis. Praesent ullamcorper facilisis semper. Praesent lobortis enim lacus, ut facilisis ex tristique in. Sed lobortis tortor ut sem lacinia pharetra. Nunc a varius risus. Proin volutpat eget justo quis fermentum. Nunc quis vestibulum ipsum. Donec vulputate laoreet sapien id mattis. Phasellus non enim laoreet, euismod mauris vel, vulputate est.

\n

Vivamus porta massa at nulla eleifend, a pellentesque eros dictum. Nam finibus nibh purus, in placerat nulla elementum at. Integer quis est condimentum, tempor mi ac, dapibus ante. Pellentesque fringilla hendrerit est, ut ultricies orci condimentum viverra. Aliquam a lacus consequat dolor vestibulum euismod eget quis ipsum. Pellentesque viverra, libero sed euismod consectetur, turpis nulla tristique massa, vel ultricies massa arcu sit amet mauris. Donec aliquet tortor ante, ut pulvinar odio gravida et. Proin laoreet et elit at tempus. In aliquam erat lacus, in volutpat neque faucibus a.

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt luctus odio, vitae accumsan tortor sagittis et. Integer facilisis rutrum suscipit. Morbi elementum purus vel varius tincidunt. Nulla fringilla lacus a nulla vehicula tincidunt. Praesent a turpis et elit laoreet ullamcorper et et metus. Praesent malesuada massa in tellus bibendum congue. Curabitur mollis purus et metus eleifend sagittis. Vivamus fringilla tincidunt sem id euismod. Maecenas a vestibulum nisl. Sed libero metus, ultrices in tortor facilisis, semper rhoncus nunc. Nullam ut diam et felis posuere lobortis vitae id leo. Sed hendrerit ex libero, a faucibus tellus maximus et. Aliquam erat volutpat. Phasellus vestibulum a lacus eget eleifend. Pellentesque ipsum nunc, scelerisque non neque id, bibendum vestibulum ante.

\n

Maecenas venenatis sollicitudin leo, vitae tincidunt lectus dapibus vel. Integer quis sapien dui. Nulla sagittis dapibus suscipit. Pellentesque consequat dapibus lorem id feugiat. Fusce ornare sapien at lacus porta maximus. Praesent gravida faucibus tellus et lobortis. Praesent ullamcorper facilisis semper. Praesent lobortis enim lacus, ut facilisis ex tristique in. Sed lobortis tortor ut sem lacinia pharetra. Nunc a varius risus. Proin volutpat eget justo quis fermentum. Nunc quis vestibulum ipsum. Donec vulputate laoreet sapien id mattis. Phasellus non enim laoreet, euismod mauris vel, vulputate est.

\n

Vivamus porta massa at nulla eleifend, a pellentesque eros dictum. Nam finibus nibh purus, in placerat nulla elementum at. Integer quis est condimentum, tempor mi ac, dapibus ante. Pellentesque fringilla hendrerit est, ut ultricies orci condimentum viverra. Aliquam a lacus consequat dolor vestibulum euismod eget quis ipsum. Pellentesque viverra, libero sed euismod consectetur, turpis nulla tristique massa, vel ultricies massa arcu sit amet mauris. Donec aliquet tortor ante, ut pulvinar odio gravida et. Proin laoreet et elit at tempus. In aliquam erat lacus, in volutpat neque faucibus a.

\n
\n
\n\n\n\n\n", "label": "Deprecated" }, "demo/deprecated/demo.css": { @@ -90,7 +90,7 @@ export const configure = project => project.config = { "demo/long-logo-text/index.html": { "contentType": "text/html", "selected": false, - "content": "\n\n\n\n\n\n\n \n Red Hat Ansible Automation Platform\n \n \n \n Call to Action\n \n\n\n\n
\n

Content Placeholder

\n Link placeholder\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt luctus odio, vitae accumsan tortor sagittis et. Integer facilisis rutrum suscipit. Morbi elementum purus vel varius tincidunt. Nulla fringilla lacus a nulla vehicula tincidunt. Praesent a turpis et elit laoreet ullamcorper et et metus. Praesent malesuada massa in tellus bibendum congue. Curabitur mollis purus et metus eleifend sagittis. Vivamus fringilla tincidunt sem id euismod. Maecenas a vestibulum nisl. Sed libero metus, ultrices in tortor facilisis, semper rhoncus nunc. Nullam ut diam et felis posuere lobortis vitae id leo. Sed hendrerit ex libero, a faucibus tellus maximus et. Aliquam erat volutpat. Phasellus vestibulum a lacus eget eleifend. Pellentesque ipsum nunc, scelerisque non neque id, bibendum vestibulum ante.

\n

Maecenas venenatis sollicitudin leo, vitae tincidunt lectus dapibus vel. Integer quis sapien dui. Nulla sagittis dapibus suscipit. Pellentesque consequat dapibus lorem id feugiat. Fusce ornare sapien at lacus porta maximus. Praesent gravida faucibus tellus et lobortis. Praesent ullamcorper facilisis semper. Praesent lobortis enim lacus, ut facilisis ex tristique in. Sed lobortis tortor ut sem lacinia pharetra. Nunc a varius risus. Proin volutpat eget justo quis fermentum. Nunc quis vestibulum ipsum. Donec vulputate laoreet sapien id mattis. Phasellus non enim laoreet, euismod mauris vel, vulputate est.

\n

Vivamus porta massa at nulla eleifend, a pellentesque eros dictum. Nam finibus nibh purus, in placerat nulla elementum at. Integer quis est condimentum, tempor mi ac, dapibus ante. Pellentesque fringilla hendrerit est, ut ultricies orci condimentum viverra. Aliquam a lacus consequat dolor vestibulum euismod eget quis ipsum. Pellentesque viverra, libero sed euismod consectetur, turpis nulla tristique massa, vel ultricies massa arcu sit amet mauris. Donec aliquet tortor ante, ut pulvinar odio gravida et. Proin laoreet et elit at tempus. In aliquam erat lacus, in volutpat neque faucibus a.

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt luctus odio, vitae accumsan tortor sagittis et. Integer facilisis rutrum suscipit. Morbi elementum purus vel varius tincidunt. Nulla fringilla lacus a nulla vehicula tincidunt. Praesent a turpis et elit laoreet ullamcorper et et metus. Praesent malesuada massa in tellus bibendum congue. Curabitur mollis purus et metus eleifend sagittis. Vivamus fringilla tincidunt sem id euismod. Maecenas a vestibulum nisl. Sed libero metus, ultrices in tortor facilisis, semper rhoncus nunc. Nullam ut diam et felis posuere lobortis vitae id leo. Sed hendrerit ex libero, a faucibus tellus maximus et. Aliquam erat volutpat. Phasellus vestibulum a lacus eget eleifend. Pellentesque ipsum nunc, scelerisque non neque id, bibendum vestibulum ante.

\n

Maecenas venenatis sollicitudin leo, vitae tincidunt lectus dapibus vel. Integer quis sapien dui. Nulla sagittis dapibus suscipit. Pellentesque consequat dapibus lorem id feugiat. Fusce ornare sapien at lacus porta maximus. Praesent gravida faucibus tellus et lobortis. Praesent ullamcorper facilisis semper. Praesent lobortis enim lacus, ut facilisis ex tristique in. Sed lobortis tortor ut sem lacinia pharetra. Nunc a varius risus. Proin volutpat eget justo quis fermentum. Nunc quis vestibulum ipsum. Donec vulputate laoreet sapien id mattis. Phasellus non enim laoreet, euismod mauris vel, vulputate est.

\n

Vivamus porta massa at nulla eleifend, a pellentesque eros dictum. Nam finibus nibh purus, in placerat nulla elementum at. Integer quis est condimentum, tempor mi ac, dapibus ante. Pellentesque fringilla hendrerit est, ut ultricies orci condimentum viverra. Aliquam a lacus consequat dolor vestibulum euismod eget quis ipsum. Pellentesque viverra, libero sed euismod consectetur, turpis nulla tristique massa, vel ultricies massa arcu sit amet mauris. Donec aliquet tortor ante, ut pulvinar odio gravida et. Proin laoreet et elit at tempus. In aliquam erat lacus, in volutpat neque faucibus a.

\n
\n
\n\n\n", + "content": "\n\n\n\n\n\n\n \n Red Hat Ansible Automation Platform\n \n \n \n Call to Action\n \n\n\n\n
\n

Content Placeholder

\n Link placeholder\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt luctus odio, vitae accumsan tortor sagittis et. Integer facilisis rutrum suscipit. Morbi elementum purus vel varius tincidunt. Nulla fringilla lacus a nulla vehicula tincidunt. Praesent a turpis et elit laoreet ullamcorper et et metus. Praesent malesuada massa in tellus bibendum congue. Curabitur mollis purus et metus eleifend sagittis. Vivamus fringilla tincidunt sem id euismod. Maecenas a vestibulum nisl. Sed libero metus, ultrices in tortor facilisis, semper rhoncus nunc. Nullam ut diam et felis posuere lobortis vitae id leo. Sed hendrerit ex libero, a faucibus tellus maximus et. Aliquam erat volutpat. Phasellus vestibulum a lacus eget eleifend. Pellentesque ipsum nunc, scelerisque non neque id, bibendum vestibulum ante.

\n

Maecenas venenatis sollicitudin leo, vitae tincidunt lectus dapibus vel. Integer quis sapien dui. Nulla sagittis dapibus suscipit. Pellentesque consequat dapibus lorem id feugiat. Fusce ornare sapien at lacus porta maximus. Praesent gravida faucibus tellus et lobortis. Praesent ullamcorper facilisis semper. Praesent lobortis enim lacus, ut facilisis ex tristique in. Sed lobortis tortor ut sem lacinia pharetra. Nunc a varius risus. Proin volutpat eget justo quis fermentum. Nunc quis vestibulum ipsum. Donec vulputate laoreet sapien id mattis. Phasellus non enim laoreet, euismod mauris vel, vulputate est.

\n

Vivamus porta massa at nulla eleifend, a pellentesque eros dictum. Nam finibus nibh purus, in placerat nulla elementum at. Integer quis est condimentum, tempor mi ac, dapibus ante. Pellentesque fringilla hendrerit est, ut ultricies orci condimentum viverra. Aliquam a lacus consequat dolor vestibulum euismod eget quis ipsum. Pellentesque viverra, libero sed euismod consectetur, turpis nulla tristique massa, vel ultricies massa arcu sit amet mauris. Donec aliquet tortor ante, ut pulvinar odio gravida et. Proin laoreet et elit at tempus. In aliquam erat lacus, in volutpat neque faucibus a.

\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt luctus odio, vitae accumsan tortor sagittis et. Integer facilisis rutrum suscipit. Morbi elementum purus vel varius tincidunt. Nulla fringilla lacus a nulla vehicula tincidunt. Praesent a turpis et elit laoreet ullamcorper et et metus. Praesent malesuada massa in tellus bibendum congue. Curabitur mollis purus et metus eleifend sagittis. Vivamus fringilla tincidunt sem id euismod. Maecenas a vestibulum nisl. Sed libero metus, ultrices in tortor facilisis, semper rhoncus nunc. Nullam ut diam et felis posuere lobortis vitae id leo. Sed hendrerit ex libero, a faucibus tellus maximus et. Aliquam erat volutpat. Phasellus vestibulum a lacus eget eleifend. Pellentesque ipsum nunc, scelerisque non neque id, bibendum vestibulum ante.

\n

Maecenas venenatis sollicitudin leo, vitae tincidunt lectus dapibus vel. Integer quis sapien dui. Nulla sagittis dapibus suscipit. Pellentesque consequat dapibus lorem id feugiat. Fusce ornare sapien at lacus porta maximus. Praesent gravida faucibus tellus et lobortis. Praesent ullamcorper facilisis semper. Praesent lobortis enim lacus, ut facilisis ex tristique in. Sed lobortis tortor ut sem lacinia pharetra. Nunc a varius risus. Proin volutpat eget justo quis fermentum. Nunc quis vestibulum ipsum. Donec vulputate laoreet sapien id mattis. Phasellus non enim laoreet, euismod mauris vel, vulputate est.

\n

Vivamus porta massa at nulla eleifend, a pellentesque eros dictum. Nam finibus nibh purus, in placerat nulla elementum at. Integer quis est condimentum, tempor mi ac, dapibus ante. Pellentesque fringilla hendrerit est, ut ultricies orci condimentum viverra. Aliquam a lacus consequat dolor vestibulum euismod eget quis ipsum. Pellentesque viverra, libero sed euismod consectetur, turpis nulla tristique massa, vel ultricies massa arcu sit amet mauris. Donec aliquet tortor ante, ut pulvinar odio gravida et. Proin laoreet et elit at tempus. In aliquam erat lacus, in volutpat neque faucibus a.

\n
\n
\n\n\n\n\n", "label": "Long Logo Text" }, "demo/long-logo-text/demo.css": { @@ -104,7 +104,7 @@ export const configure = project => project.config = { "demo/translation/index.html": { "contentType": "text/html", "selected": false, - "content": "\n\n\n\n
\n
\n \n \n Red Hat Ansible Automation Platform\n \n \n תַפרִיט\n \n להתחיל\n \n \n\n \n
\n

מציין מיקום של תוכן

\n העזרה סוציולוגיה כדי\n

על עוד ניהול המקושרים, תנך בידור ברוכים לאחרונה אם. כלל של לחבר משפטים עקרונות, שמו בה צרפתית איטליה קרימינולוגיה. של העזרה סוציולוגיה כדי. לראות הספרות מדריכים אל ויש, בישול חינוך וקשקש שתי את.

\n

זכויות תיאטרון היא דת, מושגי קצרמרים עזה של. סדר על שמות רביעי חינוך, קרן והנדסה בלשנות או, בה הספרות התפתחות מדע. את באגים בהתייחסות היא, כדי בעברית סטטיסטיקה או, כלים ומדעים זכויות על כתב. ערבית מושגי והגולשים שמו דת, שתפו חבריכם זכר על. בקלות אירועים ויקימדיה של שכל. ספורט אירועים ופיתוחה או מדע, את אתה אחרות ספינות.

\n

אל רומנית בהיסטוריה סדר, תיבת ערבית מוסיקה כתב מה. ארץ תקשורת לעריכה ב, המחשב האנציקלופדיה אתה מה. היום שפות ברית את סדר, ב לערך הארץ אתה. על לוח רפואה ספינות לויקיפדים, או סטטיסטיקה קרימינולוגיה אתה, אקראי אנגלית בדף את. שמו אחרות הבהרה קודמות מה, נפלו פיסול כדי על. אחר אל משפטים שיתופית, שתי בה עיצוב רפואה פוליטיקה.

\n
\n
\n
\n", + "content": "\n\n\n\n
\n
\n \n \n Red Hat Ansible Automation Platform\n \n \n תַפרִיט\n \n להתחיל\n \n \n\n \n
\n

מציין מיקום של תוכן

\n העזרה סוציולוגיה כדי\n

על עוד ניהול המקושרים, תנך בידור ברוכים לאחרונה אם. כלל של לחבר משפטים עקרונות, שמו בה צרפתית איטליה קרימינולוגיה. של העזרה סוציולוגיה כדי. לראות הספרות מדריכים אל ויש, בישול חינוך וקשקש שתי את.

\n

זכויות תיאטרון היא דת, מושגי קצרמרים עזה של. סדר על שמות רביעי חינוך, קרן והנדסה בלשנות או, בה הספרות התפתחות מדע. את באגים בהתייחסות היא, כדי בעברית סטטיסטיקה או, כלים ומדעים זכויות על כתב. ערבית מושגי והגולשים שמו דת, שתפו חבריכם זכר על. בקלות אירועים ויקימדיה של שכל. ספורט אירועים ופיתוחה או מדע, את אתה אחרות ספינות.

\n

אל רומנית בהיסטוריה סדר, תיבת ערבית מוסיקה כתב מה. ארץ תקשורת לעריכה ב, המחשב האנציקלופדיה אתה מה. היום שפות ברית את סדר, ב לערך הארץ אתה. על לוח רפואה ספינות לויקיפדים, או סטטיסטיקה קרימינולוגיה אתה, אקראי אנגלית בדף את. שמו אחרות הבהרה קודמות מה, נפלו פיסול כדי על. אחר אל משפטים שיתופית, שתי בה עיצוב רפואה פוליטיקה.

\n
\n
\n
\n\n\n", "label": "Translation" }, "demo/translation/demo.css": { diff --git a/assets/playgrounds/rh-pagination-playground.js b/assets/playgrounds/rh-pagination-playground.js index 99a240c88c..1f858536fa 100644 --- a/assets/playgrounds/rh-pagination-playground.js +++ b/assets/playgrounds/rh-pagination-playground.js @@ -8,7 +8,7 @@ export const configure = project => project.config = { "demo/index.html": { "contentType": "text/html", "selected": true, - "content": "\n\n\n\n
\n

Valid HTML

\n
\n\n
\n

Paginators with 5 or fewer pages should not overflow, meaning all links should be visible.\n Once a paginator has more than 5 pages, then it must overflow, meaning some links will be hidden.\n Paginators with 9 or more pages will overflow on boths ends.

\n\n
\n
With 5 or fewer pages
\n
No overflow
\n
With more than 5 but fewer than 9 pages
\n
Overflow on one side
\n
With more than 9 pages, active page is less than 6
\n
Overflow end
\n
With more than 9 pages, active page is greater than 6
\n
Overflow both
\n
With more than 9 pages, active page is greater than 5 less than the total (e.g. 16/20)
\n
Overflow start
\n
\n\n Add Page\n Remove Page\n
\n\n\n
    \n
  1. 1
  2. \n
  3. 2
  4. \n
  5. 3
  6. \n
  7. 4
  8. \n
  9. 5
  10. \n
\n
\n", + "content": "\n\n\n\n
\n

Valid HTML

\n
\n\n
\n

Paginators with 5 or fewer pages should not overflow, meaning all links should be visible.\n Once a paginator has more than 5 pages, then it must overflow, meaning some links will be hidden.\n Paginators with 9 or more pages will overflow on boths ends.

\n\n
\n
With 5 or fewer pages
\n
No overflow
\n
With more than 5 but fewer than 9 pages
\n
Overflow on one side
\n
With more than 9 pages, active page is less than 6
\n
Overflow end
\n
With more than 9 pages, active page is greater than 6
\n
Overflow both
\n
With more than 9 pages, active page is greater than 5 less than the total (e.g. 16/20)
\n
Overflow start
\n
\n\n Add Page\n Remove Page\n
\n\n\n
    \n
  1. 1
  2. \n
  3. 2
  4. \n
  5. 3
  6. \n
  7. 4
  8. \n
  9. 5
  10. \n
\n
\n\n\n", "label": "Pagination" }, "demo/demo.css": { @@ -26,7 +26,7 @@ export const configure = project => project.config = { "demo/many-pages/index.html": { "contentType": "text/html", "selected": false, - "content": "\n\n\n\n
\n

Many Pages

\n
\n\n

Paginators with many pages must overflow.

\n\n\n
    \n
  1. 1
  2. \n
  3. 2
  4. \n
  5. 3
  6. \n
  7. 4
  8. \n
  9. 5
  10. \n
  11. 6
  12. \n
  13. 7
  14. \n
  15. 8
  16. \n
  17. 9
  18. \n
  19. 10
  20. \n
  21. 11
  22. \n
  23. 12
  24. \n
  25. 13
  26. \n
  27. 14
  28. \n
  29. 15
  30. \n
  31. 16
  32. \n
  33. 17
  34. \n
  35. 18
  36. \n
  37. 19
  38. \n
  39. 20
  40. \n
\n
\n", + "content": "\n\n\n\n
\n

Many Pages

\n
\n\n

Paginators with many pages must overflow.

\n\n\n
    \n
  1. 1
  2. \n
  3. 2
  4. \n
  5. 3
  6. \n
  7. 4
  8. \n
  9. 5
  10. \n
  11. 6
  12. \n
  13. 7
  14. \n
  15. 8
  16. \n
  17. 9
  18. \n
  19. 10
  20. \n
  21. 11
  22. \n
  23. 12
  24. \n
  25. 13
  26. \n
  27. 14
  28. \n
  29. 15
  30. \n
  31. 16
  32. \n
  33. 17
  34. \n
  35. 18
  36. \n
  37. 19
  38. \n
  39. 20
  40. \n
\n
\n\n\n", "label": "Many Pages" }, "demo/many-pages/demo.css": { @@ -44,7 +44,7 @@ export const configure = project => project.config = { "demo/right-to-left/index.html": { "contentType": "text/html", "selected": false, - "content": "
\n

צריך להיראות יותר טוב

\n \n עבור לדף\n
    \n
  1. 1
  2. \n
  3. 2
  4. \n
  5. 3
  6. \n
  7. 4
  8. \n
  9. 5
  10. \n
\n
\n
\n\n\n\n\n", + "content": "
\n

צריך להיראות יותר טוב

\n \n עבור לדף\n
    \n
  1. 1
  2. \n
  3. 2
  4. \n
  5. 3
  6. \n
  7. 4
  8. \n
  9. 5
  10. \n
\n
\n
\n\n\n\n\n\n\n", "label": "Right To Left" }, "demo/right-to-left/demo.css": { diff --git a/assets/playgrounds/rh-playground.js b/assets/playgrounds/rh-playground.js index 7e45c9f2aa..feb93bb65a 100644 --- a/assets/playgrounds/rh-playground.js +++ b/assets/playgrounds/rh-playground.js @@ -1,75 +1,13726 @@ -import { LitElement, html, css } from 'lit'; -import { classMap } from 'lit/directives/class-map.js'; +/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +const t$4=window,e$a=t$4.ShadowRoot&&(void 0===t$4.ShadyCSS||t$4.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$4=Symbol(),n$6=new WeakMap;class o$7{constructor(t,e,n){if(this._$cssResult$=!0,n!==s$4)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$a&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=n$6.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&n$6.set(s,t));}return t}toString(){return this.cssText}}const r$3=t=>new o$7("string"==typeof t?t:t+"",void 0,s$4),i$6=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,s,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[n+1]),t[0]);return new o$7(n,t,s$4)},S$1=(s,n)=>{e$a?s.adoptedStyleSheets=n.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):n.forEach((e=>{const n=document.createElement("style"),o=t$4.litNonce;void 0!==o&&n.setAttribute("nonce",o),n.textContent=e.cssText,s.appendChild(n);}));},c$1=e$a?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$3(e)})(t):t; -import '@rhds/elements/rh-button/rh-button.js'; -import '@rhds/elements/rh-spinner/rh-spinner.js'; +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */var s$3;const e$9=window,r$2=e$9.trustedTypes,h$1=r$2?r$2.emptyScript:"",o$6=e$9.reactiveElementPolyfillSupport,n$5={toAttribute(t,i){switch(i){case Boolean:t=t?h$1:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,i){let s=t;switch(i){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t);}catch(t){s=null;}}return s}},a$1=(t,i)=>i!==t&&(i==i||t==t),l$5={attribute:!0,type:String,converter:n$5,reflect:!1,hasChanged:a$1};class d$1 extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u();}static addInitializer(t){var i;this.finalize(),(null!==(i=this.h)&&void 0!==i?i:this.h=[]).push(t);}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,s)=>{const e=this._$Ep(s,i);void 0!==e&&(this._$Ev.set(e,s),t.push(e));})),t}static createProperty(t,i=l$5){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const s="symbol"==typeof t?Symbol():"__"+t,e=this.getPropertyDescriptor(t,s,i);void 0!==e&&Object.defineProperty(this.prototype,t,e);}}static getPropertyDescriptor(t,i,s){return {get(){return this[i]},set(e){const r=this[t];this[i]=e,this.requestUpdate(t,r,s);},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||l$5}static finalize(){if(this.hasOwnProperty("finalized"))return !1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of i)this.createProperty(s,t[s]);}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(i){const s=[];if(Array.isArray(i)){const e=new Set(i.flat(1/0).reverse());for(const i of e)s.unshift(c$1(i));}else void 0!==i&&s.push(c$1(i));return s}static _$Ep(t,i){const s=i.attribute;return !1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)));}addController(t){var i,s;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(s=t.hostConnected)||void 0===s||s.call(t));}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1);}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i]);}));}createRenderRoot(){var t;const s=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return S$1(s,this.constructor.elementStyles),s}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}));}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}));}attributeChangedCallback(t,i,s){this._$AK(t,s);}_$EO(t,i,s=l$5){var e;const r=this.constructor._$Ep(t,s);if(void 0!==r&&!0===s.reflect){const h=(void 0!==(null===(e=s.converter)||void 0===e?void 0:e.toAttribute)?s.converter:n$5).toAttribute(i,s.type);this._$El=t,null==h?this.removeAttribute(r):this.setAttribute(r,h),this._$El=null;}}_$AK(t,i){var s;const e=this.constructor,r=e._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=e.getPropertyOptions(r),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(s=t.converter)||void 0===s?void 0:s.fromAttribute)?t.converter:n$5;this._$El=r,this[r]=h.fromAttribute(i,t.type),this._$El=null;}}requestUpdate(t,i,s){let e=!0;void 0!==t&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||a$1)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===s.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,s))):e=!1),!this.isUpdatePending&&e&&(this._$E_=this._$Ej());}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const s=this._$AL;try{i=this.shouldUpdate(s),i?(this.willUpdate(s),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(s)):this._$Ek();}catch(t){throw i=!1,this._$Ek(),t}i&&this._$AE(s);}willUpdate(t){}_$AE(t){var i;null===(i=this._$ES)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t);}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return !0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$EO(i,this[i],t))),this._$EC=void 0),this._$Ek();}updated(t){}firstUpdated(t){}}d$1.finalized=!0,d$1.elementProperties=new Map,d$1.elementStyles=[],d$1.shadowRootOptions={mode:"open"},null==o$6||o$6({ReactiveElement:d$1}),(null!==(s$3=e$9.reactiveElementVersions)&&void 0!==s$3?s$3:e$9.reactiveElementVersions=[]).push("1.6.1"); -class RhPlayground extends LitElement { - static properties = { - /** Is the demo code loading? */ - loading: { type: Boolean, state: true }, - /** Is the demo displayed? */ - showing: { type: Boolean, state: true }, - tagName: { attribute: 'tag-name' }, +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +var t$3;const i$5=window,s$2=i$5.trustedTypes,e$8=s$2?s$2.createPolicy("lit-html",{createHTML:t=>t}):void 0,o$5="$lit$",n$4=`lit$${(Math.random()+"").slice(9)}$`,l$4="?"+n$4,h=`<${l$4}>`,r$1=document,d=()=>r$1.createComment(""),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,c=Array.isArray,v=t=>c(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),a="[ \t\n\f\r]",f$1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,m=/>/g,p=RegExp(`>|${a}(?:([^\\s"'>=/]+)(${a}*=${a}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g=/'/g,$=/"/g,y=/^(?:script|style|textarea|title)$/i,w=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=w(1),T=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),E=new WeakMap,C=r$1.createTreeWalker(r$1,129,null,!1),P=(t,i)=>{const s=t.length-1,l=[];let r,d=2===i?"":"",u=f$1;for(let i=0;i"===c[0]?(u=null!=r?r:f$1,v=-1):void 0===c[1]?v=-2:(v=u.lastIndex-c[2].length,e=c[1],u=void 0===c[3]?p:'"'===c[3]?$:g):u===$||u===g?u=p:u===_||u===m?u=f$1:(u=p,r=void 0);const w=u===p&&t[i+1].startsWith("/>")?" ":"";d+=u===f$1?s+h:v>=0?(l.push(e),s.slice(0,v)+o$5+s.slice(v)+n$4+w):s+n$4+(-2===v?(l.push(void 0),i):w);}const c=d+(t[s]||"")+(2===i?"":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return [void 0!==e$8?e$8.createHTML(c):c,l]};class V{constructor({strings:t,_$litType$:i},e){let h;this.parts=[];let r=0,u=0;const c=t.length-1,v=this.parts,[a,f]=P(t,i);if(this.el=V.createElement(a,e),C.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes);}for(;null!==(h=C.nextNode())&&v.length0){h.textContent=s$2?s$2.emptyScript:"";for(let s=0;s2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=A;}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(void 0===o)t=N(this,t,i,0),n=!u(t)||t!==this._$AH&&t!==T,n&&(this._$AH=t);else {const e=t;let l,h;for(t=o[0],l=0;l{var e,o;const n=null!==(e=null==s?void 0:s.renderBefore)&&void 0!==e?e:i;let l=n._$litPart$;if(void 0===l){const t=null!==(o=null==s?void 0:s.renderBefore)&&void 0!==o?o:null;n._$litPart$=l=new M(i.insertBefore(d(),t),t,void 0,null!=s?s:{});}return l._$AI(t),l}; + +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */var l$3,o$4;class s$1 extends d$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(i,this.renderRoot,this.renderOptions);}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0);}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1);}render(){return T}}s$1.finalized=!0,s$1._$litElement$=!0,null===(l$3=globalThis.litElementHydrateSupport)||void 0===l$3||l$3.call(globalThis,{LitElement:s$1});const n$3=globalThis.litElementPolyfillSupport;null==n$3||n$3({LitElement:s$1});(null!==(o$4=globalThis.litElementVersions)&&void 0!==o$4?o$4:globalThis.litElementVersions=[]).push("3.3.2"); + +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +const t$2={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e$7=t=>(...e)=>({_$litDirective$:t,values:e});class i$4{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}} + +/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const o$3=e$7(class extends i$4{constructor(t){var i;if(super(t),t.type!==t$2.ATTRIBUTE||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(i,[s]){var r,o;if(void 0===this.it){this.it=new Set,void 0!==i.strings&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in s)s[t]&&!(null===(r=this.nt)||void 0===r?void 0:r.has(t))&&this.it.add(t);return this.render(s)}const e=i.element.classList;this.it.forEach((t=>{t in s||(e.remove(t),this.it.delete(t));}));for(const t in s){const i=!!s[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)));}return T}}); + +/****************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +/* global Reflect, Promise */ + +var extendStatics = function(d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); +}; + +function __extends(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); +} + +var __assign = function() { + __assign = Object.assign || function __assign(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; + +function __decorate(decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +} + +function __values(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); +} + +function __classPrivateFieldGet(receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); +} + +function __classPrivateFieldSet(receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; +} + +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +const e$6=e=>n=>"function"==typeof n?((e,n)=>(customElements.define(e,n),n))(e,n):((e,n)=>{const{kind:t,elements:s}=n;return {kind:t,elements:s,finisher(n){customElements.define(e,n);}}})(e,n); + +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +const i$3=(i,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(n){n.createProperty(e.key,i);}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this));},finisher(n){n.createProperty(e.key,i);}};function e$5(e){return (n,t)=>void 0!==t?((i,e,n)=>{e.constructor.createProperty(n,i);})(e,n,t):i$3(e,n)} + +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */function t$1(t){return e$5({...t,state:!0})} + +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +const o$2=({finisher:e,descriptor:t})=>(o,n)=>{var r;if(void 0===n){const n=null!==(r=o.originalKey)&&void 0!==r?r:o.key,i=null!=t?{kind:"method",placement:"prototype",key:n,descriptor:t(o.key)}:{...o,key:n};return null!=e&&(i.finisher=function(t){e(t,n);}),i}{const r=o.constructor;void 0!==t&&Object.defineProperty(o,n,t(n)),null==e||e(r,n);}}; + +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */function e$4(e){return o$2({finisher:(r,t)=>{Object.assign(r.prototype[t],e);}})} + +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */function i$2(i,n){return o$2({descriptor:o=>{const t={get(){var o,n;return null!==(n=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(i))&&void 0!==n?n:null},enumerable:!0,configurable:!0};if(n){const n="symbol"==typeof o?Symbol():"__"+o;t.get=function(){var o,t;return void 0===this[n]&&(this[n]=null!==(t=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(i))&&void 0!==t?t:null),this[n]};}return t}})} + +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +function e$3(e){return o$2({descriptor:r=>({async get(){var r;return await this.updateComplete,null===(r=this.renderRoot)||void 0===r?void 0:r.querySelector(e)},enumerable:!0,configurable:!0})})} + +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */var n$2;const e$2=null!=(null===(n$2=window.HTMLSlotElement)||void 0===n$2?void 0:n$2.prototype.assignedElements)?(o,n)=>o.assignedElements(n):(o,n)=>o.assignedNodes(n).filter((o=>o.nodeType===Node.ELEMENT_NODE));function l$2(n){const{slot:l,selector:t}=null!=n?n:{};return o$2({descriptor:o=>({get(){var o;const r="slot"+(l?`[name=${l}]`:":not([name])"),i=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(r),s=null!=i?e$2(i,n):[];return t?s.filter((o=>o.matches(t))):s},enumerable:!0,configurable:!0})})} + +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */function o$1(o,n,r){let l,s=o;return "object"==typeof o?(s=o.slot,l=o):l={flatten:n},r?l$2({slot:s,flatten:n,selector:r}):o$2({descriptor:e=>({get(){var e,t;const o="slot"+(s?`[name=${s}]`:":not([name])"),n=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(o);return null!==(t=null==n?void 0:n.assignedNodes(l))&&void 0!==t?t:[]},enumerable:!0,configurable:!0})})} + +/** + * Copyright 2019 Google Inc. All Rights Reserved. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +const proxyMarker = Symbol("Comlink.proxy"); +const createEndpoint = Symbol("Comlink.endpoint"); +const releaseProxy = Symbol("Comlink.releaseProxy"); +const throwMarker = Symbol("Comlink.thrown"); +const isObject$1 = (val) => (typeof val === "object" && val !== null) || typeof val === "function"; +/** + * Internal transfer handle to handle objects marked to proxy. + */ +const proxyTransferHandler = { + canHandle: (val) => isObject$1(val) && val[proxyMarker], + serialize(obj) { + const { port1, port2 } = new MessageChannel(); + expose(obj, port1); + return [port2, [port2]]; + }, + deserialize(port) { + port.start(); + return wrap(port); + }, +}; +/** + * Internal transfer handler to handle thrown exceptions. + */ +const throwTransferHandler = { + canHandle: (value) => isObject$1(value) && throwMarker in value, + serialize({ value }) { + let serialized; + if (value instanceof Error) { + serialized = { + isError: true, + value: { + message: value.message, + name: value.name, + stack: value.stack, + }, + }; + } + else { + serialized = { isError: false, value }; + } + return [serialized, []]; + }, + deserialize(serialized) { + if (serialized.isError) { + throw Object.assign(new Error(serialized.value.message), serialized.value); + } + throw serialized.value; + }, +}; +/** + * Allows customizing the serialization of certain values. + */ +const transferHandlers = new Map([ + ["proxy", proxyTransferHandler], + ["throw", throwTransferHandler], +]); +function expose(obj, ep = self) { + ep.addEventListener("message", function callback(ev) { + if (!ev || !ev.data) { + return; + } + const { id, type, path } = Object.assign({ path: [] }, ev.data); + const argumentList = (ev.data.argumentList || []).map(fromWireValue); + let returnValue; + try { + const parent = path.slice(0, -1).reduce((obj, prop) => obj[prop], obj); + const rawValue = path.reduce((obj, prop) => obj[prop], obj); + switch (type) { + case "GET" /* GET */: + { + returnValue = rawValue; + } + break; + case "SET" /* SET */: + { + parent[path.slice(-1)[0]] = fromWireValue(ev.data.value); + returnValue = true; + } + break; + case "APPLY" /* APPLY */: + { + returnValue = rawValue.apply(parent, argumentList); + } + break; + case "CONSTRUCT" /* CONSTRUCT */: + { + const value = new rawValue(...argumentList); + returnValue = proxy(value); + } + break; + case "ENDPOINT" /* ENDPOINT */: + { + const { port1, port2 } = new MessageChannel(); + expose(obj, port2); + returnValue = transfer(port1, [port1]); + } + break; + case "RELEASE" /* RELEASE */: + { + returnValue = undefined; + } + break; + default: + return; + } + } + catch (value) { + returnValue = { value, [throwMarker]: 0 }; + } + Promise.resolve(returnValue) + .catch((value) => { + return { value, [throwMarker]: 0 }; + }) + .then((returnValue) => { + const [wireValue, transferables] = toWireValue(returnValue); + ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables); + if (type === "RELEASE" /* RELEASE */) { + // detach and deactive after sending release response above. + ep.removeEventListener("message", callback); + closeEndPoint(ep); + } + }); + }); + if (ep.start) { + ep.start(); + } +} +function isMessagePort(endpoint) { + return endpoint.constructor.name === "MessagePort"; +} +function closeEndPoint(endpoint) { + if (isMessagePort(endpoint)) + endpoint.close(); +} +function wrap(ep, target) { + return createProxy(ep, [], target); +} +function throwIfProxyReleased(isReleased) { + if (isReleased) { + throw new Error("Proxy has been released and is not useable"); + } +} +function createProxy(ep, path = [], target = function () { }) { + let isProxyReleased = false; + const proxy = new Proxy(target, { + get(_target, prop) { + throwIfProxyReleased(isProxyReleased); + if (prop === releaseProxy) { + return () => { + return requestResponseMessage(ep, { + type: "RELEASE" /* RELEASE */, + path: path.map((p) => p.toString()), + }).then(() => { + closeEndPoint(ep); + isProxyReleased = true; + }); + }; + } + if (prop === "then") { + if (path.length === 0) { + return { then: () => proxy }; + } + const r = requestResponseMessage(ep, { + type: "GET" /* GET */, + path: path.map((p) => p.toString()), + }).then(fromWireValue); + return r.then.bind(r); + } + return createProxy(ep, [...path, prop]); + }, + set(_target, prop, rawValue) { + throwIfProxyReleased(isProxyReleased); + // FIXME: ES6 Proxy Handler `set` methods are supposed to return a + // boolean. To show good will, we return true asynchronously ¯\_(ツ)_/¯ + const [value, transferables] = toWireValue(rawValue); + return requestResponseMessage(ep, { + type: "SET" /* SET */, + path: [...path, prop].map((p) => p.toString()), + value, + }, transferables).then(fromWireValue); + }, + apply(_target, _thisArg, rawArgumentList) { + throwIfProxyReleased(isProxyReleased); + const last = path[path.length - 1]; + if (last === createEndpoint) { + return requestResponseMessage(ep, { + type: "ENDPOINT" /* ENDPOINT */, + }).then(fromWireValue); + } + // We just pretend that `bind()` didn’t happen. + if (last === "bind") { + return createProxy(ep, path.slice(0, -1)); + } + const [argumentList, transferables] = processArguments(rawArgumentList); + return requestResponseMessage(ep, { + type: "APPLY" /* APPLY */, + path: path.map((p) => p.toString()), + argumentList, + }, transferables).then(fromWireValue); + }, + construct(_target, rawArgumentList) { + throwIfProxyReleased(isProxyReleased); + const [argumentList, transferables] = processArguments(rawArgumentList); + return requestResponseMessage(ep, { + type: "CONSTRUCT" /* CONSTRUCT */, + path: path.map((p) => p.toString()), + argumentList, + }, transferables).then(fromWireValue); + }, + }); + return proxy; +} +function myFlat(arr) { + return Array.prototype.concat.apply([], arr); +} +function processArguments(argumentList) { + const processed = argumentList.map(toWireValue); + return [processed.map((v) => v[0]), myFlat(processed.map((v) => v[1]))]; +} +const transferCache = new WeakMap(); +function transfer(obj, transfers) { + transferCache.set(obj, transfers); + return obj; +} +function proxy(obj) { + return Object.assign(obj, { [proxyMarker]: true }); +} +function toWireValue(value) { + for (const [name, handler] of transferHandlers) { + if (handler.canHandle(value)) { + const [serializedValue, transferables] = handler.serialize(value); + return [ + { + type: "HANDLER" /* HANDLER */, + name, + value: serializedValue, + }, + transferables, + ]; + } + } + return [ + { + type: "RAW" /* RAW */, + value, + }, + transferCache.get(value) || [], + ]; +} +function fromWireValue(value) { + switch (value.type) { + case "HANDLER" /* HANDLER */: + return transferHandlers.get(value.name).deserialize(value.value); + case "RAW" /* RAW */: + return value.value; + } +} +function requestResponseMessage(ep, msg, transfers) { + return new Promise((resolve) => { + const id = generateUUID(); + ep.addEventListener("message", function l(ev) { + if (!ev.data || !ev.data.id || ev.data.id !== id) { + return; + } + ep.removeEventListener("message", l); + resolve(ev.data); + }); + if (ep.start) { + ep.start(); + } + ep.postMessage(Object.assign({ id }, msg), transfers); + }); +} +function generateUUID() { + return new Array(4) + .fill(0) + .map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16)) + .join("-"); +} + +/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +/** + * Sent from the project to the proxy, with configuration and a port for further + * messages. + */ +const CONFIGURE_PROXY = 1; +/** + * Sent from the proxy to the project, with a port that will be connected to the + * service worker. + */ +const CONNECT_PROJECT_TO_SW = 3; +/** + * Sent from the service worker to the project, to confirm that the port was + * received. + */ +const ACKNOWLEDGE_SW_CONNECTION = 4; +/** + * Sent from the project to the service worker proxy when there is a version + * mismatch to request a call to ServiceWorkerRegistration.update(). + */ +const UPDATE_SERVICE_WORKER = 6; + +/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +const endWithSlash = (s) => (s.endsWith('/') ? s : s + '/'); +const getRandomString = () => crypto.getRandomValues(new Uint32Array(1))[0].toString(32); +/** + * If the given URL object is a Skypack URL, perform an in-place update that + * switches from optimized mode to raw mode. + * + * See https://github.com/google/playground-elements/issues/107 + */ +const forceSkypackRawMode = (url) => { + if (url.hostname === 'cdn.skypack.dev') { + url.pathname = url.pathname.replace(/mode=imports\/(un)?optimized/, 'mode=raw'); + } + return url; +}; + +/** + * Fuse.js v6.6.2 - Lightweight fuzzy-search (http://fusejs.io) + * + * Copyright (c) 2022 Kiro Risk (http://kiro.me) + * All Rights Reserved. Apache Software License 2.0 + * + * http://www.apache.org/licenses/LICENSE-2.0 + */ + +function isArray(value) { + return !Array.isArray + ? getTag(value) === '[object Array]' + : Array.isArray(value) +} + +// Adapted from: https://github.com/lodash/lodash/blob/master/.internal/baseToString.js +const INFINITY = 1 / 0; +function baseToString(value) { + // Exit early for strings to avoid a performance hit in some environments. + if (typeof value == 'string') { + return value + } + let result = value + ''; + return result == '0' && 1 / value == -INFINITY ? '-0' : result +} + +function toString(value) { + return value == null ? '' : baseToString(value) +} + +function isString(value) { + return typeof value === 'string' +} + +function isNumber(value) { + return typeof value === 'number' +} + +// Adapted from: https://github.com/lodash/lodash/blob/master/isBoolean.js +function isBoolean(value) { + return ( + value === true || + value === false || + (isObjectLike(value) && getTag(value) == '[object Boolean]') + ) +} + +function isObject(value) { + return typeof value === 'object' +} + +// Checks if `value` is object-like. +function isObjectLike(value) { + return isObject(value) && value !== null +} + +function isDefined(value) { + return value !== undefined && value !== null +} + +function isBlank(value) { + return !value.trim().length +} + +// Gets the `toStringTag` of `value`. +// Adapted from: https://github.com/lodash/lodash/blob/master/.internal/getTag.js +function getTag(value) { + return value == null + ? value === undefined + ? '[object Undefined]' + : '[object Null]' + : Object.prototype.toString.call(value) +} + +const EXTENDED_SEARCH_UNAVAILABLE = 'Extended search is not available'; + +const INCORRECT_INDEX_TYPE = "Incorrect 'index' type"; + +const LOGICAL_SEARCH_INVALID_QUERY_FOR_KEY = (key) => + `Invalid value for key ${key}`; + +const PATTERN_LENGTH_TOO_LARGE = (max) => + `Pattern length exceeds max of ${max}.`; + +const MISSING_KEY_PROPERTY = (name) => `Missing ${name} property in key`; + +const INVALID_KEY_WEIGHT_VALUE = (key) => + `Property 'weight' in key '${key}' must be a positive integer`; + +const hasOwn = Object.prototype.hasOwnProperty; + +class KeyStore { + constructor(keys) { + this._keys = []; + this._keyMap = {}; + + let totalWeight = 0; + + keys.forEach((key) => { + let obj = createKey(key); + + totalWeight += obj.weight; + + this._keys.push(obj); + this._keyMap[obj.id] = obj; + + totalWeight += obj.weight; + }); + + // Normalize weights so that their sum is equal to 1 + this._keys.forEach((key) => { + key.weight /= totalWeight; + }); + } + get(keyId) { + return this._keyMap[keyId] + } + keys() { + return this._keys + } + toJSON() { + return JSON.stringify(this._keys) + } +} + +function createKey(key) { + let path = null; + let id = null; + let src = null; + let weight = 1; + let getFn = null; + + if (isString(key) || isArray(key)) { + src = key; + path = createKeyPath(key); + id = createKeyId(key); + } else { + if (!hasOwn.call(key, 'name')) { + throw new Error(MISSING_KEY_PROPERTY('name')) + } + + const name = key.name; + src = name; + + if (hasOwn.call(key, 'weight')) { + weight = key.weight; + + if (weight <= 0) { + throw new Error(INVALID_KEY_WEIGHT_VALUE(name)) + } + } + + path = createKeyPath(name); + id = createKeyId(name); + getFn = key.getFn; + } + + return { path, id, weight, src, getFn } +} + +function createKeyPath(key) { + return isArray(key) ? key : key.split('.') +} + +function createKeyId(key) { + return isArray(key) ? key.join('.') : key +} + +function get(obj, path) { + let list = []; + let arr = false; + + const deepGet = (obj, path, index) => { + if (!isDefined(obj)) { + return + } + if (!path[index]) { + // If there's no path left, we've arrived at the object we care about. + list.push(obj); + } else { + let key = path[index]; + + const value = obj[key]; + + if (!isDefined(value)) { + return + } + + // If we're at the last value in the path, and if it's a string/number/bool, + // add it to the list + if ( + index === path.length - 1 && + (isString(value) || isNumber(value) || isBoolean(value)) + ) { + list.push(toString(value)); + } else if (isArray(value)) { + arr = true; + // Search each item in the array. + for (let i = 0, len = value.length; i < len; i += 1) { + deepGet(value[i], path, index + 1); + } + } else if (path.length) { + // An object. Recurse further. + deepGet(value, path, index + 1); + } + } + }; + + // Backwards compatibility (since path used to be a string) + deepGet(obj, isString(path) ? path.split('.') : path, 0); + + return arr ? list : list[0] +} + +const MatchOptions = { + // Whether the matches should be included in the result set. When `true`, each record in the result + // set will include the indices of the matched characters. + // These can consequently be used for highlighting purposes. + includeMatches: false, + // When `true`, the matching function will continue to the end of a search pattern even if + // a perfect match has already been located in the string. + findAllMatches: false, + // Minimum number of characters that must be matched before a result is considered a match + minMatchCharLength: 1 +}; + +const BasicOptions = { + // When `true`, the algorithm continues searching to the end of the input even if a perfect + // match is found before the end of the same input. + isCaseSensitive: false, + // When true, the matching function will continue to the end of a search pattern even if + includeScore: false, + // List of properties that will be searched. This also supports nested properties. + keys: [], + // Whether to sort the result list, by score + shouldSort: true, + // Default sort function: sort by ascending score, ascending index + sortFn: (a, b) => + a.score === b.score ? (a.idx < b.idx ? -1 : 1) : a.score < b.score ? -1 : 1 +}; + +const FuzzyOptions = { + // Approximately where in the text is the pattern expected to be found? + location: 0, + // At what point does the match algorithm give up. A threshold of '0.0' requires a perfect match + // (of both letters and location), a threshold of '1.0' would match anything. + threshold: 0.6, + // Determines how close the match must be to the fuzzy location (specified above). + // An exact letter match which is 'distance' characters away from the fuzzy location + // would score as a complete mismatch. A distance of '0' requires the match be at + // the exact location specified, a threshold of '1000' would require a perfect match + // to be within 800 characters of the fuzzy location to be found using a 0.8 threshold. + distance: 100 +}; + +const AdvancedOptions = { + // When `true`, it enables the use of unix-like search commands + useExtendedSearch: false, + // The get function to use when fetching an object's properties. + // The default will search nested paths *ie foo.bar.baz* + getFn: get, + // When `true`, search will ignore `location` and `distance`, so it won't matter + // where in the string the pattern appears. + // More info: https://fusejs.io/concepts/scoring-theory.html#fuzziness-score + ignoreLocation: false, + // When `true`, the calculation for the relevance score (used for sorting) will + // ignore the field-length norm. + // More info: https://fusejs.io/concepts/scoring-theory.html#field-length-norm + ignoreFieldNorm: false, + // The weight to determine how much field length norm effects scoring. + fieldNormWeight: 1 +}; + +var Config = { + ...BasicOptions, + ...MatchOptions, + ...FuzzyOptions, + ...AdvancedOptions +}; + +const SPACE = /[^ ]+/g; + +// Field-length norm: the shorter the field, the higher the weight. +// Set to 3 decimals to reduce index size. +function norm(weight = 1, mantissa = 3) { + const cache = new Map(); + const m = Math.pow(10, mantissa); + + return { + get(value) { + const numTokens = value.match(SPACE).length; + + if (cache.has(numTokens)) { + return cache.get(numTokens) + } + + // Default function is 1/sqrt(x), weight makes that variable + const norm = 1 / Math.pow(numTokens, 0.5 * weight); + + // In place of `toFixed(mantissa)`, for faster computation + const n = parseFloat(Math.round(norm * m) / m); + + cache.set(numTokens, n); + + return n + }, + clear() { + cache.clear(); + } + } +} + +class FuseIndex { + constructor({ + getFn = Config.getFn, + fieldNormWeight = Config.fieldNormWeight + } = {}) { + this.norm = norm(fieldNormWeight, 3); + this.getFn = getFn; + this.isCreated = false; + + this.setIndexRecords(); + } + setSources(docs = []) { + this.docs = docs; + } + setIndexRecords(records = []) { + this.records = records; + } + setKeys(keys = []) { + this.keys = keys; + this._keysMap = {}; + keys.forEach((key, idx) => { + this._keysMap[key.id] = idx; + }); + } + create() { + if (this.isCreated || !this.docs.length) { + return + } + + this.isCreated = true; + + // List is Array + if (isString(this.docs[0])) { + this.docs.forEach((doc, docIndex) => { + this._addString(doc, docIndex); + }); + } else { + // List is Array + this.docs.forEach((doc, docIndex) => { + this._addObject(doc, docIndex); + }); + } + + this.norm.clear(); + } + // Adds a doc to the end of the index + add(doc) { + const idx = this.size(); + + if (isString(doc)) { + this._addString(doc, idx); + } else { + this._addObject(doc, idx); + } + } + // Removes the doc at the specified index of the index + removeAt(idx) { + this.records.splice(idx, 1); + + // Change ref index of every subsquent doc + for (let i = idx, len = this.size(); i < len; i += 1) { + this.records[i].i -= 1; + } + } + getValueForItemAtKeyId(item, keyId) { + return item[this._keysMap[keyId]] + } + size() { + return this.records.length + } + _addString(doc, docIndex) { + if (!isDefined(doc) || isBlank(doc)) { + return + } + + let record = { + v: doc, + i: docIndex, + n: this.norm.get(doc) + }; + + this.records.push(record); + } + _addObject(doc, docIndex) { + let record = { i: docIndex, $: {} }; + + // Iterate over every key (i.e, path), and fetch the value at that key + this.keys.forEach((key, keyIndex) => { + let value = key.getFn ? key.getFn(doc) : this.getFn(doc, key.path); + + if (!isDefined(value)) { + return + } + + if (isArray(value)) { + let subRecords = []; + const stack = [{ nestedArrIndex: -1, value }]; + + while (stack.length) { + const { nestedArrIndex, value } = stack.pop(); + + if (!isDefined(value)) { + continue + } + + if (isString(value) && !isBlank(value)) { + let subRecord = { + v: value, + i: nestedArrIndex, + n: this.norm.get(value) + }; + + subRecords.push(subRecord); + } else if (isArray(value)) { + value.forEach((item, k) => { + stack.push({ + nestedArrIndex: k, + value: item + }); + }); + } else ; + } + record.$[keyIndex] = subRecords; + } else if (isString(value) && !isBlank(value)) { + let subRecord = { + v: value, + n: this.norm.get(value) + }; + + record.$[keyIndex] = subRecord; + } + }); + + this.records.push(record); + } + toJSON() { + return { + keys: this.keys, + records: this.records + } + } +} + +function createIndex( + keys, + docs, + { getFn = Config.getFn, fieldNormWeight = Config.fieldNormWeight } = {} +) { + const myIndex = new FuseIndex({ getFn, fieldNormWeight }); + myIndex.setKeys(keys.map(createKey)); + myIndex.setSources(docs); + myIndex.create(); + return myIndex +} + +function parseIndex( + data, + { getFn = Config.getFn, fieldNormWeight = Config.fieldNormWeight } = {} +) { + const { keys, records } = data; + const myIndex = new FuseIndex({ getFn, fieldNormWeight }); + myIndex.setKeys(keys); + myIndex.setIndexRecords(records); + return myIndex +} + +function computeScore$1( + pattern, + { + errors = 0, + currentLocation = 0, + expectedLocation = 0, + distance = Config.distance, + ignoreLocation = Config.ignoreLocation + } = {} +) { + const accuracy = errors / pattern.length; + + if (ignoreLocation) { + return accuracy + } + + const proximity = Math.abs(expectedLocation - currentLocation); + + if (!distance) { + // Dodge divide by zero error. + return proximity ? 1.0 : accuracy + } + + return accuracy + proximity / distance +} + +function convertMaskToIndices( + matchmask = [], + minMatchCharLength = Config.minMatchCharLength +) { + let indices = []; + let start = -1; + let end = -1; + let i = 0; + + for (let len = matchmask.length; i < len; i += 1) { + let match = matchmask[i]; + if (match && start === -1) { + start = i; + } else if (!match && start !== -1) { + end = i - 1; + if (end - start + 1 >= minMatchCharLength) { + indices.push([start, end]); + } + start = -1; + } + } + + // (i-1 - start) + 1 => i - start + if (matchmask[i - 1] && i - start >= minMatchCharLength) { + indices.push([start, i - 1]); + } + + return indices +} + +// Machine word size +const MAX_BITS = 32; + +function search( + text, + pattern, + patternAlphabet, + { + location = Config.location, + distance = Config.distance, + threshold = Config.threshold, + findAllMatches = Config.findAllMatches, + minMatchCharLength = Config.minMatchCharLength, + includeMatches = Config.includeMatches, + ignoreLocation = Config.ignoreLocation + } = {} +) { + if (pattern.length > MAX_BITS) { + throw new Error(PATTERN_LENGTH_TOO_LARGE(MAX_BITS)) + } + + const patternLen = pattern.length; + // Set starting location at beginning text and initialize the alphabet. + const textLen = text.length; + // Handle the case when location > text.length + const expectedLocation = Math.max(0, Math.min(location, textLen)); + // Highest score beyond which we give up. + let currentThreshold = threshold; + // Is there a nearby exact match? (speedup) + let bestLocation = expectedLocation; + + // Performance: only computer matches when the minMatchCharLength > 1 + // OR if `includeMatches` is true. + const computeMatches = minMatchCharLength > 1 || includeMatches; + // A mask of the matches, used for building the indices + const matchMask = computeMatches ? Array(textLen) : []; + + let index; + + // Get all exact matches, here for speed up + while ((index = text.indexOf(pattern, bestLocation)) > -1) { + let score = computeScore$1(pattern, { + currentLocation: index, + expectedLocation, + distance, + ignoreLocation + }); + + currentThreshold = Math.min(score, currentThreshold); + bestLocation = index + patternLen; + + if (computeMatches) { + let i = 0; + while (i < patternLen) { + matchMask[index + i] = 1; + i += 1; + } + } + } + + // Reset the best location + bestLocation = -1; + + let lastBitArr = []; + let finalScore = 1; + let binMax = patternLen + textLen; + + const mask = 1 << (patternLen - 1); + + for (let i = 0; i < patternLen; i += 1) { + // Scan for the best match; each iteration allows for one more error. + // Run a binary search to determine how far from the match location we can stray + // at this error level. + let binMin = 0; + let binMid = binMax; + + while (binMin < binMid) { + const score = computeScore$1(pattern, { + errors: i, + currentLocation: expectedLocation + binMid, + expectedLocation, + distance, + ignoreLocation + }); + + if (score <= currentThreshold) { + binMin = binMid; + } else { + binMax = binMid; + } + + binMid = Math.floor((binMax - binMin) / 2 + binMin); + } + + // Use the result from this iteration as the maximum for the next. + binMax = binMid; + + let start = Math.max(1, expectedLocation - binMid + 1); + let finish = findAllMatches + ? textLen + : Math.min(expectedLocation + binMid, textLen) + patternLen; + + // Initialize the bit array + let bitArr = Array(finish + 2); + + bitArr[finish + 1] = (1 << i) - 1; + + for (let j = finish; j >= start; j -= 1) { + let currentLocation = j - 1; + let charMatch = patternAlphabet[text.charAt(currentLocation)]; + + if (computeMatches) { + // Speed up: quick bool to int conversion (i.e, `charMatch ? 1 : 0`) + matchMask[currentLocation] = +!!charMatch; + } + + // First pass: exact match + bitArr[j] = ((bitArr[j + 1] << 1) | 1) & charMatch; + + // Subsequent passes: fuzzy match + if (i) { + bitArr[j] |= + ((lastBitArr[j + 1] | lastBitArr[j]) << 1) | 1 | lastBitArr[j + 1]; + } + + if (bitArr[j] & mask) { + finalScore = computeScore$1(pattern, { + errors: i, + currentLocation, + expectedLocation, + distance, + ignoreLocation + }); + + // This match will almost certainly be better than any existing match. + // But check anyway. + if (finalScore <= currentThreshold) { + // Indeed it is + currentThreshold = finalScore; + bestLocation = currentLocation; + + // Already passed `loc`, downhill from here on in. + if (bestLocation <= expectedLocation) { + break + } + + // When passing `bestLocation`, don't exceed our current distance from `expectedLocation`. + start = Math.max(1, 2 * expectedLocation - bestLocation); + } + } + } + + // No hope for a (better) match at greater error levels. + const score = computeScore$1(pattern, { + errors: i + 1, + currentLocation: expectedLocation, + expectedLocation, + distance, + ignoreLocation + }); + + if (score > currentThreshold) { + break + } + + lastBitArr = bitArr; + } + + const result = { + isMatch: bestLocation >= 0, + // Count exact matches (those with a score of 0) to be "almost" exact + score: Math.max(0.001, finalScore) }; - project; - tabBar; - fileEditor; - preview; + if (computeMatches) { + const indices = convertMaskToIndices(matchMask, minMatchCharLength); + if (!indices.length) { + result.isMatch = false; + } else if (includeMatches) { + result.indices = indices; + } + } + + return result +} + +function createPatternAlphabet(pattern) { + let mask = {}; + + for (let i = 0, len = pattern.length; i < len; i += 1) { + const char = pattern.charAt(i); + mask[char] = (mask[char] || 0) | (1 << (len - i - 1)); + } + + return mask +} + +class BitapSearch { + constructor( + pattern, + { + location = Config.location, + threshold = Config.threshold, + distance = Config.distance, + includeMatches = Config.includeMatches, + findAllMatches = Config.findAllMatches, + minMatchCharLength = Config.minMatchCharLength, + isCaseSensitive = Config.isCaseSensitive, + ignoreLocation = Config.ignoreLocation + } = {} + ) { + this.options = { + location, + threshold, + distance, + includeMatches, + findAllMatches, + minMatchCharLength, + isCaseSensitive, + ignoreLocation + }; + + this.pattern = isCaseSensitive ? pattern : pattern.toLowerCase(); + + this.chunks = []; + + if (!this.pattern.length) { + return + } + + const addChunk = (pattern, startIndex) => { + this.chunks.push({ + pattern, + alphabet: createPatternAlphabet(pattern), + startIndex + }); + }; + + const len = this.pattern.length; + + if (len > MAX_BITS) { + let i = 0; + const remainder = len % MAX_BITS; + const end = len - remainder; + + while (i < end) { + addChunk(this.pattern.substr(i, MAX_BITS), i); + i += MAX_BITS; + } + + if (remainder) { + const startIndex = len - MAX_BITS; + addChunk(this.pattern.substr(startIndex), startIndex); + } + } else { + addChunk(this.pattern, 0); + } + } + + searchIn(text) { + const { isCaseSensitive, includeMatches } = this.options; + + if (!isCaseSensitive) { + text = text.toLowerCase(); + } + + // Exact match + if (this.pattern === text) { + let result = { + isMatch: true, + score: 0 + }; + + if (includeMatches) { + result.indices = [[0, text.length - 1]]; + } + + return result + } + + // Otherwise, use Bitap algorithm + const { + location, + distance, + threshold, + findAllMatches, + minMatchCharLength, + ignoreLocation + } = this.options; + + let allIndices = []; + let totalScore = 0; + let hasMatches = false; + + this.chunks.forEach(({ pattern, alphabet, startIndex }) => { + const { isMatch, score, indices } = search(text, pattern, alphabet, { + location: location + startIndex, + distance, + threshold, + findAllMatches, + minMatchCharLength, + includeMatches, + ignoreLocation + }); + + if (isMatch) { + hasMatches = true; + } + + totalScore += score; + + if (isMatch && indices) { + allIndices = [...allIndices, ...indices]; + } + }); + + let result = { + isMatch: hasMatches, + score: hasMatches ? totalScore / this.chunks.length : 1 + }; + + if (hasMatches && includeMatches) { + result.indices = allIndices; + } + + return result + } +} + +class BaseMatch { + constructor(pattern) { + this.pattern = pattern; + } + static isMultiMatch(pattern) { + return getMatch(pattern, this.multiRegex) + } + static isSingleMatch(pattern) { + return getMatch(pattern, this.singleRegex) + } + search(/*text*/) {} +} + +function getMatch(pattern, exp) { + const matches = pattern.match(exp); + return matches ? matches[1] : null +} + +// Token: 'file + +class ExactMatch extends BaseMatch { + constructor(pattern) { + super(pattern); + } + static get type() { + return 'exact' + } + static get multiRegex() { + return /^="(.*)"$/ + } + static get singleRegex() { + return /^=(.*)$/ + } + search(text) { + const isMatch = text === this.pattern; + + return { + isMatch, + score: isMatch ? 0 : 1, + indices: [0, this.pattern.length - 1] + } + } +} + +// Token: !fire + +class InverseExactMatch extends BaseMatch { + constructor(pattern) { + super(pattern); + } + static get type() { + return 'inverse-exact' + } + static get multiRegex() { + return /^!"(.*)"$/ + } + static get singleRegex() { + return /^!(.*)$/ + } + search(text) { + const index = text.indexOf(this.pattern); + const isMatch = index === -1; + + return { + isMatch, + score: isMatch ? 0 : 1, + indices: [0, text.length - 1] + } + } +} + +// Token: ^file + +class PrefixExactMatch extends BaseMatch { + constructor(pattern) { + super(pattern); + } + static get type() { + return 'prefix-exact' + } + static get multiRegex() { + return /^\^"(.*)"$/ + } + static get singleRegex() { + return /^\^(.*)$/ + } + search(text) { + const isMatch = text.startsWith(this.pattern); + + return { + isMatch, + score: isMatch ? 0 : 1, + indices: [0, this.pattern.length - 1] + } + } +} + +// Token: !^fire + +class InversePrefixExactMatch extends BaseMatch { + constructor(pattern) { + super(pattern); + } + static get type() { + return 'inverse-prefix-exact' + } + static get multiRegex() { + return /^!\^"(.*)"$/ + } + static get singleRegex() { + return /^!\^(.*)$/ + } + search(text) { + const isMatch = !text.startsWith(this.pattern); + + return { + isMatch, + score: isMatch ? 0 : 1, + indices: [0, text.length - 1] + } + } +} + +// Token: .file$ + +class SuffixExactMatch extends BaseMatch { + constructor(pattern) { + super(pattern); + } + static get type() { + return 'suffix-exact' + } + static get multiRegex() { + return /^"(.*)"\$$/ + } + static get singleRegex() { + return /^(.*)\$$/ + } + search(text) { + const isMatch = text.endsWith(this.pattern); + + return { + isMatch, + score: isMatch ? 0 : 1, + indices: [text.length - this.pattern.length, text.length - 1] + } + } +} + +// Token: !.file$ + +class InverseSuffixExactMatch extends BaseMatch { + constructor(pattern) { + super(pattern); + } + static get type() { + return 'inverse-suffix-exact' + } + static get multiRegex() { + return /^!"(.*)"\$$/ + } + static get singleRegex() { + return /^!(.*)\$$/ + } + search(text) { + const isMatch = !text.endsWith(this.pattern); + return { + isMatch, + score: isMatch ? 0 : 1, + indices: [0, text.length - 1] + } + } +} + +class FuzzyMatch extends BaseMatch { + constructor( + pattern, + { + location = Config.location, + threshold = Config.threshold, + distance = Config.distance, + includeMatches = Config.includeMatches, + findAllMatches = Config.findAllMatches, + minMatchCharLength = Config.minMatchCharLength, + isCaseSensitive = Config.isCaseSensitive, + ignoreLocation = Config.ignoreLocation + } = {} + ) { + super(pattern); + this._bitapSearch = new BitapSearch(pattern, { + location, + threshold, + distance, + includeMatches, + findAllMatches, + minMatchCharLength, + isCaseSensitive, + ignoreLocation + }); + } + static get type() { + return 'fuzzy' + } + static get multiRegex() { + return /^"(.*)"$/ + } + static get singleRegex() { + return /^(.*)$/ + } + search(text) { + return this._bitapSearch.searchIn(text) + } +} + +// Token: 'file + +class IncludeMatch extends BaseMatch { + constructor(pattern) { + super(pattern); + } + static get type() { + return 'include' + } + static get multiRegex() { + return /^'"(.*)"$/ + } + static get singleRegex() { + return /^'(.*)$/ + } + search(text) { + let location = 0; + let index; + + const indices = []; + const patternLen = this.pattern.length; + + // Get all exact matches + while ((index = text.indexOf(this.pattern, location)) > -1) { + location = index + patternLen; + indices.push([index, location - 1]); + } + + const isMatch = !!indices.length; + + return { + isMatch, + score: isMatch ? 0 : 1, + indices + } + } +} + +// ❗Order is important. DO NOT CHANGE. +const searchers = [ + ExactMatch, + IncludeMatch, + PrefixExactMatch, + InversePrefixExactMatch, + InverseSuffixExactMatch, + SuffixExactMatch, + InverseExactMatch, + FuzzyMatch +]; + +const searchersLen = searchers.length; + +// Regex to split by spaces, but keep anything in quotes together +const SPACE_RE = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/; +const OR_TOKEN = '|'; + +// Return a 2D array representation of the query, for simpler parsing. +// Example: +// "^core go$ | rb$ | py$ xy$" => [["^core", "go$"], ["rb$"], ["py$", "xy$"]] +function parseQuery(pattern, options = {}) { + return pattern.split(OR_TOKEN).map((item) => { + let query = item + .trim() + .split(SPACE_RE) + .filter((item) => item && !!item.trim()); + + let results = []; + for (let i = 0, len = query.length; i < len; i += 1) { + const queryItem = query[i]; + + // 1. Handle multiple query match (i.e, once that are quoted, like `"hello world"`) + let found = false; + let idx = -1; + while (!found && ++idx < searchersLen) { + const searcher = searchers[idx]; + let token = searcher.isMultiMatch(queryItem); + if (token) { + results.push(new searcher(token, options)); + found = true; + } + } + + if (found) { + continue + } + + // 2. Handle single query matches (i.e, once that are *not* quoted) + idx = -1; + while (++idx < searchersLen) { + const searcher = searchers[idx]; + let token = searcher.isSingleMatch(queryItem); + if (token) { + results.push(new searcher(token, options)); + break + } + } + } + + return results + }) +} + +// These extended matchers can return an array of matches, as opposed +// to a singl match +const MultiMatchSet = new Set([FuzzyMatch.type, IncludeMatch.type]); + +/** + * Command-like searching + * ====================== + * + * Given multiple search terms delimited by spaces.e.g. `^jscript .python$ ruby !java`, + * search in a given text. + * + * Search syntax: + * + * | Token | Match type | Description | + * | ----------- | -------------------------- | -------------------------------------- | + * | `jscript` | fuzzy-match | Items that fuzzy match `jscript` | + * | `=scheme` | exact-match | Items that are `scheme` | + * | `'python` | include-match | Items that include `python` | + * | `!ruby` | inverse-exact-match | Items that do not include `ruby` | + * | `^java` | prefix-exact-match | Items that start with `java` | + * | `!^earlang` | inverse-prefix-exact-match | Items that do not start with `earlang` | + * | `.js$` | suffix-exact-match | Items that end with `.js` | + * | `!.go$` | inverse-suffix-exact-match | Items that do not end with `.go` | + * + * A single pipe character acts as an OR operator. For example, the following + * query matches entries that start with `core` and end with either`go`, `rb`, + * or`py`. + * + * ``` + * ^core go$ | rb$ | py$ + * ``` + */ +class ExtendedSearch { + constructor( + pattern, + { + isCaseSensitive = Config.isCaseSensitive, + includeMatches = Config.includeMatches, + minMatchCharLength = Config.minMatchCharLength, + ignoreLocation = Config.ignoreLocation, + findAllMatches = Config.findAllMatches, + location = Config.location, + threshold = Config.threshold, + distance = Config.distance + } = {} + ) { + this.query = null; + this.options = { + isCaseSensitive, + includeMatches, + minMatchCharLength, + findAllMatches, + ignoreLocation, + location, + threshold, + distance + }; + + this.pattern = isCaseSensitive ? pattern : pattern.toLowerCase(); + this.query = parseQuery(this.pattern, this.options); + } + + static condition(_, options) { + return options.useExtendedSearch + } + + searchIn(text) { + const query = this.query; + + if (!query) { + return { + isMatch: false, + score: 1 + } + } + + const { includeMatches, isCaseSensitive } = this.options; + + text = isCaseSensitive ? text : text.toLowerCase(); + + let numMatches = 0; + let allIndices = []; + let totalScore = 0; + + // ORs + for (let i = 0, qLen = query.length; i < qLen; i += 1) { + const searchers = query[i]; + + // Reset indices + allIndices.length = 0; + numMatches = 0; + + // ANDs + for (let j = 0, pLen = searchers.length; j < pLen; j += 1) { + const searcher = searchers[j]; + const { isMatch, indices, score } = searcher.search(text); + + if (isMatch) { + numMatches += 1; + totalScore += score; + if (includeMatches) { + const type = searcher.constructor.type; + if (MultiMatchSet.has(type)) { + allIndices = [...allIndices, ...indices]; + } else { + allIndices.push(indices); + } + } + } else { + totalScore = 0; + numMatches = 0; + allIndices.length = 0; + break + } + } + + // OR condition, so if TRUE, return + if (numMatches) { + let result = { + isMatch: true, + score: totalScore / numMatches + }; + + if (includeMatches) { + result.indices = allIndices; + } + + return result + } + } + + // Nothing was matched + return { + isMatch: false, + score: 1 + } + } +} + +const registeredSearchers = []; + +function register(...args) { + registeredSearchers.push(...args); +} + +function createSearcher(pattern, options) { + for (let i = 0, len = registeredSearchers.length; i < len; i += 1) { + let searcherClass = registeredSearchers[i]; + if (searcherClass.condition(pattern, options)) { + return new searcherClass(pattern, options) + } + } + + return new BitapSearch(pattern, options) +} + +const LogicalOperator = { + AND: '$and', + OR: '$or' +}; + +const KeyType = { + PATH: '$path', + PATTERN: '$val' +}; + +const isExpression = (query) => + !!(query[LogicalOperator.AND] || query[LogicalOperator.OR]); + +const isPath = (query) => !!query[KeyType.PATH]; + +const isLeaf = (query) => + !isArray(query) && isObject(query) && !isExpression(query); + +const convertToExplicit = (query) => ({ + [LogicalOperator.AND]: Object.keys(query).map((key) => ({ + [key]: query[key] + })) +}); + +// When `auto` is `true`, the parse function will infer and initialize and add +// the appropriate `Searcher` instance +function parse(query, options, { auto = true } = {}) { + const next = (query) => { + let keys = Object.keys(query); + + const isQueryPath = isPath(query); + + if (!isQueryPath && keys.length > 1 && !isExpression(query)) { + return next(convertToExplicit(query)) + } + + if (isLeaf(query)) { + const key = isQueryPath ? query[KeyType.PATH] : keys[0]; + + const pattern = isQueryPath ? query[KeyType.PATTERN] : query[key]; + + if (!isString(pattern)) { + throw new Error(LOGICAL_SEARCH_INVALID_QUERY_FOR_KEY(key)) + } + + const obj = { + keyId: createKeyId(key), + pattern + }; + + if (auto) { + obj.searcher = createSearcher(pattern, options); + } + + return obj + } + + let node = { + children: [], + operator: keys[0] + }; + + keys.forEach((key) => { + const value = query[key]; + + if (isArray(value)) { + value.forEach((item) => { + node.children.push(next(item)); + }); + } + }); + + return node + }; + + if (!isExpression(query)) { + query = convertToExplicit(query); + } + + return next(query) +} + +// Practical scoring function +function computeScore( + results, + { ignoreFieldNorm = Config.ignoreFieldNorm } +) { + results.forEach((result) => { + let totalScore = 1; + + result.matches.forEach(({ key, norm, score }) => { + const weight = key ? key.weight : null; + + totalScore *= Math.pow( + score === 0 && weight ? Number.EPSILON : score, + (weight || 1) * (ignoreFieldNorm ? 1 : norm) + ); + }); + + result.score = totalScore; + }); +} + +function transformMatches(result, data) { + const matches = result.matches; + data.matches = []; + + if (!isDefined(matches)) { + return + } + + matches.forEach((match) => { + if (!isDefined(match.indices) || !match.indices.length) { + return + } + + const { indices, value } = match; + + let obj = { + indices, + value + }; + + if (match.key) { + obj.key = match.key.src; + } + + if (match.idx > -1) { + obj.refIndex = match.idx; + } + + data.matches.push(obj); + }); +} + +function transformScore(result, data) { + data.score = result.score; +} + +function format( + results, + docs, + { + includeMatches = Config.includeMatches, + includeScore = Config.includeScore + } = {} +) { + const transformers = []; + + if (includeMatches) transformers.push(transformMatches); + if (includeScore) transformers.push(transformScore); + + return results.map((result) => { + const { idx } = result; + + const data = { + item: docs[idx], + refIndex: idx + }; + + if (transformers.length) { + transformers.forEach((transformer) => { + transformer(result, data); + }); + } + + return data + }) +} + +class Fuse { + constructor(docs, options = {}, index) { + this.options = { ...Config, ...options }; + + if ( + this.options.useExtendedSearch && + !true + ) { + throw new Error(EXTENDED_SEARCH_UNAVAILABLE) + } + + this._keyStore = new KeyStore(this.options.keys); + + this.setCollection(docs, index); + } + + setCollection(docs, index) { + this._docs = docs; + + if (index && !(index instanceof FuseIndex)) { + throw new Error(INCORRECT_INDEX_TYPE) + } + + this._myIndex = + index || + createIndex(this.options.keys, this._docs, { + getFn: this.options.getFn, + fieldNormWeight: this.options.fieldNormWeight + }); + } + + add(doc) { + if (!isDefined(doc)) { + return + } + + this._docs.push(doc); + this._myIndex.add(doc); + } + + remove(predicate = (/* doc, idx */) => false) { + const results = []; + + for (let i = 0, len = this._docs.length; i < len; i += 1) { + const doc = this._docs[i]; + if (predicate(doc, i)) { + this.removeAt(i); + i -= 1; + len -= 1; + + results.push(doc); + } + } + + return results + } + + removeAt(idx) { + this._docs.splice(idx, 1); + this._myIndex.removeAt(idx); + } + + getIndex() { + return this._myIndex + } + + search(query, { limit = -1 } = {}) { + const { + includeMatches, + includeScore, + shouldSort, + sortFn, + ignoreFieldNorm + } = this.options; + + let results = isString(query) + ? isString(this._docs[0]) + ? this._searchStringList(query) + : this._searchObjectList(query) + : this._searchLogical(query); + + computeScore(results, { ignoreFieldNorm }); + + if (shouldSort) { + results.sort(sortFn); + } + + if (isNumber(limit) && limit > -1) { + results = results.slice(0, limit); + } + + return format(results, this._docs, { + includeMatches, + includeScore + }) + } + + _searchStringList(query) { + const searcher = createSearcher(query, this.options); + const { records } = this._myIndex; + const results = []; + + // Iterate over every string in the index + records.forEach(({ v: text, i: idx, n: norm }) => { + if (!isDefined(text)) { + return + } + + const { isMatch, score, indices } = searcher.searchIn(text); + + if (isMatch) { + results.push({ + item: text, + idx, + matches: [{ score, value: text, norm, indices }] + }); + } + }); + + return results + } + + _searchLogical(query) { + + const expression = parse(query, this.options); + + const evaluate = (node, item, idx) => { + if (!node.children) { + const { keyId, searcher } = node; + + const matches = this._findMatches({ + key: this._keyStore.get(keyId), + value: this._myIndex.getValueForItemAtKeyId(item, keyId), + searcher + }); + + if (matches && matches.length) { + return [ + { + idx, + item, + matches + } + ] + } + + return [] + } + + const res = []; + for (let i = 0, len = node.children.length; i < len; i += 1) { + const child = node.children[i]; + const result = evaluate(child, item, idx); + if (result.length) { + res.push(...result); + } else if (node.operator === LogicalOperator.AND) { + return [] + } + } + return res + }; + + const records = this._myIndex.records; + const resultMap = {}; + const results = []; + + records.forEach(({ $: item, i: idx }) => { + if (isDefined(item)) { + let expResults = evaluate(expression, item, idx); + + if (expResults.length) { + // Dedupe when adding + if (!resultMap[idx]) { + resultMap[idx] = { idx, item, matches: [] }; + results.push(resultMap[idx]); + } + expResults.forEach(({ matches }) => { + resultMap[idx].matches.push(...matches); + }); + } + } + }); + + return results + } + + _searchObjectList(query) { + const searcher = createSearcher(query, this.options); + const { keys, records } = this._myIndex; + const results = []; + + // List is Array + records.forEach(({ $: item, i: idx }) => { + if (!isDefined(item)) { + return + } + + let matches = []; + + // Iterate over every key (i.e, path), and fetch the value at that key + keys.forEach((key, keyIndex) => { + matches.push( + ...this._findMatches({ + key, + value: item[keyIndex], + searcher + }) + ); + }); + + if (matches.length) { + results.push({ + idx, + item, + matches + }); + } + }); + + return results + } + _findMatches({ key, value, searcher }) { + if (!isDefined(value)) { + return [] + } + + let matches = []; + + if (isArray(value)) { + value.forEach(({ v: text, i: idx, n: norm }) => { + if (!isDefined(text)) { + return + } + + const { isMatch, score, indices } = searcher.searchIn(text); + + if (isMatch) { + matches.push({ + score, + key, + value: text, + idx, + norm, + indices + }); + } + }); + } else { + const { v: text, n: norm } = value; + + const { isMatch, score, indices } = searcher.searchIn(text); + + if (isMatch) { + matches.push({ score, key, value: text, norm, indices }); + } + } + + return matches + } +} + +Fuse.version = '6.6.2'; +Fuse.createIndex = createIndex; +Fuse.parseIndex = parseIndex; +Fuse.config = Config; + +{ + Fuse.parseQuery = parse; +} + +{ + register(ExtendedSearch); +} + +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +function sortCompletionItems(completions, searchWord) { + if (!completions) + return []; + // If the user input a letter or a partial word, we want to offer + // the closest matches first, and the weaker matches after. We will use + // Fuse to score our completions by their fuzzy matches. + // See https://fusejs.io/api/options.html + const fuse = new Fuse(completions !== null && completions !== void 0 ? completions : [], { + // Keep the threshold a bit lower than the default + // so that the matching isn't too forgiving/confusing, but so + // that a small typo doesn't delete all of the matches + threshold: 0.3, + shouldSort: true, + isCaseSensitive: true, + includeScore: true, + includeMatches: true, + keys: ['name'], + // Match characters so that at least most of the word matches + minMatchCharLength: Math.max(searchWord.length / 1.2, 1), + }); + const relevantCompletions = fuse.search(searchWord); + const editorCompletions = relevantCompletions + // Map the relevant info from fuse scoring + .map((item) => { + var _a; + return ({ + text: item.item.name, + displayText: item.item.name, + score: (_a = item.score) !== null && _a !== void 0 ? _a : 0, + matches: item.matches, + get details() { + return item.item.details; + }, + }); + }) + // Sort the completions by how well they matched the given keyword + .sort((a, b) => { + if (a.score === b.score) { + return a.text.localeCompare(b.text); + } + return a.score - b.score; + }); + return editorCompletions; +} +function completionEntriesAsEditorCompletions(completions, prefix = '') { + var _a; + return ((_a = completions === null || completions === void 0 ? void 0 : completions.map((comp) => ({ + // Since the completion engine will only append the word + // given as the text property here, auto-completing from a period + // would replace the period with the word. This is why we need + // to append the period into the text property. This is not visible to the + // user however, so no harm is done. + text: prefix + comp.name, + displayText: comp.name, + score: Number.parseInt(comp.sortText), + get details() { + return comp.details; + }, + }))) !== null && _a !== void 0 ? _a : []); +} +/** + * Create a array of completion entries with a details fetching + * function built in, so that the code editor can use it to fetch + * the details when needed itself, instead of having to ask the project + * layer for them. + */ +function populateCompletionInfoWithDetailGetters(completionInfo, filename, cursorIndex, getCompletionDetailsFunction) { + const completionInfoWithDetails = completionInfo; + completionInfoWithDetails.entries = completionInfo === null || completionInfo === void 0 ? void 0 : completionInfo.entries.map((entry) => ({ + ...entry, + // Details are fetched using a proxy pattern, in which the details + // are not instantiated until requested for. When asking for details + // from the completion item, the getter is called, launching the + // query if needed. + _details: undefined, + get details() { + if (!this._details) { + this._details = getCompletionDetailsFunction(filename, cursorIndex, entry.name); + } + return this._details; + }, + })); + return completionInfoWithDetails; +} + +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +// DO NOT UPDATE MANUALLY. +// This file is automatically generated by scripts/update-version-module.js +// before publishing. +const npmVersion = '0.18.1'; +const serviceWorkerHash = '1dae6563'; + +/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +class Deferred { + constructor() { + this.settled = false; + this.promise = new Promise((resolve, reject) => { + this._resolve = resolve; + this._reject = reject; + }); + } + resolve(value) { + this.settled = true; + this._resolve(value); + } + reject(reason) { + this.settled = true; + this._reject(reason); + } +} + +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +const unreachable = (n) => n; +const errorNotFound = { + status: /* Not Found */ 404, + body: 'Playground file not found', +}; +const errorCancelled = { + status: /* Service Unavailable */ 503, + body: 'Playground build cancelled', +}; +/** + * The results of a particular Playground build. + */ +class PlaygroundBuild { + /** + * @param diagnosticsCallback Function that will be invoked when one or more + * new diagnostics have been received. Fires at most once per animation frame. + */ + constructor(diagnosticsCallback) { + this.diagnostics = new Map(); + this._state = 'active'; + this._stateChange = new Deferred(); + this._files = new Map(); + this._diagnosticsCallback = diagnosticsCallback; + } + /** + * The current state of this build. + */ + state() { + // Note this could be a getter, but TypeScript optimistically preserves + // type-narrowing on properties between awaits, which makes usage awkward in + // this case (see https://github.com/microsoft/TypeScript/issues/31429). + return this._state; + } + /** + * Promise of the next state change. + */ + get stateChange() { + return this._stateChange.promise; + } + /** + * Set this build's state to cancelled, ignore any future build results, and + * fail any pending file gets. + */ + cancel() { + this._errorPendingFileRequests(errorCancelled); + this._changeState('cancelled'); + } + /** + * Return a promise of a build output with the given name. If the file is not + * received before the build is completed or cancelled, this promise will be + * rejected. + */ + async getFile(name) { + let deferred = this._files.get(name); + if (deferred === undefined) { + if (this._state === 'done') { + return errorNotFound; + } + else if (this._state === 'cancelled') { + return errorCancelled; + } + deferred = new Deferred(); + this._files.set(name, deferred); + } + return deferred.promise; + } + /** + * Handle a worker build output. + */ + onOutput(output) { + if (this._state !== 'active') { + return; + } + if (output.kind === 'file') { + this._onFile(output); + } + else if (output.kind === 'diagnostic') { + this._onDiagnostic(output); + } + else if (output.kind === 'done') { + this._onDone(); + } + else { + throw new Error(`Unexpected BuildOutput kind: ${unreachable(output).kind}`); + } + } + _changeState(state) { + this._state = state; + this._stateChange.resolve(); + this._stateChange = new Deferred(); + } + _onFile(output) { + let deferred = this._files.get(output.file.name); + if (deferred === undefined) { + deferred = new Deferred(); + this._files.set(output.file.name, deferred); + } + deferred.resolve(output.file); + } + _onDiagnostic(output) { + let arr = this.diagnostics.get(output.filename); + if (arr === undefined) { + arr = []; + this.diagnostics.set(output.filename, arr); + } + arr.push(output.diagnostic); + if (this._diagnosticsDebounceId === undefined) { + this._diagnosticsDebounceId = requestAnimationFrame(() => { + if (this._state !== 'cancelled') { + this._diagnosticsDebounceId = undefined; + this._diagnosticsCallback(); + } + }); + } + } + _onDone() { + this._errorPendingFileRequests(errorNotFound); + this._changeState('done'); + } + _errorPendingFileRequests(error) { + for (const file of this._files.values()) { + if (!file.settled) { + file.resolve(error); + } + } + } +} + +/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +// Each has a unique session ID used to scope requests from +// the preview iframes. +const sessions = new Set(); +const generateUniqueSessionId = () => { + let sessionId; + do { + sessionId = getRandomString(); + } while (sessions.has(sessionId)); + sessions.add(sessionId); + return sessionId; +}; +class FilesChangedEvent extends Event { + constructor(projectLoaded = false) { + super('filesChanged'); + this.projectLoaded = projectLoaded; + } +} +/** + * Coordinates and elements. + */ +let PlaygroundProject = class PlaygroundProject extends s$1 { + constructor() { + super(...arguments); + /** + * This property is used to settle which of the multiple ways a project can be + * specified was set most recently. + */ + this._source = { type: 'none' }; + /** + * Base URL for script execution sandbox. + * + * It is highly advised to change this property to a URL on a separate origin + * which has no privileges to perform sensitive actions or access sensitive + * data. This is because this element will execute arbitrary JavaScript, and + * does not have the ability to sanitize or sandbox it. + * + * This URL must host the following files from the playground-elements + * package: + * 1. playground-service-worker.js + * 2. playground-service-worker-proxy.html + * + * Defaults to the directory containing the script that defines this element + * on the same origin (typically something like + * "/node_modules/playground-elements/"). + */ + this.sandboxBaseUrl = `https://unpkg.com/playground-elements@${npmVersion}/`; + /** + * The service worker scope to register on + */ + // TODO: generate this? + this.sandboxScope = `__playground_swfs_${serviceWorkerHash}/`; + /** + * Cached value for the `modified` getter. When undefined, the modified state + * is unknown and must be computed. + */ + this._modified = false; + /** + * A unique identifier for this instance so the service worker can keep an + * independent cache of files for it. + */ + this._sessionId = generateUniqueSessionId(); + this._deferredTypeScriptWorkerApi = new Deferred(); + this._validImportMap = {}; + this.lastSave = Promise.resolve(); + this.savePending = false; + } + /** + * A document-relative path to a project configuration file. + * + * When both `projectSrc` and `files` are set, the one set most recently wins. + * Slotted children win only if both `projectSrc` and `files` are undefined + */ + get projectSrc() { + if (this._source.type === 'url') { + return this._source.url; + } + return undefined; + } + set projectSrc(url) { + if (url) { + if (this._source.type !== 'url' || this._source.url !== url) { + this._source = { type: 'url', url }; + } + } + else if (this._source.type === 'url') { + this._source = { type: 'none' }; + } + } + /** + * Get or set the project config. + * + * When both `projectSrc` and `config` are set, the one set most recently + * wins. Slotted children win only if both `projectSrc` and `config` are + * undefined. + */ + get config() { + var _a; + // Note this is declared a @property only to capture properties set before + // upgrade. Attribute reflection and update lifecycle disabled because they + // are not needed in this case. + return { + files: Object.fromEntries(((_a = this._files) !== null && _a !== void 0 ? _a : []).map((file) => [ + file.name, + { + ...file, + name: undefined, + }, + ])), + importMap: this._validImportMap, + }; + } + set config(config) { + if (config) { + this._source = { type: 'direct', config }; + } + else if (this._source.type === 'direct') { + this._source = { type: 'none' }; + } + } + get files() { + return this._files; + } + /** + * Map from filename to array of Language Server Protocol diagnostics + * resulting from the latest compilation. + */ + get diagnostics() { + var _a; + return (_a = this._build) === null || _a === void 0 ? void 0 : _a.diagnostics; + } + /** + * Indicates whether the user has modified, added, or removed any project + * files. Resets whenever a new project is loaded. + */ + get modified() { + if (this._modified === undefined) { + if (this._files === undefined && this._pristineFiles === undefined) { + this._modified = false; + } + else if (this._files === undefined || + this._pristineFiles === undefined) { + this._modified = true; + } + else { + this._modified = !playgroundFilesDeepEqual(this._files, this._pristineFiles); + } + } + return this._modified; + } + set _importMap(importMap) { + const errors = validateImportMap(importMap); + if (errors.length > 0) { + for (const error of errors) { + console.error(error); + } + this._validImportMap = {}; + } + else { + this._validImportMap = importMap; + } + } + get _importMap() { + return this._validImportMap; + } + get _normalizedSandboxBaseUrl() { + const url = new URL(this.sandboxBaseUrl, import.meta.url); + url.pathname = endWithSlash(url.pathname); + return url; + } + get baseUrl() { + // Make sure that we've connected to the Service Worker and loaded the + // project files before generating the preview URL. This ensures that there + // are files to load when the iframe navigates to the URL. + if (this._serviceWorkerAPI === undefined || this._files === undefined) { + return undefined; + } + // TODO (justinfagnani): lookup URL to show from project config + const indexUrl = new URL(`${endWithSlash(this.sandboxScope)}${this._sessionId}/`, this._normalizedSandboxBaseUrl); + return indexUrl.href; + } + get _serviceWorkerProxyIframeUrl() { + // We include the session ID as a query parameter so that the service worker + // can figure out which proxy client goes with which session. We use an + // #anchor instead of a ?queryParam because unpkg.com strips all + // ?queryParams. + return new URL(`playground-service-worker-proxy.html#playground-session-id=${this._sessionId}`, this._normalizedSandboxBaseUrl).href; + } + async update(changedProperties) { + if (changedProperties.has('_source')) { + /* eslint-disable @typescript-eslint/no-floating-promises */ + this._loadProjectFromSource(); + /* eslint-enable @typescript-eslint/no-floating-promises */ + } + if (changedProperties.has('sandboxScope') || + changedProperties.has('sandboxBaseUrl') || + changedProperties.has('_serviceWorkerAPI')) { + this.dispatchEvent(new CustomEvent('urlChanged')); + } + super.update(changedProperties); + } + async _loadProjectFromSource() { + const source = this._source; + switch (source.type) { + case 'none': + this._files = undefined; + this._importMap = {}; + break; + case 'direct': + { + const { files, importMap } = await expandProjectConfig(source.config, document.baseURI); + // Note the source could have changed while fetching, hence the + // double-check here. + if (source !== this._source) { + return; + } + this._files = files; + this._importMap = importMap; + } + break; + case 'slot': + this._files = source.files; + this._importMap = source.importMap; + break; + case 'url': + { + const { files, importMap } = await fetchProjectConfig(new URL(source.url, document.baseURI).href); + // Note the source could have changed while fetching, hence the + // double-check here. + if (source !== this._source) { + return; + } + this._files = files; + this._importMap = importMap; + } + break; + } + this._pristineFiles = + this._files && JSON.parse(JSON.stringify(this._files)); + this._modified = false; + this.dispatchEvent(new FilesChangedEvent(true)); + /* eslint-disable @typescript-eslint/no-floating-promises */ + this.save(); + /* eslint-enable @typescript-eslint/no-floating-promises */ + } + render() { + return x ` + + + `; + } + _slotChange() { + var _a; + const { type } = this._source; + if (type !== 'none' && type !== 'slot') { + // It's a little tricky to do "most recent wins" with slots, because the + // slotchange event will always fire after the first render, giving the + // illusion that it was set after the other methods. We could do some + // extra book-keeping to make this work, but it doesn't seem worth the + // complexity, because it should be very rare to [1] set a `projectSrc` or + // `files`, and then [2] slot some new children. + return; + } + const files = []; + let importMap = undefined; + for (const s of this._slot.assignedElements({ flatten: true })) { + const typeAttr = s.getAttribute('type'); + if (!(typeAttr === null || typeAttr === void 0 ? void 0 : typeAttr.startsWith('sample/'))) { + continue; + } + const fileType = typeAttr.substring('sample/'.length); + let content = (_a = s.textContent) !== null && _a !== void 0 ? _a : ''; + if (fileType === 'html') { + // Replace usages of `</script>` with ``. Match against + // `</` so that other usages of < aren't replaced. + content = content.replace(/<\//g, ' 0 || importMap !== undefined) { + this._source = { type: 'slot', files, importMap: importMap !== null && importMap !== void 0 ? importMap : {} }; + } + } + async firstUpdated() { + const typescriptWorkerScriptUrl = forceSkypackRawMode(new URL(new URL('assets/playground-typescript-worker-3d69e81a.js', import.meta.url).href, import.meta.url)); + let worker; + if (typescriptWorkerScriptUrl.origin === window.location.origin) { + // Easy case. + worker = new Worker(typescriptWorkerScriptUrl); + } + else { + // If the worker script is different-origin, we need to fetch it ourselves + // and create a blob URL. + const resp = await fetch(typescriptWorkerScriptUrl.href); + const text = await resp.text(); + const blobUrl = URL.createObjectURL(new Blob([text], { type: 'application/javascript' })); + worker = new Worker(blobUrl); + URL.revokeObjectURL(blobUrl); + } + this._deferredTypeScriptWorkerApi.resolve(wrap(worker)); + } + _onServiceWorkerProxyIframeLoad() { + // This channel is persistent, and is only used to receive new service + // worker channel ports from the proxy iframe. Note we can get new service + // worker ports at any time from the proxy, when the service worker updates. + const { port1, port2 } = new MessageChannel(); + port1.addEventListener('message', (event) => { + if (event.data.type === CONNECT_PROJECT_TO_SW) { + this._onNewServiceWorkerPort(event.data.port); + } + }); + port1.start(); + this._postMessageToServiceWorkerProxyIframe({ + type: CONFIGURE_PROXY, + scope: this.sandboxScope, + port: port2, + }, [port2]); + } + _onNewServiceWorkerPort(port) { + const onMessage = (e) => { + if (e.data.type === ACKNOWLEDGE_SW_CONNECTION) { + port.removeEventListener('message', onMessage); + if (e.data.version === serviceWorkerHash) { + this._serviceWorkerAPI = wrap(port); + /* eslint-disable @typescript-eslint/no-floating-promises */ + this._serviceWorkerAPI.setFileAPI(proxy({ + getFile: (name) => this._getFile(name), + }), this._sessionId); + /* eslint-enable @typescript-eslint/no-floating-promises */ + } + else { + // Version mismatch. Request the service worker be updated + // immediately. We'll get back here again after it updates via a + // CONNECT_PROJECT_TO_SW message from the proxy. + console.info(`Playground service worker is outdated. ` + + `Want ${serviceWorkerHash} but got ${e.data.version}. ` + + `Waiting for update.`); + this._postMessageToServiceWorkerProxyIframe({ + type: UPDATE_SERVICE_WORKER, + }); + } + } + }; + port.addEventListener('message', onMessage); + port.start(); + } + _postMessageToServiceWorkerProxyIframe(message, transfer) { + // This iframe exists to proxy messages between this project and the service + // worker, because the service worker may be running on a different origin + // for security. + const iframeWindow = this._serviceWorkerProxyIframe.contentWindow; + if (!iframeWindow) { + throw new Error('Unexpected internal error: ' + + ' service worker proxy iframe had no contentWindow'); + } + // We could constrain targetOrigin to + // `this._normalizedSandboxBaseUrl.origin`, but unclear if that provides any + // security benefit, and would add the limitation that the sandboxBaseUrl + // can't redirect to another origin. + iframeWindow.postMessage(message, '*', transfer); + } + async _getFile(name) { + if (this._build === undefined) { + return { + status: /* Service Unavailable */ 503, + body: 'Playground build not started', + }; + } + return this._build.getFile(name); + } + /** + * Build this project immediately, cancelling any previous build. + */ + async save() { + var _a, _b; + (_a = this._build) === null || _a === void 0 ? void 0 : _a.cancel(); + const build = new PlaygroundBuild(() => { + this.dispatchEvent(new CustomEvent('diagnosticsChanged')); + }); + this._build = build; + this.dispatchEvent(new CustomEvent('compileStart')); + const workerApi = await this._deferredTypeScriptWorkerApi.promise; + if (build.state() !== 'active') { + return; + } + /* eslint-disable @typescript-eslint/no-floating-promises */ + workerApi.compileProject((_b = this._files) !== null && _b !== void 0 ? _b : [], { importMap: this._importMap }, proxy((result) => build.onOutput(result))); + /* eslint-enable @typescript-eslint/no-floating-promises */ + await build.stateChange; + if (build.state() !== 'done') { + return; + } + this.dispatchEvent(new CustomEvent('compileDone')); + } + async getCompletions(changeData) { + var _a, _b, _c; + const tokenUnderCursorAsString = changeData.tokenUnderCursor.trim(); + // If the user is starting a new word, we need to fetch relevant completion items + // from the TypeScript Language Service. If we are however building on top of + // a already fetched completions list, by narrowing keyword matches, we can + // just work with what we have fetched earlier. + if (!changeData.isRefinement) { + const workerApi = await this._deferredTypeScriptWorkerApi.promise; + const completionInfo = await workerApi.getCompletions(changeData.fileName, changeData.fileContent, tokenUnderCursorAsString, changeData.cursorIndex, { importMap: this._importMap }); + if (completionInfo) { + const getCompletionDetailsFunction = this._getCompletionDetails.bind(this); + // We pre-generate the getter for each completion item's details, so that + // if neeeded, they can fetch their details themselves. + this._completionInfo = populateCompletionInfoWithDetailGetters(completionInfo, changeData.fileName, changeData.cursorIndex, getCompletionDetailsFunction); + } + } + const skipFuzzySearch = changeData.tokenUnderCursor === '.' || changeData.tokenUnderCursor === ''; + // In the case that the search word is a period or empty, we don't really + // have any material to fuzzy find with, so we don't have need + // for running the search results through a fuzzy search. + // For this case, we just return the entries as completion items as is. + let completions = []; + if (skipFuzzySearch) { + completions = completionEntriesAsEditorCompletions((_a = this._completionInfo) === null || _a === void 0 ? void 0 : _a.entries, changeData.tokenUnderCursor); + } + else { + completions = sortCompletionItems((_b = this._completionInfo) === null || _b === void 0 ? void 0 : _b.entries, tokenUnderCursorAsString); + } + // We want to pre-fetch the first completion item, if it's present + // so that when the data gets to the code-editor, the detail hopefully + // is already loaded. + // + // Note invoking this getter actually triggers the fetch. + void ((_c = completions[0]) === null || _c === void 0 ? void 0 : _c.details); + return completions; + } + async _getCompletionDetails(filename, cursorIndex, completionWord) { + const workerApi = await this._deferredTypeScriptWorkerApi.promise; + const completionItemDetails = await workerApi.getCompletionItemDetails(filename, cursorIndex, { importMap: this._importMap }, completionWord); + return completionItemDetails; + } + /** + * A simple debouncer that aims for maximal responsiveness when compiles are fast. + * + * There is no meaning to when the returned promise resolves. + */ + async saveDebounced() { + if (this.savePending) { + return; + } + this.savePending = true; + await this.lastSave; + this.savePending = false; + this.lastSave = this.save(); + } + isValidNewFilename(name) { + var _a; + if (!name) { + return false; + } + const existing = (_a = this._files) === null || _a === void 0 ? void 0 : _a.find((file) => file.name === name); + if (existing !== undefined) { + return existing.hidden === true; + } + return true; + } + editFile(file, newContent) { + // Note this method takes the file object itself rather than the name like + // add/delete/rename, because edits happen at high frequency so we don't + // want to be doing any searches. + file.content = newContent; + this._modified = undefined; + /* eslint-disable @typescript-eslint/no-floating-promises */ + this.saveDebounced(); + /* eslint-enable @typescript-eslint/no-floating-promises */ + } + addFile(name) { + var _a; + if (!this._files || !this.isValidNewFilename(name)) { + return; + } + const existing = (_a = this._files) === null || _a === void 0 ? void 0 : _a.find((file) => file.name === name); + if ((existing === null || existing === void 0 ? void 0 : existing.hidden) === true) { + // If a file already exists but is hidden, then we allow the user to + // "create" it, which is actually unhiding it. + existing.hidden = false; + } + else { + this._files.push({ + name, + content: '', + contentType: typeFromFilename(name), + }); + } + this._modified = undefined; + this.requestUpdate(); + this.dispatchEvent(new FilesChangedEvent()); + /* eslint-disable @typescript-eslint/no-floating-promises */ + this.save(); + /* eslint-enable @typescript-eslint/no-floating-promises */ + } + deleteFile(filename) { + if (!this._files) { + return; + } + const idx = this._files.findIndex((file) => file.name === filename); + if (idx < 0) { + return; + } + this._files = [...this._files.slice(0, idx), ...this._files.slice(idx + 1)]; + this._modified = undefined; + this.dispatchEvent(new FilesChangedEvent()); + /* eslint-disable @typescript-eslint/no-floating-promises */ + this.save(); + /* eslint-enable @typescript-eslint/no-floating-promises */ + } + renameFile(oldName, newName) { + if (!oldName || !this._files) { + return; + } + if (!this.isValidNewFilename(newName)) { + return; + } + const file = this._files.find((file) => file.name === oldName); + if (!file) { + return; + } + // TODO(aomarks) Check name is unique; + file.name = newName; + file.contentType = typeFromFilename(newName); + this._files = [...this._files]; + this._modified = undefined; + this.dispatchEvent(new FilesChangedEvent()); + /* eslint-disable @typescript-eslint/no-floating-promises */ + this.save(); + /* eslint-enable @typescript-eslint/no-floating-promises */ + } +}; +PlaygroundProject.styles = i$6 ` + iframe { + display: none; + } + `; +__decorate([ + e$5({ attribute: 'project-src', hasChanged: () => false }) +], PlaygroundProject.prototype, "projectSrc", null); +__decorate([ + e$5({ attribute: false, hasChanged: () => false }) +], PlaygroundProject.prototype, "config", null); +__decorate([ + t$1() +], PlaygroundProject.prototype, "_source", void 0); +__decorate([ + e$5({ attribute: 'sandbox-base-url' }) +], PlaygroundProject.prototype, "sandboxBaseUrl", void 0); +__decorate([ + e$5({ attribute: 'sandbox-scope' }) +], PlaygroundProject.prototype, "sandboxScope", void 0); +__decorate([ + t$1() +], PlaygroundProject.prototype, "_serviceWorkerAPI", void 0); +__decorate([ + i$2('slot') +], PlaygroundProject.prototype, "_slot", void 0); +__decorate([ + i$2('iframe') +], PlaygroundProject.prototype, "_serviceWorkerProxyIframe", void 0); +PlaygroundProject = __decorate([ + e$6('playground-project') +], PlaygroundProject); +/** + * Fetches and expands the given JSON project config URL. + */ +const fetchProjectConfig = async (url, alreadyFetchedFilenames = new Set(), alreadyFetchedConfigUrls = new Set()) => { + if (alreadyFetchedConfigUrls.has(url)) { + throw new Error(`Circular project config extends: ${[ + ...alreadyFetchedConfigUrls.values(), + url, + ].join(' extends ')}`); + } + alreadyFetchedConfigUrls.add(url); + const resp = await fetch(url); + if (resp.status !== 200) { + throw new Error(`Error ${resp.status} fetching project config from ${url}: ${await resp.text()}`); + } + let config; + try { + config = await resp.json(); + } + catch (e) { + throw new Error(`Error parsing project config JSON from ${url}: ${e.message}`); + } + return await expandProjectConfig(config, url, alreadyFetchedFilenames, alreadyFetchedConfigUrls); +}; +/** + * Expands a partial project config by following its `extends` property, and + * fetching the content for all files. + */ +const expandProjectConfig = async (config, baseUrl, alreadyFetchedFilenames = new Set(), alreadyFetchedConfigUrls = new Set()) => { + var _a, _b, _c, _d, _e; + const filePromises = []; + for (const [filename, info] of Object.entries((_a = config.files) !== null && _a !== void 0 ? _a : {})) { + // A higher precedence config is already handling this file. + if (alreadyFetchedFilenames.has(filename)) { + continue; + } + alreadyFetchedFilenames.add(filename); + if (info.content === undefined) { + filePromises.push((async () => { + var _a, _b; + const resp = await fetch(new URL(filename, baseUrl).href); + return { + ...info, + name: filename, + content: await resp.text(), + contentType: (_b = (_a = resp.headers.get('Content-Type')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== null && _b !== void 0 ? _b : 'text/plain', + }; + })()); + } + else { + filePromises.push(Promise.resolve({ + ...info, + name: filename, + content: (_b = info.content) !== null && _b !== void 0 ? _b : '', + contentType: (_c = typeFromFilename(filename)) !== null && _c !== void 0 ? _c : 'text/plain', + })); + } + } + // Start extends config fetch before we block on file fetches. + const extendsConfigPromise = config.extends + ? fetchProjectConfig(new URL(config.extends, baseUrl).href, alreadyFetchedFilenames, alreadyFetchedConfigUrls) + : undefined; + const files = await Promise.all(filePromises); + const importMap = (_d = config.importMap) !== null && _d !== void 0 ? _d : {}; + if (extendsConfigPromise) { + const extendsConfig = await extendsConfigPromise; + // Parent files go after our own. + files.push(...extendsConfig.files); + importMap.imports = { + ...(_e = extendsConfig.importMap) === null || _e === void 0 ? void 0 : _e.imports, + // Our imports take precedence over our parents. + ...importMap.imports, + }; + } + return { files, importMap }; +}; +const typeFromFilename = (filename) => { + const idx = filename.lastIndexOf('.'); + if (idx === -1 || idx === filename.length - 1) { + return undefined; + } + const extension = filename.slice(idx + 1); + return typeEnumToMimeType(extension); +}; +const typeEnumToMimeType = (type) => { + if (type === undefined) { + return; + } + switch (type) { + // TypeScript + case 'ts': + return 'video/mp2t'; + case 'js': + return 'application/javascript; charset=utf-8'; + case 'json': + return 'application/json; charset=utf-8'; + case 'jsx': + return 'text/jsx; charset=utf-8'; + case 'tsx': + return 'text/typescript-jsx; charset=utf-8'; + case 'html': + return 'text/html; charset=utf-8'; + case 'css': + return 'text/css; charset=utf-8'; + // taken from MDN's common MIME types + // https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types + case 'svg': + return 'image/svg+xml'; + case 'png': + return 'image/png'; + case 'gif': + return 'image/gif'; + case 'jpeg': + case 'jpg': + return 'image/jpeg'; + case 'ico': + return 'image/vnd.microsoft.icon'; + case 'webp': + return 'image/webp'; + case 'webm': + return 'video/webm'; + case 'mid': + case 'midi': + return 'audio/midi'; + case 'mp3': + return 'audio/mpeg'; + case 'weba': + return 'audio/webm'; + } + return undefined; +}; +/** + * Validate an import map configuration (https://wicg.github.io/import-maps/). + * Returns an array of errors. If empty, the import map is valid. + */ +const validateImportMap = (importMap) => { + const errors = []; + if (typeof importMap !== 'object' || importMap === null) { + errors.push(`Import map is invalid because it must be an object,` + + ` but it was ${importMap === null ? 'null' : typeof importMap}.`); + return errors; + } + const invalidKeys = Object.keys(importMap).filter((key) => key !== 'imports'); + if (invalidKeys.length > 0) { + errors.push(`Invalid import map properties: ${[...invalidKeys].join(', ')}.` + + ` Only "imports" are currently supported.`); + } + const imports = importMap.imports; + if (imports === undefined) { + return errors; + } + if (typeof imports !== 'object' || imports === null) { + errors.push(`Import map "imports" property is invalid` + + ` because it must be an object,` + + ` but it was ${imports === null ? 'null' : typeof imports}.`); + return errors; + } + for (const [specifierKey, resolutionResult] of Object.entries(imports)) { + if (typeof resolutionResult !== 'string') { + errors.push(`Import map key "${specifierKey}" is invalid because` + + ` address must be a string, but was` + + ` ${resolutionResult === null ? 'null' : typeof resolutionResult}`); + continue; + } + if (specifierKey.endsWith('/') && !resolutionResult.endsWith('/')) { + errors.push(`Import map key "${specifierKey}" is invalid because` + + ` address "${resolutionResult}" must end in a forward-slash.`); + } + try { + new URL(resolutionResult); + } + catch { + errors.push(`Import map key "${specifierKey}" is invalid because` + + ` address "${resolutionResult}" is not a valid URL.`); + } + } + return errors; +}; +/** + * Trim shared leading whitespace from all lines, and remove empty + * leading/trailing lines. + */ +const outdent = (str) => { + // Remove leading/trailing empty lines (we don't use trim() because we don't + // want to remove leading whitespace on the first content line). + str = str.replace(/(^[\n\s]*\n)|(\n[\n\s]*$)/g, ''); + let shortestIndent; + for (const line of str.split(/\n/g)) { + const indent = line.match(/^\s*/)[0].length; + if (shortestIndent === undefined || indent < shortestIndent) { + shortestIndent = indent; + } + } + return str.replace(RegExp(`^\\s{${shortestIndent !== null && shortestIndent !== void 0 ? shortestIndent : 0}}`, 'gm'), ''); +}; +/** + * Test whether two lists of Playground files are deeply equal. + */ +const playgroundFilesDeepEqual = (filesA, filesB) => { + if (filesA.length !== filesB.length) { + return false; + } + for (let i = 0; i < filesA.length; i++) { + const fileA = filesA[i]; + const fileB = filesB[i]; + if (fileA.name !== fileB.name || + fileA.contentType !== fileB.contentType || + fileA.hidden !== fileB.hidden || + fileA.label !== fileB.label) { + return false; + } + } + for (let i = 0; i < filesA.length; i++) { + const fileA = filesA[i]; + const fileB = filesB[i]; + if (fileA.content !== fileB.content) { + return false; + } + } + return true; +}; + +/** + * @license + * Copyright 2018 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +function matches(element, selector) { + var nativeMatches = element.matches + || element.webkitMatchesSelector + || element.msMatchesSelector; + return nativeMatches.call(element, selector); +} + +/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +// Style preference for leading underscores. +// tslint:disable:strip-private-property-underscore +/** + * Determines whether a node is an element. + * + * @param node Node to check + */ +const isNodeElement = (node) => { + return node.nodeType === Node.ELEMENT_NODE; +}; +function addHasRemoveClass(element) { + return { + addClass: (className) => { + element.classList.add(className); + }, + removeClass: (className) => { + element.classList.remove(className); + }, + hasClass: (className) => element.classList.contains(className), + }; +} +const fn = () => { }; +const optionsBlock = { + get passive() { + return false; + } +}; +document.addEventListener('x', fn, optionsBlock); +document.removeEventListener('x', fn); +const deepActiveElementPath = (doc = window.document) => { + let activeElement = doc.activeElement; + const path = []; + if (!activeElement) { + return path; + } + while (activeElement) { + path.push(activeElement); + if (activeElement.shadowRoot) { + activeElement = activeElement.shadowRoot.activeElement; + } + else { + break; + } + } + return path; +}; +const doesElementContainFocus = (element) => { + const activePath = deepActiveElementPath(); + if (!activePath.length) { + return false; + } + const deepActiveElement = activePath[activePath.length - 1]; + const focusEv = new Event('check-if-focused', { bubbles: true, composed: true }); + let composedPath = []; + const listener = (ev) => { + composedPath = ev.composedPath(); + }; + document.body.addEventListener('check-if-focused', listener); + deepActiveElement.dispatchEvent(focusEv); + document.body.removeEventListener('check-if-focused', listener); + return composedPath.indexOf(element) !== -1; +}; + +/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +/** @soyCompatible */ +class BaseElement extends s$1 { + click() { + if (this.mdcRoot) { + this.mdcRoot.focus(); + this.mdcRoot.click(); + return; + } + super.click(); + } + /** + * Create and attach the MDC Foundation to the instance + */ + createFoundation() { + if (this.mdcFoundation !== undefined) { + this.mdcFoundation.destroy(); + } + if (this.mdcFoundationClass) { + this.mdcFoundation = new this.mdcFoundationClass(this.createAdapter()); + this.mdcFoundation.init(); + } + } + firstUpdated() { + this.createFoundation(); + } +} + +/** + * @license + * Copyright 2016 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +var MDCFoundation = /** @class */ (function () { + function MDCFoundation(adapter) { + if (adapter === void 0) { adapter = {}; } + this.adapter = adapter; + } + Object.defineProperty(MDCFoundation, "cssClasses", { + get: function () { + // Classes extending MDCFoundation should implement this method to return an object which exports every + // CSS class the foundation class needs as a property. e.g. {ACTIVE: 'mdc-component--active'} + return {}; + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(MDCFoundation, "strings", { + get: function () { + // Classes extending MDCFoundation should implement this method to return an object which exports all + // semantic strings as constants. e.g. {ARIA_ROLE: 'tablist'} + return {}; + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(MDCFoundation, "numbers", { + get: function () { + // Classes extending MDCFoundation should implement this method to return an object which exports all + // of its semantic numbers as constants. e.g. {ANIMATION_DELAY_MS: 350} + return {}; + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(MDCFoundation, "defaultAdapter", { + get: function () { + // Classes extending MDCFoundation may choose to implement this getter in order to provide a convenient + // way of viewing the necessary methods of an adapter. In the future, this could also be used for adapter + // validation. + return {}; + }, + enumerable: false, + configurable: true + }); + MDCFoundation.prototype.init = function () { + // Subclasses should override this method to perform initialization routines (registering events, etc.) + }; + MDCFoundation.prototype.destroy = function () { + // Subclasses should override this method to perform de-initialization routines (de-registering events, etc.) + }; + return MDCFoundation; +}()); + +/** + * @license + * Copyright 2016 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +var cssClasses$6 = { + // Ripple is a special case where the "root" component is really a "mixin" of sorts, + // given that it's an 'upgrade' to an existing component. That being said it is the root + // CSS class that all other CSS classes derive from. + BG_FOCUSED: 'mdc-ripple-upgraded--background-focused', + FG_ACTIVATION: 'mdc-ripple-upgraded--foreground-activation', + FG_DEACTIVATION: 'mdc-ripple-upgraded--foreground-deactivation', + ROOT: 'mdc-ripple-upgraded', + UNBOUNDED: 'mdc-ripple-upgraded--unbounded', +}; +var strings$4 = { + VAR_FG_SCALE: '--mdc-ripple-fg-scale', + VAR_FG_SIZE: '--mdc-ripple-fg-size', + VAR_FG_TRANSLATE_END: '--mdc-ripple-fg-translate-end', + VAR_FG_TRANSLATE_START: '--mdc-ripple-fg-translate-start', + VAR_LEFT: '--mdc-ripple-left', + VAR_TOP: '--mdc-ripple-top', +}; +var numbers$4 = { + DEACTIVATION_TIMEOUT_MS: 225, + FG_DEACTIVATION_MS: 150, + INITIAL_ORIGIN_SCALE: 0.6, + PADDING: 10, + TAP_DELAY_MS: 300, // Delay between touch and simulated mouse events on touch devices +}; + +/** + * Stores result from supportsCssVariables to avoid redundant processing to + * detect CSS custom variable support. + */ +function getNormalizedEventCoords(evt, pageOffset, clientRect) { + if (!evt) { + return { x: 0, y: 0 }; + } + var x = pageOffset.x, y = pageOffset.y; + var documentX = x + clientRect.left; + var documentY = y + clientRect.top; + var normalizedX; + var normalizedY; + // Determine touch point relative to the ripple container. + if (evt.type === 'touchstart') { + var touchEvent = evt; + normalizedX = touchEvent.changedTouches[0].pageX - documentX; + normalizedY = touchEvent.changedTouches[0].pageY - documentY; + } + else { + var mouseEvent = evt; + normalizedX = mouseEvent.pageX - documentX; + normalizedY = mouseEvent.pageY - documentY; + } + return { x: normalizedX, y: normalizedY }; +} + +/** + * @license + * Copyright 2016 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +// Activation events registered on the root element of each instance for activation +var ACTIVATION_EVENT_TYPES = [ + 'touchstart', 'pointerdown', 'mousedown', 'keydown', +]; +// Deactivation events registered on documentElement when a pointer-related down event occurs +var POINTER_DEACTIVATION_EVENT_TYPES = [ + 'touchend', 'pointerup', 'mouseup', 'contextmenu', +]; +// simultaneous nested activations +var activatedTargets = []; +var MDCRippleFoundation = /** @class */ (function (_super) { + __extends(MDCRippleFoundation, _super); + function MDCRippleFoundation(adapter) { + var _this = _super.call(this, __assign(__assign({}, MDCRippleFoundation.defaultAdapter), adapter)) || this; + _this.activationAnimationHasEnded = false; + _this.activationTimer = 0; + _this.fgDeactivationRemovalTimer = 0; + _this.fgScale = '0'; + _this.frame = { width: 0, height: 0 }; + _this.initialSize = 0; + _this.layoutFrame = 0; + _this.maxRadius = 0; + _this.unboundedCoords = { left: 0, top: 0 }; + _this.activationState = _this.defaultActivationState(); + _this.activationTimerCallback = function () { + _this.activationAnimationHasEnded = true; + _this.runDeactivationUXLogicIfReady(); + }; + _this.activateHandler = function (e) { + _this.activateImpl(e); + }; + _this.deactivateHandler = function () { + _this.deactivateImpl(); + }; + _this.focusHandler = function () { + _this.handleFocus(); + }; + _this.blurHandler = function () { + _this.handleBlur(); + }; + _this.resizeHandler = function () { + _this.layout(); + }; + return _this; + } + Object.defineProperty(MDCRippleFoundation, "cssClasses", { + get: function () { + return cssClasses$6; + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(MDCRippleFoundation, "strings", { + get: function () { + return strings$4; + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(MDCRippleFoundation, "numbers", { + get: function () { + return numbers$4; + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(MDCRippleFoundation, "defaultAdapter", { + get: function () { + return { + addClass: function () { return undefined; }, + browserSupportsCssVars: function () { return true; }, + computeBoundingRect: function () { + return ({ top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 }); + }, + containsEventTarget: function () { return true; }, + deregisterDocumentInteractionHandler: function () { return undefined; }, + deregisterInteractionHandler: function () { return undefined; }, + deregisterResizeHandler: function () { return undefined; }, + getWindowPageOffset: function () { return ({ x: 0, y: 0 }); }, + isSurfaceActive: function () { return true; }, + isSurfaceDisabled: function () { return true; }, + isUnbounded: function () { return true; }, + registerDocumentInteractionHandler: function () { return undefined; }, + registerInteractionHandler: function () { return undefined; }, + registerResizeHandler: function () { return undefined; }, + removeClass: function () { return undefined; }, + updateCssVariable: function () { return undefined; }, + }; + }, + enumerable: false, + configurable: true + }); + MDCRippleFoundation.prototype.init = function () { + var _this = this; + var supportsPressRipple = this.supportsPressRipple(); + this.registerRootHandlers(supportsPressRipple); + if (supportsPressRipple) { + var _a = MDCRippleFoundation.cssClasses, ROOT_1 = _a.ROOT, UNBOUNDED_1 = _a.UNBOUNDED; + requestAnimationFrame(function () { + _this.adapter.addClass(ROOT_1); + if (_this.adapter.isUnbounded()) { + _this.adapter.addClass(UNBOUNDED_1); + // Unbounded ripples need layout logic applied immediately to set coordinates for both shade and ripple + _this.layoutInternal(); + } + }); + } + }; + MDCRippleFoundation.prototype.destroy = function () { + var _this = this; + if (this.supportsPressRipple()) { + if (this.activationTimer) { + clearTimeout(this.activationTimer); + this.activationTimer = 0; + this.adapter.removeClass(MDCRippleFoundation.cssClasses.FG_ACTIVATION); + } + if (this.fgDeactivationRemovalTimer) { + clearTimeout(this.fgDeactivationRemovalTimer); + this.fgDeactivationRemovalTimer = 0; + this.adapter.removeClass(MDCRippleFoundation.cssClasses.FG_DEACTIVATION); + } + var _a = MDCRippleFoundation.cssClasses, ROOT_2 = _a.ROOT, UNBOUNDED_2 = _a.UNBOUNDED; + requestAnimationFrame(function () { + _this.adapter.removeClass(ROOT_2); + _this.adapter.removeClass(UNBOUNDED_2); + _this.removeCssVars(); + }); + } + this.deregisterRootHandlers(); + this.deregisterDeactivationHandlers(); + }; + /** + * @param evt Optional event containing position information. + */ + MDCRippleFoundation.prototype.activate = function (evt) { + this.activateImpl(evt); + }; + MDCRippleFoundation.prototype.deactivate = function () { + this.deactivateImpl(); + }; + MDCRippleFoundation.prototype.layout = function () { + var _this = this; + if (this.layoutFrame) { + cancelAnimationFrame(this.layoutFrame); + } + this.layoutFrame = requestAnimationFrame(function () { + _this.layoutInternal(); + _this.layoutFrame = 0; + }); + }; + MDCRippleFoundation.prototype.setUnbounded = function (unbounded) { + var UNBOUNDED = MDCRippleFoundation.cssClasses.UNBOUNDED; + if (unbounded) { + this.adapter.addClass(UNBOUNDED); + } + else { + this.adapter.removeClass(UNBOUNDED); + } + }; + MDCRippleFoundation.prototype.handleFocus = function () { + var _this = this; + requestAnimationFrame(function () { return _this.adapter.addClass(MDCRippleFoundation.cssClasses.BG_FOCUSED); }); + }; + MDCRippleFoundation.prototype.handleBlur = function () { + var _this = this; + requestAnimationFrame(function () { return _this.adapter.removeClass(MDCRippleFoundation.cssClasses.BG_FOCUSED); }); + }; + /** + * We compute this property so that we are not querying information about the client + * until the point in time where the foundation requests it. This prevents scenarios where + * client-side feature-detection may happen too early, such as when components are rendered on the server + * and then initialized at mount time on the client. + */ + MDCRippleFoundation.prototype.supportsPressRipple = function () { + return this.adapter.browserSupportsCssVars(); + }; + MDCRippleFoundation.prototype.defaultActivationState = function () { + return { + activationEvent: undefined, + hasDeactivationUXRun: false, + isActivated: false, + isProgrammatic: false, + wasActivatedByPointer: false, + wasElementMadeActive: false, + }; + }; + /** + * supportsPressRipple Passed from init to save a redundant function call + */ + MDCRippleFoundation.prototype.registerRootHandlers = function (supportsPressRipple) { + var e_1, _a; + if (supportsPressRipple) { + try { + for (var ACTIVATION_EVENT_TYPES_1 = __values(ACTIVATION_EVENT_TYPES), ACTIVATION_EVENT_TYPES_1_1 = ACTIVATION_EVENT_TYPES_1.next(); !ACTIVATION_EVENT_TYPES_1_1.done; ACTIVATION_EVENT_TYPES_1_1 = ACTIVATION_EVENT_TYPES_1.next()) { + var evtType = ACTIVATION_EVENT_TYPES_1_1.value; + this.adapter.registerInteractionHandler(evtType, this.activateHandler); + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { + if (ACTIVATION_EVENT_TYPES_1_1 && !ACTIVATION_EVENT_TYPES_1_1.done && (_a = ACTIVATION_EVENT_TYPES_1.return)) _a.call(ACTIVATION_EVENT_TYPES_1); + } + finally { if (e_1) throw e_1.error; } + } + if (this.adapter.isUnbounded()) { + this.adapter.registerResizeHandler(this.resizeHandler); + } + } + this.adapter.registerInteractionHandler('focus', this.focusHandler); + this.adapter.registerInteractionHandler('blur', this.blurHandler); + }; + MDCRippleFoundation.prototype.registerDeactivationHandlers = function (evt) { + var e_2, _a; + if (evt.type === 'keydown') { + this.adapter.registerInteractionHandler('keyup', this.deactivateHandler); + } + else { + try { + for (var POINTER_DEACTIVATION_EVENT_TYPES_1 = __values(POINTER_DEACTIVATION_EVENT_TYPES), POINTER_DEACTIVATION_EVENT_TYPES_1_1 = POINTER_DEACTIVATION_EVENT_TYPES_1.next(); !POINTER_DEACTIVATION_EVENT_TYPES_1_1.done; POINTER_DEACTIVATION_EVENT_TYPES_1_1 = POINTER_DEACTIVATION_EVENT_TYPES_1.next()) { + var evtType = POINTER_DEACTIVATION_EVENT_TYPES_1_1.value; + this.adapter.registerDocumentInteractionHandler(evtType, this.deactivateHandler); + } + } + catch (e_2_1) { e_2 = { error: e_2_1 }; } + finally { + try { + if (POINTER_DEACTIVATION_EVENT_TYPES_1_1 && !POINTER_DEACTIVATION_EVENT_TYPES_1_1.done && (_a = POINTER_DEACTIVATION_EVENT_TYPES_1.return)) _a.call(POINTER_DEACTIVATION_EVENT_TYPES_1); + } + finally { if (e_2) throw e_2.error; } + } + } + }; + MDCRippleFoundation.prototype.deregisterRootHandlers = function () { + var e_3, _a; + try { + for (var ACTIVATION_EVENT_TYPES_2 = __values(ACTIVATION_EVENT_TYPES), ACTIVATION_EVENT_TYPES_2_1 = ACTIVATION_EVENT_TYPES_2.next(); !ACTIVATION_EVENT_TYPES_2_1.done; ACTIVATION_EVENT_TYPES_2_1 = ACTIVATION_EVENT_TYPES_2.next()) { + var evtType = ACTIVATION_EVENT_TYPES_2_1.value; + this.adapter.deregisterInteractionHandler(evtType, this.activateHandler); + } + } + catch (e_3_1) { e_3 = { error: e_3_1 }; } + finally { + try { + if (ACTIVATION_EVENT_TYPES_2_1 && !ACTIVATION_EVENT_TYPES_2_1.done && (_a = ACTIVATION_EVENT_TYPES_2.return)) _a.call(ACTIVATION_EVENT_TYPES_2); + } + finally { if (e_3) throw e_3.error; } + } + this.adapter.deregisterInteractionHandler('focus', this.focusHandler); + this.adapter.deregisterInteractionHandler('blur', this.blurHandler); + if (this.adapter.isUnbounded()) { + this.adapter.deregisterResizeHandler(this.resizeHandler); + } + }; + MDCRippleFoundation.prototype.deregisterDeactivationHandlers = function () { + var e_4, _a; + this.adapter.deregisterInteractionHandler('keyup', this.deactivateHandler); + try { + for (var POINTER_DEACTIVATION_EVENT_TYPES_2 = __values(POINTER_DEACTIVATION_EVENT_TYPES), POINTER_DEACTIVATION_EVENT_TYPES_2_1 = POINTER_DEACTIVATION_EVENT_TYPES_2.next(); !POINTER_DEACTIVATION_EVENT_TYPES_2_1.done; POINTER_DEACTIVATION_EVENT_TYPES_2_1 = POINTER_DEACTIVATION_EVENT_TYPES_2.next()) { + var evtType = POINTER_DEACTIVATION_EVENT_TYPES_2_1.value; + this.adapter.deregisterDocumentInteractionHandler(evtType, this.deactivateHandler); + } + } + catch (e_4_1) { e_4 = { error: e_4_1 }; } + finally { + try { + if (POINTER_DEACTIVATION_EVENT_TYPES_2_1 && !POINTER_DEACTIVATION_EVENT_TYPES_2_1.done && (_a = POINTER_DEACTIVATION_EVENT_TYPES_2.return)) _a.call(POINTER_DEACTIVATION_EVENT_TYPES_2); + } + finally { if (e_4) throw e_4.error; } + } + }; + MDCRippleFoundation.prototype.removeCssVars = function () { + var _this = this; + var rippleStrings = MDCRippleFoundation.strings; + var keys = Object.keys(rippleStrings); + keys.forEach(function (key) { + if (key.indexOf('VAR_') === 0) { + _this.adapter.updateCssVariable(rippleStrings[key], null); + } + }); + }; + MDCRippleFoundation.prototype.activateImpl = function (evt) { + var _this = this; + if (this.adapter.isSurfaceDisabled()) { + return; + } + var activationState = this.activationState; + if (activationState.isActivated) { + return; + } + // Avoid reacting to follow-on events fired by touch device after an already-processed user interaction + var previousActivationEvent = this.previousActivationEvent; + var isSameInteraction = previousActivationEvent && evt !== undefined && previousActivationEvent.type !== evt.type; + if (isSameInteraction) { + return; + } + activationState.isActivated = true; + activationState.isProgrammatic = evt === undefined; + activationState.activationEvent = evt; + activationState.wasActivatedByPointer = activationState.isProgrammatic ? false : evt !== undefined && (evt.type === 'mousedown' || evt.type === 'touchstart' || evt.type === 'pointerdown'); + var hasActivatedChild = evt !== undefined && + activatedTargets.length > 0 && + activatedTargets.some(function (target) { return _this.adapter.containsEventTarget(target); }); + if (hasActivatedChild) { + // Immediately reset activation state, while preserving logic that prevents touch follow-on events + this.resetActivationState(); + return; + } + if (evt !== undefined) { + activatedTargets.push(evt.target); + this.registerDeactivationHandlers(evt); + } + activationState.wasElementMadeActive = this.checkElementMadeActive(evt); + if (activationState.wasElementMadeActive) { + this.animateActivation(); + } + requestAnimationFrame(function () { + // Reset array on next frame after the current event has had a chance to bubble to prevent ancestor ripples + activatedTargets = []; + if (!activationState.wasElementMadeActive + && evt !== undefined + && (evt.key === ' ' || evt.keyCode === 32)) { + // If space was pressed, try again within an rAF call to detect :active, because different UAs report + // active states inconsistently when they're called within event handling code: + // - https://bugs.chromium.org/p/chromium/issues/detail?id=635971 + // - https://bugzilla.mozilla.org/show_bug.cgi?id=1293741 + // We try first outside rAF to support Edge, which does not exhibit this problem, but will crash if a CSS + // variable is set within a rAF callback for a submit button interaction (#2241). + activationState.wasElementMadeActive = _this.checkElementMadeActive(evt); + if (activationState.wasElementMadeActive) { + _this.animateActivation(); + } + } + if (!activationState.wasElementMadeActive) { + // Reset activation state immediately if element was not made active. + _this.activationState = _this.defaultActivationState(); + } + }); + }; + MDCRippleFoundation.prototype.checkElementMadeActive = function (evt) { + return (evt !== undefined && evt.type === 'keydown') ? + this.adapter.isSurfaceActive() : + true; + }; + MDCRippleFoundation.prototype.animateActivation = function () { + var _this = this; + var _a = MDCRippleFoundation.strings, VAR_FG_TRANSLATE_START = _a.VAR_FG_TRANSLATE_START, VAR_FG_TRANSLATE_END = _a.VAR_FG_TRANSLATE_END; + var _b = MDCRippleFoundation.cssClasses, FG_DEACTIVATION = _b.FG_DEACTIVATION, FG_ACTIVATION = _b.FG_ACTIVATION; + var DEACTIVATION_TIMEOUT_MS = MDCRippleFoundation.numbers.DEACTIVATION_TIMEOUT_MS; + this.layoutInternal(); + var translateStart = ''; + var translateEnd = ''; + if (!this.adapter.isUnbounded()) { + var _c = this.getFgTranslationCoordinates(), startPoint = _c.startPoint, endPoint = _c.endPoint; + translateStart = startPoint.x + "px, " + startPoint.y + "px"; + translateEnd = endPoint.x + "px, " + endPoint.y + "px"; + } + this.adapter.updateCssVariable(VAR_FG_TRANSLATE_START, translateStart); + this.adapter.updateCssVariable(VAR_FG_TRANSLATE_END, translateEnd); + // Cancel any ongoing activation/deactivation animations + clearTimeout(this.activationTimer); + clearTimeout(this.fgDeactivationRemovalTimer); + this.rmBoundedActivationClasses(); + this.adapter.removeClass(FG_DEACTIVATION); + // Force layout in order to re-trigger the animation. + this.adapter.computeBoundingRect(); + this.adapter.addClass(FG_ACTIVATION); + this.activationTimer = setTimeout(function () { + _this.activationTimerCallback(); + }, DEACTIVATION_TIMEOUT_MS); + }; + MDCRippleFoundation.prototype.getFgTranslationCoordinates = function () { + var _a = this.activationState, activationEvent = _a.activationEvent, wasActivatedByPointer = _a.wasActivatedByPointer; + var startPoint; + if (wasActivatedByPointer) { + startPoint = getNormalizedEventCoords(activationEvent, this.adapter.getWindowPageOffset(), this.adapter.computeBoundingRect()); + } + else { + startPoint = { + x: this.frame.width / 2, + y: this.frame.height / 2, + }; + } + // Center the element around the start point. + startPoint = { + x: startPoint.x - (this.initialSize / 2), + y: startPoint.y - (this.initialSize / 2), + }; + var endPoint = { + x: (this.frame.width / 2) - (this.initialSize / 2), + y: (this.frame.height / 2) - (this.initialSize / 2), + }; + return { startPoint: startPoint, endPoint: endPoint }; + }; + MDCRippleFoundation.prototype.runDeactivationUXLogicIfReady = function () { + var _this = this; + // This method is called both when a pointing device is released, and when the activation animation ends. + // The deactivation animation should only run after both of those occur. + var FG_DEACTIVATION = MDCRippleFoundation.cssClasses.FG_DEACTIVATION; + var _a = this.activationState, hasDeactivationUXRun = _a.hasDeactivationUXRun, isActivated = _a.isActivated; + var activationHasEnded = hasDeactivationUXRun || !isActivated; + if (activationHasEnded && this.activationAnimationHasEnded) { + this.rmBoundedActivationClasses(); + this.adapter.addClass(FG_DEACTIVATION); + this.fgDeactivationRemovalTimer = setTimeout(function () { + _this.adapter.removeClass(FG_DEACTIVATION); + }, numbers$4.FG_DEACTIVATION_MS); + } + }; + MDCRippleFoundation.prototype.rmBoundedActivationClasses = function () { + var FG_ACTIVATION = MDCRippleFoundation.cssClasses.FG_ACTIVATION; + this.adapter.removeClass(FG_ACTIVATION); + this.activationAnimationHasEnded = false; + this.adapter.computeBoundingRect(); + }; + MDCRippleFoundation.prototype.resetActivationState = function () { + var _this = this; + this.previousActivationEvent = this.activationState.activationEvent; + this.activationState = this.defaultActivationState(); + // Touch devices may fire additional events for the same interaction within a short time. + // Store the previous event until it's safe to assume that subsequent events are for new interactions. + setTimeout(function () { return _this.previousActivationEvent = undefined; }, MDCRippleFoundation.numbers.TAP_DELAY_MS); + }; + MDCRippleFoundation.prototype.deactivateImpl = function () { + var _this = this; + var activationState = this.activationState; + // This can happen in scenarios such as when you have a keyup event that blurs the element. + if (!activationState.isActivated) { + return; + } + var state = __assign({}, activationState); + if (activationState.isProgrammatic) { + requestAnimationFrame(function () { + _this.animateDeactivation(state); + }); + this.resetActivationState(); + } + else { + this.deregisterDeactivationHandlers(); + requestAnimationFrame(function () { + _this.activationState.hasDeactivationUXRun = true; + _this.animateDeactivation(state); + _this.resetActivationState(); + }); + } + }; + MDCRippleFoundation.prototype.animateDeactivation = function (_a) { + var wasActivatedByPointer = _a.wasActivatedByPointer, wasElementMadeActive = _a.wasElementMadeActive; + if (wasActivatedByPointer || wasElementMadeActive) { + this.runDeactivationUXLogicIfReady(); + } + }; + MDCRippleFoundation.prototype.layoutInternal = function () { + var _this = this; + this.frame = this.adapter.computeBoundingRect(); + var maxDim = Math.max(this.frame.height, this.frame.width); + // Surface diameter is treated differently for unbounded vs. bounded ripples. + // Unbounded ripple diameter is calculated smaller since the surface is expected to already be padded appropriately + // to extend the hitbox, and the ripple is expected to meet the edges of the padded hitbox (which is typically + // square). Bounded ripples, on the other hand, are fully expected to expand beyond the surface's longest diameter + // (calculated based on the diagonal plus a constant padding), and are clipped at the surface's border via + // `overflow: hidden`. + var getBoundedRadius = function () { + var hypotenuse = Math.sqrt(Math.pow(_this.frame.width, 2) + Math.pow(_this.frame.height, 2)); + return hypotenuse + MDCRippleFoundation.numbers.PADDING; + }; + this.maxRadius = this.adapter.isUnbounded() ? maxDim : getBoundedRadius(); + // Ripple is sized as a fraction of the largest dimension of the surface, then scales up using a CSS scale transform + var initialSize = Math.floor(maxDim * MDCRippleFoundation.numbers.INITIAL_ORIGIN_SCALE); + // Unbounded ripple size should always be even number to equally center align. + if (this.adapter.isUnbounded() && initialSize % 2 !== 0) { + this.initialSize = initialSize - 1; + } + else { + this.initialSize = initialSize; + } + this.fgScale = "" + this.maxRadius / this.initialSize; + this.updateLayoutCssVars(); + }; + MDCRippleFoundation.prototype.updateLayoutCssVars = function () { + var _a = MDCRippleFoundation.strings, VAR_FG_SIZE = _a.VAR_FG_SIZE, VAR_LEFT = _a.VAR_LEFT, VAR_TOP = _a.VAR_TOP, VAR_FG_SCALE = _a.VAR_FG_SCALE; + this.adapter.updateCssVariable(VAR_FG_SIZE, this.initialSize + "px"); + this.adapter.updateCssVariable(VAR_FG_SCALE, this.fgScale); + if (this.adapter.isUnbounded()) { + this.unboundedCoords = { + left: Math.round((this.frame.width / 2) - (this.initialSize / 2)), + top: Math.round((this.frame.height / 2) - (this.initialSize / 2)), + }; + this.adapter.updateCssVariable(VAR_LEFT, this.unboundedCoords.left + "px"); + this.adapter.updateCssVariable(VAR_TOP, this.unboundedCoords.top + "px"); + } + }; + return MDCRippleFoundation; +}(MDCFoundation)); +// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier. +var MDCRippleFoundation$1 = MDCRippleFoundation; + +/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const i$1="important",n$1=" !"+i$1,o=e$7(class extends i$4{constructor(t){var e;if(super(t),t.type!==t$2.ATTRIBUTE||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,r)=>{const s=t[r];return null==s?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(e,[r]){const{style:s}=e.element;if(void 0===this.ut){this.ut=new Set;for(const t in r)this.ut.add(t);return this.render(r)}this.ut.forEach((t=>{null==r[t]&&(this.ut.delete(t),t.includes("-")?s.removeProperty(t):s[t]="");}));for(const t in r){const e=r[t];if(null!=e){this.ut.add(t);const r="string"==typeof e&&e.endsWith(n$1);t.includes("-")||r?s.setProperty(t,r?e.slice(0,-11):e,r?i$1:""):s[t]=e;}}return T}}); + +/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +/** @soyCompatible */ +class RippleBase extends BaseElement { + constructor() { + super(...arguments); + this.primary = false; + this.accent = false; + this.unbounded = false; + this.disabled = false; + this.activated = false; + this.selected = false; + this.internalUseStateLayerCustomProperties = false; + this.hovering = false; + this.bgFocused = false; + this.fgActivation = false; + this.fgDeactivation = false; + this.fgScale = ''; + this.fgSize = ''; + this.translateStart = ''; + this.translateEnd = ''; + this.leftPos = ''; + this.topPos = ''; + this.mdcFoundationClass = MDCRippleFoundation$1; + } + get isActive() { + return matches(this.parentElement || this, ':active'); + } + createAdapter() { + return { + browserSupportsCssVars: () => true, + isUnbounded: () => this.unbounded, + isSurfaceActive: () => this.isActive, + isSurfaceDisabled: () => this.disabled, + addClass: (className) => { + switch (className) { + case 'mdc-ripple-upgraded--background-focused': + this.bgFocused = true; + break; + case 'mdc-ripple-upgraded--foreground-activation': + this.fgActivation = true; + break; + case 'mdc-ripple-upgraded--foreground-deactivation': + this.fgDeactivation = true; + break; + } + }, + removeClass: (className) => { + switch (className) { + case 'mdc-ripple-upgraded--background-focused': + this.bgFocused = false; + break; + case 'mdc-ripple-upgraded--foreground-activation': + this.fgActivation = false; + break; + case 'mdc-ripple-upgraded--foreground-deactivation': + this.fgDeactivation = false; + break; + } + }, + containsEventTarget: () => true, + registerInteractionHandler: () => undefined, + deregisterInteractionHandler: () => undefined, + registerDocumentInteractionHandler: () => undefined, + deregisterDocumentInteractionHandler: () => undefined, + registerResizeHandler: () => undefined, + deregisterResizeHandler: () => undefined, + updateCssVariable: (varName, value) => { + switch (varName) { + case '--mdc-ripple-fg-scale': + this.fgScale = value; + break; + case '--mdc-ripple-fg-size': + this.fgSize = value; + break; + case '--mdc-ripple-fg-translate-end': + this.translateEnd = value; + break; + case '--mdc-ripple-fg-translate-start': + this.translateStart = value; + break; + case '--mdc-ripple-left': + this.leftPos = value; + break; + case '--mdc-ripple-top': + this.topPos = value; + break; + } + }, + computeBoundingRect: () => (this.parentElement || this).getBoundingClientRect(), + getWindowPageOffset: () => ({ x: window.pageXOffset, y: window.pageYOffset }), + }; + } + startPress(ev) { + this.waitForFoundation(() => { + this.mdcFoundation.activate(ev); + }); + } + endPress() { + this.waitForFoundation(() => { + this.mdcFoundation.deactivate(); + }); + } + startFocus() { + this.waitForFoundation(() => { + this.mdcFoundation.handleFocus(); + }); + } + endFocus() { + this.waitForFoundation(() => { + this.mdcFoundation.handleBlur(); + }); + } + startHover() { + this.hovering = true; + } + endHover() { + this.hovering = false; + } + /** + * Wait for the MDCFoundation to be created by `firstUpdated` + */ + waitForFoundation(fn) { + if (this.mdcFoundation) { + fn(); + } + else { + this.updateComplete.then(fn); + } + } + update(changedProperties) { + if (changedProperties.has('disabled')) { + // stop hovering when ripple is disabled to prevent a stuck "hover" state + // When re-enabled, the outer component will get a `mouseenter` event on + // the first movement, which will call `startHover()` + if (this.disabled) { + this.endHover(); + } + } + super.update(changedProperties); + } + /** @soyTemplate */ + render() { + const shouldActivateInPrimary = this.activated && (this.primary || !this.accent); + const shouldSelectInPrimary = this.selected && (this.primary || !this.accent); + /** @classMap */ + const classes = { + 'mdc-ripple-surface--accent': this.accent, + 'mdc-ripple-surface--primary--activated': shouldActivateInPrimary, + 'mdc-ripple-surface--accent--activated': this.accent && this.activated, + 'mdc-ripple-surface--primary--selected': shouldSelectInPrimary, + 'mdc-ripple-surface--accent--selected': this.accent && this.selected, + 'mdc-ripple-surface--disabled': this.disabled, + 'mdc-ripple-surface--hover': this.hovering, + 'mdc-ripple-surface--primary': this.primary, + 'mdc-ripple-surface--selected': this.selected, + 'mdc-ripple-upgraded--background-focused': this.bgFocused, + 'mdc-ripple-upgraded--foreground-activation': this.fgActivation, + 'mdc-ripple-upgraded--foreground-deactivation': this.fgDeactivation, + 'mdc-ripple-upgraded--unbounded': this.unbounded, + 'mdc-ripple-surface--internal-use-state-layer-custom-properties': this.internalUseStateLayerCustomProperties, + }; + return x ` +
`; + } +} +__decorate([ + i$2('.mdc-ripple-surface') +], RippleBase.prototype, "mdcRoot", void 0); +__decorate([ + e$5({ type: Boolean }) +], RippleBase.prototype, "primary", void 0); +__decorate([ + e$5({ type: Boolean }) +], RippleBase.prototype, "accent", void 0); +__decorate([ + e$5({ type: Boolean }) +], RippleBase.prototype, "unbounded", void 0); +__decorate([ + e$5({ type: Boolean }) +], RippleBase.prototype, "disabled", void 0); +__decorate([ + e$5({ type: Boolean }) +], RippleBase.prototype, "activated", void 0); +__decorate([ + e$5({ type: Boolean }) +], RippleBase.prototype, "selected", void 0); +__decorate([ + e$5({ type: Boolean }) +], RippleBase.prototype, "internalUseStateLayerCustomProperties", void 0); +__decorate([ + t$1() +], RippleBase.prototype, "hovering", void 0); +__decorate([ + t$1() +], RippleBase.prototype, "bgFocused", void 0); +__decorate([ + t$1() +], RippleBase.prototype, "fgActivation", void 0); +__decorate([ + t$1() +], RippleBase.prototype, "fgDeactivation", void 0); +__decorate([ + t$1() +], RippleBase.prototype, "fgScale", void 0); +__decorate([ + t$1() +], RippleBase.prototype, "fgSize", void 0); +__decorate([ + t$1() +], RippleBase.prototype, "translateStart", void 0); +__decorate([ + t$1() +], RippleBase.prototype, "translateEnd", void 0); +__decorate([ + t$1() +], RippleBase.prototype, "leftPos", void 0); +__decorate([ + t$1() +], RippleBase.prototype, "topPos", void 0); + +/** + * @license + * Copyright 2021 Google LLC + * SPDX-LIcense-Identifier: Apache-2.0 + */ +const styles$e = i$6 `.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::before,.mdc-ripple-surface--primary::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary:hover::before,.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before,.mdc-ripple-surface--primary--activated::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--activated:hover::before,.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--primary--selected::before,.mdc-ripple-surface--primary--selected::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--selected:hover::before,.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::before,.mdc-ripple-surface--accent::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent:hover::before,.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before,.mdc-ripple-surface--accent--activated::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--activated:hover::before,.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--accent--selected::before,.mdc-ripple-surface--accent--selected::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--selected:hover::before,.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties::after{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color, #000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-state-layer-opacity, 0.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}`; + +/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +/** @soyCompatible */ +let Ripple = class Ripple extends RippleBase { +}; +Ripple.styles = [styles$e]; +Ripple = __decorate([ + e$6('mwc-ripple') +], Ripple); + +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +/** + * TypeScript version of the decorator + * @see https://www.typescriptlang.org/docs/handbook/decorators.html#property-decorators + */ +function tsDecorator(prototype, name, descriptor) { + const constructor = prototype.constructor; + if (!descriptor) { + /** + * lit uses internal properties with two leading underscores to + * provide storage for accessors + */ + const litInternalPropertyKey = `__${name}`; + descriptor = + constructor.getPropertyDescriptor(name, litInternalPropertyKey); + if (!descriptor) { + throw new Error('@ariaProperty must be used after a @property decorator'); + } + } + // descriptor must exist at this point, reassign so typescript understands + const propDescriptor = descriptor; + let attribute = ''; + if (!propDescriptor.set) { + throw new Error(`@ariaProperty requires a setter for ${name}`); + } + // TODO(b/202853219): Remove this check when internal tooling is + // compatible + // tslint:disable-next-line:no-any bail if applied to internal generated class + if (prototype.dispatchWizEvent) { + return descriptor; + } + const wrappedDescriptor = { + configurable: true, + enumerable: true, + set(value) { + if (attribute === '') { + const options = constructor.getPropertyOptions(name); + // if attribute is not a string, use `name` instead + attribute = + typeof options.attribute === 'string' ? options.attribute : name; + } + if (this.hasAttribute(attribute)) { + this.removeAttribute(attribute); + } + propDescriptor.set.call(this, value); + } + }; + if (propDescriptor.get) { + wrappedDescriptor.get = function () { + return propDescriptor.get.call(this); + }; + } + return wrappedDescriptor; +} +/** + * A property decorator proxies an aria attribute to an internal node + * + * This decorator is only intended for use with ARIA attributes, such as `role` + * and `aria-label` due to screenreader needs. + * + * Upon first render, `@ariaProperty` will remove the attribute from the host + * element to prevent screenreaders from reading the host instead of the + * internal node. + * + * This decorator should only be used for non-Symbol public fields decorated + * with `@property`, or on a setter with an optional getter. + * + * @example + * ```ts + * class MyElement { + * @ariaProperty + * @property({ type: String, attribute: 'aria-label' }) + * ariaLabel!: string; + * } + * ``` + * @category Decorator + * @ExportDecoratedItems + */ +function ariaProperty(protoOrDescriptor, name, +// tslint:disable-next-line:no-any any is required as a return type from decorators +descriptor) { + if (name !== undefined) { + return tsDecorator(protoOrDescriptor, name, descriptor); + } + else { + throw new Error('@ariaProperty only supports TypeScript Decorators'); + } +} + +/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +/** + * Class that encapsulates the events handlers for `mwc-ripple` + * + * + * Example: + * ``` + * class XFoo extends LitElement { + * async getRipple() { + * this.renderRipple = true; + * await this.updateComplete; + * return this.renderRoot.querySelector('mwc-ripple'); + * } + * rippleHandlers = new RippleHandlers(() => this.getRipple()); + * + * render() { + * return html` + *
+ * ${this.renderRipple ? html`` : ''} + * `; + * } + * } + * ``` + */ +class RippleHandlers { + constructor( + /** Function that returns a `mwc-ripple` */ + rippleFn) { + this.startPress = (ev) => { + rippleFn().then((r) => { + r && r.startPress(ev); + }); + }; + this.endPress = () => { + rippleFn().then((r) => { + r && r.endPress(); + }); + }; + this.startFocus = () => { + rippleFn().then((r) => { + r && r.startFocus(); + }); + }; + this.endFocus = () => { + rippleFn().then((r) => { + r && r.endFocus(); + }); + }; + this.startHover = () => { + rippleFn().then((r) => { + r && r.startHover(); + }); + }; + this.endHover = () => { + rippleFn().then((r) => { + r && r.endHover(); + }); + }; + } +} + +/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const l$1=l=>null!=l?l:A; + +/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +/** @soyCompatible */ +class IconButtonBase extends s$1 { + constructor() { + super(...arguments); + this.disabled = false; + this.icon = ''; + this.shouldRenderRipple = false; + this.rippleHandlers = new RippleHandlers(() => { + this.shouldRenderRipple = true; + return this.ripple; + }); + } + /** @soyTemplate */ + renderRipple() { + return this.shouldRenderRipple ? x ` + + ` : + ''; + } + focus() { + const buttonElement = this.buttonElement; + if (buttonElement) { + this.rippleHandlers.startFocus(); + buttonElement.focus(); + } + } + blur() { + const buttonElement = this.buttonElement; + if (buttonElement) { + this.rippleHandlers.endFocus(); + buttonElement.blur(); + } + } + /** @soyTemplate */ + render() { + return x ``; + } + handleRippleMouseDown(event) { + const onUp = () => { + window.removeEventListener('mouseup', onUp); + this.handleRippleDeactivate(); + }; + window.addEventListener('mouseup', onUp); + this.rippleHandlers.startPress(event); + } + handleRippleTouchStart(event) { + this.rippleHandlers.startPress(event); + } + handleRippleDeactivate() { + this.rippleHandlers.endPress(); + } + handleRippleMouseEnter() { + this.rippleHandlers.startHover(); + } + handleRippleMouseLeave() { + this.rippleHandlers.endHover(); + } + handleRippleFocus() { + this.rippleHandlers.startFocus(); + } + handleRippleBlur() { + this.rippleHandlers.endFocus(); + } +} +__decorate([ + e$5({ type: Boolean, reflect: true }) +], IconButtonBase.prototype, "disabled", void 0); +__decorate([ + e$5({ type: String }) +], IconButtonBase.prototype, "icon", void 0); +__decorate([ + ariaProperty, + e$5({ type: String, attribute: 'aria-label' }) +], IconButtonBase.prototype, "ariaLabel", void 0); +__decorate([ + ariaProperty, + e$5({ type: String, attribute: 'aria-haspopup' }) +], IconButtonBase.prototype, "ariaHasPopup", void 0); +__decorate([ + i$2('button') +], IconButtonBase.prototype, "buttonElement", void 0); +__decorate([ + e$3('mwc-ripple') +], IconButtonBase.prototype, "ripple", void 0); +__decorate([ + t$1() +], IconButtonBase.prototype, "shouldRenderRipple", void 0); +__decorate([ + e$4({ passive: true }) +], IconButtonBase.prototype, "handleRippleMouseDown", null); +__decorate([ + e$4({ passive: true }) +], IconButtonBase.prototype, "handleRippleTouchStart", null); + +/** + * @license + * Copyright 2021 Google LLC + * SPDX-LIcense-Identifier: Apache-2.0 + */ +const styles$d = i$6 `.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{display:none}.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block;max-height:48px;max-width:48px}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}}@media screen and (forced-colors: active)and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}}@media screen and (forced-colors: active)and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button.mdc-icon-button--reduced-size:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-disabled-on-light, rgba(0, 0, 0, 0.38))}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}:host{display:inline-block;outline:none}:host([disabled]){pointer-events:none}.mdc-icon-button i,.mdc-icon-button svg,.mdc-icon-button img,.mdc-icon-button ::slotted(*){display:block}:host{--mdc-ripple-color: currentcolor;-webkit-tap-highlight-color:transparent}:host,.mdc-icon-button{vertical-align:top}.mdc-icon-button{width:var(--mdc-icon-button-size, 48px);height:var(--mdc-icon-button-size, 48px);padding:calc( (var(--mdc-icon-button-size, 48px) - var(--mdc-icon-size, 24px)) / 2 )}.mdc-icon-button i,.mdc-icon-button svg,.mdc-icon-button img,.mdc-icon-button ::slotted(*){display:block;width:var(--mdc-icon-size, 24px);height:var(--mdc-icon-size, 24px)}`; + +/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +/** @soyCompatible */ +let IconButton = class IconButton extends IconButtonBase { +}; +IconButton.styles = [styles$d]; +IconButton = __decorate([ + e$6('mwc-icon-button') +], IconButton); + +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +/** + * A horizontal bar of tabs. + * + * Slots: + * - default: The tabs. + */ +let PlaygroundInternalTabBar = class PlaygroundInternalTabBar extends s$1 { + constructor() { + super(...arguments); + this._tabs = []; + this._active = undefined; + } + /** + * Get or set the active tab. + */ + get active() { + return this._active; + } + set active(tab) { + /** + * Note the active tab can be set either by setting the bar's `active` + * property to the tab, or by setting the tab's `active` property to + * true. The two become synchronized according to the following flow: + * + * bar click/keydown + * | + * v + * bar.active = tab ---> changed? ---> tab.active = true + * ^ | + * | v + * bar tabchange listener changed from false to true? + * ^ | + * | | + * +--- tab dispatches tabchange <---+ + */ + const oldActive = this._active; + if (tab === oldActive) { + return; + } + this._active = tab; + if (oldActive !== undefined) { + oldActive.active = false; + } + if (tab !== undefined) { + tab.active = true; + } + else { + // Usually the tab itself emits the tabchange event, but we need to handle + // the "no active tab" case here. + this.dispatchEvent(new CustomEvent('tabchange', { + detail: { tab: undefined }, + bubbles: true, + })); + } + } + render() { + return x ` +
+ +
+ `; + } + _onSlotchange(event) { + this._tabs = event.target.assignedElements(); + let newActive; + // Manage the idx and active properties on all tabs. The first tab that + // asserts it is active wins. + for (let i = 0; i < this._tabs.length; i++) { + const tab = this._tabs[i]; + tab.index = i; + if (newActive !== undefined) { + tab.active = false; + } + else if (tab.active || tab.hasAttribute('active')) { + // Check both the active property and the active attribute, because the + // user could have set the initial active state either way, and it might + // not have reflected to the other yet. + newActive = tab; + } + } + this.active = newActive; + } + _activateTab(event) { + const tab = this._findEventTab(event); + if (tab === undefined) { + return; + } + this.active = tab; + this._scrollTabIntoViewIfNeeded(tab); + } + /** + * If the given tab is not visible, or if not enough of its adjacent tabs are + * visible, scroll so that the tab is centered. + */ + _scrollTabIntoViewIfNeeded(tab) { + // Note we don't want to use tab.scrollIntoView() because that would also + // scroll the viewport to show the tab bar. + const barRect = this.getBoundingClientRect(); + const tabRect = tab.getBoundingClientRect(); + // Add a margin so that we'll also scroll if not enough of an adjacent tab + // is visible, so that it's clickable. 48px is the recommended minimum touch + // target size from the Material Accessibility guidelines + // (https://material.io/design/usability/accessibility.html#layout-and-typography) + const margin = 48; + if (tabRect.left - margin < barRect.left || + tabRect.right + margin > barRect.right) { + const centered = tabRect.left - + barRect.left + + this.scrollLeft - + barRect.width / 2 + + tabRect.width / 2; + this.scroll({ left: centered, behavior: 'smooth' }); + } + } + async _onKeydown(event) { + var _a, _b; + const oldIdx = (_b = (_a = this.active) === null || _a === void 0 ? void 0 : _a.index) !== null && _b !== void 0 ? _b : 0; + const endIdx = this._tabs.length - 1; + let newIdx = oldIdx; + switch (event.key) { + case 'ArrowLeft': { + if (oldIdx === 0) { + newIdx = endIdx; // Wrap around. + } + else { + newIdx--; + } + break; + } + case 'ArrowRight': { + if (oldIdx === endIdx) { + newIdx = 0; // Wrap around. + } + else { + newIdx++; + } + break; + } + case 'Home': { + newIdx = 0; + break; + } + case 'End': { + newIdx = endIdx; + break; + } + } + if (newIdx !== oldIdx) { + // Prevent default scrolling behavior. + event.preventDefault(); + const tab = this._tabs[newIdx]; + this.active = tab; + // Wait for tabindex to update so we can call focus. + await tab.updateComplete; + tab.focus(); + } + } + _findEventTab(event) { + const target = event.target; + if ((target === null || target === void 0 ? void 0 : target.localName) === 'playground-internal-tab') { + return event.target; + } + for (const el of event.composedPath()) { + if ((el === null || el === void 0 ? void 0 : el.localName) === 'playground-internal-tab') { + return el; + } + } + return undefined; + } +}; +PlaygroundInternalTabBar.styles = i$6 ` + :host { + display: flex; + overflow-x: auto; + } + + :host::-webkit-scrollbar { + display: none; + } + + div { + display: flex; + } + `; +__decorate([ + e$5() +], PlaygroundInternalTabBar.prototype, "label", void 0); +PlaygroundInternalTabBar = __decorate([ + e$6('playground-internal-tab-bar') +], PlaygroundInternalTabBar); + +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +/** + * A tab in a . + * + * Slots: + * - default: Label or other contents of the tab. + * + * Parts: + * - button: Button with tab role. + */ +let PlaygroundInternalTab = class PlaygroundInternalTab extends s$1 { + constructor() { + super(...arguments); + /** + * Whether this tab is currently active. + */ + this.active = false; + /** + * The 0-indexed position of this tab within its . + * + * Note this property is managed by the containing and + * should not be set directly. + */ + this.index = 0; + } + render() { + return x ``; + } + updated(changes) { + if (changes.has('active') && this.active) { + this.dispatchEvent(new CustomEvent('tabchange', { + detail: { tab: this }, + bubbles: true, + })); + } + } + focus() { + this._button.focus(); + } +}; +PlaygroundInternalTab.styles = i$6 ` + :host { + display: flex; + } + + button { + flex: 1; + border: none; + font-size: inherit; + font-family: inherit; + color: inherit; + background: transparent; + display: flex; + align-items: center; + cursor: pointer; + position: relative; + outline: none; + } + + button::before { + content: ''; + position: absolute; + width: 100%; + height: 100%; + left: 0; + top: 0; + background: currentcolor; + opacity: 0; + transition: opacity 150ms; + } + + button:focus::before, + button:hover::before { + opacity: 10%; + } + + button:active::before { + opacity: 20%; + } + + :host([active]) > button::after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + width: 100%; + height: 2px; + background: var( + --playground-tab-bar-indicator-color, + var(--playground-highlight-color, #6200ee) + ); + } + `; +__decorate([ + e$5({ type: Boolean, reflect: true }) +], PlaygroundInternalTab.prototype, "active", void 0); +__decorate([ + i$2('button') +], PlaygroundInternalTab.prototype, "_button", void 0); +PlaygroundInternalTab = __decorate([ + e$6('playground-internal-tab') +], PlaygroundInternalTab); + +/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +/** + * Specifies an observer callback that is run when the decorated property + * changes. The observer receives the current and old value as arguments. + */ +const observer = (observer) => +// eslint-disable-next-line @typescript-eslint/no-explicit-any +(proto, propName) => { + // if we haven't wrapped `updated` in this class, do so + if (!proto.constructor + ._observers) { + proto.constructor._observers = new Map(); + const userUpdated = proto.updated; + proto.updated = function (changedProperties) { + userUpdated.call(this, changedProperties); + changedProperties.forEach((v, k) => { + const observers = this.constructor + ._observers; + const observer = observers.get(k); + if (observer !== undefined) { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + observer.call(this, this[k], v); + } + }); + }; + // clone any existing observers (superclasses) + // eslint-disable-next-line no-prototype-builtins + } + else if (!proto.constructor.hasOwnProperty('_observers')) { + const observers = proto.constructor._observers; + proto.constructor._observers = new Map(); + observers.forEach( + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (v, k) => proto.constructor._observers.set(k, v)); + } + // set this method + proto.constructor._observers.set(propName, observer); +}; + +/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +/** + * @fires request-selected {RequestSelectedDetail} + * @fires list-item-rendered + */ +class ListItemBase extends s$1 { + constructor() { + super(...arguments); + this.value = ''; + this.group = null; + this.tabindex = -1; + this.disabled = false; + this.twoline = false; + this.activated = false; + this.graphic = null; + this.multipleGraphics = false; + this.hasMeta = false; + this.noninteractive = false; + this.selected = false; + this.shouldRenderRipple = false; + this._managingList = null; + this.boundOnClick = this.onClick.bind(this); + this._firstChanged = true; + this._skipPropRequest = false; + this.rippleHandlers = new RippleHandlers(() => { + this.shouldRenderRipple = true; + return this.ripple; + }); + this.listeners = [ + { + target: this, + eventNames: ['click'], + cb: () => { + this.onClick(); + }, + }, + { + target: this, + eventNames: ['mouseenter'], + cb: this.rippleHandlers.startHover, + }, + { + target: this, + eventNames: ['mouseleave'], + cb: this.rippleHandlers.endHover, + }, + { + target: this, + eventNames: ['focus'], + cb: this.rippleHandlers.startFocus, + }, + { + target: this, + eventNames: ['blur'], + cb: this.rippleHandlers.endFocus, + }, + { + target: this, + eventNames: ['mousedown', 'touchstart'], + cb: (e) => { + const name = e.type; + this.onDown(name === 'mousedown' ? 'mouseup' : 'touchend', e); + }, + }, + ]; + } + get text() { + const textContent = this.textContent; + return textContent ? textContent.trim() : ''; + } + render() { + const text = this.renderText(); + const graphic = this.graphic ? this.renderGraphic() : x ``; + const meta = this.hasMeta ? this.renderMeta() : x ``; + return x ` + ${this.renderRipple()} + ${graphic} + ${text} + ${meta}`; + } + renderRipple() { + if (this.shouldRenderRipple) { + return x ` + + `; + } + else if (this.activated) { + return x `
`; + } + else { + return ''; + } + } + renderGraphic() { + const graphicClasses = { + multi: this.multipleGraphics, + }; + return x ` + + + `; + } + renderMeta() { + return x ` + + + `; + } + renderText() { + const inner = this.twoline ? this.renderTwoline() : this.renderSingleLine(); + return x ` + + ${inner} + `; + } + renderSingleLine() { + return x ``; + } + renderTwoline() { + return x ` + + + + + + + `; + } + onClick() { + this.fireRequestSelected(!this.selected, 'interaction'); + } + onDown(upName, evt) { + const onUp = () => { + window.removeEventListener(upName, onUp); + this.rippleHandlers.endPress(); + }; + window.addEventListener(upName, onUp); + this.rippleHandlers.startPress(evt); + } + fireRequestSelected(selected, source) { + if (this.noninteractive) { + return; + } + const customEv = new CustomEvent('request-selected', { bubbles: true, composed: true, detail: { source, selected } }); + this.dispatchEvent(customEv); + } + connectedCallback() { + super.connectedCallback(); + if (!this.noninteractive) { + this.setAttribute('mwc-list-item', ''); + } + for (const listener of this.listeners) { + for (const eventName of listener.eventNames) { + listener.target.addEventListener(eventName, listener.cb, { passive: true }); + } + } + } + disconnectedCallback() { + super.disconnectedCallback(); + for (const listener of this.listeners) { + for (const eventName of listener.eventNames) { + listener.target.removeEventListener(eventName, listener.cb); + } + } + if (this._managingList) { + this._managingList.debouncedLayout ? + this._managingList.debouncedLayout(true) : + this._managingList.layout(true); + } + } + // composed flag, event fire through shadow root and up through composed tree + firstUpdated() { + const ev = new Event('list-item-rendered', { bubbles: true, composed: true }); + this.dispatchEvent(ev); + } +} +__decorate([ + i$2('slot') +], ListItemBase.prototype, "slotElement", void 0); +__decorate([ + e$3('mwc-ripple') +], ListItemBase.prototype, "ripple", void 0); +__decorate([ + e$5({ type: String }) +], ListItemBase.prototype, "value", void 0); +__decorate([ + e$5({ type: String, reflect: true }) +], ListItemBase.prototype, "group", void 0); +__decorate([ + e$5({ type: Number, reflect: true }) +], ListItemBase.prototype, "tabindex", void 0); +__decorate([ + e$5({ type: Boolean, reflect: true }), + observer(function (value) { + if (value) { + this.setAttribute('aria-disabled', 'true'); + } + else { + this.setAttribute('aria-disabled', 'false'); + } + }) +], ListItemBase.prototype, "disabled", void 0); +__decorate([ + e$5({ type: Boolean, reflect: true }) +], ListItemBase.prototype, "twoline", void 0); +__decorate([ + e$5({ type: Boolean, reflect: true }) +], ListItemBase.prototype, "activated", void 0); +__decorate([ + e$5({ type: String, reflect: true }) +], ListItemBase.prototype, "graphic", void 0); +__decorate([ + e$5({ type: Boolean }) +], ListItemBase.prototype, "multipleGraphics", void 0); +__decorate([ + e$5({ type: Boolean }) +], ListItemBase.prototype, "hasMeta", void 0); +__decorate([ + e$5({ type: Boolean, reflect: true }), + observer(function (value) { + if (value) { + this.removeAttribute('aria-checked'); + this.removeAttribute('mwc-list-item'); + this.selected = false; + this.activated = false; + this.tabIndex = -1; + } + else { + this.setAttribute('mwc-list-item', ''); + } + }) +], ListItemBase.prototype, "noninteractive", void 0); +__decorate([ + e$5({ type: Boolean, reflect: true }), + observer(function (value) { + const role = this.getAttribute('role'); + const isAriaSelectable = role === 'gridcell' || role === 'option' || + role === 'row' || role === 'tab'; + if (isAriaSelectable && value) { + this.setAttribute('aria-selected', 'true'); + } + else if (isAriaSelectable) { + this.setAttribute('aria-selected', 'false'); + } + if (this._firstChanged) { + this._firstChanged = false; + return; + } + if (this._skipPropRequest) { + return; + } + this.fireRequestSelected(value, 'property'); + }) +], ListItemBase.prototype, "selected", void 0); +__decorate([ + t$1() +], ListItemBase.prototype, "shouldRenderRipple", void 0); +__decorate([ + t$1() +], ListItemBase.prototype, "_managingList", void 0); + +/** + * @license + * Copyright 2021 Google LLC + * SPDX-LIcense-Identifier: Apache-2.0 + */ +const styles$c = i$6 `:host{cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;height:48px;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mdc-list-side-padding, 16px);padding-right:var(--mdc-list-side-padding, 16px);outline:none;height:48px;color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}:host:focus{outline:none}:host([activated]){color:#6200ee;color:var(--mdc-theme-primary, #6200ee);--mdc-ripple-color: var( --mdc-theme-primary, #6200ee )}:host([activated]) .mdc-deprecated-list-item__graphic{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host([activated]) .fake-activated-ripple::before{position:absolute;display:block;top:0;bottom:0;left:0;right:0;width:100%;height:100%;pointer-events:none;z-index:1;content:"";opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12);background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-deprecated-list-item__graphic{flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;display:inline-flex}.mdc-deprecated-list-item__graphic ::slotted(*){flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;width:100%;height:100%;text-align:center}.mdc-deprecated-list-item__meta{width:var(--mdc-list-item-meta-size, 24px);height:var(--mdc-list-item-meta-size, 24px);margin-left:auto;margin-right:0;color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38))}.mdc-deprecated-list-item__meta.multi{width:auto}.mdc-deprecated-list-item__meta ::slotted(*){width:var(--mdc-list-item-meta-size, 24px);line-height:var(--mdc-list-item-meta-size, 24px)}.mdc-deprecated-list-item__meta ::slotted(.material-icons),.mdc-deprecated-list-item__meta ::slotted(mwc-icon){line-height:var(--mdc-list-item-meta-size, 24px) !important}.mdc-deprecated-list-item__meta ::slotted(:not(.material-icons):not(mwc-icon)){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit)}[dir=rtl] .mdc-deprecated-list-item__meta,.mdc-deprecated-list-item__meta[dir=rtl]{margin-left:0;margin-right:auto}.mdc-deprecated-list-item__meta ::slotted(*){width:100%;height:100%}.mdc-deprecated-list-item__text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-deprecated-list-item__text ::slotted([for]),.mdc-deprecated-list-item__text[for]{pointer-events:none}.mdc-deprecated-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal;margin-bottom:-20px;display:block}.mdc-deprecated-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-deprecated-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-deprecated-list-item__secondary-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal;display:block}.mdc-deprecated-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-deprecated-list--dense .mdc-deprecated-list-item__secondary-text{font-size:inherit}* ::slotted(a),a{color:inherit;text-decoration:none}:host([twoline]){height:72px}:host([twoline]) .mdc-deprecated-list-item__text{align-self:flex-start}:host([disabled]),:host([noninteractive]){cursor:default;pointer-events:none}:host([disabled]) .mdc-deprecated-list-item__text ::slotted(*){opacity:.38}:host([disabled]) .mdc-deprecated-list-item__text ::slotted(*),:host([disabled]) .mdc-deprecated-list-item__primary-text ::slotted(*),:host([disabled]) .mdc-deprecated-list-item__secondary-text ::slotted(*){color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-deprecated-list-item__secondary-text ::slotted(*){color:rgba(0, 0, 0, 0.54);color:var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54))}.mdc-deprecated-list-item__graphic ::slotted(*){background-color:transparent;color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38))}.mdc-deprecated-list-group__subheader ::slotted(*){color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 40px);height:var(--mdc-list-item-graphic-size, 40px)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 40px);line-height:var(--mdc-list-item-graphic-size, 40px)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 40px) !important}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(*){border-radius:50%}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic,:host([graphic=medium]) .mdc-deprecated-list-item__graphic,:host([graphic=large]) .mdc-deprecated-list-item__graphic,:host([graphic=control]) .mdc-deprecated-list-item__graphic{margin-left:0;margin-right:var(--mdc-list-item-graphic-margin, 16px)}[dir=rtl] :host([graphic=avatar]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=medium]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=large]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=control]) .mdc-deprecated-list-item__graphic,:host([graphic=avatar]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=medium]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=large]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=control]) .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:var(--mdc-list-item-graphic-margin, 16px);margin-right:0}:host([graphic=icon]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 24px);height:var(--mdc-list-item-graphic-size, 24px);margin-left:0;margin-right:var(--mdc-list-item-graphic-margin, 32px)}:host([graphic=icon]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 24px);line-height:var(--mdc-list-item-graphic-size, 24px)}:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 24px) !important}[dir=rtl] :host([graphic=icon]) .mdc-deprecated-list-item__graphic,:host([graphic=icon]) .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:var(--mdc-list-item-graphic-margin, 32px);margin-right:0}:host([graphic=avatar]:not([twoLine])),:host([graphic=icon]:not([twoLine])){height:56px}:host([graphic=medium]:not([twoLine])),:host([graphic=large]:not([twoLine])){height:72px}:host([graphic=medium]) .mdc-deprecated-list-item__graphic,:host([graphic=large]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 56px);height:var(--mdc-list-item-graphic-size, 56px)}:host([graphic=medium]) .mdc-deprecated-list-item__graphic.multi,:host([graphic=large]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(*),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 56px);line-height:var(--mdc-list-item-graphic-size, 56px)}:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 56px) !important}:host([graphic=large]){padding-left:0px}`; + +/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +let ListItem = class ListItem extends ListItemBase { +}; +ListItem.styles = [styles$c]; +ListItem = __decorate([ + e$6('mwc-list-item') +], ListItem); + +/** + * @license + * Copyright 2020 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +/** + * KEY provides normalized string values for keys. + */ +var KEY = { + UNKNOWN: 'Unknown', + BACKSPACE: 'Backspace', + ENTER: 'Enter', + SPACEBAR: 'Spacebar', + PAGE_UP: 'PageUp', + PAGE_DOWN: 'PageDown', + END: 'End', + HOME: 'Home', + ARROW_LEFT: 'ArrowLeft', + ARROW_UP: 'ArrowUp', + ARROW_RIGHT: 'ArrowRight', + ARROW_DOWN: 'ArrowDown', + DELETE: 'Delete', + ESCAPE: 'Escape', + TAB: 'Tab', +}; +var normalizedKeys = new Set(); +// IE11 has no support for new Map with iterable so we need to initialize this +// by hand. +normalizedKeys.add(KEY.BACKSPACE); +normalizedKeys.add(KEY.ENTER); +normalizedKeys.add(KEY.SPACEBAR); +normalizedKeys.add(KEY.PAGE_UP); +normalizedKeys.add(KEY.PAGE_DOWN); +normalizedKeys.add(KEY.END); +normalizedKeys.add(KEY.HOME); +normalizedKeys.add(KEY.ARROW_LEFT); +normalizedKeys.add(KEY.ARROW_UP); +normalizedKeys.add(KEY.ARROW_RIGHT); +normalizedKeys.add(KEY.ARROW_DOWN); +normalizedKeys.add(KEY.DELETE); +normalizedKeys.add(KEY.ESCAPE); +normalizedKeys.add(KEY.TAB); +var KEY_CODE = { + BACKSPACE: 8, + ENTER: 13, + SPACEBAR: 32, + PAGE_UP: 33, + PAGE_DOWN: 34, + END: 35, + HOME: 36, + ARROW_LEFT: 37, + ARROW_UP: 38, + ARROW_RIGHT: 39, + ARROW_DOWN: 40, + DELETE: 46, + ESCAPE: 27, + TAB: 9, +}; +var mappedKeyCodes = new Map(); +// IE11 has no support for new Map with iterable so we need to initialize this +// by hand. +mappedKeyCodes.set(KEY_CODE.BACKSPACE, KEY.BACKSPACE); +mappedKeyCodes.set(KEY_CODE.ENTER, KEY.ENTER); +mappedKeyCodes.set(KEY_CODE.SPACEBAR, KEY.SPACEBAR); +mappedKeyCodes.set(KEY_CODE.PAGE_UP, KEY.PAGE_UP); +mappedKeyCodes.set(KEY_CODE.PAGE_DOWN, KEY.PAGE_DOWN); +mappedKeyCodes.set(KEY_CODE.END, KEY.END); +mappedKeyCodes.set(KEY_CODE.HOME, KEY.HOME); +mappedKeyCodes.set(KEY_CODE.ARROW_LEFT, KEY.ARROW_LEFT); +mappedKeyCodes.set(KEY_CODE.ARROW_UP, KEY.ARROW_UP); +mappedKeyCodes.set(KEY_CODE.ARROW_RIGHT, KEY.ARROW_RIGHT); +mappedKeyCodes.set(KEY_CODE.ARROW_DOWN, KEY.ARROW_DOWN); +mappedKeyCodes.set(KEY_CODE.DELETE, KEY.DELETE); +mappedKeyCodes.set(KEY_CODE.ESCAPE, KEY.ESCAPE); +mappedKeyCodes.set(KEY_CODE.TAB, KEY.TAB); +var navigationKeys = new Set(); +// IE11 has no support for new Set with iterable so we need to initialize this +// by hand. +navigationKeys.add(KEY.PAGE_UP); +navigationKeys.add(KEY.PAGE_DOWN); +navigationKeys.add(KEY.END); +navigationKeys.add(KEY.HOME); +navigationKeys.add(KEY.ARROW_LEFT); +navigationKeys.add(KEY.ARROW_UP); +navigationKeys.add(KEY.ARROW_RIGHT); +navigationKeys.add(KEY.ARROW_DOWN); +/** + * normalizeKey returns the normalized string for a navigational action. + */ +function normalizeKey(evt) { + var key = evt.key; + // If the event already has a normalized key, return it + if (normalizedKeys.has(key)) { + return key; + } + // tslint:disable-next-line:deprecation + var mappedKey = mappedKeyCodes.get(evt.keyCode); + if (mappedKey) { + return mappedKey; + } + return KEY.UNKNOWN; +} + +/** + * @license + * Copyright 2018 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +var _a$1, _b$1; +var cssClasses$5 = { + LIST_ITEM_ACTIVATED_CLASS: 'mdc-list-item--activated', + LIST_ITEM_CLASS: 'mdc-list-item', + LIST_ITEM_DISABLED_CLASS: 'mdc-list-item--disabled', + LIST_ITEM_SELECTED_CLASS: 'mdc-list-item--selected', + LIST_ITEM_TEXT_CLASS: 'mdc-list-item__text', + LIST_ITEM_PRIMARY_TEXT_CLASS: 'mdc-list-item__primary-text', + ROOT: 'mdc-list', +}; +(_a$1 = {}, + _a$1["" + cssClasses$5.LIST_ITEM_ACTIVATED_CLASS] = 'mdc-list-item--activated', + _a$1["" + cssClasses$5.LIST_ITEM_CLASS] = 'mdc-list-item', + _a$1["" + cssClasses$5.LIST_ITEM_DISABLED_CLASS] = 'mdc-list-item--disabled', + _a$1["" + cssClasses$5.LIST_ITEM_SELECTED_CLASS] = 'mdc-list-item--selected', + _a$1["" + cssClasses$5.LIST_ITEM_PRIMARY_TEXT_CLASS] = 'mdc-list-item__primary-text', + _a$1["" + cssClasses$5.ROOT] = 'mdc-list', + _a$1); +var deprecatedClassNameMap = (_b$1 = {}, + _b$1["" + cssClasses$5.LIST_ITEM_ACTIVATED_CLASS] = 'mdc-deprecated-list-item--activated', + _b$1["" + cssClasses$5.LIST_ITEM_CLASS] = 'mdc-deprecated-list-item', + _b$1["" + cssClasses$5.LIST_ITEM_DISABLED_CLASS] = 'mdc-deprecated-list-item--disabled', + _b$1["" + cssClasses$5.LIST_ITEM_SELECTED_CLASS] = 'mdc-deprecated-list-item--selected', + _b$1["" + cssClasses$5.LIST_ITEM_TEXT_CLASS] = 'mdc-deprecated-list-item__text', + _b$1["" + cssClasses$5.LIST_ITEM_PRIMARY_TEXT_CLASS] = 'mdc-deprecated-list-item__primary-text', + _b$1["" + cssClasses$5.ROOT] = 'mdc-deprecated-list', + _b$1); +var strings$3 = { + ACTION_EVENT: 'MDCList:action', + SELECTION_CHANGE_EVENT: 'MDCList:selectionChange', + ARIA_CHECKED: 'aria-checked', + ARIA_CHECKED_CHECKBOX_SELECTOR: '[role="checkbox"][aria-checked="true"]', + ARIA_CHECKED_RADIO_SELECTOR: '[role="radio"][aria-checked="true"]', + ARIA_CURRENT: 'aria-current', + ARIA_DISABLED: 'aria-disabled', + ARIA_ORIENTATION: 'aria-orientation', + ARIA_ORIENTATION_HORIZONTAL: 'horizontal', + ARIA_ROLE_CHECKBOX_SELECTOR: '[role="checkbox"]', + ARIA_SELECTED: 'aria-selected', + ARIA_INTERACTIVE_ROLES_SELECTOR: '[role="listbox"], [role="menu"]', + ARIA_MULTI_SELECTABLE_SELECTOR: '[aria-multiselectable="true"]', + CHECKBOX_RADIO_SELECTOR: 'input[type="checkbox"], input[type="radio"]', + CHECKBOX_SELECTOR: 'input[type="checkbox"]', + CHILD_ELEMENTS_TO_TOGGLE_TABINDEX: "\n ." + cssClasses$5.LIST_ITEM_CLASS + " button:not(:disabled),\n ." + cssClasses$5.LIST_ITEM_CLASS + " a,\n ." + deprecatedClassNameMap[cssClasses$5.LIST_ITEM_CLASS] + " button:not(:disabled),\n ." + deprecatedClassNameMap[cssClasses$5.LIST_ITEM_CLASS] + " a\n ", + DEPRECATED_SELECTOR: '.mdc-deprecated-list', + FOCUSABLE_CHILD_ELEMENTS: "\n ." + cssClasses$5.LIST_ITEM_CLASS + " button:not(:disabled),\n ." + cssClasses$5.LIST_ITEM_CLASS + " a,\n ." + cssClasses$5.LIST_ITEM_CLASS + " input[type=\"radio\"]:not(:disabled),\n ." + cssClasses$5.LIST_ITEM_CLASS + " input[type=\"checkbox\"]:not(:disabled),\n ." + deprecatedClassNameMap[cssClasses$5.LIST_ITEM_CLASS] + " button:not(:disabled),\n ." + deprecatedClassNameMap[cssClasses$5.LIST_ITEM_CLASS] + " a,\n ." + deprecatedClassNameMap[cssClasses$5.LIST_ITEM_CLASS] + " input[type=\"radio\"]:not(:disabled),\n ." + deprecatedClassNameMap[cssClasses$5.LIST_ITEM_CLASS] + " input[type=\"checkbox\"]:not(:disabled)\n ", + RADIO_SELECTOR: 'input[type="radio"]', + SELECTED_ITEM_SELECTOR: '[aria-selected="true"], [aria-current="true"]', +}; +var numbers$3 = { + UNSET_INDEX: -1, + TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS: 300 +}; + +/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +const integerSort = (a, b) => { + return a - b; +}; +const findIndexDiff = (oldSet, newSet) => { + const oldArr = Array.from(oldSet); + const newArr = Array.from(newSet); + const diff = { added: [], removed: [] }; + const oldSorted = oldArr.sort(integerSort); + const newSorted = newArr.sort(integerSort); + let i = 0; + let j = 0; + while (i < oldSorted.length || j < newSorted.length) { + const oldVal = oldSorted[i]; + const newVal = newSorted[j]; + if (oldVal === newVal) { + i++; + j++; + continue; + } + if (oldVal !== undefined && (newVal === undefined || oldVal < newVal)) { + diff.removed.push(oldVal); + i++; + continue; + } + if (newVal !== undefined && (oldVal === undefined || newVal < oldVal)) { + diff.added.push(newVal); + j++; + continue; + } + } + return diff; +}; +const ELEMENTS_KEY_ALLOWED_IN = ['input', 'button', 'textarea', 'select']; +function isIndexSet(selectedIndex) { + return selectedIndex instanceof Set; +} +const createSetFromIndex = (index) => { + const entry = index === numbers$3.UNSET_INDEX ? new Set() : index; + return isIndexSet(entry) ? new Set(entry) : new Set([entry]); +}; +class MDCListFoundation extends MDCFoundation { + constructor(adapter) { + super(Object.assign(Object.assign({}, MDCListFoundation.defaultAdapter), adapter)); + this.isMulti_ = false; + this.wrapFocus_ = false; + this.isVertical_ = true; + this.selectedIndex_ = numbers$3.UNSET_INDEX; + this.focusedItemIndex_ = numbers$3.UNSET_INDEX; + this.useActivatedClass_ = false; + this.ariaCurrentAttrValue_ = null; + } + static get strings() { + return strings$3; + } + static get numbers() { + return numbers$3; + } + static get defaultAdapter() { + return { + focusItemAtIndex: () => undefined, + getFocusedElementIndex: () => 0, + getListItemCount: () => 0, + isFocusInsideList: () => false, + isRootFocused: () => false, + notifyAction: () => undefined, + notifySelected: () => undefined, + getSelectedStateForElementIndex: () => false, + setDisabledStateForElementIndex: () => undefined, + getDisabledStateForElementIndex: () => false, + setSelectedStateForElementIndex: () => undefined, + setActivatedStateForElementIndex: () => undefined, + setTabIndexForElementIndex: () => undefined, + setAttributeForElementIndex: () => undefined, + getAttributeForElementIndex: () => null, + }; + } + /** + * Sets the private wrapFocus_ variable. + */ + setWrapFocus(value) { + this.wrapFocus_ = value; + } + /** + * Sets the private wrapFocus_ variable. + */ + setMulti(value) { + this.isMulti_ = value; + const currentIndex = this.selectedIndex_; + if (value) { + // number to set + if (!isIndexSet(currentIndex)) { + const isUnset = currentIndex === numbers$3.UNSET_INDEX; + this.selectedIndex_ = isUnset ? new Set() : new Set([currentIndex]); + } + } + else { + // set to first sorted number in set + if (isIndexSet(currentIndex)) { + if (currentIndex.size) { + const vals = Array.from(currentIndex).sort(integerSort); + this.selectedIndex_ = vals[0]; + } + else { + this.selectedIndex_ = numbers$3.UNSET_INDEX; + } + } + } + } + /** + * Sets the isVertical_ private variable. + */ + setVerticalOrientation(value) { + this.isVertical_ = value; + } + /** + * Sets the useActivatedClass_ private variable. + */ + setUseActivatedClass(useActivated) { + this.useActivatedClass_ = useActivated; + } + getSelectedIndex() { + return this.selectedIndex_; + } + setSelectedIndex(index) { + if (!this.isIndexValid_(index)) { + return; + } + if (this.isMulti_) { + this.setMultiSelectionAtIndex_(createSetFromIndex(index)); + } + else { + this.setSingleSelectionAtIndex_(index); + } + } + /** + * Focus in handler for the list items. + */ + handleFocusIn(_, listItemIndex) { + if (listItemIndex >= 0) { + this.adapter.setTabIndexForElementIndex(listItemIndex, 0); + } + } + /** + * Focus out handler for the list items. + */ + handleFocusOut(_, listItemIndex) { + if (listItemIndex >= 0) { + this.adapter.setTabIndexForElementIndex(listItemIndex, -1); + } + /** + * Between Focusout & Focusin some browsers do not have focus on any + * element. Setting a delay to wait till the focus is moved to next element. + */ + setTimeout(() => { + if (!this.adapter.isFocusInsideList()) { + this.setTabindexToFirstSelectedItem_(); + } + }, 0); + } + /** + * Key handler for the list. + */ + handleKeydown(event, isRootListItem, listItemIndex) { + const isArrowLeft = normalizeKey(event) === 'ArrowLeft'; + const isArrowUp = normalizeKey(event) === 'ArrowUp'; + const isArrowRight = normalizeKey(event) === 'ArrowRight'; + const isArrowDown = normalizeKey(event) === 'ArrowDown'; + const isHome = normalizeKey(event) === 'Home'; + const isEnd = normalizeKey(event) === 'End'; + const isEnter = normalizeKey(event) === 'Enter'; + const isSpace = normalizeKey(event) === 'Spacebar'; + if (this.adapter.isRootFocused()) { + if (isArrowUp || isEnd) { + event.preventDefault(); + this.focusLastElement(); + } + else if (isArrowDown || isHome) { + event.preventDefault(); + this.focusFirstElement(); + } + return; + } + let currentIndex = this.adapter.getFocusedElementIndex(); + if (currentIndex === -1) { + currentIndex = listItemIndex; + if (currentIndex < 0) { + // If this event doesn't have a mdc-deprecated-list-item ancestor from + // the current list (not from a sublist), return early. + return; + } + } + let nextIndex; + if ((this.isVertical_ && isArrowDown) || + (!this.isVertical_ && isArrowRight)) { + this.preventDefaultEvent(event); + nextIndex = this.focusNextElement(currentIndex); + } + else if ((this.isVertical_ && isArrowUp) || (!this.isVertical_ && isArrowLeft)) { + this.preventDefaultEvent(event); + nextIndex = this.focusPrevElement(currentIndex); + } + else if (isHome) { + this.preventDefaultEvent(event); + nextIndex = this.focusFirstElement(); + } + else if (isEnd) { + this.preventDefaultEvent(event); + nextIndex = this.focusLastElement(); + } + else if (isEnter || isSpace) { + if (isRootListItem) { + // Return early if enter key is pressed on anchor element which triggers + // synthetic MouseEvent event. + const target = event.target; + if (target && target.tagName === 'A' && isEnter) { + return; + } + this.preventDefaultEvent(event); + this.setSelectedIndexOnAction_(currentIndex, true); + } + } + this.focusedItemIndex_ = currentIndex; + if (nextIndex !== undefined) { + this.setTabindexAtIndex_(nextIndex); + this.focusedItemIndex_ = nextIndex; + } + } + /** + * Click handler for the list. + */ + handleSingleSelection(index, isInteraction, force) { + if (index === numbers$3.UNSET_INDEX) { + return; + } + this.setSelectedIndexOnAction_(index, isInteraction, force); + this.setTabindexAtIndex_(index); + this.focusedItemIndex_ = index; + } + /** + * Focuses the next element on the list. + */ + focusNextElement(index) { + const count = this.adapter.getListItemCount(); + let nextIndex = index + 1; + if (nextIndex >= count) { + if (this.wrapFocus_) { + nextIndex = 0; + } + else { + // Return early because last item is already focused. + return index; + } + } + this.adapter.focusItemAtIndex(nextIndex); + return nextIndex; + } + /** + * Focuses the previous element on the list. + */ + focusPrevElement(index) { + let prevIndex = index - 1; + if (prevIndex < 0) { + if (this.wrapFocus_) { + prevIndex = this.adapter.getListItemCount() - 1; + } + else { + // Return early because first item is already focused. + return index; + } + } + this.adapter.focusItemAtIndex(prevIndex); + return prevIndex; + } + focusFirstElement() { + this.adapter.focusItemAtIndex(0); + return 0; + } + focusLastElement() { + const lastIndex = this.adapter.getListItemCount() - 1; + this.adapter.focusItemAtIndex(lastIndex); + return lastIndex; + } + /** + * @param itemIndex Index of the list item + * @param isEnabled Sets the list item to enabled or disabled. + */ + setEnabled(itemIndex, isEnabled) { + if (!this.isIndexValid_(itemIndex)) { + return; + } + this.adapter.setDisabledStateForElementIndex(itemIndex, !isEnabled); + } + /** + * Ensures that preventDefault is only called if the containing element + * doesn't consume the event, and it will cause an unintended scroll. + */ + preventDefaultEvent(evt) { + const target = evt.target; + const tagName = `${target.tagName}`.toLowerCase(); + if (ELEMENTS_KEY_ALLOWED_IN.indexOf(tagName) === -1) { + evt.preventDefault(); + } + } + setSingleSelectionAtIndex_(index, isInteraction = true) { + if (this.selectedIndex_ === index) { + return; + } + // unset previous + if (this.selectedIndex_ !== numbers$3.UNSET_INDEX) { + this.adapter.setSelectedStateForElementIndex(this.selectedIndex_, false); + if (this.useActivatedClass_) { + this.adapter.setActivatedStateForElementIndex(this.selectedIndex_, false); + } + } + // set new + if (isInteraction) { + this.adapter.setSelectedStateForElementIndex(index, true); + } + if (this.useActivatedClass_) { + this.adapter.setActivatedStateForElementIndex(index, true); + } + this.setAriaForSingleSelectionAtIndex_(index); + this.selectedIndex_ = index; + this.adapter.notifySelected(index); + } + setMultiSelectionAtIndex_(newIndex, isInteraction = true) { + const oldIndex = createSetFromIndex(this.selectedIndex_); + const diff = findIndexDiff(oldIndex, newIndex); + if (!diff.removed.length && !diff.added.length) { + return; + } + for (const removed of diff.removed) { + if (isInteraction) { + this.adapter.setSelectedStateForElementIndex(removed, false); + } + if (this.useActivatedClass_) { + this.adapter.setActivatedStateForElementIndex(removed, false); + } + } + for (const added of diff.added) { + if (isInteraction) { + this.adapter.setSelectedStateForElementIndex(added, true); + } + if (this.useActivatedClass_) { + this.adapter.setActivatedStateForElementIndex(added, true); + } + } + this.selectedIndex_ = newIndex; + this.adapter.notifySelected(newIndex, diff); + } + /** + * Sets aria attribute for single selection at given index. + */ + setAriaForSingleSelectionAtIndex_(index) { + // Detect the presence of aria-current and get the value only during list + // initialization when it is in unset state. + if (this.selectedIndex_ === numbers$3.UNSET_INDEX) { + this.ariaCurrentAttrValue_ = + this.adapter.getAttributeForElementIndex(index, strings$3.ARIA_CURRENT); + } + const isAriaCurrent = this.ariaCurrentAttrValue_ !== null; + const ariaAttribute = isAriaCurrent ? strings$3.ARIA_CURRENT : strings$3.ARIA_SELECTED; + if (this.selectedIndex_ !== numbers$3.UNSET_INDEX) { + this.adapter.setAttributeForElementIndex(this.selectedIndex_, ariaAttribute, 'false'); + } + const ariaAttributeValue = isAriaCurrent ? this.ariaCurrentAttrValue_ : 'true'; + this.adapter.setAttributeForElementIndex(index, ariaAttribute, ariaAttributeValue); + } + setTabindexAtIndex_(index) { + if (this.focusedItemIndex_ === numbers$3.UNSET_INDEX && index !== 0) { + // If no list item was selected set first list item's tabindex to -1. + // Generally, tabindex is set to 0 on first list item of list that has no + // preselected items. + this.adapter.setTabIndexForElementIndex(0, -1); + } + else if (this.focusedItemIndex_ >= 0 && this.focusedItemIndex_ !== index) { + this.adapter.setTabIndexForElementIndex(this.focusedItemIndex_, -1); + } + this.adapter.setTabIndexForElementIndex(index, 0); + } + setTabindexToFirstSelectedItem_() { + let targetIndex = 0; + if (typeof this.selectedIndex_ === 'number' && + this.selectedIndex_ !== numbers$3.UNSET_INDEX) { + targetIndex = this.selectedIndex_; + } + else if (isIndexSet(this.selectedIndex_) && this.selectedIndex_.size > 0) { + targetIndex = Math.min(...this.selectedIndex_); + } + this.setTabindexAtIndex_(targetIndex); + } + isIndexValid_(index) { + if (index instanceof Set) { + if (!this.isMulti_) { + throw new Error('MDCListFoundation: Array of index is only supported for checkbox based list'); + } + if (index.size === 0) { + return true; + } + else { + let isOneInRange = false; + for (const entry of index) { + isOneInRange = this.isIndexInRange_(entry); + if (isOneInRange) { + break; + } + } + return isOneInRange; + } + } + else if (typeof index === 'number') { + if (this.isMulti_) { + throw new Error('MDCListFoundation: Expected array of index for checkbox based list but got number: ' + + index); + } + return index === numbers$3.UNSET_INDEX || this.isIndexInRange_(index); + } + else { + return false; + } + } + isIndexInRange_(index) { + const listSize = this.adapter.getListItemCount(); + return index >= 0 && index < listSize; + } + /** + * Sets selected index on user action, toggles checkbox / radio based on + * toggleCheckbox value. User interaction should not toggle list item(s) when + * disabled. + */ + setSelectedIndexOnAction_(index, isInteraction, force) { + if (this.adapter.getDisabledStateForElementIndex(index)) { + return; + } + let checkedIndex = index; + if (this.isMulti_) { + checkedIndex = new Set([index]); + } + if (!this.isIndexValid_(checkedIndex)) { + return; + } + if (this.isMulti_) { + this.toggleMultiAtIndex(index, force, isInteraction); + } + else { + if (isInteraction || force) { + this.setSingleSelectionAtIndex_(index, isInteraction); + } + else { + const isDeselection = this.selectedIndex_ === index; + if (isDeselection) { + this.setSingleSelectionAtIndex_(numbers$3.UNSET_INDEX); + } + } + } + if (isInteraction) { + this.adapter.notifyAction(index); + } + } + toggleMultiAtIndex(index, force, isInteraction = true) { + let newSelectionValue = false; + if (force === undefined) { + newSelectionValue = !this.adapter.getSelectedStateForElementIndex(index); + } + else { + newSelectionValue = force; + } + const newSet = createSetFromIndex(this.selectedIndex_); + if (newSelectionValue) { + newSet.add(index); + } + else { + newSet.delete(index); + } + this.setMultiSelectionAtIndex_(newSet, isInteraction); + } +} + +/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +function debounceLayout(callback, waitInMS = 50) { + let timeoutId; + // tslint:disable-next-line + return function (updateItems = true) { + clearTimeout(timeoutId); + timeoutId = setTimeout(() => { + callback(updateItems); + }, waitInMS); + }; +} +const isListItem = (element) => { + return element.hasAttribute('mwc-list-item'); +}; +function clearAndCreateItemsReadyPromise() { + const oldResolver = this.itemsReadyResolver; + this.itemsReady = new Promise((res) => { + // TODO(b/175626389): Type '(value: never[] | PromiseLike) => void' + // is not assignable to type '(value?: never[] | PromiseLike | + // undefined) => void'. + return this.itemsReadyResolver = res; + }); + oldResolver(); +} +/** + * @fires selected {SelectedDetail} + * @fires action {ActionDetail} + * @fires items-updated + */ +class ListBase extends BaseElement { + constructor() { + super(); + this.mdcAdapter = null; + this.mdcFoundationClass = MDCListFoundation; + this.activatable = false; + this.multi = false; + this.wrapFocus = false; + this.itemRoles = null; + this.innerRole = null; + this.innerAriaLabel = null; + this.rootTabbable = false; + this.previousTabindex = null; + this.noninteractive = false; + this.itemsReadyResolver = (() => { + // + }); + this.itemsReady = Promise.resolve([]); + // tslint:enable:ban-ts-ignore + this.items_ = []; + const debouncedFunction = debounceLayout(this.layout.bind(this)); + this.debouncedLayout = (updateItems = true) => { + clearAndCreateItemsReadyPromise.call(this); + debouncedFunction(updateItems); + }; + } + // tslint:disable:ban-ts-ignore + async getUpdateComplete() { + // @ts-ignore + const result = await super.getUpdateComplete(); + await this.itemsReady; + return result; + } + get items() { + return this.items_; + } + updateItems() { + var _a; + const nodes = (_a = this.assignedElements) !== null && _a !== void 0 ? _a : []; + const listItems = []; + for (const node of nodes) { + if (isListItem(node)) { + listItems.push(node); + node._managingList = this; + } + if (node.hasAttribute('divider') && !node.hasAttribute('role')) { + node.setAttribute('role', 'separator'); + } + } + this.items_ = listItems; + const selectedIndices = new Set(); + this.items_.forEach((item, index) => { + if (this.itemRoles) { + item.setAttribute('role', this.itemRoles); + } + else { + item.removeAttribute('role'); + } + if (item.selected) { + selectedIndices.add(index); + } + }); + if (this.multi) { + this.select(selectedIndices); + } + else { + const index = selectedIndices.size ? selectedIndices.entries().next().value[1] : -1; + this.select(index); + } + const itemsUpdatedEv = new Event('items-updated', { bubbles: true, composed: true }); + this.dispatchEvent(itemsUpdatedEv); + } + get selected() { + const index = this.index; + if (!isIndexSet(index)) { + if (index === -1) { + return null; + } + return this.items[index]; + } + const selected = []; + for (const entry of index) { + selected.push(this.items[entry]); + } + return selected; + } + get index() { + if (this.mdcFoundation) { + return this.mdcFoundation.getSelectedIndex(); + } + return -1; + } + render() { + const role = this.innerRole === null ? undefined : this.innerRole; + const ariaLabel = this.innerAriaLabel === null ? undefined : this.innerAriaLabel; + const tabindex = this.rootTabbable ? '0' : '-1'; + return x ` + +
    + + ${this.renderPlaceholder()} +
+ `; + } + renderPlaceholder() { + var _a; + const nodes = (_a = this.assignedElements) !== null && _a !== void 0 ? _a : []; + if (this.emptyMessage !== undefined && nodes.length === 0) { + return x ` + ${this.emptyMessage} + `; + } + return null; + } + firstUpdated() { + super.firstUpdated(); + if (!this.items.length) { + // required because this is called before observers + this.mdcFoundation.setMulti(this.multi); + // for when children upgrade before list + this.layout(); + } + } + onFocusIn(evt) { + if (this.mdcFoundation && this.mdcRoot) { + const index = this.getIndexOfTarget(evt); + this.mdcFoundation.handleFocusIn(evt, index); + } + } + onFocusOut(evt) { + if (this.mdcFoundation && this.mdcRoot) { + const index = this.getIndexOfTarget(evt); + this.mdcFoundation.handleFocusOut(evt, index); + } + } + onKeydown(evt) { + if (this.mdcFoundation && this.mdcRoot) { + const index = this.getIndexOfTarget(evt); + const target = evt.target; + const isRootListItem = isListItem(target); + this.mdcFoundation.handleKeydown(evt, isRootListItem, index); + } + } + onRequestSelected(evt) { + if (this.mdcFoundation) { + let index = this.getIndexOfTarget(evt); + // might happen in shady dom slowness. Recalc children + if (index === -1) { + this.layout(); + index = this.getIndexOfTarget(evt); + // still not found; may not be mwc-list-item. Unsupported case. + if (index === -1) { + return; + } + } + const element = this.items[index]; + if (element.disabled) { + return; + } + const selected = evt.detail.selected; + const source = evt.detail.source; + this.mdcFoundation.handleSingleSelection(index, source === 'interaction', selected); + evt.stopPropagation(); + } + } + getIndexOfTarget(evt) { + const elements = this.items; + const path = evt.composedPath(); + for (const pathItem of path) { + let index = -1; + if (isNodeElement(pathItem) && isListItem(pathItem)) { + index = elements.indexOf(pathItem); + } + if (index !== -1) { + return index; + } + } + return -1; + } + createAdapter() { + this.mdcAdapter = { + getListItemCount: () => { + if (this.mdcRoot) { + return this.items.length; + } + return 0; + }, + getFocusedElementIndex: this.getFocusedItemIndex, + getAttributeForElementIndex: (index, attr) => { + const listElement = this.mdcRoot; + if (!listElement) { + return ''; + } + const element = this.items[index]; + return element ? element.getAttribute(attr) : ''; + }, + setAttributeForElementIndex: (index, attr, val) => { + if (!this.mdcRoot) { + return; + } + const element = this.items[index]; + if (element) { + element.setAttribute(attr, val); + } + }, + focusItemAtIndex: (index) => { + const element = this.items[index]; + if (element) { + element.focus(); + } + }, + setTabIndexForElementIndex: (index, value) => { + const item = this.items[index]; + if (item) { + item.tabindex = value; + } + }, + notifyAction: (index) => { + const init = { bubbles: true, composed: true }; + init.detail = { index }; + const ev = new CustomEvent('action', init); + this.dispatchEvent(ev); + }, + notifySelected: (index, diff) => { + const init = { bubbles: true, composed: true }; + init.detail = { index, diff }; + const ev = new CustomEvent('selected', init); + this.dispatchEvent(ev); + }, + isFocusInsideList: () => { + return doesElementContainFocus(this); + }, + isRootFocused: () => { + const mdcRoot = this.mdcRoot; + const root = mdcRoot.getRootNode(); + return root.activeElement === mdcRoot; + }, + setDisabledStateForElementIndex: (index, value) => { + const item = this.items[index]; + if (!item) { + return; + } + item.disabled = value; + }, + getDisabledStateForElementIndex: (index) => { + const item = this.items[index]; + if (!item) { + return false; + } + return item.disabled; + }, + setSelectedStateForElementIndex: (index, value) => { + const item = this.items[index]; + if (!item) { + return; + } + item.selected = value; + }, + getSelectedStateForElementIndex: (index) => { + const item = this.items[index]; + if (!item) { + return false; + } + return item.selected; + }, + setActivatedStateForElementIndex: (index, value) => { + const item = this.items[index]; + if (!item) { + return; + } + item.activated = value; + }, + }; + return this.mdcAdapter; + } + selectUi(index, activate = false) { + const item = this.items[index]; + if (item) { + item.selected = true; + item.activated = activate; + } + } + deselectUi(index) { + const item = this.items[index]; + if (item) { + item.selected = false; + item.activated = false; + } + } + select(index) { + if (!this.mdcFoundation) { + return; + } + this.mdcFoundation.setSelectedIndex(index); + } + toggle(index, force) { + if (this.multi) { + this.mdcFoundation.toggleMultiAtIndex(index, force); + } + } + onListItemConnected(e) { + const target = e.target; + this.layout(this.items.indexOf(target) === -1); + } + layout(updateItems = true) { + if (updateItems) { + this.updateItems(); + } + const first = this.items[0]; + for (const item of this.items) { + item.tabindex = -1; + } + if (first) { + if (this.noninteractive) { + if (!this.previousTabindex) { + this.previousTabindex = first; + } + } + else { + first.tabindex = 0; + } + } + this.itemsReadyResolver(); + } + getFocusedItemIndex() { + if (!this.mdcRoot) { + return -1; + } + if (!this.items.length) { + return -1; + } + const activeElementPath = deepActiveElementPath(); + if (!activeElementPath.length) { + return -1; + } + for (let i = activeElementPath.length - 1; i >= 0; i--) { + const activeItem = activeElementPath[i]; + if (isListItem(activeItem)) { + return this.items.indexOf(activeItem); + } + } + return -1; + } + focusItemAtIndex(index) { + for (const item of this.items) { + if (item.tabindex === 0) { + item.tabindex = -1; + break; + } + } + this.items[index].tabindex = 0; + this.items[index].focus(); + } + focus() { + const root = this.mdcRoot; + if (root) { + root.focus(); + } + } + blur() { + const root = this.mdcRoot; + if (root) { + root.blur(); + } + } +} +__decorate([ + e$5({ type: String }) +], ListBase.prototype, "emptyMessage", void 0); +__decorate([ + i$2('.mdc-deprecated-list') +], ListBase.prototype, "mdcRoot", void 0); +__decorate([ + o$1('', true, '*') +], ListBase.prototype, "assignedElements", void 0); +__decorate([ + o$1('', true, '[tabindex="0"]') +], ListBase.prototype, "tabbableElements", void 0); +__decorate([ + e$5({ type: Boolean }), + observer(function (value) { + if (this.mdcFoundation) { + this.mdcFoundation.setUseActivatedClass(value); + } + }) +], ListBase.prototype, "activatable", void 0); +__decorate([ + e$5({ type: Boolean }), + observer(function (newValue, oldValue) { + if (this.mdcFoundation) { + this.mdcFoundation.setMulti(newValue); + } + if (oldValue !== undefined) { + this.layout(); + } + }) +], ListBase.prototype, "multi", void 0); +__decorate([ + e$5({ type: Boolean }), + observer(function (value) { + if (this.mdcFoundation) { + this.mdcFoundation.setWrapFocus(value); + } + }) +], ListBase.prototype, "wrapFocus", void 0); +__decorate([ + e$5({ type: String }), + observer(function (_newValue, oldValue) { + if (oldValue !== undefined) { + this.updateItems(); + } + }) +], ListBase.prototype, "itemRoles", void 0); +__decorate([ + e$5({ type: String }) +], ListBase.prototype, "innerRole", void 0); +__decorate([ + e$5({ type: String }) +], ListBase.prototype, "innerAriaLabel", void 0); +__decorate([ + e$5({ type: Boolean }) +], ListBase.prototype, "rootTabbable", void 0); +__decorate([ + e$5({ type: Boolean, reflect: true }), + observer(function (value) { + var _a, _b; + if (value) { + const tabbable = (_b = (_a = this.tabbableElements) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null; + this.previousTabindex = tabbable; + if (tabbable) { + tabbable.setAttribute('tabindex', '-1'); + } + } + else if (!value && this.previousTabindex) { + this.previousTabindex.setAttribute('tabindex', '0'); + this.previousTabindex = null; + } + }) +], ListBase.prototype, "noninteractive", void 0); + +/** + * @license + * Copyright 2021 Google LLC + * SPDX-LIcense-Identifier: Apache-2.0 + */ +const styles$b = i$6 `@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{display:block}.mdc-deprecated-list{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.75rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);line-height:1.5rem;margin:0;padding:8px 0;list-style-type:none;color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));padding:var(--mdc-list-vertical-padding, 8px) 0}.mdc-deprecated-list:focus{outline:none}.mdc-deprecated-list-item{height:48px}.mdc-deprecated-list--dense{padding-top:4px;padding-bottom:4px;font-size:.812rem}.mdc-deprecated-list ::slotted([divider]){height:0;margin:0;border:none;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgba(0, 0, 0, 0.12)}.mdc-deprecated-list ::slotted([divider][padded]){margin:0 var(--mdc-list-side-padding, 16px)}.mdc-deprecated-list ::slotted([divider][inset]){margin-left:var(--mdc-list-inset-margin, 72px);margin-right:0;width:calc( 100% - var(--mdc-list-inset-margin, 72px) )}[dir=rtl] .mdc-deprecated-list ::slotted([divider][inset]),.mdc-deprecated-list ::slotted([divider][inset][dir=rtl]){margin-left:0;margin-right:var(--mdc-list-inset-margin, 72px)}.mdc-deprecated-list ::slotted([divider][inset][padded]){width:calc( 100% - var(--mdc-list-inset-margin, 72px) - var(--mdc-list-side-padding, 16px) )}.mdc-deprecated-list--dense ::slotted([mwc-list-item]){height:40px}.mdc-deprecated-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 20px}.mdc-deprecated-list--two-line.mdc-deprecated-list--dense ::slotted([mwc-list-item]),.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense ::slotted([mwc-list-item]){height:60px}.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 36px}:host([noninteractive]){pointer-events:none;cursor:default}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text){display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text)::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text)::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}`; + +/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +let List = class List extends ListBase { +}; +List.styles = [styles$b]; +List = __decorate([ + e$6('mwc-list') +], List); + +/** + * @license + * Copyright 2021 Google LLC + * SPDX-LIcense-Identifier: Apache-2.0 + */ +const styles$a = i$6 `:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`; + +/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +/** @soyCompatible */ +let Icon = class Icon extends s$1 { + /** @soyTemplate */ + render() { + return x ``; + } +}; +Icon.styles = [styles$a]; +Icon = __decorate([ + e$6('mwc-icon') +], Icon); + +/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +/** @soyCompatible */ +class ButtonBase extends s$1 { + constructor() { + super(...arguments); + this.raised = false; + this.unelevated = false; + this.outlined = false; + this.dense = false; + this.disabled = false; + this.trailingIcon = false; + this.fullwidth = false; + this.icon = ''; + this.label = ''; + this.expandContent = false; + this.shouldRenderRipple = false; + this.rippleHandlers = new RippleHandlers(() => { + this.shouldRenderRipple = true; + return this.ripple; + }); + } + /** @soyTemplate */ + renderOverlay() { + return x ``; + } + /** @soyTemplate */ + renderRipple() { + const filled = this.raised || this.unelevated; + return this.shouldRenderRipple ? + x `` : + ''; + } + focus() { + const buttonElement = this.buttonElement; + if (buttonElement) { + this.rippleHandlers.startFocus(); + buttonElement.focus(); + } + } + blur() { + const buttonElement = this.buttonElement; + if (buttonElement) { + this.rippleHandlers.endFocus(); + buttonElement.blur(); + } + } + /** @soyTemplate */ + getRenderClasses() { + return { + 'mdc-button--raised': this.raised, + 'mdc-button--unelevated': this.unelevated, + 'mdc-button--outlined': this.outlined, + 'mdc-button--dense': this.dense, + }; + } + /** + * @soyTemplate + * @soyAttributes buttonAttributes: #button + * @soyClasses buttonClasses: #button + */ + render() { + return x ` + `; + } + /** @soyTemplate */ + renderIcon() { + return x ` + + ${this.icon} + `; + } + handleRippleActivate(evt) { + const onUp = () => { + window.removeEventListener('mouseup', onUp); + this.handleRippleDeactivate(); + }; + window.addEventListener('mouseup', onUp); + this.rippleHandlers.startPress(evt); + } + handleRippleDeactivate() { + this.rippleHandlers.endPress(); + } + handleRippleMouseEnter() { + this.rippleHandlers.startHover(); + } + handleRippleMouseLeave() { + this.rippleHandlers.endHover(); + } + handleRippleFocus() { + this.rippleHandlers.startFocus(); + } + handleRippleBlur() { + this.rippleHandlers.endFocus(); + } +} +ButtonBase.shadowRootOptions = { mode: 'open', delegatesFocus: true }; +__decorate([ + ariaProperty, + e$5({ type: String, attribute: 'aria-haspopup' }) +], ButtonBase.prototype, "ariaHasPopup", void 0); +__decorate([ + e$5({ type: Boolean, reflect: true }) +], ButtonBase.prototype, "raised", void 0); +__decorate([ + e$5({ type: Boolean, reflect: true }) +], ButtonBase.prototype, "unelevated", void 0); +__decorate([ + e$5({ type: Boolean, reflect: true }) +], ButtonBase.prototype, "outlined", void 0); +__decorate([ + e$5({ type: Boolean }) +], ButtonBase.prototype, "dense", void 0); +__decorate([ + e$5({ type: Boolean, reflect: true }) +], ButtonBase.prototype, "disabled", void 0); +__decorate([ + e$5({ type: Boolean, attribute: 'trailingicon' }) +], ButtonBase.prototype, "trailingIcon", void 0); +__decorate([ + e$5({ type: Boolean, reflect: true }) +], ButtonBase.prototype, "fullwidth", void 0); +__decorate([ + e$5({ type: String }) +], ButtonBase.prototype, "icon", void 0); +__decorate([ + e$5({ type: String }) +], ButtonBase.prototype, "label", void 0); +__decorate([ + e$5({ type: Boolean }) +], ButtonBase.prototype, "expandContent", void 0); +__decorate([ + i$2('#button') +], ButtonBase.prototype, "buttonElement", void 0); +__decorate([ + e$3('mwc-ripple') +], ButtonBase.prototype, "ripple", void 0); +__decorate([ + t$1() +], ButtonBase.prototype, "shouldRenderRipple", void 0); +__decorate([ + e$4({ passive: true }) +], ButtonBase.prototype, "handleRippleActivate", null); + +/** + * @license + * Copyright 2021 Google LLC + * SPDX-LIcense-Identifier: Apache-2.0 + */ +const styles$9 = i$6 `.mdc-button{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-button-font-size, 0.875rem);line-height:2.25rem;line-height:var(--mdc-typography-button-line-height, 2.25rem);font-weight:500;font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:0.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, 0.0892857143em);text-decoration:none;text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:uppercase;text-transform:var(--mdc-typography-button-text-transform, uppercase)}.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:#fff;background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:transparent}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{display:none}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc( 100% + 4px );width:calc( 100% + 4px );display:block}}@media screen and (forced-colors: active)and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring::after,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring::after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}}@media screen and (forced-colors: active)and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring::after,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring::after{border-color:CanvasText}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:transparent}.mdc-button{height:36px;border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button:not(:disabled){color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-button:disabled{color:rgba(0, 0, 0, 0.38)}.mdc-button .mdc-button__icon{font-size:1.125rem;width:1.125rem;height:1.125rem}.mdc-button .mdc-button__ripple{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--raised,.mdc-button--unelevated{height:36px;border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--raised:not(:disabled),.mdc-button--unelevated:not(:disabled){background-color:#6200ee;background-color:var(--mdc-theme-primary, #6200ee)}.mdc-button--raised:disabled,.mdc-button--unelevated:disabled{background-color:rgba(0, 0, 0, 0.12)}.mdc-button--raised:not(:disabled),.mdc-button--unelevated:not(:disabled){color:#fff;color:var(--mdc-theme-on-primary, #fff)}.mdc-button--raised:disabled,.mdc-button--unelevated:disabled{color:rgba(0, 0, 0, 0.38)}.mdc-button--raised .mdc-button__icon,.mdc-button--unelevated .mdc-button__icon{font-size:1.125rem;width:1.125rem;height:1.125rem}.mdc-button--raised .mdc-button__ripple,.mdc-button--unelevated .mdc-button__ripple{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--outlined{height:36px;border-radius:4px;border-radius:var(--mdc-shape-small, 4px);padding:0 15px 0 15px;border-width:1px}.mdc-button--outlined:not(:disabled){color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-button--outlined:disabled{color:rgba(0, 0, 0, 0.38)}.mdc-button--outlined .mdc-button__icon{font-size:1.125rem;width:1.125rem;height:1.125rem}.mdc-button--outlined .mdc-button__ripple{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--outlined:not(:disabled){border-color:rgba(0, 0, 0, 0.12)}.mdc-button--outlined:disabled{border-color:rgba(0, 0, 0, 0.12)}.mdc-button--outlined.mdc-button--icon-trailing{padding:0 11px 0 15px}.mdc-button--outlined.mdc-button--icon-leading{padding:0 15px 0 11px}.mdc-button--outlined .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:1px}.mdc-button--outlined .mdc-button__touch{left:calc(-1 * 1px);width:calc(100% + 2 * 1px)}.mdc-button--raised{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2),0px 2px 2px 0px rgba(0, 0, 0, 0.14),0px 1px 5px 0px rgba(0,0,0,.12);transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--raised:hover,.mdc-button--raised:focus{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2),0px 4px 5px 0px rgba(0, 0, 0, 0.14),0px 1px 10px 0px rgba(0,0,0,.12)}.mdc-button--raised:active{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2),0px 8px 10px 1px rgba(0, 0, 0, 0.14),0px 3px 14px 2px rgba(0,0,0,.12)}.mdc-button--raised:disabled{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2),0px 0px 0px 0px rgba(0, 0, 0, 0.14),0px 0px 0px 0px rgba(0,0,0,.12)}:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:transparent;vertical-align:top}:host([fullwidth]){width:100%}:host([raised]),:host([unelevated]){--mdc-ripple-color:#fff;--mdc-ripple-focus-opacity:0.24;--mdc-ripple-hover-opacity:0.08;--mdc-ripple-press-opacity:0.24}.trailing-icon ::slotted(*),.trailing-icon .mdc-button__icon,.leading-icon ::slotted(*),.leading-icon .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .trailing-icon ::slotted(*),[dir=rtl] .trailing-icon .mdc-button__icon,[dir=rtl] .leading-icon ::slotted(*),[dir=rtl] .leading-icon .mdc-button__icon,.trailing-icon ::slotted(*[dir=rtl]),.trailing-icon .mdc-button__icon[dir=rtl],.leading-icon ::slotted(*[dir=rtl]),.leading-icon .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.trailing-icon ::slotted(*),.trailing-icon .mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .trailing-icon ::slotted(*),[dir=rtl] .trailing-icon .mdc-button__icon,.trailing-icon ::slotted(*[dir=rtl]),.trailing-icon .mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}.slot-container{display:inline-flex;align-items:center;justify-content:center}.slot-container.flex{flex:auto}.mdc-button{flex:auto;overflow:hidden;padding-left:8px;padding-left:var(--mdc-button-horizontal-padding, 8px);padding-right:8px;padding-right:var(--mdc-button-horizontal-padding, 8px)}.mdc-button--raised{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mdc-button--raised:focus{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-focus, var(--mdc-button-raised-box-shadow-hover, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12)))}.mdc-button--raised:hover{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-hover, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mdc-button--raised:active{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-active, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mdc-button--raised:disabled{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-disabled, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mdc-button--raised,.mdc-button--unelevated{padding-left:16px;padding-left:var(--mdc-button-horizontal-padding, 16px);padding-right:16px;padding-right:var(--mdc-button-horizontal-padding, 16px)}.mdc-button--outlined{border-width:1px;border-width:var(--mdc-button-outline-width, 1px);padding-left:calc(16px - 1px);padding-left:calc(var(--mdc-button-horizontal-padding, 16px) - var(--mdc-button-outline-width, 1px));padding-right:calc(16px - 1px);padding-right:calc(var(--mdc-button-horizontal-padding, 16px) - var(--mdc-button-outline-width, 1px))}.mdc-button--outlined:not(:disabled){border-color:rgba(0, 0, 0, 0.12);border-color:var(--mdc-button-outline-color, rgba(0, 0, 0, 0.12))}.mdc-button--outlined .ripple{top:calc(-1 * 1px);top:calc(-1 * var(--mdc-button-outline-width, 1px));left:calc(-1 * 1px);left:calc(-1 * var(--mdc-button-outline-width, 1px));right:initial;right:initial;border-width:1px;border-width:var(--mdc-button-outline-width, 1px);border-style:solid;border-color:transparent}[dir=rtl] .mdc-button--outlined .ripple,.mdc-button--outlined .ripple[dir=rtl]{left:initial;left:initial;right:calc(-1 * 1px);right:calc(-1 * var(--mdc-button-outline-width, 1px))}.mdc-button--dense{height:28px;margin-top:0;margin-bottom:0}.mdc-button--dense .mdc-button__touch{height:100%}:host([disabled]){pointer-events:none}:host([disabled]) .mdc-button{color:rgba(0, 0, 0, 0.38);color:var(--mdc-button-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-button--raised,:host([disabled]) .mdc-button--unelevated{background-color:rgba(0, 0, 0, 0.12);background-color:var(--mdc-button-disabled-fill-color, rgba(0, 0, 0, 0.12))}:host([disabled]) .mdc-button--outlined{border-color:rgba(0, 0, 0, 0.12);border-color:var(--mdc-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}`; + +/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +/** @soyCompatible */ +let Button = class Button extends ButtonBase { +}; +Button.styles = [styles$9]; +Button = __decorate([ + e$6('mwc-button') +], Button); + +/** + * @license + * Copyright 2018 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +var strings$2 = { + NOTCH_ELEMENT_SELECTOR: '.mdc-notched-outline__notch', +}; +var numbers$2 = { + // This should stay in sync with $mdc-notched-outline-padding * 2. + NOTCH_ELEMENT_PADDING: 8, +}; +var cssClasses$4 = { + NO_LABEL: 'mdc-notched-outline--no-label', + OUTLINE_NOTCHED: 'mdc-notched-outline--notched', + OUTLINE_UPGRADED: 'mdc-notched-outline--upgraded', +}; + +/** + * @license + * Copyright 2017 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +var MDCNotchedOutlineFoundation = /** @class */ (function (_super) { + __extends(MDCNotchedOutlineFoundation, _super); + function MDCNotchedOutlineFoundation(adapter) { + return _super.call(this, __assign(__assign({}, MDCNotchedOutlineFoundation.defaultAdapter), adapter)) || this; + } + Object.defineProperty(MDCNotchedOutlineFoundation, "strings", { + get: function () { + return strings$2; + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(MDCNotchedOutlineFoundation, "cssClasses", { + get: function () { + return cssClasses$4; + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(MDCNotchedOutlineFoundation, "numbers", { + get: function () { + return numbers$2; + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(MDCNotchedOutlineFoundation, "defaultAdapter", { + /** + * See {@link MDCNotchedOutlineAdapter} for typing information on parameters and return types. + */ + get: function () { + // tslint:disable:object-literal-sort-keys Methods should be in the same order as the adapter interface. + return { + addClass: function () { return undefined; }, + removeClass: function () { return undefined; }, + setNotchWidthProperty: function () { return undefined; }, + removeNotchWidthProperty: function () { return undefined; }, + }; + // tslint:enable:object-literal-sort-keys + }, + enumerable: false, + configurable: true + }); + /** + * Adds the outline notched selector and updates the notch width calculated based off of notchWidth. + */ + MDCNotchedOutlineFoundation.prototype.notch = function (notchWidth) { + var OUTLINE_NOTCHED = MDCNotchedOutlineFoundation.cssClasses.OUTLINE_NOTCHED; + if (notchWidth > 0) { + notchWidth += numbers$2.NOTCH_ELEMENT_PADDING; // Add padding from left/right. + } + this.adapter.setNotchWidthProperty(notchWidth); + this.adapter.addClass(OUTLINE_NOTCHED); + }; + /** + * Removes notched outline selector to close the notch in the outline. + */ + MDCNotchedOutlineFoundation.prototype.closeNotch = function () { + var OUTLINE_NOTCHED = MDCNotchedOutlineFoundation.cssClasses.OUTLINE_NOTCHED; + this.adapter.removeClass(OUTLINE_NOTCHED); + this.adapter.removeNotchWidthProperty(); + }; + return MDCNotchedOutlineFoundation; +}(MDCFoundation)); + +/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +class NotchedOutlineBase extends BaseElement { + constructor() { + super(...arguments); + this.mdcFoundationClass = MDCNotchedOutlineFoundation; + this.width = 0; + this.open = false; + this.lastOpen = this.open; + } + createAdapter() { + return { + addClass: (className) => this.mdcRoot.classList.add(className), + removeClass: (className) => this.mdcRoot.classList.remove(className), + setNotchWidthProperty: (width) => this.notchElement.style.setProperty('width', `${width}px`), + removeNotchWidthProperty: () => this.notchElement.style.removeProperty('width'), + }; + } + openOrClose(shouldOpen, width) { + if (!this.mdcFoundation) { + return; + } + if (shouldOpen && width !== undefined) { + this.mdcFoundation.notch(width); + } + else { + this.mdcFoundation.closeNotch(); + } + } + render() { + this.openOrClose(this.open, this.width); + const classes = o$3({ + 'mdc-notched-outline--notched': this.open, + }); + return x ` + + + + + + + `; + } +} +__decorate([ + i$2('.mdc-notched-outline') +], NotchedOutlineBase.prototype, "mdcRoot", void 0); +__decorate([ + e$5({ type: Number }) +], NotchedOutlineBase.prototype, "width", void 0); +__decorate([ + e$5({ type: Boolean, reflect: true }) +], NotchedOutlineBase.prototype, "open", void 0); +__decorate([ + i$2('.mdc-notched-outline__notch') +], NotchedOutlineBase.prototype, "notchElement", void 0); + +/** + * @license + * Copyright 2021 Google LLC + * SPDX-LIcense-Identifier: Apache-2.0 + */ +const styles$8 = i$6 `.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(100% / 0.75)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}:host{display:block;position:absolute;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] :host,:host([dir=rtl]){text-align:right}::slotted(.mdc-floating-label){display:inline-block;position:relative;top:17px;bottom:auto;max-width:100%}::slotted(.mdc-floating-label--float-above){text-overflow:clip}.mdc-notched-outline--upgraded ::slotted(.mdc-floating-label--float-above){max-width:calc(100% / 0.75)}.mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-notched-outline .mdc-notched-outline__leading,.mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2)}}.mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-color:var(--mdc-notched-outline-border-color, var(--mdc-theme-primary, #6200ee));border-width:1px;border-width:var(--mdc-notched-outline-stroke-width, 1px)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0;padding-top:var(--mdc-notched-outline-notch-offset, 0)}`; + +/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +let NotchedOutline = class NotchedOutline extends NotchedOutlineBase { +}; +NotchedOutline.styles = [styles$8]; +NotchedOutline = __decorate([ + e$6('mwc-notched-outline') +], NotchedOutline); + +/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +var _a, _b; +// ShadyDOM should submit elements in component internals +const USING_SHADY_DOM = (_b = (_a = window.ShadyDOM) === null || _a === void 0 ? void 0 : _a.inUse) !== null && _b !== void 0 ? _b : false; +/** @soyCompatible */ +class FormElement extends BaseElement { + constructor() { + super(...arguments); + /** + * Disabled state for the component. When `disabled` is set to `true`, the + * component will not be added to form submission. + */ + this.disabled = false; + /** + * Form element that contains this element + */ + this.containingForm = null; + this.formDataListener = (ev) => { + if (!this.disabled) { + this.setFormData(ev.formData); + } + }; + } + findFormElement() { + // If the component internals are not in Shadow DOM, subscribing to form + // data events could lead to duplicated data, which may not work correctly + // on the server side. + if (!this.shadowRoot || USING_SHADY_DOM) { + return null; + } + const root = this.getRootNode(); + const forms = root.querySelectorAll('form'); + for (const form of Array.from(forms)) { + if (form.contains(this)) { + return form; + } + } + return null; + } + connectedCallback() { + var _a; + super.connectedCallback(); + this.containingForm = this.findFormElement(); + (_a = this.containingForm) === null || _a === void 0 ? void 0 : _a.addEventListener('formdata', this.formDataListener); + } + disconnectedCallback() { + var _a; + super.disconnectedCallback(); + (_a = this.containingForm) === null || _a === void 0 ? void 0 : _a.removeEventListener('formdata', this.formDataListener); + this.containingForm = null; + } + click() { + if (this.formElement && !this.disabled) { + this.formElement.focus(); + this.formElement.click(); + } + } + firstUpdated() { + super.firstUpdated(); + if (this.shadowRoot) { + this.mdcRoot.addEventListener('change', (e) => { + this.dispatchEvent(new Event('change', e)); + }); + } + } +} +FormElement.shadowRootOptions = { mode: 'open', delegatesFocus: true }; +__decorate([ + e$5({ type: Boolean }) +], FormElement.prototype, "disabled", void 0); + +/** + * @license + * Copyright 2016 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +var cssClasses$3 = { + LABEL_FLOAT_ABOVE: 'mdc-floating-label--float-above', + LABEL_REQUIRED: 'mdc-floating-label--required', + LABEL_SHAKE: 'mdc-floating-label--shake', + ROOT: 'mdc-floating-label', +}; + +/** + * @license + * Copyright 2016 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +var MDCFloatingLabelFoundation = /** @class */ (function (_super) { + __extends(MDCFloatingLabelFoundation, _super); + function MDCFloatingLabelFoundation(adapter) { + var _this = _super.call(this, __assign(__assign({}, MDCFloatingLabelFoundation.defaultAdapter), adapter)) || this; + _this.shakeAnimationEndHandler = function () { + _this.handleShakeAnimationEnd(); + }; + return _this; + } + Object.defineProperty(MDCFloatingLabelFoundation, "cssClasses", { + get: function () { + return cssClasses$3; + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(MDCFloatingLabelFoundation, "defaultAdapter", { + /** + * See {@link MDCFloatingLabelAdapter} for typing information on parameters and return types. + */ + get: function () { + // tslint:disable:object-literal-sort-keys Methods should be in the same order as the adapter interface. + return { + addClass: function () { return undefined; }, + removeClass: function () { return undefined; }, + getWidth: function () { return 0; }, + registerInteractionHandler: function () { return undefined; }, + deregisterInteractionHandler: function () { return undefined; }, + }; + // tslint:enable:object-literal-sort-keys + }, + enumerable: false, + configurable: true + }); + MDCFloatingLabelFoundation.prototype.init = function () { + this.adapter.registerInteractionHandler('animationend', this.shakeAnimationEndHandler); + }; + MDCFloatingLabelFoundation.prototype.destroy = function () { + this.adapter.deregisterInteractionHandler('animationend', this.shakeAnimationEndHandler); + }; + /** + * Returns the width of the label element. + */ + MDCFloatingLabelFoundation.prototype.getWidth = function () { + return this.adapter.getWidth(); + }; + /** + * Styles the label to produce a shake animation to indicate an error. + * @param shouldShake If true, adds the shake CSS class; otherwise, removes shake class. + */ + MDCFloatingLabelFoundation.prototype.shake = function (shouldShake) { + var LABEL_SHAKE = MDCFloatingLabelFoundation.cssClasses.LABEL_SHAKE; + if (shouldShake) { + this.adapter.addClass(LABEL_SHAKE); + } + else { + this.adapter.removeClass(LABEL_SHAKE); + } + }; + /** + * Styles the label to float or dock. + * @param shouldFloat If true, adds the float CSS class; otherwise, removes float and shake classes to dock the label. + */ + MDCFloatingLabelFoundation.prototype.float = function (shouldFloat) { + var _a = MDCFloatingLabelFoundation.cssClasses, LABEL_FLOAT_ABOVE = _a.LABEL_FLOAT_ABOVE, LABEL_SHAKE = _a.LABEL_SHAKE; + if (shouldFloat) { + this.adapter.addClass(LABEL_FLOAT_ABOVE); + } + else { + this.adapter.removeClass(LABEL_FLOAT_ABOVE); + this.adapter.removeClass(LABEL_SHAKE); + } + }; + /** + * Styles the label as required. + * @param isRequired If true, adds an asterisk to the label, indicating that it is required. + */ + MDCFloatingLabelFoundation.prototype.setRequired = function (isRequired) { + var LABEL_REQUIRED = MDCFloatingLabelFoundation.cssClasses.LABEL_REQUIRED; + if (isRequired) { + this.adapter.addClass(LABEL_REQUIRED); + } + else { + this.adapter.removeClass(LABEL_REQUIRED); + } + }; + MDCFloatingLabelFoundation.prototype.handleShakeAnimationEnd = function () { + var LABEL_SHAKE = MDCFloatingLabelFoundation.cssClasses.LABEL_SHAKE; + this.adapter.removeClass(LABEL_SHAKE); + }; + return MDCFloatingLabelFoundation; +}(MDCFoundation)); + +/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +const createAdapter$1 = (labelElement) => { + return { + addClass: (className) => labelElement.classList.add(className), + removeClass: (className) => labelElement.classList.remove(className), + getWidth: () => labelElement.scrollWidth, + registerInteractionHandler: (evtType, handler) => { + labelElement.addEventListener(evtType, handler); + }, + deregisterInteractionHandler: (evtType, handler) => { + labelElement.removeEventListener(evtType, handler); + }, + }; +}; +class FloatingLabelDirective extends i$4 { + constructor(partInfo) { + super(partInfo); + this.foundation = null; + this.previousPart = null; + switch (partInfo.type) { + // Only allow Attribute and Part bindings + case t$2.ATTRIBUTE: + case t$2.PROPERTY: + break; + default: + throw new Error('FloatingLabel directive only support attribute and property parts'); + } + } + /** + * There is no PropertyPart in Lit 2 so far. For more info see: + * https://github.com/lit/lit/issues/1863 + */ + update(part, [label]) { + if (part !== this.previousPart) { + if (this.foundation) { + this.foundation.destroy(); + } + this.previousPart = part; + const labelElement = part.element; + labelElement.classList.add('mdc-floating-label'); + const adapter = createAdapter$1(labelElement); + this.foundation = new MDCFloatingLabelFoundation(adapter); + this.foundation.init(); + } + return this.render(label); + } + render(_label) { + return this.foundation; + } +} +const floatingLabel = e$7(FloatingLabelDirective); + +/** + * @license + * Copyright 2018 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +var cssClasses$2 = { + LINE_RIPPLE_ACTIVE: 'mdc-line-ripple--active', + LINE_RIPPLE_DEACTIVATING: 'mdc-line-ripple--deactivating', +}; + +/** + * @license + * Copyright 2018 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +var MDCLineRippleFoundation = /** @class */ (function (_super) { + __extends(MDCLineRippleFoundation, _super); + function MDCLineRippleFoundation(adapter) { + var _this = _super.call(this, __assign(__assign({}, MDCLineRippleFoundation.defaultAdapter), adapter)) || this; + _this.transitionEndHandler = function (evt) { + _this.handleTransitionEnd(evt); + }; + return _this; + } + Object.defineProperty(MDCLineRippleFoundation, "cssClasses", { + get: function () { + return cssClasses$2; + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(MDCLineRippleFoundation, "defaultAdapter", { + /** + * See {@link MDCLineRippleAdapter} for typing information on parameters and return types. + */ + get: function () { + // tslint:disable:object-literal-sort-keys Methods should be in the same order as the adapter interface. + return { + addClass: function () { return undefined; }, + removeClass: function () { return undefined; }, + hasClass: function () { return false; }, + setStyle: function () { return undefined; }, + registerEventHandler: function () { return undefined; }, + deregisterEventHandler: function () { return undefined; }, + }; + // tslint:enable:object-literal-sort-keys + }, + enumerable: false, + configurable: true + }); + MDCLineRippleFoundation.prototype.init = function () { + this.adapter.registerEventHandler('transitionend', this.transitionEndHandler); + }; + MDCLineRippleFoundation.prototype.destroy = function () { + this.adapter.deregisterEventHandler('transitionend', this.transitionEndHandler); + }; + MDCLineRippleFoundation.prototype.activate = function () { + this.adapter.removeClass(cssClasses$2.LINE_RIPPLE_DEACTIVATING); + this.adapter.addClass(cssClasses$2.LINE_RIPPLE_ACTIVE); + }; + MDCLineRippleFoundation.prototype.setRippleCenter = function (xCoordinate) { + this.adapter.setStyle('transform-origin', xCoordinate + "px center"); + }; + MDCLineRippleFoundation.prototype.deactivate = function () { + this.adapter.addClass(cssClasses$2.LINE_RIPPLE_DEACTIVATING); + }; + MDCLineRippleFoundation.prototype.handleTransitionEnd = function (evt) { + // Wait for the line ripple to be either transparent or opaque + // before emitting the animation end event + var isDeactivating = this.adapter.hasClass(cssClasses$2.LINE_RIPPLE_DEACTIVATING); + if (evt.propertyName === 'opacity') { + if (isDeactivating) { + this.adapter.removeClass(cssClasses$2.LINE_RIPPLE_ACTIVE); + this.adapter.removeClass(cssClasses$2.LINE_RIPPLE_DEACTIVATING); + } + } + }; + return MDCLineRippleFoundation; +}(MDCFoundation)); + +/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +const createAdapter = (lineElement) => { + return { + addClass: (className) => lineElement.classList.add(className), + removeClass: (className) => lineElement.classList.remove(className), + hasClass: (className) => lineElement.classList.contains(className), + setStyle: (propertyName, value) => lineElement.style.setProperty(propertyName, value), + registerEventHandler: (evtType, handler) => { + lineElement.addEventListener(evtType, handler); + }, + deregisterEventHandler: (evtType, handler) => { + lineElement.removeEventListener(evtType, handler); + }, + }; +}; +class LineRippleDirective extends i$4 { + constructor(partInfo) { + super(partInfo); + this.previousPart = null; + this.foundation = null; + switch (partInfo.type) { + case t$2.ATTRIBUTE: + case t$2.PROPERTY: + return; + default: + throw new Error('LineRipple only support attribute and property parts.'); + } + } + /** + * There is no PropertyPart in Lit 2 so far. For more info see: + * https://github.com/lit/lit/issues/1863 + */ + update(part, _params) { + if (this.previousPart !== part) { + if (this.foundation) { + this.foundation.destroy(); + } + this.previousPart = part; + const lineElement = part.element; + lineElement.classList.add('mdc-line-ripple'); + const adapter = createAdapter(lineElement); + this.foundation = new MDCLineRippleFoundation(adapter); + this.foundation.init(); + } + return this.render(); + } + render() { + return this.foundation; + } +} +const lineRipple = e$7(LineRippleDirective); + +/** + * @license + * Copyright 2016 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +var strings$1 = { + ARIA_CONTROLS: 'aria-controls', + ARIA_DESCRIBEDBY: 'aria-describedby', + INPUT_SELECTOR: '.mdc-text-field__input', + LABEL_SELECTOR: '.mdc-floating-label', + LEADING_ICON_SELECTOR: '.mdc-text-field__icon--leading', + LINE_RIPPLE_SELECTOR: '.mdc-line-ripple', + OUTLINE_SELECTOR: '.mdc-notched-outline', + PREFIX_SELECTOR: '.mdc-text-field__affix--prefix', + SUFFIX_SELECTOR: '.mdc-text-field__affix--suffix', + TRAILING_ICON_SELECTOR: '.mdc-text-field__icon--trailing' +}; +var cssClasses$1 = { + DISABLED: 'mdc-text-field--disabled', + FOCUSED: 'mdc-text-field--focused', + HELPER_LINE: 'mdc-text-field-helper-line', + INVALID: 'mdc-text-field--invalid', + LABEL_FLOATING: 'mdc-text-field--label-floating', + NO_LABEL: 'mdc-text-field--no-label', + OUTLINED: 'mdc-text-field--outlined', + ROOT: 'mdc-text-field', + TEXTAREA: 'mdc-text-field--textarea', + WITH_LEADING_ICON: 'mdc-text-field--with-leading-icon', + WITH_TRAILING_ICON: 'mdc-text-field--with-trailing-icon', + WITH_INTERNAL_COUNTER: 'mdc-text-field--with-internal-counter', +}; +var numbers$1 = { + LABEL_SCALE: 0.75, +}; +/** + * Whitelist based off of + * https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation + * under the "Validation-related attributes" section. + */ +var VALIDATION_ATTR_WHITELIST = [ + 'pattern', + 'min', + 'max', + 'required', + 'step', + 'minlength', + 'maxlength', +]; +/** + * Label should always float for these types as they show some UI even if value + * is empty. + */ +var ALWAYS_FLOAT_TYPES = [ + 'color', + 'date', + 'datetime-local', + 'month', + 'range', + 'time', + 'week', +]; + +/** + * @license + * Copyright 2016 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +var POINTERDOWN_EVENTS = ['mousedown', 'touchstart']; +var INTERACTION_EVENTS = ['click', 'keydown']; +var MDCTextFieldFoundation = /** @class */ (function (_super) { + __extends(MDCTextFieldFoundation, _super); + /** + * @param adapter + * @param foundationMap Map from subcomponent names to their subfoundations. + */ + function MDCTextFieldFoundation(adapter, foundationMap) { + if (foundationMap === void 0) { foundationMap = {}; } + var _this = _super.call(this, __assign(__assign({}, MDCTextFieldFoundation.defaultAdapter), adapter)) || this; + _this.isFocused = false; + _this.receivedUserInput = false; + _this.valid = true; + _this.useNativeValidation = true; + _this.validateOnValueChange = true; + _this.helperText = foundationMap.helperText; + _this.characterCounter = foundationMap.characterCounter; + _this.leadingIcon = foundationMap.leadingIcon; + _this.trailingIcon = foundationMap.trailingIcon; + _this.inputFocusHandler = function () { + _this.activateFocus(); + }; + _this.inputBlurHandler = function () { + _this.deactivateFocus(); + }; + _this.inputInputHandler = function () { + _this.handleInput(); + }; + _this.setPointerXOffset = function (evt) { + _this.setTransformOrigin(evt); + }; + _this.textFieldInteractionHandler = function () { + _this.handleTextFieldInteraction(); + }; + _this.validationAttributeChangeHandler = function (attributesList) { + _this.handleValidationAttributeChange(attributesList); + }; + return _this; + } + Object.defineProperty(MDCTextFieldFoundation, "cssClasses", { + get: function () { + return cssClasses$1; + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(MDCTextFieldFoundation, "strings", { + get: function () { + return strings$1; + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(MDCTextFieldFoundation, "numbers", { + get: function () { + return numbers$1; + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(MDCTextFieldFoundation.prototype, "shouldAlwaysFloat", { + get: function () { + var type = this.getNativeInput().type; + return ALWAYS_FLOAT_TYPES.indexOf(type) >= 0; + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(MDCTextFieldFoundation.prototype, "shouldFloat", { + get: function () { + return this.shouldAlwaysFloat || this.isFocused || !!this.getValue() || + this.isBadInput(); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(MDCTextFieldFoundation.prototype, "shouldShake", { + get: function () { + return !this.isFocused && !this.isValid() && !!this.getValue(); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(MDCTextFieldFoundation, "defaultAdapter", { + /** + * See {@link MDCTextFieldAdapter} for typing information on parameters and + * return types. + */ + get: function () { + // tslint:disable:object-literal-sort-keys Methods should be in the same order as the adapter interface. + return { + addClass: function () { return undefined; }, + removeClass: function () { return undefined; }, + hasClass: function () { return true; }, + setInputAttr: function () { return undefined; }, + removeInputAttr: function () { return undefined; }, + registerTextFieldInteractionHandler: function () { return undefined; }, + deregisterTextFieldInteractionHandler: function () { return undefined; }, + registerInputInteractionHandler: function () { return undefined; }, + deregisterInputInteractionHandler: function () { return undefined; }, + registerValidationAttributeChangeHandler: function () { + return new MutationObserver(function () { return undefined; }); + }, + deregisterValidationAttributeChangeHandler: function () { return undefined; }, + getNativeInput: function () { return null; }, + isFocused: function () { return false; }, + activateLineRipple: function () { return undefined; }, + deactivateLineRipple: function () { return undefined; }, + setLineRippleTransformOrigin: function () { return undefined; }, + shakeLabel: function () { return undefined; }, + floatLabel: function () { return undefined; }, + setLabelRequired: function () { return undefined; }, + hasLabel: function () { return false; }, + getLabelWidth: function () { return 0; }, + hasOutline: function () { return false; }, + notchOutline: function () { return undefined; }, + closeOutline: function () { return undefined; }, + }; + // tslint:enable:object-literal-sort-keys + }, + enumerable: false, + configurable: true + }); + MDCTextFieldFoundation.prototype.init = function () { + var e_1, _a, e_2, _b; + if (this.adapter.hasLabel() && this.getNativeInput().required) { + this.adapter.setLabelRequired(true); + } + if (this.adapter.isFocused()) { + this.inputFocusHandler(); + } + else if (this.adapter.hasLabel() && this.shouldFloat) { + this.notchOutline(true); + this.adapter.floatLabel(true); + this.styleFloating(true); + } + this.adapter.registerInputInteractionHandler('focus', this.inputFocusHandler); + this.adapter.registerInputInteractionHandler('blur', this.inputBlurHandler); + this.adapter.registerInputInteractionHandler('input', this.inputInputHandler); + try { + for (var POINTERDOWN_EVENTS_1 = __values(POINTERDOWN_EVENTS), POINTERDOWN_EVENTS_1_1 = POINTERDOWN_EVENTS_1.next(); !POINTERDOWN_EVENTS_1_1.done; POINTERDOWN_EVENTS_1_1 = POINTERDOWN_EVENTS_1.next()) { + var evtType = POINTERDOWN_EVENTS_1_1.value; + this.adapter.registerInputInteractionHandler(evtType, this.setPointerXOffset); + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { + if (POINTERDOWN_EVENTS_1_1 && !POINTERDOWN_EVENTS_1_1.done && (_a = POINTERDOWN_EVENTS_1.return)) _a.call(POINTERDOWN_EVENTS_1); + } + finally { if (e_1) throw e_1.error; } + } + try { + for (var INTERACTION_EVENTS_1 = __values(INTERACTION_EVENTS), INTERACTION_EVENTS_1_1 = INTERACTION_EVENTS_1.next(); !INTERACTION_EVENTS_1_1.done; INTERACTION_EVENTS_1_1 = INTERACTION_EVENTS_1.next()) { + var evtType = INTERACTION_EVENTS_1_1.value; + this.adapter.registerTextFieldInteractionHandler(evtType, this.textFieldInteractionHandler); + } + } + catch (e_2_1) { e_2 = { error: e_2_1 }; } + finally { + try { + if (INTERACTION_EVENTS_1_1 && !INTERACTION_EVENTS_1_1.done && (_b = INTERACTION_EVENTS_1.return)) _b.call(INTERACTION_EVENTS_1); + } + finally { if (e_2) throw e_2.error; } + } + this.validationObserver = + this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler); + this.setcharacterCounter(this.getValue().length); + }; + MDCTextFieldFoundation.prototype.destroy = function () { + var e_3, _a, e_4, _b; + this.adapter.deregisterInputInteractionHandler('focus', this.inputFocusHandler); + this.adapter.deregisterInputInteractionHandler('blur', this.inputBlurHandler); + this.adapter.deregisterInputInteractionHandler('input', this.inputInputHandler); + try { + for (var POINTERDOWN_EVENTS_2 = __values(POINTERDOWN_EVENTS), POINTERDOWN_EVENTS_2_1 = POINTERDOWN_EVENTS_2.next(); !POINTERDOWN_EVENTS_2_1.done; POINTERDOWN_EVENTS_2_1 = POINTERDOWN_EVENTS_2.next()) { + var evtType = POINTERDOWN_EVENTS_2_1.value; + this.adapter.deregisterInputInteractionHandler(evtType, this.setPointerXOffset); + } + } + catch (e_3_1) { e_3 = { error: e_3_1 }; } + finally { + try { + if (POINTERDOWN_EVENTS_2_1 && !POINTERDOWN_EVENTS_2_1.done && (_a = POINTERDOWN_EVENTS_2.return)) _a.call(POINTERDOWN_EVENTS_2); + } + finally { if (e_3) throw e_3.error; } + } + try { + for (var INTERACTION_EVENTS_2 = __values(INTERACTION_EVENTS), INTERACTION_EVENTS_2_1 = INTERACTION_EVENTS_2.next(); !INTERACTION_EVENTS_2_1.done; INTERACTION_EVENTS_2_1 = INTERACTION_EVENTS_2.next()) { + var evtType = INTERACTION_EVENTS_2_1.value; + this.adapter.deregisterTextFieldInteractionHandler(evtType, this.textFieldInteractionHandler); + } + } + catch (e_4_1) { e_4 = { error: e_4_1 }; } + finally { + try { + if (INTERACTION_EVENTS_2_1 && !INTERACTION_EVENTS_2_1.done && (_b = INTERACTION_EVENTS_2.return)) _b.call(INTERACTION_EVENTS_2); + } + finally { if (e_4) throw e_4.error; } + } + this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver); + }; + /** + * Handles user interactions with the Text Field. + */ + MDCTextFieldFoundation.prototype.handleTextFieldInteraction = function () { + var nativeInput = this.adapter.getNativeInput(); + if (nativeInput && nativeInput.disabled) { + return; + } + this.receivedUserInput = true; + }; + /** + * Handles validation attribute changes + */ + MDCTextFieldFoundation.prototype.handleValidationAttributeChange = function (attributesList) { + var _this = this; + attributesList.some(function (attributeName) { + if (VALIDATION_ATTR_WHITELIST.indexOf(attributeName) > -1) { + _this.styleValidity(true); + _this.adapter.setLabelRequired(_this.getNativeInput().required); + return true; + } + return false; + }); + if (attributesList.indexOf('maxlength') > -1) { + this.setcharacterCounter(this.getValue().length); + } + }; + /** + * Opens/closes the notched outline. + */ + MDCTextFieldFoundation.prototype.notchOutline = function (openNotch) { + if (!this.adapter.hasOutline() || !this.adapter.hasLabel()) { + return; + } + if (openNotch) { + var labelWidth = this.adapter.getLabelWidth() * numbers$1.LABEL_SCALE; + this.adapter.notchOutline(labelWidth); + } + else { + this.adapter.closeOutline(); + } + }; + /** + * Activates the text field focus state. + */ + MDCTextFieldFoundation.prototype.activateFocus = function () { + this.isFocused = true; + this.styleFocused(this.isFocused); + this.adapter.activateLineRipple(); + if (this.adapter.hasLabel()) { + this.notchOutline(this.shouldFloat); + this.adapter.floatLabel(this.shouldFloat); + this.styleFloating(this.shouldFloat); + this.adapter.shakeLabel(this.shouldShake); + } + if (this.helperText && + (this.helperText.isPersistent() || !this.helperText.isValidation() || + !this.valid)) { + this.helperText.showToScreenReader(); + } + }; + /** + * Sets the line ripple's transform origin, so that the line ripple activate + * animation will animate out from the user's click location. + */ + MDCTextFieldFoundation.prototype.setTransformOrigin = function (evt) { + if (this.isDisabled() || this.adapter.hasOutline()) { + return; + } + var touches = evt.touches; + var targetEvent = touches ? touches[0] : evt; + var targetClientRect = targetEvent.target.getBoundingClientRect(); + var normalizedX = targetEvent.clientX - targetClientRect.left; + this.adapter.setLineRippleTransformOrigin(normalizedX); + }; + /** + * Handles input change of text input and text area. + */ + MDCTextFieldFoundation.prototype.handleInput = function () { + this.autoCompleteFocus(); + this.setcharacterCounter(this.getValue().length); + }; + /** + * Activates the Text Field's focus state in cases when the input value + * changes without user input (e.g. programmatically). + */ + MDCTextFieldFoundation.prototype.autoCompleteFocus = function () { + if (!this.receivedUserInput) { + this.activateFocus(); + } + }; + /** + * Deactivates the Text Field's focus state. + */ + MDCTextFieldFoundation.prototype.deactivateFocus = function () { + this.isFocused = false; + this.adapter.deactivateLineRipple(); + var isValid = this.isValid(); + this.styleValidity(isValid); + this.styleFocused(this.isFocused); + if (this.adapter.hasLabel()) { + this.notchOutline(this.shouldFloat); + this.adapter.floatLabel(this.shouldFloat); + this.styleFloating(this.shouldFloat); + this.adapter.shakeLabel(this.shouldShake); + } + if (!this.shouldFloat) { + this.receivedUserInput = false; + } + }; + MDCTextFieldFoundation.prototype.getValue = function () { + return this.getNativeInput().value; + }; + /** + * @param value The value to set on the input Element. + */ + MDCTextFieldFoundation.prototype.setValue = function (value) { + // Prevent Safari from moving the caret to the end of the input when the + // value has not changed. + if (this.getValue() !== value) { + this.getNativeInput().value = value; + } + this.setcharacterCounter(value.length); + if (this.validateOnValueChange) { + var isValid = this.isValid(); + this.styleValidity(isValid); + } + if (this.adapter.hasLabel()) { + this.notchOutline(this.shouldFloat); + this.adapter.floatLabel(this.shouldFloat); + this.styleFloating(this.shouldFloat); + if (this.validateOnValueChange) { + this.adapter.shakeLabel(this.shouldShake); + } + } + }; + /** + * @return The custom validity state, if set; otherwise, the result of a + * native validity check. + */ + MDCTextFieldFoundation.prototype.isValid = function () { + return this.useNativeValidation ? this.isNativeInputValid() : this.valid; + }; + /** + * @param isValid Sets the custom validity state of the Text Field. + */ + MDCTextFieldFoundation.prototype.setValid = function (isValid) { + this.valid = isValid; + this.styleValidity(isValid); + var shouldShake = !isValid && !this.isFocused && !!this.getValue(); + if (this.adapter.hasLabel()) { + this.adapter.shakeLabel(shouldShake); + } + }; + /** + * @param shouldValidate Whether or not validity should be updated on + * value change. + */ + MDCTextFieldFoundation.prototype.setValidateOnValueChange = function (shouldValidate) { + this.validateOnValueChange = shouldValidate; + }; + /** + * @return Whether or not validity should be updated on value change. `true` + * by default. + */ + MDCTextFieldFoundation.prototype.getValidateOnValueChange = function () { + return this.validateOnValueChange; + }; + /** + * Enables or disables the use of native validation. Use this for custom + * validation. + * @param useNativeValidation Set this to false to ignore native input + * validation. + */ + MDCTextFieldFoundation.prototype.setUseNativeValidation = function (useNativeValidation) { + this.useNativeValidation = useNativeValidation; + }; + MDCTextFieldFoundation.prototype.isDisabled = function () { + return this.getNativeInput().disabled; + }; + /** + * @param disabled Sets the text-field disabled or enabled. + */ + MDCTextFieldFoundation.prototype.setDisabled = function (disabled) { + this.getNativeInput().disabled = disabled; + this.styleDisabled(disabled); + }; + /** + * @param content Sets the content of the helper text. + */ + MDCTextFieldFoundation.prototype.setHelperTextContent = function (content) { + if (this.helperText) { + this.helperText.setContent(content); + } + }; + /** + * Sets the aria label of the leading icon. + */ + MDCTextFieldFoundation.prototype.setLeadingIconAriaLabel = function (label) { + if (this.leadingIcon) { + this.leadingIcon.setAriaLabel(label); + } + }; + /** + * Sets the text content of the leading icon. + */ + MDCTextFieldFoundation.prototype.setLeadingIconContent = function (content) { + if (this.leadingIcon) { + this.leadingIcon.setContent(content); + } + }; + /** + * Sets the aria label of the trailing icon. + */ + MDCTextFieldFoundation.prototype.setTrailingIconAriaLabel = function (label) { + if (this.trailingIcon) { + this.trailingIcon.setAriaLabel(label); + } + }; + /** + * Sets the text content of the trailing icon. + */ + MDCTextFieldFoundation.prototype.setTrailingIconContent = function (content) { + if (this.trailingIcon) { + this.trailingIcon.setContent(content); + } + }; + /** + * Sets character counter values that shows characters used and the total + * character limit. + */ + MDCTextFieldFoundation.prototype.setcharacterCounter = function (currentLength) { + if (!this.characterCounter) { + return; + } + var maxLength = this.getNativeInput().maxLength; + if (maxLength === -1) { + throw new Error('MDCTextFieldFoundation: Expected maxlength html property on text input or textarea.'); + } + this.characterCounter.setCounterValue(currentLength, maxLength); + }; + /** + * @return True if the Text Field input fails in converting the user-supplied + * value. + */ + MDCTextFieldFoundation.prototype.isBadInput = function () { + // The badInput property is not supported in IE 11 💩. + return this.getNativeInput().validity.badInput || false; + }; + /** + * @return The result of native validity checking (ValidityState.valid). + */ + MDCTextFieldFoundation.prototype.isNativeInputValid = function () { + return this.getNativeInput().validity.valid; + }; + /** + * Styles the component based on the validity state. + */ + MDCTextFieldFoundation.prototype.styleValidity = function (isValid) { + var INVALID = MDCTextFieldFoundation.cssClasses.INVALID; + if (isValid) { + this.adapter.removeClass(INVALID); + } + else { + this.adapter.addClass(INVALID); + } + if (this.helperText) { + this.helperText.setValidity(isValid); + // We dynamically set or unset aria-describedby for validation helper text + // only, based on whether the field is valid + var helperTextValidation = this.helperText.isValidation(); + if (!helperTextValidation) { + return; + } + var helperTextVisible = this.helperText.isVisible(); + var helperTextId = this.helperText.getId(); + if (helperTextVisible && helperTextId) { + this.adapter.setInputAttr(strings$1.ARIA_DESCRIBEDBY, helperTextId); + } + else { + this.adapter.removeInputAttr(strings$1.ARIA_DESCRIBEDBY); + } + } + }; + /** + * Styles the component based on the focused state. + */ + MDCTextFieldFoundation.prototype.styleFocused = function (isFocused) { + var FOCUSED = MDCTextFieldFoundation.cssClasses.FOCUSED; + if (isFocused) { + this.adapter.addClass(FOCUSED); + } + else { + this.adapter.removeClass(FOCUSED); + } + }; + /** + * Styles the component based on the disabled state. + */ + MDCTextFieldFoundation.prototype.styleDisabled = function (isDisabled) { + var _a = MDCTextFieldFoundation.cssClasses, DISABLED = _a.DISABLED, INVALID = _a.INVALID; + if (isDisabled) { + this.adapter.addClass(DISABLED); + this.adapter.removeClass(INVALID); + } + else { + this.adapter.removeClass(DISABLED); + } + if (this.leadingIcon) { + this.leadingIcon.setDisabled(isDisabled); + } + if (this.trailingIcon) { + this.trailingIcon.setDisabled(isDisabled); + } + }; + /** + * Styles the component based on the label floating state. + */ + MDCTextFieldFoundation.prototype.styleFloating = function (isFloating) { + var LABEL_FLOATING = MDCTextFieldFoundation.cssClasses.LABEL_FLOATING; + if (isFloating) { + this.adapter.addClass(LABEL_FLOATING); + } + else { + this.adapter.removeClass(LABEL_FLOATING); + } + }; + /** + * @return The native text input element from the host environment, or an + * object with the same shape for unit tests. + */ + MDCTextFieldFoundation.prototype.getNativeInput = function () { + // this.adapter may be undefined in foundation unit tests. This happens when + // testdouble is creating a mock object and invokes the + // shouldShake/shouldFloat getters (which in turn call getValue(), which + // calls this method) before init() has been called from the MDCTextField + // constructor. To work around that issue, we return a dummy object. + var nativeInput = this.adapter ? this.adapter.getNativeInput() : null; + return nativeInput || { + disabled: false, + maxLength: -1, + required: false, + type: 'input', + validity: { + badInput: false, + valid: true, + }, + value: '', + }; + }; + return MDCTextFieldFoundation; +}(MDCFoundation)); +// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier. +var MDCTextFieldFoundation$1 = MDCTextFieldFoundation; + +/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const e$1=o=>void 0===o.strings,f={},s=(o,l=f)=>o._$AH=l; + +/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const l=e$7(class extends i$4{constructor(r){if(super(r),r.type!==t$2.PROPERTY&&r.type!==t$2.ATTRIBUTE&&r.type!==t$2.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!e$1(r))throw Error("`live` bindings can only contain a single expression")}render(r){return r}update(i,[t]){if(t===T||t===A)return t;const o=i.element,l=i.name;if(i.type===t$2.PROPERTY){if(t===o[l])return T}else if(i.type===t$2.BOOLEAN_ATTRIBUTE){if(!!t===o.hasAttribute(l))return T}else if(i.type===t$2.ATTRIBUTE&&o.getAttribute(l)===t+"")return T;return s(i),t}}); + +/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +const passiveEvents = ['touchstart', 'touchmove', 'scroll', 'mousewheel']; +const createValidityObj = (customValidity = {}) => { + /* + * We need to make ValidityState an object because it is readonly and + * we cannot use the spread operator. Also, we don't export + * `CustomValidityState` because it is a leaky implementation and the user + * already has access to `ValidityState` in lib.dom.ts. Also an interface + * {a: Type} can be casted to {readonly a: Type} so passing any object + * should be fine. + */ + const objectifiedCustomValidity = {}; + // eslint-disable-next-line guard-for-in + for (const propName in customValidity) { + /* + * Casting is needed because ValidityState's props are all readonly and + * thus cannot be set on `onjectifiedCustomValidity`. In the end, the + * interface is the same as ValidityState (but not readonly), but the + * function signature casts the output to ValidityState (thus readonly). + */ + objectifiedCustomValidity[propName] = + customValidity[propName]; + } + return Object.assign({ badInput: false, customError: false, patternMismatch: false, rangeOverflow: false, rangeUnderflow: false, stepMismatch: false, tooLong: false, tooShort: false, typeMismatch: false, valid: true, valueMissing: false }, objectifiedCustomValidity); +}; +/** @soyCompatible */ +class TextFieldBase extends FormElement { + constructor() { + super(...arguments); + this.mdcFoundationClass = MDCTextFieldFoundation$1; + this.value = ''; + this.type = 'text'; + this.placeholder = ''; + this.label = ''; + this.icon = ''; + this.iconTrailing = ''; + this.disabled = false; + this.required = false; + this.minLength = -1; + this.maxLength = -1; + this.outlined = false; + this.helper = ''; + this.validateOnInitialRender = false; + this.validationMessage = ''; + this.autoValidate = false; + this.pattern = ''; + this.min = ''; + this.max = ''; + /** + * step can be a number or the keyword "any". + * + * Use `String` typing to pass down the value as a string and let the native + * input cast internally as needed. + */ + this.step = null; + this.size = null; + this.helperPersistent = false; + this.charCounter = false; + this.endAligned = false; + this.prefix = ''; + this.suffix = ''; + this.name = ''; + this.readOnly = false; + this.autocapitalize = ''; + this.outlineOpen = false; + this.outlineWidth = 0; + this.isUiValid = true; + this.focused = false; + this._validity = createValidityObj(); + this.validityTransform = null; + } + get validity() { + this._checkValidity(this.value); + return this._validity; + } + get willValidate() { + return this.formElement.willValidate; + } + get selectionStart() { + return this.formElement.selectionStart; + } + get selectionEnd() { + return this.formElement.selectionEnd; + } + focus() { + const focusEvt = new CustomEvent('focus'); + this.formElement.dispatchEvent(focusEvt); + this.formElement.focus(); + } + blur() { + const blurEvt = new CustomEvent('blur'); + this.formElement.dispatchEvent(blurEvt); + this.formElement.blur(); + } + select() { + this.formElement.select(); + } + setSelectionRange(selectionStart, selectionEnd, selectionDirection) { + this.formElement.setSelectionRange(selectionStart, selectionEnd, selectionDirection); + } + update(changedProperties) { + if (changedProperties.has('autoValidate') && this.mdcFoundation) { + this.mdcFoundation.setValidateOnValueChange(this.autoValidate); + } + if (changedProperties.has('value') && typeof this.value !== 'string') { + this.value = `${this.value}`; + } + super.update(changedProperties); + } + setFormData(formData) { + if (this.name) { + formData.append(this.name, this.value); + } + } + /** @soyTemplate */ + render() { + const shouldRenderCharCounter = this.charCounter && this.maxLength !== -1; + const shouldRenderHelperText = !!this.helper || !!this.validationMessage || shouldRenderCharCounter; + /** @classMap */ + const classes = { + 'mdc-text-field--disabled': this.disabled, + 'mdc-text-field--no-label': !this.label, + 'mdc-text-field--filled': !this.outlined, + 'mdc-text-field--outlined': this.outlined, + 'mdc-text-field--with-leading-icon': this.icon, + 'mdc-text-field--with-trailing-icon': this.iconTrailing, + 'mdc-text-field--end-aligned': this.endAligned, + }; + return x ` + + ${this.renderHelperText(shouldRenderHelperText, shouldRenderCharCounter)} + `; + } + updated(changedProperties) { + if (changedProperties.has('value') && + changedProperties.get('value') !== undefined) { + this.mdcFoundation.setValue(this.value); + if (this.autoValidate) { + this.reportValidity(); + } + } + } + /** @soyTemplate */ + renderRipple() { + return this.outlined ? '' : x ` + + `; + } + /** @soyTemplate */ + renderOutline() { + return !this.outlined ? '' : x ` + + ${this.renderLabel()} + `; + } + /** @soyTemplate */ + renderLabel() { + return !this.label ? + '' : + x ` + ${this.label} + `; + } + /** @soyTemplate */ + renderLeadingIcon() { + return this.icon ? this.renderIcon(this.icon) : ''; + } + /** @soyTemplate */ + renderTrailingIcon() { + return this.iconTrailing ? this.renderIcon(this.iconTrailing, true) : ''; + } + /** @soyTemplate */ + renderIcon(icon, isTrailingIcon = false) { + /** @classMap */ + const classes = { + 'mdc-text-field__icon--leading': !isTrailingIcon, + 'mdc-text-field__icon--trailing': isTrailingIcon + }; + return x `${icon}`; + } + /** @soyTemplate */ + renderPrefix() { + return this.prefix ? this.renderAffix(this.prefix) : ''; + } + /** @soyTemplate */ + renderSuffix() { + return this.suffix ? this.renderAffix(this.suffix, true) : ''; + } + /** @soyTemplate */ + renderAffix(content, isSuffix = false) { + /** @classMap */ + const classes = { + 'mdc-text-field__affix--prefix': !isSuffix, + 'mdc-text-field__affix--suffix': isSuffix + }; + return x ` + ${content}`; + } + /** @soyTemplate */ + renderInput(shouldRenderHelperText) { + const minOrUndef = this.minLength === -1 ? undefined : this.minLength; + const maxOrUndef = this.maxLength === -1 ? undefined : this.maxLength; + const autocapitalizeOrUndef = this.autocapitalize ? + this.autocapitalize : + undefined; + const showValidationMessage = this.validationMessage && !this.isUiValid; + const ariaLabelledbyOrUndef = !!this.label ? 'label' : undefined; + const ariaControlsOrUndef = shouldRenderHelperText ? 'helper-text' : undefined; + const ariaDescribedbyOrUndef = this.focused || this.helperPersistent || showValidationMessage ? + 'helper-text' : + undefined; + // TODO: live() directive needs casting for lit-analyzer + // https://github.com/runem/lit-analyzer/pull/91/files + // TODO: lit-analyzer labels min/max as (number|string) instead of string + return x ` + `; + } + /** @soyTemplate */ + renderLineRipple() { + return this.outlined ? + '' : + x ` + + `; + } + /** @soyTemplate */ + renderHelperText(shouldRenderHelperText, shouldRenderCharCounter) { + const showValidationMessage = this.validationMessage && !this.isUiValid; + /** @classMap */ + const classes = { + 'mdc-text-field-helper-text--persistent': this.helperPersistent, + 'mdc-text-field-helper-text--validation-msg': showValidationMessage, + }; + const ariaHiddenOrUndef = this.focused || this.helperPersistent || showValidationMessage ? + undefined : + 'true'; + const helperText = showValidationMessage ? this.validationMessage : this.helper; + return !shouldRenderHelperText ? '' : x ` +
+
${helperText}
+ ${this.renderCharCounter(shouldRenderCharCounter)} +
`; + } + /** @soyTemplate */ + renderCharCounter(shouldRenderCharCounter) { + const length = Math.min(this.value.length, this.maxLength); + return !shouldRenderCharCounter ? '' : x ` + ${length} / ${this.maxLength}`; + } + onInputFocus() { + this.focused = true; + } + onInputBlur() { + this.focused = false; + this.reportValidity(); + } + checkValidity() { + const isValid = this._checkValidity(this.value); + if (!isValid) { + const invalidEvent = new Event('invalid', { bubbles: false, cancelable: true }); + this.dispatchEvent(invalidEvent); + } + return isValid; + } + reportValidity() { + const isValid = this.checkValidity(); + this.mdcFoundation.setValid(isValid); + this.isUiValid = isValid; + return isValid; + } + _checkValidity(value) { + const nativeValidity = this.formElement.validity; + let validity = createValidityObj(nativeValidity); + if (this.validityTransform) { + const customValidity = this.validityTransform(value, validity); + validity = Object.assign(Object.assign({}, validity), customValidity); + this.mdcFoundation.setUseNativeValidation(false); + } + else { + this.mdcFoundation.setUseNativeValidation(true); + } + this._validity = validity; + return this._validity.valid; + } + setCustomValidity(message) { + this.validationMessage = message; + this.formElement.setCustomValidity(message); + } + handleInputChange() { + this.value = this.formElement.value; + } + createAdapter() { + return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, this.getRootAdapterMethods()), this.getInputAdapterMethods()), this.getLabelAdapterMethods()), this.getLineRippleAdapterMethods()), this.getOutlineAdapterMethods()); + } + getRootAdapterMethods() { + return Object.assign({ registerTextFieldInteractionHandler: (evtType, handler) => this.addEventListener(evtType, handler), deregisterTextFieldInteractionHandler: (evtType, handler) => this.removeEventListener(evtType, handler), registerValidationAttributeChangeHandler: (handler) => { + const getAttributesList = (mutationsList) => { + return mutationsList.map((mutation) => mutation.attributeName) + .filter((attributeName) => attributeName); + }; + const observer = new MutationObserver((mutationsList) => { + handler(getAttributesList(mutationsList)); + }); + const config = { attributes: true }; + observer.observe(this.formElement, config); + return observer; + }, deregisterValidationAttributeChangeHandler: (observer) => observer.disconnect() }, addHasRemoveClass(this.mdcRoot)); + } + getInputAdapterMethods() { + return { + getNativeInput: () => this.formElement, + // since HelperTextFoundation is not used, aria-describedby a11y logic + // is implemented in render method instead of these adapter methods + setInputAttr: () => undefined, + removeInputAttr: () => undefined, + isFocused: () => this.shadowRoot ? + this.shadowRoot.activeElement === this.formElement : + false, + registerInputInteractionHandler: (evtType, handler) => this.formElement.addEventListener(evtType, handler, { passive: evtType in passiveEvents }), + deregisterInputInteractionHandler: (evtType, handler) => this.formElement.removeEventListener(evtType, handler), + }; + } + getLabelAdapterMethods() { + return { + floatLabel: (shouldFloat) => this.labelElement && + this.labelElement.floatingLabelFoundation.float(shouldFloat), + getLabelWidth: () => { + return this.labelElement ? + this.labelElement.floatingLabelFoundation.getWidth() : + 0; + }, + hasLabel: () => Boolean(this.labelElement), + shakeLabel: (shouldShake) => this.labelElement && + this.labelElement.floatingLabelFoundation.shake(shouldShake), + setLabelRequired: (isRequired) => { + if (this.labelElement) { + this.labelElement.floatingLabelFoundation.setRequired(isRequired); + } + }, + }; + } + getLineRippleAdapterMethods() { + return { + activateLineRipple: () => { + if (this.lineRippleElement) { + this.lineRippleElement.lineRippleFoundation.activate(); + } + }, + deactivateLineRipple: () => { + if (this.lineRippleElement) { + this.lineRippleElement.lineRippleFoundation.deactivate(); + } + }, + setLineRippleTransformOrigin: (normalizedX) => { + if (this.lineRippleElement) { + this.lineRippleElement.lineRippleFoundation.setRippleCenter(normalizedX); + } + }, + }; + } + // tslint:disable:ban-ts-ignore + async getUpdateComplete() { + var _a; + // @ts-ignore + const result = await super.getUpdateComplete(); + await ((_a = this.outlineElement) === null || _a === void 0 ? void 0 : _a.updateComplete); + return result; + } + // tslint:enable:ban-ts-ignore + firstUpdated() { + var _a; + super.firstUpdated(); + this.mdcFoundation.setValidateOnValueChange(this.autoValidate); + if (this.validateOnInitialRender) { + this.reportValidity(); + } + // wait for the outline element to render to update the notch width + (_a = this.outlineElement) === null || _a === void 0 ? void 0 : _a.updateComplete.then(() => { + var _a; + // `foundation.notchOutline()` assumes the label isn't floating and + // multiplies by a constant, but the label is already is floating at this + // stage, therefore directly set the outline width to the label width + this.outlineWidth = + ((_a = this.labelElement) === null || _a === void 0 ? void 0 : _a.floatingLabelFoundation.getWidth()) || 0; + }); + } + getOutlineAdapterMethods() { + return { + closeOutline: () => this.outlineElement && (this.outlineOpen = false), + hasOutline: () => Boolean(this.outlineElement), + notchOutline: (labelWidth) => { + const outlineElement = this.outlineElement; + if (outlineElement && !this.outlineOpen) { + this.outlineWidth = labelWidth; + this.outlineOpen = true; + } + } + }; + } + async layout() { + await this.updateComplete; + const labelElement = this.labelElement; + if (!labelElement) { + this.outlineOpen = false; + return; + } + const shouldFloat = !!this.label && !!this.value; + labelElement.floatingLabelFoundation.float(shouldFloat); + if (!this.outlined) { + return; + } + this.outlineOpen = shouldFloat; + await this.updateComplete; + /* When the textfield automatically notches due to a value and label + * being defined, the textfield may be set to `display: none` by the user. + * this means that the notch is of size 0px. We provide this function so + * that the user may manually resize the notch to the floated label's + * width. + */ + const labelWidth = labelElement.floatingLabelFoundation.getWidth(); + if (this.outlineOpen) { + this.outlineWidth = labelWidth; + await this.updateComplete; + } + } +} +__decorate([ + i$2('.mdc-text-field') +], TextFieldBase.prototype, "mdcRoot", void 0); +__decorate([ + i$2('input') +], TextFieldBase.prototype, "formElement", void 0); +__decorate([ + i$2('.mdc-floating-label') +], TextFieldBase.prototype, "labelElement", void 0); +__decorate([ + i$2('.mdc-line-ripple') +], TextFieldBase.prototype, "lineRippleElement", void 0); +__decorate([ + i$2('mwc-notched-outline') +], TextFieldBase.prototype, "outlineElement", void 0); +__decorate([ + i$2('.mdc-notched-outline__notch') +], TextFieldBase.prototype, "notchElement", void 0); +__decorate([ + e$5({ type: String }) +], TextFieldBase.prototype, "value", void 0); +__decorate([ + e$5({ type: String }) +], TextFieldBase.prototype, "type", void 0); +__decorate([ + e$5({ type: String }) +], TextFieldBase.prototype, "placeholder", void 0); +__decorate([ + e$5({ type: String }), + observer(function (_newVal, oldVal) { + if (oldVal !== undefined && this.label !== oldVal) { + this.layout(); + } + }) +], TextFieldBase.prototype, "label", void 0); +__decorate([ + e$5({ type: String }) +], TextFieldBase.prototype, "icon", void 0); +__decorate([ + e$5({ type: String }) +], TextFieldBase.prototype, "iconTrailing", void 0); +__decorate([ + e$5({ type: Boolean, reflect: true }) +], TextFieldBase.prototype, "disabled", void 0); +__decorate([ + e$5({ type: Boolean }) +], TextFieldBase.prototype, "required", void 0); +__decorate([ + e$5({ type: Number }) +], TextFieldBase.prototype, "minLength", void 0); +__decorate([ + e$5({ type: Number }) +], TextFieldBase.prototype, "maxLength", void 0); +__decorate([ + e$5({ type: Boolean, reflect: true }), + observer(function (_newVal, oldVal) { + if (oldVal !== undefined && this.outlined !== oldVal) { + this.layout(); + } + }) +], TextFieldBase.prototype, "outlined", void 0); +__decorate([ + e$5({ type: String }) +], TextFieldBase.prototype, "helper", void 0); +__decorate([ + e$5({ type: Boolean }) +], TextFieldBase.prototype, "validateOnInitialRender", void 0); +__decorate([ + e$5({ type: String }) +], TextFieldBase.prototype, "validationMessage", void 0); +__decorate([ + e$5({ type: Boolean }) +], TextFieldBase.prototype, "autoValidate", void 0); +__decorate([ + e$5({ type: String }) +], TextFieldBase.prototype, "pattern", void 0); +__decorate([ + e$5({ type: String }) +], TextFieldBase.prototype, "min", void 0); +__decorate([ + e$5({ type: String }) +], TextFieldBase.prototype, "max", void 0); +__decorate([ + e$5({ type: String }) +], TextFieldBase.prototype, "step", void 0); +__decorate([ + e$5({ type: Number }) +], TextFieldBase.prototype, "size", void 0); +__decorate([ + e$5({ type: Boolean }) +], TextFieldBase.prototype, "helperPersistent", void 0); +__decorate([ + e$5({ type: Boolean }) +], TextFieldBase.prototype, "charCounter", void 0); +__decorate([ + e$5({ type: Boolean }) +], TextFieldBase.prototype, "endAligned", void 0); +__decorate([ + e$5({ type: String }) +], TextFieldBase.prototype, "prefix", void 0); +__decorate([ + e$5({ type: String }) +], TextFieldBase.prototype, "suffix", void 0); +__decorate([ + e$5({ type: String }) +], TextFieldBase.prototype, "name", void 0); +__decorate([ + e$5({ type: String }) +], TextFieldBase.prototype, "inputMode", void 0); +__decorate([ + e$5({ type: Boolean }) +], TextFieldBase.prototype, "readOnly", void 0); +__decorate([ + e$5({ type: String }) +], TextFieldBase.prototype, "autocapitalize", void 0); +__decorate([ + t$1() +], TextFieldBase.prototype, "outlineOpen", void 0); +__decorate([ + t$1() +], TextFieldBase.prototype, "outlineWidth", void 0); +__decorate([ + t$1() +], TextFieldBase.prototype, "isUiValid", void 0); +__decorate([ + t$1() +], TextFieldBase.prototype, "focused", void 0); +__decorate([ + e$4({ passive: true }) +], TextFieldBase.prototype, "handleInputChange", null); + +/** + * @license + * Copyright 2021 Google LLC + * SPDX-LIcense-Identifier: Apache-2.0 + */ +const styles$7 = i$6 `.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform;transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required::after,.mdc-floating-label--required[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);border-bottom-width:2px;opacity:0;z-index:2}.mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(100% / 0.75)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-text-field--filled{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-text-field--filled .mdc-text-field__ripple::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-text-field--filled .mdc-text-field__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-text-field--filled.mdc-ripple-upgraded--unbounded .mdc-text-field__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-text-field--filled.mdc-ripple-upgraded--foreground-activation .mdc-text-field__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-text-field--filled.mdc-ripple-upgraded--foreground-deactivation .mdc-text-field__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-text-field__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-floating-label{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input{color:rgba(0, 0, 0, 0.87)}@media all{.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:rgba(0, 0, 0, 0.54)}}@media all{.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:rgba(0, 0, 0, 0.54)}}.mdc-text-field .mdc-text-field__input{caret-color:#6200ee;caret-color:var(--mdc-theme-primary, #6200ee)}.mdc-text-field:not(.mdc-text-field--disabled)+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field-character-counter,.mdc-text-field:not(.mdc-text-field--disabled)+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon--leading{color:rgba(0, 0, 0, 0.54)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing{color:rgba(0, 0, 0, 0.54)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--prefix{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--suffix{color:rgba(0, 0, 0, 0.6)}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);height:28px;transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}}.mdc-text-field__affix{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);height:28px;transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{background-color:rgba(0, 0, 0, 0.87);background-color:var(--mdc-ripple-color, rgba(0, 0, 0, 0.87))}.mdc-text-field--filled:hover .mdc-text-field__ripple::before,.mdc-text-field--filled.mdc-ripple-surface--hover .mdc-text-field__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:whitesmoke}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42)}.mdc-text-field--filled:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-color:#6200ee;border-bottom-color:var(--mdc-theme-primary, #6200ee)}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.38)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.87)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-text-field__ripple::before,.mdc-text-field--outlined .mdc-text-field__ripple::after{background-color:transparent;background-color:var(--mdc-ripple-color, transparent)}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:transparent}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0;transition:none}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px;line-height:1.5rem}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label{color:rgba(98, 0, 238, 0.87)}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid .mdc-text-field__input{caret-color:#b00020;caret-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}.mdc-text-field--disabled .mdc-text-field__input{color:rgba(0, 0, 0, 0.38)}@media all{.mdc-text-field--disabled .mdc-text-field__input::placeholder{color:rgba(0, 0, 0, 0.38)}}@media all{.mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder{color:rgba(0, 0, 0, 0.38)}}.mdc-text-field--disabled .mdc-floating-label{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field-character-counter,.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field__icon--leading{color:rgba(0, 0, 0, 0.3)}.mdc-text-field--disabled .mdc-text-field__icon--trailing{color:rgba(0, 0, 0, 0.3)}.mdc-text-field--disabled .mdc-text-field__affix--prefix{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field__affix--suffix{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.06)}.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.06)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__input::placeholder{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-floating-label{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field-character-counter,.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__icon--leading{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__icon--trailing{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__affix--prefix{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__affix--suffix{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:GrayText}}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled{background-color:#fafafa}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-text-field-helper-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit);display:block;margin-top:0;line-height:normal;margin:0;opacity:0;will-change:opacity;transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-text-field-helper-text::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}.mdc-text-field-helper-text--persistent{transition:none;opacity:1;will-change:initial}.mdc-text-field-character-counter{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit);display:block;margin-top:0;line-height:normal;margin-left:auto;margin-right:0;padding-left:16px;padding-right:0;white-space:nowrap}.mdc-text-field-character-counter::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}[dir=rtl] .mdc-text-field-character-counter,.mdc-text-field-character-counter[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-text-field-character-counter,.mdc-text-field-character-counter[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field__icon{align-self:center;cursor:pointer}.mdc-text-field__icon:not([tabindex]),.mdc-text-field__icon[tabindex="-1"]{cursor:default;pointer-events:none}.mdc-text-field__icon svg{display:block}.mdc-text-field__icon--leading{margin-left:16px;margin-right:8px}[dir=rtl] .mdc-text-field__icon--leading,.mdc-text-field__icon--leading[dir=rtl]{margin-left:8px;margin-right:16px}.mdc-text-field__icon--trailing{padding:12px;margin-left:0px;margin-right:0px}[dir=rtl] .mdc-text-field__icon--trailing,.mdc-text-field__icon--trailing[dir=rtl]{margin-left:0px;margin-right:0px}.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}:host{display:inline-flex;flex-direction:column;outline:none}.mdc-text-field{width:100%}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42);border-bottom-color:var(--mdc-text-field-idle-line-color, rgba(0, 0, 0, 0.42))}.mdc-text-field:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87);border-bottom-color:var(--mdc-text-field-hover-line-color, rgba(0, 0, 0, 0.87))}.mdc-text-field.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.06);border-bottom-color:var(--mdc-text-field-disabled-line-color, rgba(0, 0, 0, 0.06))}.mdc-text-field.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field__input{direction:inherit}mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-outlined-idle-border-color, rgba(0, 0, 0, 0.38) )}:host(:not([disabled]):hover) :not(.mdc-text-field--invalid):not(.mdc-text-field--focused) mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-outlined-hover-border-color, rgba(0, 0, 0, 0.87) )}:host(:not([disabled])) .mdc-text-field:not(.mdc-text-field--outlined){background-color:var(--mdc-text-field-fill-color, whitesmoke)}:host(:not([disabled])) .mdc-text-field.mdc-text-field--invalid mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-error-color, var(--mdc-theme-error, #b00020) )}:host(:not([disabled])) .mdc-text-field.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-character-counter,:host(:not([disabled])) .mdc-text-field.mdc-text-field--invalid .mdc-text-field__icon{color:var(--mdc-text-field-error-color, var(--mdc-theme-error, #b00020))}:host(:not([disabled])) .mdc-text-field:not(.mdc-text-field--invalid):not(.mdc-text-field--focused) .mdc-floating-label,:host(:not([disabled])) .mdc-text-field:not(.mdc-text-field--invalid):not(.mdc-text-field--focused) .mdc-floating-label::after{color:var(--mdc-text-field-label-ink-color, rgba(0, 0, 0, 0.6))}:host(:not([disabled])) .mdc-text-field.mdc-text-field--focused mwc-notched-outline{--mdc-notched-outline-stroke-width: 2px}:host(:not([disabled])) .mdc-text-field.mdc-text-field--focused:not(.mdc-text-field--invalid) mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-focused-label-color, var(--mdc-theme-primary, rgba(98, 0, 238, 0.87)) )}:host(:not([disabled])) .mdc-text-field.mdc-text-field--focused:not(.mdc-text-field--invalid) .mdc-floating-label{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host(:not([disabled])) .mdc-text-field .mdc-text-field__input{color:var(--mdc-text-field-ink-color, rgba(0, 0, 0, 0.87))}:host(:not([disabled])) .mdc-text-field .mdc-text-field__input::placeholder{color:var(--mdc-text-field-label-ink-color, rgba(0, 0, 0, 0.6))}:host(:not([disabled])) .mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg),:host(:not([disabled])) .mdc-text-field-helper-line:not(.mdc-text-field--invalid) .mdc-text-field-character-counter{color:var(--mdc-text-field-label-ink-color, rgba(0, 0, 0, 0.6))}:host([disabled]) .mdc-text-field:not(.mdc-text-field--outlined){background-color:var(--mdc-text-field-disabled-fill-color, #fafafa)}:host([disabled]) .mdc-text-field.mdc-text-field--outlined mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-outlined-disabled-border-color, rgba(0, 0, 0, 0.06) )}:host([disabled]) .mdc-text-field:not(.mdc-text-field--invalid):not(.mdc-text-field--focused) .mdc-floating-label,:host([disabled]) .mdc-text-field:not(.mdc-text-field--invalid):not(.mdc-text-field--focused) .mdc-floating-label::after{color:var(--mdc-text-field-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-text-field .mdc-text-field__input,:host([disabled]) .mdc-text-field .mdc-text-field__input::placeholder{color:var(--mdc-text-field-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-text-field-helper-line .mdc-text-field-helper-text,:host([disabled]) .mdc-text-field-helper-line .mdc-text-field-character-counter{color:var(--mdc-text-field-disabled-ink-color, rgba(0, 0, 0, 0.38))}`; + +/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +/** @soyCompatible */ +let TextField = class TextField extends TextFieldBase { +}; +TextField.styles = [styles$7]; +TextField = __decorate([ + e$6('mwc-textfield') +], TextField); + +/** + * @license + * Copyright 2018 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +var cssClasses = { + ANCHOR: 'mdc-menu-surface--anchor', + ANIMATING_CLOSED: 'mdc-menu-surface--animating-closed', + ANIMATING_OPEN: 'mdc-menu-surface--animating-open', + FIXED: 'mdc-menu-surface--fixed', + IS_OPEN_BELOW: 'mdc-menu-surface--is-open-below', + OPEN: 'mdc-menu-surface--open', + ROOT: 'mdc-menu-surface', +}; +// tslint:disable:object-literal-sort-keys +var strings = { + CLOSED_EVENT: 'MDCMenuSurface:closed', + CLOSING_EVENT: 'MDCMenuSurface:closing', + OPENED_EVENT: 'MDCMenuSurface:opened', + OPENING_EVENT: 'MDCMenuSurface:opening', + FOCUSABLE_ELEMENTS: [ + 'button:not(:disabled)', + '[href]:not([aria-disabled="true"])', + 'input:not(:disabled)', + 'select:not(:disabled)', + 'textarea:not(:disabled)', + '[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])', + ].join(', '), +}; +// tslint:enable:object-literal-sort-keys +var numbers = { + /** Total duration of menu-surface open animation. */ + TRANSITION_OPEN_DURATION: 120, + /** Total duration of menu-surface close animation. */ + TRANSITION_CLOSE_DURATION: 75, + /** + * Margin left to the edge of the viewport when menu-surface is at maximum + * possible height. Also used as a viewport margin. + */ + MARGIN_TO_EDGE: 32, + /** + * Ratio of anchor width to menu-surface width for switching from corner + * positioning to center positioning. + */ + ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO: 0.67, + /** + * Amount of time to wait before restoring focus when closing the menu + * surface. This is important because if a touch event triggered the menu + * close, and the subsequent mouse event occurs after focus is restored, then + * the restored focus would be lost. + */ + TOUCH_EVENT_WAIT_MS: 30, +}; +/** + * Enum for bits in the {@see Corner) bitmap. + */ +var CornerBit; +(function (CornerBit) { + CornerBit[CornerBit["BOTTOM"] = 1] = "BOTTOM"; + CornerBit[CornerBit["CENTER"] = 2] = "CENTER"; + CornerBit[CornerBit["RIGHT"] = 4] = "RIGHT"; + CornerBit[CornerBit["FLIP_RTL"] = 8] = "FLIP_RTL"; +})(CornerBit || (CornerBit = {})); +/** + * Enum for representing an element corner for positioning the menu-surface. + * + * The START constants map to LEFT if element directionality is left + * to right and RIGHT if the directionality is right to left. + * Likewise END maps to RIGHT or LEFT depending on the directionality. + */ +var Corner; +(function (Corner) { + Corner[Corner["TOP_LEFT"] = 0] = "TOP_LEFT"; + Corner[Corner["TOP_RIGHT"] = 4] = "TOP_RIGHT"; + Corner[Corner["BOTTOM_LEFT"] = 1] = "BOTTOM_LEFT"; + Corner[Corner["BOTTOM_RIGHT"] = 5] = "BOTTOM_RIGHT"; + Corner[Corner["TOP_START"] = 8] = "TOP_START"; + Corner[Corner["TOP_END"] = 12] = "TOP_END"; + Corner[Corner["BOTTOM_START"] = 9] = "BOTTOM_START"; + Corner[Corner["BOTTOM_END"] = 13] = "BOTTOM_END"; +})(Corner || (Corner = {})); + +/** + * @license + * Copyright 2018 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +var MDCMenuSurfaceFoundation = /** @class */ (function (_super) { + __extends(MDCMenuSurfaceFoundation, _super); + function MDCMenuSurfaceFoundation(adapter) { + var _this = _super.call(this, __assign(__assign({}, MDCMenuSurfaceFoundation.defaultAdapter), adapter)) || this; + _this.isSurfaceOpen = false; + _this.isQuickOpen = false; + _this.isHoistedElement = false; + _this.isFixedPosition = false; + _this.isHorizontallyCenteredOnViewport = false; + _this.maxHeight = 0; + _this.openBottomBias = 0; + _this.openAnimationEndTimerId = 0; + _this.closeAnimationEndTimerId = 0; + _this.animationRequestId = 0; + _this.anchorCorner = Corner.TOP_START; + /** + * Corner of the menu surface to which menu surface is attached to anchor. + * + * Anchor corner --->+----------+ + * | ANCHOR | + * +----------+ + * Origin corner --->+--------------+ + * | | + * | | + * | MENU SURFACE | + * | | + * | | + * +--------------+ + */ + _this.originCorner = Corner.TOP_START; + _this.anchorMargin = { top: 0, right: 0, bottom: 0, left: 0 }; + _this.position = { x: 0, y: 0 }; + return _this; + } + Object.defineProperty(MDCMenuSurfaceFoundation, "cssClasses", { + get: function () { + return cssClasses; + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(MDCMenuSurfaceFoundation, "strings", { + get: function () { + return strings; + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(MDCMenuSurfaceFoundation, "numbers", { + get: function () { + return numbers; + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(MDCMenuSurfaceFoundation, "Corner", { + get: function () { + return Corner; + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(MDCMenuSurfaceFoundation, "defaultAdapter", { + /** + * @see {@link MDCMenuSurfaceAdapter} for typing information on parameters and return types. + */ + get: function () { + // tslint:disable:object-literal-sort-keys Methods should be in the same order as the adapter interface. + return { + addClass: function () { return undefined; }, + removeClass: function () { return undefined; }, + hasClass: function () { return false; }, + hasAnchor: function () { return false; }, + isElementInContainer: function () { return false; }, + isFocused: function () { return false; }, + isRtl: function () { return false; }, + getInnerDimensions: function () { return ({ height: 0, width: 0 }); }, + getAnchorDimensions: function () { return null; }, + getWindowDimensions: function () { return ({ height: 0, width: 0 }); }, + getBodyDimensions: function () { return ({ height: 0, width: 0 }); }, + getWindowScroll: function () { return ({ x: 0, y: 0 }); }, + setPosition: function () { return undefined; }, + setMaxHeight: function () { return undefined; }, + setTransformOrigin: function () { return undefined; }, + saveFocus: function () { return undefined; }, + restoreFocus: function () { return undefined; }, + notifyClose: function () { return undefined; }, + notifyClosing: function () { return undefined; }, + notifyOpen: function () { return undefined; }, + notifyOpening: function () { return undefined; }, + }; + // tslint:enable:object-literal-sort-keys + }, + enumerable: false, + configurable: true + }); + MDCMenuSurfaceFoundation.prototype.init = function () { + var _a = MDCMenuSurfaceFoundation.cssClasses, ROOT = _a.ROOT, OPEN = _a.OPEN; + if (!this.adapter.hasClass(ROOT)) { + throw new Error(ROOT + " class required in root element."); + } + if (this.adapter.hasClass(OPEN)) { + this.isSurfaceOpen = true; + } + }; + MDCMenuSurfaceFoundation.prototype.destroy = function () { + clearTimeout(this.openAnimationEndTimerId); + clearTimeout(this.closeAnimationEndTimerId); + // Cancel any currently running animations. + cancelAnimationFrame(this.animationRequestId); + }; + /** + * @param corner Default anchor corner alignment of top-left menu surface + * corner. + */ + MDCMenuSurfaceFoundation.prototype.setAnchorCorner = function (corner) { + this.anchorCorner = corner; + }; + /** + * Flip menu corner horizontally. + */ + MDCMenuSurfaceFoundation.prototype.flipCornerHorizontally = function () { + this.originCorner = this.originCorner ^ CornerBit.RIGHT; + }; + /** + * @param margin Set of margin values from anchor. + */ + MDCMenuSurfaceFoundation.prototype.setAnchorMargin = function (margin) { + this.anchorMargin.top = margin.top || 0; + this.anchorMargin.right = margin.right || 0; + this.anchorMargin.bottom = margin.bottom || 0; + this.anchorMargin.left = margin.left || 0; + }; + /** Used to indicate if the menu-surface is hoisted to the body. */ + MDCMenuSurfaceFoundation.prototype.setIsHoisted = function (isHoisted) { + this.isHoistedElement = isHoisted; + }; + /** + * Used to set the menu-surface calculations based on a fixed position menu. + */ + MDCMenuSurfaceFoundation.prototype.setFixedPosition = function (isFixedPosition) { + this.isFixedPosition = isFixedPosition; + }; + /** + * @return Returns true if menu is in fixed (`position: fixed`) position. + */ + MDCMenuSurfaceFoundation.prototype.isFixed = function () { + return this.isFixedPosition; + }; + /** Sets the menu-surface position on the page. */ + MDCMenuSurfaceFoundation.prototype.setAbsolutePosition = function (x, y) { + this.position.x = this.isFinite(x) ? x : 0; + this.position.y = this.isFinite(y) ? y : 0; + }; + /** Sets whether menu-surface should be horizontally centered to viewport. */ + MDCMenuSurfaceFoundation.prototype.setIsHorizontallyCenteredOnViewport = function (isCentered) { + this.isHorizontallyCenteredOnViewport = isCentered; + }; + MDCMenuSurfaceFoundation.prototype.setQuickOpen = function (quickOpen) { + this.isQuickOpen = quickOpen; + }; + /** + * Sets maximum menu-surface height on open. + * @param maxHeight The desired max-height. Set to 0 (default) to + * automatically calculate max height based on available viewport space. + */ + MDCMenuSurfaceFoundation.prototype.setMaxHeight = function (maxHeight) { + this.maxHeight = maxHeight; + }; + /** + * Set to a positive integer to influence the menu to preferentially open + * below the anchor instead of above. + * @param bias A value of `x` simulates an extra `x` pixels of available space + * below the menu during positioning calculations. + */ + MDCMenuSurfaceFoundation.prototype.setOpenBottomBias = function (bias) { + this.openBottomBias = bias; + }; + MDCMenuSurfaceFoundation.prototype.isOpen = function () { + return this.isSurfaceOpen; + }; + /** + * Open the menu surface. + */ + MDCMenuSurfaceFoundation.prototype.open = function () { + var _this = this; + if (this.isSurfaceOpen) { + return; + } + this.adapter.notifyOpening(); + this.adapter.saveFocus(); + if (this.isQuickOpen) { + this.isSurfaceOpen = true; + this.adapter.addClass(MDCMenuSurfaceFoundation.cssClasses.OPEN); + this.dimensions = this.adapter.getInnerDimensions(); + this.autoposition(); + this.adapter.notifyOpen(); + } + else { + this.adapter.addClass(MDCMenuSurfaceFoundation.cssClasses.ANIMATING_OPEN); + this.animationRequestId = requestAnimationFrame(function () { + _this.dimensions = _this.adapter.getInnerDimensions(); + _this.autoposition(); + _this.adapter.addClass(MDCMenuSurfaceFoundation.cssClasses.OPEN); + _this.openAnimationEndTimerId = setTimeout(function () { + _this.openAnimationEndTimerId = 0; + _this.adapter.removeClass(MDCMenuSurfaceFoundation.cssClasses.ANIMATING_OPEN); + _this.adapter.notifyOpen(); + }, numbers.TRANSITION_OPEN_DURATION); + }); + this.isSurfaceOpen = true; + } + }; + /** + * Closes the menu surface. + */ + MDCMenuSurfaceFoundation.prototype.close = function (skipRestoreFocus) { + var _this = this; + if (skipRestoreFocus === void 0) { skipRestoreFocus = false; } + if (!this.isSurfaceOpen) { + return; + } + this.adapter.notifyClosing(); + if (this.isQuickOpen) { + this.isSurfaceOpen = false; + if (!skipRestoreFocus) { + this.maybeRestoreFocus(); + } + this.adapter.removeClass(MDCMenuSurfaceFoundation.cssClasses.OPEN); + this.adapter.removeClass(MDCMenuSurfaceFoundation.cssClasses.IS_OPEN_BELOW); + this.adapter.notifyClose(); + return; + } + this.adapter.addClass(MDCMenuSurfaceFoundation.cssClasses.ANIMATING_CLOSED); + requestAnimationFrame(function () { + _this.adapter.removeClass(MDCMenuSurfaceFoundation.cssClasses.OPEN); + _this.adapter.removeClass(MDCMenuSurfaceFoundation.cssClasses.IS_OPEN_BELOW); + _this.closeAnimationEndTimerId = setTimeout(function () { + _this.closeAnimationEndTimerId = 0; + _this.adapter.removeClass(MDCMenuSurfaceFoundation.cssClasses.ANIMATING_CLOSED); + _this.adapter.notifyClose(); + }, numbers.TRANSITION_CLOSE_DURATION); + }); + this.isSurfaceOpen = false; + if (!skipRestoreFocus) { + this.maybeRestoreFocus(); + } + }; + /** Handle clicks and close if not within menu-surface element. */ + MDCMenuSurfaceFoundation.prototype.handleBodyClick = function (evt) { + var el = evt.target; + if (this.adapter.isElementInContainer(el)) { + return; + } + this.close(); + }; + /** Handle keys that close the surface. */ + MDCMenuSurfaceFoundation.prototype.handleKeydown = function (evt) { + var keyCode = evt.keyCode, key = evt.key; + var isEscape = key === 'Escape' || keyCode === 27; + if (isEscape) { + this.close(); + } + }; + MDCMenuSurfaceFoundation.prototype.autoposition = function () { + var _a; + // Compute measurements for autoposition methods reuse. + this.measurements = this.getAutoLayoutmeasurements(); + var corner = this.getoriginCorner(); + var maxMenuSurfaceHeight = this.getMenuSurfaceMaxHeight(corner); + var verticalAlignment = this.hasBit(corner, CornerBit.BOTTOM) ? 'bottom' : 'top'; + var horizontalAlignment = this.hasBit(corner, CornerBit.RIGHT) ? 'right' : 'left'; + var horizontalOffset = this.getHorizontalOriginOffset(corner); + var verticalOffset = this.getVerticalOriginOffset(corner); + var _b = this.measurements, anchorSize = _b.anchorSize, surfaceSize = _b.surfaceSize; + var position = (_a = {}, + _a[horizontalAlignment] = horizontalOffset, + _a[verticalAlignment] = verticalOffset, + _a); + // Center align when anchor width is comparable or greater than menu + // surface, otherwise keep corner. + if (anchorSize.width / surfaceSize.width > + numbers.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO) { + horizontalAlignment = 'center'; + } + // If the menu-surface has been hoisted to the body, it's no longer relative + // to the anchor element + if (this.isHoistedElement || this.isFixedPosition) { + this.adjustPositionForHoistedElement(position); + } + this.adapter.setTransformOrigin(horizontalAlignment + " " + verticalAlignment); + this.adapter.setPosition(position); + this.adapter.setMaxHeight(maxMenuSurfaceHeight ? maxMenuSurfaceHeight + 'px' : ''); + // If it is opened from the top then add is-open-below class + if (!this.hasBit(corner, CornerBit.BOTTOM)) { + this.adapter.addClass(MDCMenuSurfaceFoundation.cssClasses.IS_OPEN_BELOW); + } + }; + /** + * @return Measurements used to position menu surface popup. + */ + MDCMenuSurfaceFoundation.prototype.getAutoLayoutmeasurements = function () { + var anchorRect = this.adapter.getAnchorDimensions(); + var bodySize = this.adapter.getBodyDimensions(); + var viewportSize = this.adapter.getWindowDimensions(); + var windowScroll = this.adapter.getWindowScroll(); + if (!anchorRect) { + // tslint:disable:object-literal-sort-keys Positional properties are more readable when they're grouped together + anchorRect = { + top: this.position.y, + right: this.position.x, + bottom: this.position.y, + left: this.position.x, + width: 0, + height: 0, + }; + // tslint:enable:object-literal-sort-keys + } + return { + anchorSize: anchorRect, + bodySize: bodySize, + surfaceSize: this.dimensions, + viewportDistance: { + // tslint:disable:object-literal-sort-keys Positional properties are more readable when they're grouped together + top: anchorRect.top, + right: viewportSize.width - anchorRect.right, + bottom: viewportSize.height - anchorRect.bottom, + left: anchorRect.left, + // tslint:enable:object-literal-sort-keys + }, + viewportSize: viewportSize, + windowScroll: windowScroll, + }; + }; + /** + * Computes the corner of the anchor from which to animate and position the + * menu surface. + * + * Only LEFT or RIGHT bit is used to position the menu surface ignoring RTL + * context. E.g., menu surface will be positioned from right side on TOP_END. + */ + MDCMenuSurfaceFoundation.prototype.getoriginCorner = function () { + var corner = this.originCorner; + var _a = this.measurements, viewportDistance = _a.viewportDistance, anchorSize = _a.anchorSize, surfaceSize = _a.surfaceSize; + var MARGIN_TO_EDGE = MDCMenuSurfaceFoundation.numbers.MARGIN_TO_EDGE; + var isAnchoredToBottom = this.hasBit(this.anchorCorner, CornerBit.BOTTOM); + var availableTop; + var availableBottom; + if (isAnchoredToBottom) { + availableTop = + viewportDistance.top - MARGIN_TO_EDGE + this.anchorMargin.bottom; + availableBottom = + viewportDistance.bottom - MARGIN_TO_EDGE - this.anchorMargin.bottom; + } + else { + availableTop = + viewportDistance.top - MARGIN_TO_EDGE + this.anchorMargin.top; + availableBottom = viewportDistance.bottom - MARGIN_TO_EDGE + + anchorSize.height - this.anchorMargin.top; + } + var isAvailableBottom = availableBottom - surfaceSize.height > 0; + if (!isAvailableBottom && + availableTop > availableBottom + this.openBottomBias) { + // Attach bottom side of surface to the anchor. + corner = this.setBit(corner, CornerBit.BOTTOM); + } + var isRtl = this.adapter.isRtl(); + var isFlipRtl = this.hasBit(this.anchorCorner, CornerBit.FLIP_RTL); + var hasRightBit = this.hasBit(this.anchorCorner, CornerBit.RIGHT) || + this.hasBit(corner, CornerBit.RIGHT); + // Whether surface attached to right side of anchor element. + var isAnchoredToRight = false; + // Anchored to start + if (isRtl && isFlipRtl) { + isAnchoredToRight = !hasRightBit; + } + else { + // Anchored to right + isAnchoredToRight = hasRightBit; + } + var availableLeft; + var availableRight; + if (isAnchoredToRight) { + availableLeft = + viewportDistance.left + anchorSize.width + this.anchorMargin.right; + availableRight = viewportDistance.right - this.anchorMargin.right; + } + else { + availableLeft = viewportDistance.left + this.anchorMargin.left; + availableRight = + viewportDistance.right + anchorSize.width - this.anchorMargin.left; + } + var isAvailableLeft = availableLeft - surfaceSize.width > 0; + var isAvailableRight = availableRight - surfaceSize.width > 0; + var isOriginCornerAlignedToEnd = this.hasBit(corner, CornerBit.FLIP_RTL) && + this.hasBit(corner, CornerBit.RIGHT); + if (isAvailableRight && isOriginCornerAlignedToEnd && isRtl || + !isAvailableLeft && isOriginCornerAlignedToEnd) { + // Attach left side of surface to the anchor. + corner = this.unsetBit(corner, CornerBit.RIGHT); + } + else if (isAvailableLeft && isAnchoredToRight && isRtl || + (isAvailableLeft && !isAnchoredToRight && hasRightBit) || + (!isAvailableRight && availableLeft >= availableRight)) { + // Attach right side of surface to the anchor. + corner = this.setBit(corner, CornerBit.RIGHT); + } + return corner; + }; + /** + * @param corner Origin corner of the menu surface. + * @return Maximum height of the menu surface, based on available space. 0 + * indicates should not be set. + */ + MDCMenuSurfaceFoundation.prototype.getMenuSurfaceMaxHeight = function (corner) { + if (this.maxHeight > 0) { + return this.maxHeight; + } + var viewportDistance = this.measurements.viewportDistance; + var maxHeight = 0; + var isBottomAligned = this.hasBit(corner, CornerBit.BOTTOM); + var isBottomAnchored = this.hasBit(this.anchorCorner, CornerBit.BOTTOM); + var MARGIN_TO_EDGE = MDCMenuSurfaceFoundation.numbers.MARGIN_TO_EDGE; + // When maximum height is not specified, it is handled from CSS. + if (isBottomAligned) { + maxHeight = viewportDistance.top + this.anchorMargin.top - MARGIN_TO_EDGE; + if (!isBottomAnchored) { + maxHeight += this.measurements.anchorSize.height; + } + } + else { + maxHeight = viewportDistance.bottom - this.anchorMargin.bottom + + this.measurements.anchorSize.height - MARGIN_TO_EDGE; + if (isBottomAnchored) { + maxHeight -= this.measurements.anchorSize.height; + } + } + return maxHeight; + }; + /** + * @param corner Origin corner of the menu surface. + * @return Horizontal offset of menu surface origin corner from corresponding + * anchor corner. + */ + MDCMenuSurfaceFoundation.prototype.getHorizontalOriginOffset = function (corner) { + var anchorSize = this.measurements.anchorSize; + // isRightAligned corresponds to using the 'right' property on the surface. + var isRightAligned = this.hasBit(corner, CornerBit.RIGHT); + var avoidHorizontalOverlap = this.hasBit(this.anchorCorner, CornerBit.RIGHT); + if (isRightAligned) { + var rightOffset = avoidHorizontalOverlap ? + anchorSize.width - this.anchorMargin.left : + this.anchorMargin.right; + // For hoisted or fixed elements, adjust the offset by the difference + // between viewport width and body width so when we calculate the right + // value (`adjustPositionForHoistedElement`) based on the element + // position, the right property is correct. + if (this.isHoistedElement || this.isFixedPosition) { + return rightOffset - + (this.measurements.viewportSize.width - + this.measurements.bodySize.width); + } + return rightOffset; + } + return avoidHorizontalOverlap ? anchorSize.width - this.anchorMargin.right : + this.anchorMargin.left; + }; + /** + * @param corner Origin corner of the menu surface. + * @return Vertical offset of menu surface origin corner from corresponding + * anchor corner. + */ + MDCMenuSurfaceFoundation.prototype.getVerticalOriginOffset = function (corner) { + var anchorSize = this.measurements.anchorSize; + var isBottomAligned = this.hasBit(corner, CornerBit.BOTTOM); + var avoidVerticalOverlap = this.hasBit(this.anchorCorner, CornerBit.BOTTOM); + var y = 0; + if (isBottomAligned) { + y = avoidVerticalOverlap ? anchorSize.height - this.anchorMargin.top : + -this.anchorMargin.bottom; + } + else { + y = avoidVerticalOverlap ? + (anchorSize.height + this.anchorMargin.bottom) : + this.anchorMargin.top; + } + return y; + }; + /** + * Calculates the offsets for positioning the menu-surface when the + * menu-surface has been hoisted to the body. + */ + MDCMenuSurfaceFoundation.prototype.adjustPositionForHoistedElement = function (position) { + var e_1, _a; + var _b = this.measurements, windowScroll = _b.windowScroll, viewportDistance = _b.viewportDistance, surfaceSize = _b.surfaceSize, viewportSize = _b.viewportSize; + var props = Object.keys(position); + try { + for (var props_1 = __values(props), props_1_1 = props_1.next(); !props_1_1.done; props_1_1 = props_1.next()) { + var prop = props_1_1.value; + var value = position[prop] || 0; + if (this.isHorizontallyCenteredOnViewport && + (prop === 'left' || prop === 'right')) { + position[prop] = (viewportSize.width - surfaceSize.width) / 2; + continue; + } + // Hoisted surfaces need to have the anchor elements location on the page + // added to the position properties for proper alignment on the body. + value += viewportDistance[prop]; + // Surfaces that are absolutely positioned need to have additional + // calculations for scroll and bottom positioning. + if (!this.isFixedPosition) { + if (prop === 'top') { + value += windowScroll.y; + } + else if (prop === 'bottom') { + value -= windowScroll.y; + } + else if (prop === 'left') { + value += windowScroll.x; + } + else { // prop === 'right' + value -= windowScroll.x; + } + } + position[prop] = value; + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { + if (props_1_1 && !props_1_1.done && (_a = props_1.return)) _a.call(props_1); + } + finally { if (e_1) throw e_1.error; } + } + }; + /** + * The last focused element when the menu surface was opened should regain + * focus, if the user is focused on or within the menu surface when it is + * closed. + */ + MDCMenuSurfaceFoundation.prototype.maybeRestoreFocus = function () { + var _this = this; + var isRootFocused = this.adapter.isFocused(); + var ownerDocument = this.adapter.getOwnerDocument ? + this.adapter.getOwnerDocument() : + document; + var childHasFocus = ownerDocument.activeElement && + this.adapter.isElementInContainer(ownerDocument.activeElement); + if (isRootFocused || childHasFocus) { + // Wait before restoring focus when closing the menu surface. This is + // important because if a touch event triggered the menu close, and the + // subsequent mouse event occurs after focus is restored, then the + // restored focus would be lost. + setTimeout(function () { + _this.adapter.restoreFocus(); + }, numbers.TOUCH_EVENT_WAIT_MS); + } + }; + MDCMenuSurfaceFoundation.prototype.hasBit = function (corner, bit) { + return Boolean(corner & bit); // tslint:disable-line:no-bitwise + }; + MDCMenuSurfaceFoundation.prototype.setBit = function (corner, bit) { + return corner | bit; // tslint:disable-line:no-bitwise + }; + MDCMenuSurfaceFoundation.prototype.unsetBit = function (corner, bit) { + return corner ^ bit; + }; + /** + * isFinite that doesn't force conversion to number type. + * Equivalent to Number.isFinite in ES2015, which is not supported in IE. + */ + MDCMenuSurfaceFoundation.prototype.isFinite = function (num) { + return typeof num === 'number' && isFinite(num); + }; + return MDCMenuSurfaceFoundation; +}(MDCFoundation)); +// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier. +var MDCMenuSurfaceFoundation$1 = MDCMenuSurfaceFoundation; + +/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +// tslint:disable:no-bitwise +// required for closure compiler +const stringToCorner = { + 'TOP_LEFT': Corner.TOP_LEFT, + 'TOP_RIGHT': Corner.TOP_RIGHT, + 'BOTTOM_LEFT': Corner.BOTTOM_LEFT, + 'BOTTOM_RIGHT': Corner.BOTTOM_RIGHT, + 'TOP_START': Corner.TOP_START, + 'TOP_END': Corner.TOP_END, + 'BOTTOM_START': Corner.BOTTOM_START, + 'BOTTOM_END': Corner.BOTTOM_END, +}; +/** + * @fires opened + * @fires closed + */ +class MenuSurfaceBase extends BaseElement { + constructor() { + super(...arguments); + this.mdcFoundationClass = MDCMenuSurfaceFoundation$1; + this.absolute = false; + this.fullwidth = false; + this.fixed = false; + this.x = null; + this.y = null; + // must be defined before open or else race condition in foundation occurs. + this.quick = false; + this.open = false; + this.stayOpenOnBodyClick = false; + this.bitwiseCorner = Corner.TOP_START; + this.previousMenuCorner = null; + // must be defined before observer of anchor corner for initialization + this.menuCorner = 'START'; + this.corner = 'TOP_START'; + this.styleTop = ''; + this.styleLeft = ''; + this.styleRight = ''; + this.styleBottom = ''; + this.styleMaxHeight = ''; + this.styleTransformOrigin = ''; + this.anchor = null; + this.previouslyFocused = null; + this.previousAnchor = null; + this.onBodyClickBound = () => undefined; + } + render() { + return this.renderSurface(); + } + renderSurface() { + const classes = this.getRootClasses(); + const styles = this.getRootStyles(); + return x ` +
+ ${this.renderContent()} +
`; + } + getRootClasses() { + return { + 'mdc-menu-surface': true, + 'mdc-menu-surface--fixed': this.fixed, + 'mdc-menu-surface--fullwidth': this.fullwidth, + }; + } + getRootStyles() { + return { + 'top': this.styleTop, + 'left': this.styleLeft, + 'right': this.styleRight, + 'bottom': this.styleBottom, + 'max-height': this.styleMaxHeight, + 'transform-origin': this.styleTransformOrigin, + }; + } + renderContent() { + return x ``; + } + createAdapter() { + return Object.assign(Object.assign({}, addHasRemoveClass(this.mdcRoot)), { hasAnchor: () => { + return !!this.anchor; + }, notifyClose: () => { + const init = { bubbles: true, composed: true }; + const ev = new CustomEvent('closed', init); + this.open = false; + this.mdcRoot.dispatchEvent(ev); + }, notifyClosing: () => { + const init = { bubbles: true, composed: true }; + const ev = new CustomEvent('closing', init); + this.mdcRoot.dispatchEvent(ev); + }, notifyOpen: () => { + const init = { bubbles: true, composed: true }; + const ev = new CustomEvent('opened', init); + this.open = true; + this.mdcRoot.dispatchEvent(ev); + }, notifyOpening: () => { + const init = { bubbles: true, composed: true }; + const ev = new CustomEvent('opening', init); + this.mdcRoot.dispatchEvent(ev); + }, isElementInContainer: () => false, isRtl: () => { + if (this.mdcRoot) { + return getComputedStyle(this.mdcRoot).direction === 'rtl'; + } + return false; + }, setTransformOrigin: (origin) => { + const root = this.mdcRoot; + if (!root) { + return; + } + this.styleTransformOrigin = origin; + }, isFocused: () => { + return doesElementContainFocus(this); + }, saveFocus: () => { + const activeElementPath = deepActiveElementPath(); + const pathLength = activeElementPath.length; + if (!pathLength) { + this.previouslyFocused = null; + } + this.previouslyFocused = activeElementPath[pathLength - 1]; + }, restoreFocus: () => { + if (!this.previouslyFocused) { + return; + } + if ('focus' in this.previouslyFocused) { + this.previouslyFocused.focus(); + } + }, getInnerDimensions: () => { + const mdcRoot = this.mdcRoot; + if (!mdcRoot) { + return { width: 0, height: 0 }; + } + return { width: mdcRoot.offsetWidth, height: mdcRoot.offsetHeight }; + }, getAnchorDimensions: () => { + const anchorElement = this.anchor; + return anchorElement ? anchorElement.getBoundingClientRect() : null; + }, getBodyDimensions: () => { + return { + width: document.body.clientWidth, + height: document.body.clientHeight, + }; + }, getWindowDimensions: () => { + return { + width: window.innerWidth, + height: window.innerHeight, + }; + }, getWindowScroll: () => { + return { + x: window.pageXOffset, + y: window.pageYOffset, + }; + }, setPosition: (position) => { + const mdcRoot = this.mdcRoot; + if (!mdcRoot) { + return; + } + this.styleLeft = 'left' in position ? `${position.left}px` : ''; + this.styleRight = 'right' in position ? `${position.right}px` : ''; + this.styleTop = 'top' in position ? `${position.top}px` : ''; + this.styleBottom = 'bottom' in position ? `${position.bottom}px` : ''; + }, setMaxHeight: async (height) => { + const mdcRoot = this.mdcRoot; + if (!mdcRoot) { + return; + } + // must set both for IE support as IE will not set a var + this.styleMaxHeight = height; + await this.updateComplete; + this.styleMaxHeight = `var(--mdc-menu-max-height, ${height})`; + } }); + } + onKeydown(evt) { + if (this.mdcFoundation) { + this.mdcFoundation.handleKeydown(evt); + } + } + onBodyClick(evt) { + if (this.stayOpenOnBodyClick) { + return; + } + const path = evt.composedPath(); + if (path.indexOf(this) === -1) { + this.close(); + } + } + registerBodyClick() { + this.onBodyClickBound = this.onBodyClick.bind(this); + // capture otherwise listener closes menu after quick menu opens + document.body.addEventListener('click', this.onBodyClickBound, { passive: true, capture: true }); + } + deregisterBodyClick() { + document.body.removeEventListener('click', this.onBodyClickBound, { capture: true }); + } + onOpenChanged(isOpen, wasOpen) { + if (this.mdcFoundation) { + if (isOpen) { + this.mdcFoundation.open(); + // wasOpen helps with first render (when it is `undefined`) perf + } + else if (wasOpen !== undefined) { + this.mdcFoundation.close(); + } + } + } + close() { + this.open = false; + } + show() { + this.open = true; + } +} +__decorate([ + i$2('.mdc-menu-surface') +], MenuSurfaceBase.prototype, "mdcRoot", void 0); +__decorate([ + i$2('slot') +], MenuSurfaceBase.prototype, "slotElement", void 0); +__decorate([ + e$5({ type: Boolean }), + observer(function (isAbsolute) { + if (this.mdcFoundation && !this.fixed) { + this.mdcFoundation.setIsHoisted(isAbsolute); + } + }) +], MenuSurfaceBase.prototype, "absolute", void 0); +__decorate([ + e$5({ type: Boolean }) +], MenuSurfaceBase.prototype, "fullwidth", void 0); +__decorate([ + e$5({ type: Boolean }), + observer(function (isFixed) { + if (this.mdcFoundation && !this.absolute) { + this.mdcFoundation.setFixedPosition(isFixed); + } + }) +], MenuSurfaceBase.prototype, "fixed", void 0); +__decorate([ + e$5({ type: Number }), + observer(function (value) { + if (this.mdcFoundation && this.y !== null && value !== null) { + this.mdcFoundation.setAbsolutePosition(value, this.y); + this.mdcFoundation.setAnchorMargin({ left: value, top: this.y, right: -value, bottom: this.y }); + } + }) +], MenuSurfaceBase.prototype, "x", void 0); +__decorate([ + e$5({ type: Number }), + observer(function (value) { + if (this.mdcFoundation && this.x !== null && value !== null) { + this.mdcFoundation.setAbsolutePosition(this.x, value); + this.mdcFoundation.setAnchorMargin({ left: this.x, top: value, right: -this.x, bottom: value }); + } + }) +], MenuSurfaceBase.prototype, "y", void 0); +__decorate([ + e$5({ type: Boolean }), + observer(function (value) { + if (this.mdcFoundation) { + this.mdcFoundation.setQuickOpen(value); + } + }) +], MenuSurfaceBase.prototype, "quick", void 0); +__decorate([ + e$5({ type: Boolean, reflect: true }), + observer(function (isOpen, wasOpen) { + this.onOpenChanged(isOpen, wasOpen); + }) +], MenuSurfaceBase.prototype, "open", void 0); +__decorate([ + e$5({ type: Boolean }) +], MenuSurfaceBase.prototype, "stayOpenOnBodyClick", void 0); +__decorate([ + t$1(), + observer(function (value) { + if (this.mdcFoundation) { + if (value) { + this.mdcFoundation.setAnchorCorner(value); + } + else { + this.mdcFoundation.setAnchorCorner(value); + } + } + }) +], MenuSurfaceBase.prototype, "bitwiseCorner", void 0); +__decorate([ + e$5({ type: String }), + observer(function (value) { + if (this.mdcFoundation) { + const isValidValue = value === 'START' || value === 'END'; + const isFirstTimeSet = this.previousMenuCorner === null; + const cornerChanged = !isFirstTimeSet && value !== this.previousMenuCorner; + const initiallySetToEnd = isFirstTimeSet && value === 'END'; + if (isValidValue && (cornerChanged || initiallySetToEnd)) { + this.bitwiseCorner = this.bitwiseCorner ^ CornerBit.RIGHT; + this.mdcFoundation.flipCornerHorizontally(); + this.previousMenuCorner = value; + } + } + }) +], MenuSurfaceBase.prototype, "menuCorner", void 0); +__decorate([ + e$5({ type: String }), + observer(function (value) { + if (this.mdcFoundation) { + if (value) { + let newCorner = stringToCorner[value]; + if (this.menuCorner === 'END') { + newCorner = newCorner ^ CornerBit.RIGHT; + } + this.bitwiseCorner = newCorner; + } + } + }) +], MenuSurfaceBase.prototype, "corner", void 0); +__decorate([ + t$1() +], MenuSurfaceBase.prototype, "styleTop", void 0); +__decorate([ + t$1() +], MenuSurfaceBase.prototype, "styleLeft", void 0); +__decorate([ + t$1() +], MenuSurfaceBase.prototype, "styleRight", void 0); +__decorate([ + t$1() +], MenuSurfaceBase.prototype, "styleBottom", void 0); +__decorate([ + t$1() +], MenuSurfaceBase.prototype, "styleMaxHeight", void 0); +__decorate([ + t$1() +], MenuSurfaceBase.prototype, "styleTransformOrigin", void 0); + +/** + * @license + * Copyright 2021 Google LLC + * SPDX-LIcense-Identifier: Apache-2.0 + */ +const styles$6 = i$6 `.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;transition:opacity .03s linear,transform .12s cubic-bezier(0, 0, 0.2, 1),height 250ms cubic-bezier(0, 0, 0.2, 1);box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2),0px 8px 10px 1px rgba(0, 0, 0, 0.14),0px 3px 14px 2px rgba(0,0,0,.12);background-color:#fff;background-color:var(--mdc-theme-surface, #fff);color:#000;color:var(--mdc-theme-on-surface, #000);border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0;transition:opacity .075s linear}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}:host(:not([open])){display:none}.mdc-menu-surface{z-index:8;z-index:var(--mdc-menu-z-index, 8);min-width:112px;min-width:var(--mdc-menu-min-width, 112px)}`; + +/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +let MenuSurface = class MenuSurface extends MenuSurfaceBase { +}; +MenuSurface.styles = [styles$6]; +MenuSurface = __decorate([ + e$6('mwc-menu-surface') +], MenuSurface); + +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +/** + * Base class that connects an element to a . + */ +class PlaygroundConnectedElement extends s$1 { + /** + * The project that this element is associated with. Either the + * `` node itself, or its `id` in the host scope. + */ + set project(elementOrId) { + if (typeof elementOrId === 'string') { + // Defer querying the host to a rAF because if the host renders this + // element before the one we're querying for, it might not quite exist + // yet. + requestAnimationFrame(() => { + var _a; + const root = this.getRootNode(); + this._project = + (_a = root.getElementById(elementOrId)) !== null && _a !== void 0 ? _a : undefined; + }); + } + else { + this._project = elementOrId; + } + } +} +__decorate([ + e$5() +], PlaygroundConnectedElement.prototype, "project", null); +__decorate([ + t$1() +], PlaygroundConnectedElement.prototype, "_project", void 0); + +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +/** + * Floating controls for creating, deleting, and renaming files in playground + * virtual file system. + */ +let PlaygroundFileSystemControls = class PlaygroundFileSystemControls extends PlaygroundConnectedElement { + constructor() { + super(...arguments); + /** + * The kind of control to display: + * + * - closed: Hidden. + * - menu: Menu with "Rename" and "Delete" items. + * - rename: Control for renaming an existing file. + * - newfile: Control for creating a new file. + */ + this.state = 'closed'; + this._postStateChangeRenderDone = false; + } + update(changedProperties) { + if (changedProperties.has('state')) { + this._postStateChangeRenderDone = false; + } + super.update(changedProperties); + } + render() { + var _a; + return x `
${this._surfaceContents}
`; + } + async updated() { + if (this._postStateChangeRenderDone) { + return; + } + if (this.state === 'menu') { + // Focus the first item so that keyboard controls work. + const menuList = this._menuList; + if (menuList) { + await menuList.updateComplete; + menuList.focusItemAtIndex(0); + } + } + else if (this.state === 'rename' || this.state === 'newfile') { + // Focus the filename input. + const input = this._filenameInput; + if (input) { + await input.updateComplete; + input.focus(); + if (this.state === 'rename') { + // Pre-select just the basename (e.g. "foo" in "foo.html"), since + // users typically don't want to edit the extension. + input.setSelectionRange(0, input.value.lastIndexOf('.')); + } + } + } + this._postStateChangeRenderDone = true; + } + get _surfaceContents() { + switch (this.state) { + case 'closed': + return A; + case 'menu': + return this._menu; + case 'rename': + return this._rename; + case 'newfile': + return this._newFile; + } + } + get _menu() { + return x ` + + + Rename + + + + + + Delete + + + + + + `; + } + get _rename() { + return x ` + +
+ Cancel + Rename +
+ `; + } + get _newFile() { + return x ` + +
+ Cancel + Create +
+ `; + } + _onSurfaceClosed() { + this.state = 'closed'; + } + _onClickCancel() { + this._surface.close(); + } + _onMenuAction(event) { + switch (event.detail.index) { + case 0: + return this._onMenuSelectRename(); + case 1: + return this._onMenuSelectDelete(); + } + } + _onMenuSelectRename() { + this.state = 'rename'; + } + _onMenuSelectDelete() { + this._surface.close(); + if (this._project && this.filename) { + this._project.deleteFile(this.filename); + } + } + _onFilenameInputChange() { + // Force re-evaluation of the _filenameInputValid getter (instead of managing + // an internal property). + this.requestUpdate(); + } + get _filenameInputValid() { + return !!(this._project && + this._filenameInput && + this._project.isValidNewFilename(this._filenameInput.value)); + } + _onFilenameInputKeydown(event) { + var _a; + // Slightly hacky... rather than needing to know which action to perform in + // each context, we just click whatever submit button we're rendering. + if (event.key === 'Enter' && ((_a = this._submitButton) === null || _a === void 0 ? void 0 : _a.disabled) === false) { + event.preventDefault(); + this._submitButton.click(); + } + } + _onSubmitRename() { + var _a; + this._surface.close(); + const oldFilename = this.filename; + const newFilename = (_a = this._filenameInput) === null || _a === void 0 ? void 0 : _a.value; + if (this._project && oldFilename && newFilename) { + this._project.renameFile(oldFilename, newFilename); + } + } + _onSubmitNewFile() { + var _a; + this._surface.close(); + const filename = (_a = this._filenameInput) === null || _a === void 0 ? void 0 : _a.value; + if (this._project && filename) { + this._project.addFile(filename); + this.dispatchEvent(new CustomEvent('newFile', { + detail: { filename }, + })); + } + } +}; +PlaygroundFileSystemControls.styles = i$6 ` + mwc-menu-surface { + --mdc-theme-primary: var( + --playground-floating-controls-color, + var(--playground-highlight-color, #6200ee) + ); + } + + mwc-menu-surface.menu { + --mdc-typography-subtitle1-font-size: 13px; + --mdc-list-item-graphic-margin: 14px; + } + + mwc-list-item { + min-width: 100px; + height: 40px; + } + + mwc-menu-surface.rename > .wrapper, + mwc-menu-surface.newfile > .wrapper { + padding: 18px; + } + + .actions { + margin-top: 18px; + display: flex; + justify-content: flex-end; + } + + .actions > * { + margin-left: 12px; + } + `; +__decorate([ + e$5({ attribute: false }) +], PlaygroundFileSystemControls.prototype, "anchorElement", void 0); +__decorate([ + e$5() +], PlaygroundFileSystemControls.prototype, "state", void 0); +__decorate([ + e$5() +], PlaygroundFileSystemControls.prototype, "filename", void 0); +__decorate([ + i$2('mwc-menu-surface') +], PlaygroundFileSystemControls.prototype, "_surface", void 0); +__decorate([ + i$2('.menu-list') +], PlaygroundFileSystemControls.prototype, "_menuList", void 0); +__decorate([ + i$2('.filename-input') +], PlaygroundFileSystemControls.prototype, "_filenameInput", void 0); +__decorate([ + i$2('.submit-button') +], PlaygroundFileSystemControls.prototype, "_submitButton", void 0); +PlaygroundFileSystemControls = __decorate([ + e$6('playground-file-system-controls') +], PlaygroundFileSystemControls); + +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +/** + * A horizontal bar of tabs for switching between playground files, with + * optional controls for create/delete/rename. + */ +let PlaygroundTabBar = class PlaygroundTabBar extends PlaygroundConnectedElement { + constructor() { + super(...arguments); + /** + * Allow the user to add, remove, and rename files in the project's virtual + * filesystem. Disabled by default. + */ + this.editableFileSystem = false; + this._activeFileName = ''; + this._activeFileIndex = 0; + this._onProjectFilesChanged = (event) => { + this._handleFilesChanged(event.projectLoaded); + }; + } + /** + * The editor that this tab bar controls. Either the + * `` node itself, or its `id` in the host scope. + */ + set editor(elementOrId) { + if (typeof elementOrId === 'string') { + // Defer querying the host to a rAF because if the host renders this + // element before the one we're querying for, it might not quite exist + // yet. + requestAnimationFrame(() => { + var _a; + const root = this.getRootNode(); + this._editor = + (_a = root.getElementById(elementOrId)) !== null && _a !== void 0 ? _a : undefined; + }); + } + else { + this._editor = elementOrId; + } + } + get _visibleFiles() { + var _a, _b; + return ((_b = (_a = this._project) === null || _a === void 0 ? void 0 : _a.files) !== null && _b !== void 0 ? _b : []).filter(({ hidden }) => !hidden); + } + update(changedProperties) { + if (changedProperties.has('_project')) { + const oldProject = changedProperties.get('_project'); + if (oldProject) { + oldProject.removeEventListener('filesChanged', this._onProjectFilesChanged); + } + if (this._project) { + this._handleFilesChanged(true); + this._project.addEventListener('filesChanged', this._onProjectFilesChanged); + } + } + if (changedProperties.has('_activeFileName') && this._editor) { + this._editor.filename = this._activeFileName; + this._setNewActiveFile(); + } + super.update(changedProperties); + } + render() { + return x ` + + ${this._visibleFiles.map(({ name, label }) => x ` + ${label || name} + ${this.editableFileSystem + ? x ` + + + + + ` + : A} + `)} + + + ${this.editableFileSystem + ? x ` + + + + + + + + + + ` + : A} + `; + } + _handleFilesChanged(newProjectLoaded = false) { + var _a; + if (newProjectLoaded) { + const fileToSelect = (_a = this._visibleFiles.find((file) => file.selected)) === null || _a === void 0 ? void 0 : _a.name; + if (fileToSelect !== undefined) { + this._activeFileName = fileToSelect; + } + } + this._setNewActiveFile(); + this.requestUpdate(); + } + _onTabchange(event) { + const tab = event.detail.tab; + if (!tab) { + return; + } + const name = tab.dataset['filename']; + const index = tab.index; + if (name !== this._activeFileName) { + this._activeFileName = name; + this._activeFileIndex = index; + } + } + _onOpenMenu(event) { + const controls = this._fileSystemControls; + if (!controls) { + return; + } + controls.state = 'menu'; + // Figure out which file the open menu should be associated with. It's not + // necessarily the active tab, since you can click on the menu button for a + // tab without activating that tab. + // + // We're looking for a "data-filename" attribute in the event path, which + // should be on the . + // + // Note that we can't be sure what the target of the click event will be. + // Between MWC v0.25.1 and v0.25.2, when clicking on an , + // the target changed from the to its internal . + for (const el of event.composedPath()) { + if (el instanceof HTMLElement && el.dataset['filename']) { + controls.filename = el.dataset['filename']; + break; + } + } + controls.anchorElement = event.target; + event.stopPropagation(); + } + _onClickAddFile(event) { + const controls = this._fileSystemControls; + if (!controls) { + return; + } + controls.state = 'newfile'; + controls.anchorElement = event.target; + } + _onNewFile(event) { + this._activeFileName = event.detail.filename; + // TODO(aomarks) We should focus the editor here. However, + // CodeMirror.focus() isn't working for some reason. + } + /** + * Whenever a file is created, deleted, or renamed, figure out what the best + * new active tab should be. + */ + _setNewActiveFile() { + // Stay on the same filename if it's still around, even though its index + // might have changed. + if (this._activeFileName) { + const index = this._visibleFiles.findIndex((file) => file.name === this._activeFileName); + if (index >= 0) { + this._activeFileIndex = index; + return; + } + } + // Stay on the same index, or the nearest one to the left of where we were + // before. + for (let i = this._activeFileIndex; i >= 0; i--) { + const file = this._visibleFiles[i]; + if (file && !file.hidden) { + this._activeFileName = file.name; + return; + } + } + // No visible file to display. + this._activeFileIndex = 0; + this._activeFileName = ''; + } +}; +PlaygroundTabBar.styles = i$6 ` + :host { + display: flex; + font-size: var(--playground-tab-bar-font-size, 14px); + height: var(--playground-bar-height, 40px); + background: var(--playground-tab-bar-background, #eaeaea); + align-items: center; + } + + playground-internal-tab-bar { + height: var(--playground-bar-height, 40px); + } + + playground-internal-tab::part(button) { + box-sizing: border-box; + padding: 2px 24px 0 24px; + } + + playground-internal-tab { + color: var(--playground-tab-bar-foreground-color, #000); + } + + playground-internal-tab[active] { + color: var( + --playground-tab-bar-active-color, + var(--playground-highlight-color, #6200ee) + ); + background: var(--playground-tab-bar-active-background, transparent); + } + + :host([editable-file-system]) playground-internal-tab::part(button) { + /* The 24px menu button with opacity 0 now serves as padding-right. */ + padding-right: 0; + } + + .menu-button { + visibility: hidden; + --mdc-icon-button-size: 24px; + --mdc-icon-size: 16px; + } + + playground-internal-tab:hover > .menu-button, + playground-internal-tab:focus-within > .menu-button { + visibility: visible; + } + + mwc-icon-button { + color: var(--playground-tab-bar-foreground-color); + } + + .add-file-button { + margin: 0 4px; + opacity: 70%; + --mdc-icon-button-size: 24px; + --mdc-icon-size: 24px; + } + + .add-file-button:hover { + opacity: 1; + } + `; +__decorate([ + e$5({ type: Boolean, attribute: 'editable-file-system', reflect: true }) +], PlaygroundTabBar.prototype, "editableFileSystem", void 0); +__decorate([ + t$1() +], PlaygroundTabBar.prototype, "_activeFileName", void 0); +__decorate([ + t$1() +], PlaygroundTabBar.prototype, "_activeFileIndex", void 0); +__decorate([ + i$2('playground-file-system-controls') +], PlaygroundTabBar.prototype, "_fileSystemControls", void 0); +__decorate([ + t$1() +], PlaygroundTabBar.prototype, "_editor", void 0); +__decorate([ + e$5() +], PlaygroundTabBar.prototype, "editor", null); +PlaygroundTabBar = __decorate([ + e$6('playground-tab-bar') +], PlaygroundTabBar); + +/* @license CodeMirror, copyright (c) by Marijn Haverbeke and others +Distributed under an MIT license: https://codemirror.net/LICENSE */ +var e;function t(e,t,r,n,i,o){this.name=e,this.tokenType=t,this.depth=r,this.parent=n,this.startLine=i,this.startPos=o;}function r(){this.stream=null,this.line=this.startPos=0,this.string=this.startLine="",this.copyInstance=null;}e=function(){var e=navigator.userAgent,t=navigator.platform,r=/gecko\/\d/i.test(e),n=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=n||i||o,l=a&&(n?document.documentMode||6:+(o||i)[1]),s=!o&&/WebKit\//.test(e),c=s&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\/(\d+)/.exec(e),d=u&&+u[1],f=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),g=h&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=g||/Mac/.test(t),w=/\bCrOS\b/.test(e),k=/win/i.test(t),x=f&&e.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(f=!1,s=!0);var C=b&&(c||f&&(null==x||x<12.11)),S=r||a&&l>=9;function T(e){return RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var L,A=function(e,t){var r=e.className,n=T(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"");}};function M(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function z(e,t){return M(e).appendChild(t)}function O(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=l-o,a+=r-a%r,o=l+1;}}g?W=function(e){e.selectionStart=0,e.selectionEnd=e.value.length;}:a&&(W=function(e){try{e.select();}catch(e){}});var R=function(){this.id=null,this.f=null,this.time=0,this.handler=H(this.onTimeout,this);};function Z(e,t){for(var r=0;r=t)return n+Math.min(a,t-i);if(i+=o-n,n=o+1,(i+=r-i%r)>=t)return n}}var q=[""];function X(e){for(;q.length<=e;)q.push(Y(q)+" ");return q[e]}function Y(e){return e[e.length-1]}function Q(e,t){for(var r=[],n=0;n"€"&&(e.toUpperCase()!=e.toLowerCase()||te.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&re(e))||t.test(e):re(e)}function ie(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return !1;return !0}var oe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ae(e){return e.charCodeAt(0)>=768&&oe.test(e)}function le(e,t,r){for(;(r<0?t>0:tr?-1:1;;){if(t==r)return t;var i=(t+r)/2,o=n<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+n;}}var ce=null;function ue(e,t,r){var n;ce=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==r?n=i:ce=i),o.from==t&&(o.from!=o.to&&"before"!=r?n=i:ce=i);}return null!=n?n:ce}var de=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,r=/[LRr]/,n=/[Lb1n]/,i=/[1n]/;function o(e,t,r){this.level=e,this.from=t,this.to=r;}return function(a,l){var s="ltr"==l?"L":"R";if(0==a.length||"ltr"==l&&!e.test(a))return !1;for(var c,u=a.length,d=[],f=0;f-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)));}}}function ve(e,t){var r=me(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i0}function ke(e){e.prototype.on=function(e,t){pe(this,e,t);},e.prototype.off=function(e,t){ge(this,e,t);};}function xe(e){e.preventDefault?e.preventDefault():e.returnValue=!1;}function Ce(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0;}function Se(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Te(e){xe(e),Ce(e);}function Le(e){return e.target||e.srcElement}function Ae(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var Me,ze,Oe=function(){if(a&&l<9)return !1;var e=O("div");return "draggable"in e||"dragDrop"in e}();function _e(e){if(null==Me){var t=O("span","​");z(e,O("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Me=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&l<8));}var r=Me?O("span","​"):O("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function Ne(e){if(null!=ze)return ze;var t=z(e,document.createTextNode("AخA")),r=L(t,0,1).getBoundingClientRect(),n=L(t,1,2).getBoundingClientRect();return M(e),!(!r||r.left==r.right)&&(ze=n.right-r.right<3)}var Pe,Ee=function(e){return e.split(/\r\n?|\n/)},De=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return !1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange();}catch(e){}return !(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},We="oncopy"in(Pe=O("div"))||(Pe.setAttribute("oncopy","return;"),"function"==typeof Pe.oncopy),Fe=null,Ie={},He={};function Be(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ie[e]=t;}function $e(e){if("string"==typeof e&&He.hasOwnProperty(e))e=He[e];else if(e&&"string"==typeof e.name&&He.hasOwnProperty(e.name)){var t=He[e.name];"string"==typeof t&&(t={name:t}),(e=ee(t,e)).name=t.name;}else {if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return $e("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return $e("application/json")}return "string"==typeof e?{name:e}:e||{name:"null"}}function Re(e,t){t=$e(t);var r=Ie[t.name];if(!r)return Re(e,"text/plain");var n=r(e,t);if(Ze.hasOwnProperty(t.name)){var i=Ze[t.name];for(var o in i)i.hasOwnProperty(o)&&(n.hasOwnProperty(o)&&(n["_"+o]=n[o]),n[o]=i[o]);}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)n[a]=t.modeProps[a];return n}var Ze={};function je(e,t){B(t,Ze.hasOwnProperty(e)?Ze[e]:Ze[e]={});}function Ue(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i;}return r}function Ve(e,t){for(var r;e.innerMode&&(r=e.innerMode(t))&&r.mode!=e;)t=r.state,e=r.mode;return r||{mode:e,state:t}}function Ke(e,t,r){return !e.startState||e.startState(t,r)}var Ge=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r;};function qe(e,t){if((t-=e.first)<0||t>=e.size)throw Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t=e.first&&tr?nt(r,qe(e,r).text.length):function(e,t){var r=e.ch;return null==r||r>t?nt(e.line,t):r<0?nt(e.line,0):e}(t,qe(e,t.line).text.length)}function dt(e,t){for(var r=[],n=0;n=this.string.length},Ge.prototype.sol=function(){return this.pos==this.lineStart},Ge.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ge.prototype.next=function(){if(this.post},Ge.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ge.prototype.skipToEnd=function(){this.pos=this.string.length;},Ge.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ge.prototype.backUp=function(e){this.pos-=e;},Ge.prototype.column=function(){return this.lastColumnPos0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}var i=function(e){return r?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return !1!==t&&(this.pos+=e.length),!0},Ge.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ge.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e;}},Ge.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ge.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ft=function(e,t){this.state=e,this.lookAhead=t;},ht=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1;};function pt(e,t,r,n){var i=[e.state.modeGen],o={};Ct(e,t.text,e.doc.mode,r,(function(e,t){return i.push(e,t)}),o,n);for(var a=r.state,l=function(n){r.baseTokens=i;var l=e.state.overlays[n],s=1,c=0;r.state=!0,Ct(e,t.text,l.mode,r,(function(e,t){for(var r=s;ce&&i.splice(s,1,e,i[s+1],n),s+=2,c=Math.min(e,n);}if(t)if(l.opaque)i.splice(r,s-r,e,"overlay "+t),s=r+2;else for(;re.options.maxHighlightLength&&Ue(e.doc.mode,n.state),o=pt(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier));}return t.styles}function gt(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new ht(n,!0,t);var o=function(e,t,r){for(var n,i,o=e.doc,a=r?-1:t-(e.doc.mode.innerMode?1e3:100),l=t;l>a;--l){if(l<=o.first)return o.first;var s=qe(o,l-1),c=s.stateAfter;if(c&&(!r||l+(c instanceof ft?c.lookAhead:0)<=o.modeFrontier))return l;var u=$(s.text,null,e.options.tabSize);(null==i||n>u)&&(i=l-1,n=u);}return i}(e,t,r),a=o>n.first&&qe(n,o-1).stateAfter,l=a?ht.fromSaved(n,a,o):new ht(n,Ke(n.mode),o);return n.iter(o,t,(function(r){vt(e,r.text,l);var n=l.line;r.stateAfter=n==t-1||n%5==0||n>=i.viewFrom&&nt.start)return o}throw Error("Mode "+e.name+" failed to advance stream.")}ht.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ht.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return {type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ht.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--;},ht.fromSaved=function(e,t,r){return t instanceof ft?new ht(e,Ue(e.mode,t.state),r,t.lookAhead):new ht(e,Ue(e.mode,t),r)},ht.prototype.save=function(e){var t=!1!==e?Ue(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ft(t,this.maxLookAhead):t};var wt=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r;};function kt(e,t,r,n){var i,o,a=e.doc,l=a.mode,s=qe(a,(t=ut(a,t)).line),c=gt(e,t.line,r),u=new Ge(s.text,e.options.tabSize,c);for(n&&(o=[]);(n||u.pose.options.maxHighlightLength?(l=!1,a&&vt(e,t,n,d.pos),d.pos=t.length,s=null):s=xt(bt(r,d,n.state,f),o),f){var h=f[0].name;h&&(s="m-"+(s?h+" "+s:h));}if(!l||u!=s){for(;c=t:o.to>t);(n||(n=[])).push(new Lt(a,o.from,l?null:o.to));}}return n}(r,i,a),s=function(e,t,r){var n;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!r||o.marker.insertLeft)){var l=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&l)for(var b=0;bt)&&(!r||Dt(r,o.marker)<0)&&(r=o.marker);}return r}function Bt(e,t,r,n,i){var o=qe(e,t),a=Tt&&o.markedSpans;if(a)for(var l=0;l=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?it(c.to,r)>=0:it(c.to,r)>0)||u>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?it(c.from,n)<=0:it(c.from,n)<0)))return !0}}}function $t(e){for(var t;t=Ft(e);)e=t.find(-1,!0).line;return e}function Rt(e,t){var r=qe(e,t),n=$t(r);return r==n?t:Je(n)}function Zt(e,t){if(t>e.lastLine())return t;var r,n=qe(e,t);if(!jt(e,n))return t;for(;r=It(n);)n=r.find(1,!0).line;return Je(n)+1}function jt(e,t){var r=Tt&&t.markedSpans;if(r)for(var n=void 0,i=0;it.maxLineLength&&(t.maxLineLength=r,t.maxLine=e);}));}var qt=function(e,t,r){this.text=e,Nt(this,t),this.height=r?r(this):1;};function Xt(e){e.parent=null,_t(e);}qt.prototype.lineNo=function(){return Je(this)},ke(qt);var Yt={},Qt={};function Jt(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?Qt:Yt;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function er(e,t){var r=_("span",null,null,s?"padding-right: .1px":null),n={pre:_("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;n.pos=0,n.addToken=rr,Ne(e.display.measure)&&(a=fe(o,e.doc.direction))&&(n.addToken=nr(n.addToken,a)),n.map=[],or(o,n,mt(e,o,t!=e.display.externalMeasured&&Je(o))),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=D(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=D(o.styleClasses.textClass,n.textClass||""))),0==n.map.length&&n.map.push(0,0,n.content.appendChild(_e(e.display.measure))),0==i?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}));}if(s){var l=n.content.lastChild;(/\bcm-tab\b/.test(l.className)||l.querySelector&&l.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack");}return ve(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=D(n.pre.className,n.textClass||"")),n}function tr(e){var t=O("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function rr(e,t,r,n,i,o,s){if(t){var c,u=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",i=0;ic&&d.from<=c);f++);if(d.to>=u)return e(r,n,i,o,a,l,s);e(r,n.slice(0,d.to-c),i,o,null,l,s),o=null,n=n.slice(d.to-c),c=d.to;}}}function ir(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1;}function or(e,t,r){var n=e.markedSpans,i=e.text,o=0;if(n)for(var a,l,s,c,u,d,f,h=i.length,p=0,m=1,g="",v=0;;){if(v==p){s=c=u=l="",f=null,d=null,v=1/0;for(var y=[],b=void 0,w=0;wp||x.collapsed&&k.to==p&&k.from==p)){if(null!=k.to&&k.to!=p&&v>k.to&&(v=k.to,c=""),x.className&&(s+=" "+x.className),x.css&&(l=(l?l+";":"")+x.css),x.startStyle&&k.from==p&&(u+=" "+x.startStyle),x.endStyle&&k.to==v&&(b||(b=[])).push(x.endStyle,k.to),x.title&&((f||(f={})).title=x.title),x.attributes)for(var C in x.attributes)(f||(f={}))[C]=x.attributes[C];x.collapsed&&(!d||Dt(d.marker,x)<0)&&(d=k);}else k.from>p&&v>k.from&&(v=k.from);}if(b)for(var S=0;S=h)break;for(var L=Math.min(h,v);;){if(g){var A=p+g.length;if(!d){var M=A>L?g.slice(0,L-p):g;t.addToken(t,M,a?a+s:s,u,p+M.length==v?c:"",l,f);}if(A>=L){g=g.slice(L-p),p=L;break}p=A,u="";}g=i.slice(o,o=r[m++]),a=Jt(r[m++],t.cm.options);}}else for(var z=1;zr)return {map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Nr(e,t,r,n){return Dr(e,Er(e,t),r,n)}function Pr(e,t){if(t>=e.display.viewFrom&&t=r.lineN&&t2&&o.push((s.bottom+c.top)/2-r.top);}}o.push(r.bottom-r.top);}}(e,t.view,t.rect),t.hasHeights=!0),o=function(e,t,r,n){var i,o=Ir(t.map,r,n),s=o.node,c=o.start,u=o.end,d=o.collapse;if(3==s.nodeType){for(var f=0;f<4;f++){for(;c&&ae(t.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u1}(e))return t;var r=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return {left:t.left*r,right:t.right*r,top:t.top*n,bottom:t.bottom*n}}(e.display.measure,i));}else {var h;c>0&&(d=n="right"),i=e.options.lineWrapping&&(h=s.getClientRects()).length>1?h["right"==n?h.length-1:0]:s.getBoundingClientRect();}if(a&&l<9&&!c&&(!i||!i.left&&!i.right)){var p=s.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+ln(e.display),top:p.top,bottom:p.bottom}:Fr;}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;bt)&&(i=(o=s-l)-1,t>=s&&(a="right")),null!=i){if(n=e[c+2],l==s&&r==(n.insertLeft?"left":"right")&&(a=r),"left"==r&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)n=e[2+(c-=3)],a="left";if("right"==r&&i==s-l)for(;c=0&&(r=e[i]).left==r.right;i--);return r}function Br(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=n.text.length?(s=n.text.length,c="before"):s<=0&&(s=0,c="after"),!l)return a("before"==c?s-1:s,"before"==c);function u(e,t,r){return a(r?e-1:e,1==l[t].level!=r)}var d=ue(l,s,c),f=ce,h=u(s,d,"before"==c);return null!=f&&(h.other=u(s,f,"before"!=c)),h}function Xr(e,t){var r=0;t=ut(e.doc,t),e.options.lineWrapping||(r=ln(e.display)*t.ch);var n=qe(e.doc,t.line),i=Vt(n)+Tr(e.display);return {left:r,right:r,top:i,bottom:i+n.height}}function Yr(e,t,r,n,i){var o=nt(e,t,r);return o.xRel=i,n&&(o.outside=n),o}function Qr(e,t,r){var n=e.doc;if((r+=e.display.viewOffset)<0)return Yr(n.first,0,null,-1,-1);var i=et(n,r),o=n.first+n.size-1;if(i>o)return Yr(n.first+n.size-1,qe(n,o).text.length,null,1,1);t<0&&(t=0);for(var a=qe(n,i);;){var l=rn(e,a,i,t,r),s=Ht(a,l.ch+(l.xRel>0||l.outside>0?1:0));if(!s)return l;var c=s.find(1);if(c.line==i)return c;a=qe(n,i=c.line);}}function Jr(e,t,r,n){n-=Ur(t);var i=t.text.length,o=se((function(t){return Dr(e,r,t-1).bottom<=n}),i,0);return {begin:o,end:i=se((function(t){return Dr(e,r,t).top>n}),o,i)}}function en(e,t,r,n){return r||(r=Er(e,t)),Jr(e,t,r,Vr(e,t,Dr(e,r,n),"line").top)}function tn(e,t,r,n){return !(e.bottom<=r)&&(e.top>r||(n?e.left:e.right)>t)}function rn(e,t,r,n,i){i-=Vt(t);var o=Er(e,t),a=Ur(t),l=0,s=t.text.length,c=!0,u=fe(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?on:nn)(e,t,r,o,u,n,i);l=(c=1!=d.level)?d.from:d.to-1,s=c?d.to:d.from-1;}var f,h,p=null,m=null,g=se((function(t){var r=Dr(e,o,t);return r.top+=a,r.bottom+=a,!!tn(r,n,i,!1)&&(r.top<=i&&r.left<=n&&(p=t,m=r),!0)}),l,s),v=!1;if(m){var y=n-m.left=w.bottom?1:0;}return Yr(r,g=le(t.text,g,1),h,v,n-f)}function nn(e,t,r,n,i,o,a){var l=se((function(l){var s=i[l],c=1!=s.level;return tn(qr(e,nt(r,c?s.to:s.from,c?"before":"after"),"line",t,n),o,a,!0)}),0,i.length-1),s=i[l];if(l>0){var c=1!=s.level,u=qr(e,nt(r,c?s.from:s.to,c?"after":"before"),"line",t,n);tn(u,o,a,!0)&&u.top>a&&(s=i[l-1]);}return s}function on(e,t,r,n,i,o,a){var l=Jr(e,t,n,a),s=l.begin,c=l.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,d=null,f=0;f=c||h.to<=s)){var p=Dr(e,n,1!=h.level?Math.min(c,h.to)-1:Math.max(s,h.from)).right,m=pm)&&(u=h,d=m);}}return u||(u=i[i.length-1]),u.fromc&&(u={from:u.from,to:c,level:u.level}),u}function an(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Wr){Wr=O("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Wr.appendChild(document.createTextNode("x")),Wr.appendChild(O("br"));Wr.appendChild(document.createTextNode("x"));}z(e.measure,Wr);var r=Wr.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),M(e.measure),r||1}function ln(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=O("span","xxxxxxxxxx"),r=O("pre",[t],"CodeMirror-line-like");z(e.measure,r);var n=t.getBoundingClientRect(),i=(n.right-n.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function sn(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var l=e.display.gutterSpecs[a].className;r[l]=o.offsetLeft+o.clientLeft+i,n[l]=o.clientWidth;}return {fixedPos:cn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function cn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function un(e){var t=an(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/ln(e.display)-3);return function(i){if(jt(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(s=qe(e.doc,c.line).text).length==c.ch){var u=$(s,s.length,e.options.tabSize)-s.length;c=nt(c.line,Math.max(0,Math.round((o-Ar(e.display).left)/ln(e.display))-u));}return c}function hn(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,n=0;nt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Tt&&Rt(e.doc,t)i.viewFrom?gn(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)gn(e);else if(t<=i.viewFrom){var o=vn(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):gn(e);}else if(r>=i.viewTo){var a=vn(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):gn(e);}else {var l=vn(e,t,t,-1),s=vn(e,r,r+n,1);l&&s?(i.view=i.view.slice(0,l.index).concat(lr(e,l.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=n):gn(e);}var c=i.externalMeasured;c&&(r=i.lineN&&t=n.viewTo)){var o=n.view[hn(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==Z(a,r)&&a.push(r);}}}function gn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0;}function vn(e,t,r,n){var i,o=hn(e,t),a=e.display.view;if(!Tt||r==e.doc.first+e.doc.size)return {index:o,lineN:r};for(var l=e.display.viewFrom,s=0;s0){if(o==a.length-1)return null;i=l+a[o].size-t,o++;}else i=l-t;t+=i,r+=i;}for(;Rt(e.doc,r)!=r;){if(o==(n<0?0:a.length-1))return null;r+=n*a[o-(n<0?1:0)].size,o+=n;}return {index:o,lineN:r}}function yn(e){for(var t=e.display.view,r=0,n=0;n=e.display.viewTo||s.to().line0?a:e.defaultCharWidth())+"px";}if(n.other){var l=r.appendChild(O("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));l.style.display="",l.style.left=n.other.left+"px",l.style.top=n.other.top+"px",l.style.height=.85*(n.other.bottom-n.other.top)+"px";}}function xn(e,t){return e.top-t.top||e.left-t.left}function Cn(e,t,r){var n=e.display,i=e.doc,o=document.createDocumentFragment(),a=Ar(e.display),l=a.left,s=Math.max(n.sizerWidth,zr(e)-n.sizer.offsetLeft)-a.right,c="ltr"==i.direction;function u(e,t,r,n){t<0&&(t=0),t=Math.round(t),n=Math.round(n),o.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==r?s-e:r)+"px;\n height: "+(n-t)+"px"));}function d(t,r,n){var o,a,d=qe(i,t),f=d.text.length;function h(r,n){return Gr(e,nt(t,r),"div",d,n)}function p(t,r,n){var i=en(e,d,null,t),o="ltr"==r==("after"==n)?"left":"right";return h("after"==n?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),o)[o]}var m=fe(d,i.direction);return function(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,o=0;ot||t==r&&a.to==t)&&(n(Math.max(a.from,t),Math.min(a.to,r),1==a.level?"rtl":"ltr",o),i=!0);}i||n(t,r,"ltr");}(m,r||0,null==n?f:n,(function(e,t,i,d){var g="ltr"==i,v=h(e,g?"left":"right"),y=h(t-1,g?"right":"left"),b=null==r&&0==e,w=null==n&&t==f,k=0==d,x=!m||d==m.length-1;if(y.top-v.top<=3){var C=(c?w:b)&&x,S=(c?b:w)&&k?l:(g?v:y).left,T=C?s:(g?y:v).right;u(S,v.top,T-S,v.bottom);}else {var L,A,M,z;g?(L=c&&b&&k?l:v.left,A=c?s:p(e,i,"before"),M=c?l:p(t,i,"after"),z=c&&w&&x?s:y.right):(L=c?p(e,i,"before"):l,A=!c&&b&&k?s:v.right,M=!c&&w&&x?l:y.left,z=c?p(t,i,"after"):s),u(L,v.top,A-L,v.bottom),v.bottom0?t.blinker=setInterval((function(){e.hasFocus()||Mn(e),t.cursorDiv.style.visibility=(r=!r)?"":"hidden";}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden");}}function Tn(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||An(e));}function Ln(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Mn(e));}),100);}function An(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ve(e,"focus",e,t),e.state.focused=!0,E(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),s&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Sn(e));}function Mn(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ve(e,"blur",e,t),e.state.focused=!1,A(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1);}),150));}function zn(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,s=0;s.005||m<-.005)&&(ie.display.sizerWidth){var v=Math.ceil(f/ln(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=c.line,e.display.maxLineChanged=!0);}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o);}function On(e){if(e.widgets)for(var t=0;t=a&&(o=et(t,Vt(qe(t,s))-e.wrapper.clientHeight),a=s);}return {from:o,to:Math.max(a,o+1)}}function Nn(e,t){var r=e.display,n=an(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:r.scroller.scrollTop,o=Or(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var l=e.doc.height+Lr(r),s=t.topl-n;if(t.topi+o){var u=Math.min(t.top,(c?l:t.bottom)-o);u!=i&&(a.scrollTop=u);}var d=e.options.fixedGutter?0:r.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft-d,h=zr(e)-r.gutters.offsetWidth,p=t.right-t.left>h;return p&&(t.right=t.left+h),t.left<10?a.scrollLeft=0:t.lefth+f-3&&(a.scrollLeft=t.right+(p?0:10)-h),a}function Pn(e,t){null!=t&&(Wn(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t);}function En(e){Wn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin};}function Dn(e,t,r){null==t&&null==r||Wn(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r);}function Wn(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Fn(e,Xr(e,t.from),Xr(e,t.to),t.margin));}function Fn(e,t,r,n){var i=Nn(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});Dn(e,i.scrollLeft,i.scrollTop);}function In(e,t){Math.abs(e.doc.scrollTop-t)<2||(r||fi(e,{top:t}),Hn(e,t,!0),r&&fi(e),ai(e,100));}function Hn(e,t,r){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t));}function Bn(e,t,r,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,mi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t));}function $n(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+Lr(e.display));return {clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+Mr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var Rn=function(e,t,r){this.cm=r;var n=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),pe(n,"scroll",(function(){n.clientHeight&&t(n.scrollTop,"vertical");})),pe(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal");})),this.checkedZeroWidth=!1,a&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px");};Rn.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px";}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px";}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return !this.checkedZeroWidth&&e.clientHeight>0&&(0==n&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},Rn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz");},Rn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert");},Rn.prototype.zeroWidthHack=function(){var e=b&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new R,this.disableVert=new R;},Rn.prototype.enableZeroWidthBar=function(e,t,r){e.style.visibility="",t.set(1e3,(function n(){var i=e.getBoundingClientRect();("vert"==r?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,n);}));},Rn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert);};var Zn=function(){};function jn(e,t){t||(t=$n(e));var r=e.display.barWidth,n=e.display.barHeight;Un(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&zn(e),Un(e,$n(e)),r=e.display.barWidth,n=e.display.barHeight;}function Un(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display="";}Zn.prototype.update=function(){return {bottom:0,right:0}},Zn.prototype.setScrollLeft=function(){},Zn.prototype.setScrollTop=function(){},Zn.prototype.clear=function(){};var Vn={native:Rn,null:Zn};function Kn(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&A(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Vn[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),pe(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0);})),t.setAttribute("cm-not-content","true");}),(function(t,r){"horizontal"==r?Bn(e,t):In(e,t);}),e),e.display.scrollbars.addClass&&E(e.display.wrapper,e.display.scrollbars.addClass);}var Gn=0;function qn(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Gn,markArrays:null},t=e.curOp,sr?sr.ops.push(t):t.ownsGroup=sr={ops:[t],delayedCallbacks:[]};}function Xn(e){var t=e.curOp;t&&function(e,t){var r=e.ownsGroup;if(r)try{!function(e){var t=e.delayedCallbacks,r=0;do{for(;r=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new si(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate);}function Qn(e){e.updatedDisplay=e.mustUpdate&&ui(e.cm,e.update);}function Jn(e){var t=e.cm,r=t.display;e.updatedDisplay&&zn(t),e.barMeasure=$n(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Nr(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Mr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-zr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection());}function ei(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft1&&(a=!0)),null!=c.scrollLeft&&(Bn(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}(t,ut(n,e.scrollToPos.from),ut(n,e.scrollToPos.to),e.scrollToPos.margin);!function(e,t){if(!ye(e,"scrollCursorIntoView")){var r=e.display,n=r.sizer.getBoundingClientRect(),i=null,o=r.wrapper.ownerDocument;if(t.top+n.top<0?i=!0:t.bottom+n.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var a=O("div","​",null,"position: absolute;\n top: "+(t.top-r.viewOffset-Tr(e.display))+"px;\n height: "+(t.bottom-t.top+Mr(e)+r.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a);}}}(t,i);}var o=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(o)for(var l=0;l=e.display.viewTo)){var r=+new Date+e.options.workTime,n=gt(e,t.highlightFrontier),i=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(n.line>=e.display.viewFrom){var a=o.styles,l=o.text.length>e.options.maxHighlightLength?Ue(t.mode,n.state):null,s=pt(e,o,n,!0);l&&(n.state=l),o.styles=s.styles;var c=o.styleClasses,u=s.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),f=0;!d&&fr)return ai(e,e.options.workDelay),!0})),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),i.length&&ri(e,(function(){for(var t=0;t=r.viewFrom&&t.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==yn(e))return !1;gi(e)&&(gn(e),t.dims=sn(e));var i=n.first+n.size,o=Math.max(t.visible.from-e.options.viewportMargin,n.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFroma&&r.viewTo-a<20&&(a=Math.min(i,r.viewTo)),Tt&&(o=Rt(e.doc,o),a=Zt(e.doc,a));var l=o!=r.viewFrom||a!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;!function(e,t,r){var n=e.display;0==n.view.length||t>=n.viewTo||r<=n.viewFrom?(n.view=lr(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=lr(e,t,n.viewFrom).concat(n.view):n.viewFromr&&(n.view=n.view.slice(0,hn(e,r)))),n.viewTo=r;}(e,o,a),r.viewOffset=Vt(qe(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var c=yn(e);if(!l&&0==c&&!t.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return !1;var u=ci(e);return c>4&&(r.lineDiv.style.display="none"),function(e,t,r){var n=e.display,i=e.options.lineNumbers,o=n.lineDiv,a=o.firstChild;function l(t){var r=t.nextSibling;return s&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),r}for(var c=n.view,u=n.viewFrom,d=0;d-1&&(h=!1),fr(e,f,u,r)),h&&(M(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(rt(e.options,u)))),a=f.node.nextSibling;}else {var p=br(e,f,u,r);o.insertBefore(p,a);}u+=f.size;}for(;a;)a=l(a);}(e,r.updateLineNumbers,t.dims),c>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,function(e){if(e&&e.activeElt&&e.activeElt!=P(e.activeElt.ownerDocument)&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&N(document.body,e.anchorNode)&&N(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,r=t.defaultView.getSelection(),n=t.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),r.removeAllRanges(),r.addRange(n),r.extend(e.focusNode,e.focusOffset);}}(u),M(r.cursorDiv),M(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,l&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,ai(e,400)),r.updateLineNumbers=null,!0}function di(e,t){for(var r=t.viewport,n=!0;;n=!1){if(n&&e.options.lineWrapping&&t.oldDisplayWidth!=zr(e))n&&(t.visible=_n(e.display,e.doc,r));else if(r&&null!=r.top&&(r={top:Math.min(e.doc.height+Lr(e.display)-Or(e),r.top)}),t.visible=_n(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!ui(e,t))break;zn(e);var i=$n(e);bn(e),jn(e,i),pi(e,i),t.force=!1;}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo);}function fi(e,t){var r=new si(e,t);if(ui(e,r)){zn(e),di(e,r);var n=$n(e);bn(e),jn(e,n),pi(e,n),r.finish();}}function hi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",ur(e,"gutterChanged",e);}function pi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Mr(e)+"px";}function mi(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=cn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=n+"px",a=0;a=105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),a&&l<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),s||r&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=vi(i.gutters,i.lineNumbers),yi(o),n.init(o);}si.prototype.signal=function(e,t){we(e,t)&&this.events.push(arguments);},si.prototype.finish=function(){for(var e=0;ec.clientWidth,p=c.scrollHeight>c.clientHeight;if(i&&h||o&&p){if(o&&b&&s)e:for(var m=t.target,g=l.view;m!=c;m=m.parentNode)for(var v=0;v=0&&it(e,n.to())<=0)return r}return -1};var Ai=function(e,t){this.anchor=e,this.head=t;};function Mi(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort((function(e,t){return it(e.from(),t.from())})),r=Z(t,i);for(var o=1;o0:s>=0){var c=st(l.from(),a.from()),u=lt(l.to(),a.to()),d=l.empty()?a.from()==a.head:l.from()==l.head;o<=r&&--r,t.splice(--o,2,new Ai(d?u:c,d?c:u));}}return new Li(t,r)}function zi(e,t){return new Li([new Ai(e,t||e)],0)}function Oi(e){return e.text?nt(e.from.line+e.text.length-1,Y(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function _i(e,t){if(it(e,t.from)<0)return e;if(it(e,t.to)<=0)return Oi(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=Oi(t).ch-t.to.ch),nt(r,n)}function Ni(e,t){for(var r=[],n=0;n1&&e.remove(l.line+1,p-1),e.insert(l.line+1,v);}ur(e,"change",e,t);}function Ii(e,t,r){!function e(n,i,o){if(n.linked)for(var a=0;al-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Zi(e.done),Y(e.done)):e.done.length&&!Y(e.done).ranges?Y(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Y(e.done)):void 0}(i,i.lastOp==n)))a=Y(o.changes),0==it(t.from,t.to)&&0==it(t.from,a.to)?a.to=Oi(t):o.changes.push(Ri(e,t));else {var s=Y(i.done);for(s&&s.ranges||Ui(e.sel,i.done),o={changes:[Ri(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift();}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=l,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,a||ve(e,"historyAdded");}function Ui(e,t){var r=Y(t);r&&r.ranges&&r.equals(e)||t.push(e);}function Vi(e,t,r,n){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),(function(r){r.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=r.markedSpans),++o;}));}function Ki(e){if(!e)return null;for(var t,r=0;r-1&&(Y(l)[d]=c[d],delete c[d]);}}}return n}function Xi(e,t,r,n){if(n){var i=e.anchor;if(r){var o=it(t,i)<0;o!=it(r,i)<0?(i=t,t=r):o!=it(t,r)<0&&(t=r);}return new Ai(i,t)}return new Ai(r||t,t)}function Yi(e,t,r,n,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),ro(e,new Li([Xi(e.sel.primary(),t,r,i)],0),n);}function Qi(e,t,r){for(var n=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:l.to>t.ch))){if(i&&(ve(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!s.atomic)continue;if(r){var d=s.find(n<0?1:-1),f=void 0;if((n<0?u:c)&&(d=co(e,d,-n,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(f=it(d,r))&&(n<0?f<0:f>0))return lo(e,d,t,n,i)}var h=s.find(n<0?-1:1);return (n<0?c:u)&&(h=co(e,h,n,h.line==t.line?o:null)),h?lo(e,h,t,n,i):null}}return t}function so(e,t,r,n,i){var o=n||1;return lo(e,t,r,o,i)||!i&&lo(e,t,r,o,!0)||lo(e,t,r,-o,i)||!i&&lo(e,t,r,-o,!0)||(e.cantEdit=!0,nt(e.first,0))}function co(e,t,r,n){return r<0&&0==t.ch?t.line>e.first?ut(e,nt(t.line-1)):null:r>0&&t.ch==(n||qe(e,t.line)).text.length?t.line0)){var u=[s,1],d=it(c.from,l.from),f=it(c.to,l.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:l.from}),(f>0||!a.inclusiveRight&&!f)&&u.push({from:l.to,to:c.to}),i.splice.apply(i,u),s+=u.length-3;}}return i}(e,t.from,t.to);if(n)for(var i=n.length-1;i>=0;--i)po(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text,origin:t.origin});else po(e,t);}}function po(e,t){if(1!=t.text.length||""!=t.text[0]||0!=it(t.from,t.to)){var r=Ni(e,t);ji(e,t,r,e.cm?e.cm.curOp.id:NaN),vo(e,t,r,zt(e,t));var n=[];Ii(e,(function(e,r){r||-1!=Z(n,e.history)||(ko(e.history,t),n.push(e.history)),vo(e,t,null,zt(e,t));}));}}function mo(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!n||r){for(var i,o=e.history,a=e.sel,l="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,c=0;c=0;--h){var p=f(h);if(p)return p.v}}}}function go(e,t){if(0!=t&&(e.first+=t,e.sel=new Li(Q(e.sel.ranges,(function(e){return new Ai(nt(e.anchor.line+t,e.anchor.ch),nt(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){pn(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;ne.lastLine())){if(t.from.lineo&&(t={from:t.from,to:nt(o,qe(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Xe(e,t.from,t.to),r||(r=Ni(e,t)),e.cm?function(e,t,r){var n=e.doc,i=e.display,o=t.from,a=t.to,l=!1,s=o.line;e.options.lineWrapping||(s=Je($t(qe(n,o.line))),n.iter(s,a.line+1,(function(e){if(e==i.maxLine)return l=!0,!0}))),n.sel.contains(t.from,t.to)>-1&&be(e),Fi(n,t,r,un(e)),e.options.lineWrapping||(n.iter(s,o.line+t.text.length,(function(e){var t=Kt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,l=!1);})),l&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontierr;n--){var i=qe(e,n).stateAfter;if(i&&(!(i instanceof ft)||n+i.lookAhead1||!(this.children[0]instanceof Co))){var l=[];this.collapse(l),this.children=[new Co(l)],this.children[0].parent=this;}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,l=a;l10);e.parent.maybeSpill();}},iterN:function(e,t,r){for(var n=0;n0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=_("span",[o.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Bt(e,t.line,t,r,o)||t.line!=r.line&&Bt(e,r.line,t,r,o))throw Error("Inserting collapsed marker partially overlapping an existing one");Tt=!0;}o.addToHistory&&ji(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var l,s=t.line,c=e.cm;if(e.iter(s,r.line+1,(function(n){c&&o.collapsed&&!c.options.lineWrapping&&$t(n)==c.display.maxLine&&(l=!0),o.collapsed&&s!=t.line&&Qe(n,0),function(e,t,r){var n=r&&window.WeakSet&&(r.markedSpans||(r.markedSpans=new WeakSet));n&&e.markedSpans&&n.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],n&&n.add(e.markedSpans)),t.marker.attachLine(e);}(n,new Lt(o,s==t.line?t.ch:null,s==r.line?r.ch:null),e.cm&&e.cm.curOp),++s;})),o.collapsed&&e.iter(t.line,r.line+1,(function(t){jt(e,t)&&Qe(t,0);})),o.clearOnEnter&&pe(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(St=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Ao,o.atomic=!0),c){if(l&&(c.curOp.updateMaxLine=!0),o.collapsed)pn(c,t.line,r.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=r.line;u++)mn(c,u,"text");o.atomic&&oo(c.doc),ur(c,"markerAdded",c,o);}return o}Mo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&qn(e),we(this,"clear")){var r=this.find();r&&ur(this,"clear",r.from,r.to);}for(var n=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0);}null!=n&&e&&this.collapsed&&pn(e,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&oo(e.doc)),e&&ur(e,"markerCleared",e,this,n,i),t&&Xn(e),this.parent&&this.parent.clear();}},Mo.prototype.find=function(e,t){var r,n;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;s--)ho(this,n[s]);l?to(this,l):this.cm&&En(this.cm);})),undo:oi((function(){mo(this,"undo");})),redo:oi((function(){mo(this,"redo");})),undoSelection:oi((function(){mo(this,"undo",!0);})),redoSelection:oi((function(){mo(this,"redo",!0);})),setExtending:function(e){this.extend=e;},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n=e.ch)&&t.push(i.marker.parent||i.marker);}return t},findMarks:function(e,t,r){e=ut(this,e),t=ut(this,t);var n=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var l=0;l=s.to||null==s.from&&i!=e.line||null!=s.from&&i==t.line&&s.from>=t.ch||r&&!r(s.marker)||n.push(s.marker.parent||s.marker);}++i;})),n},getAllMarks:function(){var e=[];return this.iter((function(t){var r=t.markedSpans;if(r)for(var n=0;ne)return t=e,!0;e-=o,++r;})),ut(this,nt(r,t))},indexFromPos:function(e){var t=(e=ut(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var d=e.dataTransfer.getData("Text");if(d){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),no(t.doc,zi(r,r)),f)for(var h=0;h=0;t--)yo(e.doc,"",n[t].from,n[t].to,"+delete");En(e);}));}function ea(e,t,r){var n=le(e.text,t+r,r);return n<0||n>e.text.length?null:n}function ta(e,t,r){var n=ea(e,t.ch,r);return null==n?null:new nt(t.line,n,r<0?"after":"before")}function ra(e,t,r,n,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=fe(r,t.doc.direction);if(o){var a,l=i<0?Y(o):o[0],s=i<0==(1==l.level)?"after":"before";if(l.level>0||"rtl"==t.doc.direction){var c=Er(t,r);a=i<0?r.text.length-1:0;var u=Dr(t,c,a).top;a=se((function(e){return Dr(t,c,e).top==u}),i<0==(1==l.level)?l.from:l.to-1,a),"before"==s&&(a=ea(r,a,1));}else a=i<0?l.to:l.from;return new nt(n,a,s)}}return new nt(n,i<0?r.text.length:0,i<0?"before":"after")}Uo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Uo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Uo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Uo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Uo.default=b?Uo.macDefault:Uo.pcDefault;var na={selectAll:uo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),U)},killLine:function(e){return Jo(e,(function(t){if(t.empty()){var r=qe(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line0)i=new nt(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),nt(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=qe(e.doc,i.line-1).text;a&&(i=new nt(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),nt(i.line-1,a.length-1),i,"+transpose"));}r.push(new Ai(i,i));}e.setSelections(r);}))},newlineAndIndent:function(e){return ri(e,(function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;n-1&&(it((i=c.ranges[i]).from(),t)<0||t.xRel>0)&&(it(i.to(),t)>0||t.xRel<0)?function(e,t,r,n){var i=e.display,o=!1,c=ni(e,(function(t){s&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Ln(e)),ge(i.wrapper.ownerDocument,"mouseup",c),ge(i.wrapper.ownerDocument,"mousemove",u),ge(i.scroller,"dragstart",d),ge(i.scroller,"drop",c),o||(xe(t),n.addNew||Yi(e.doc,r,null,null,n.extend),s&&!h||a&&9==l?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus();}),20):i.input.focus());})),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10;},d=function(){return o=!0};s&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!n.moveOnDrag,pe(i.wrapper.ownerDocument,"mouseup",c),pe(i.wrapper.ownerDocument,"mousemove",u),pe(i.scroller,"dragstart",d),pe(i.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop();}(e,n,t,o):function(e,t,r,n){a&&Ln(e);var i=e.display,o=e.doc;xe(t);var l,s,c=o.sel,u=c.ranges;if(n.addNew&&!n.extend?(s=o.sel.contains(r),l=s>-1?u[s]:new Ai(r,r)):(l=o.sel.primary(),s=o.sel.primIndex),"rectangle"==n.unit)n.addNew||(l=new Ai(r,r)),r=fn(e,t,!0,!0),s=-1;else {var d=ba(e,r,n.unit);l=n.extend?Xi(l,d.anchor,d.head,n.extend):d;}n.addNew?-1==s?(s=u.length,ro(o,Mi(e,u.concat([l]),s),{scroll:!1,origin:"*mouse"})):u.length>1&&u[s].empty()&&"char"==n.unit&&!n.extend?(ro(o,Mi(e,u.slice(0,s).concat(u.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),c=o.sel):Ji(o,s,l,V):(s=0,ro(o,new Li([l],0),V),c=o.sel);var f=r;var h=i.wrapper.getBoundingClientRect(),p=0;function m(t){var a=++p,u=fn(e,t,!0,"rectangle"==n.unit);if(u)if(0!=it(u,f)){e.curOp.focus=P(F(e)),function(t){if(0!=it(f,t))if(f=t,"rectangle"==n.unit){for(var i=[],a=e.options.tabSize,u=$(qe(o,r.line).text,r.ch,a),d=$(qe(o,t.line).text,t.ch,a),h=Math.min(u,d),p=Math.max(u,d),m=Math.min(r.line,t.line),g=Math.min(e.lastLine(),Math.max(r.line,t.line));m<=g;m++){var v=qe(o,m).text,y=G(v,h,a);h==p?i.push(new Ai(nt(m,y),nt(m,y))):v.length>y&&i.push(new Ai(nt(m,y),nt(m,G(v,p,a))));}i.length||i.push(new Ai(r,r)),ro(o,Mi(e,c.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t);}else {var b,w=l,k=ba(e,t,n.unit),x=w.anchor;it(k.anchor,x)>0?(b=k.head,x=st(w.from(),k.anchor)):(b=k.anchor,x=lt(w.to(),k.head));var C=c.ranges.slice(0);C[s]=function(e,t){var r=t.anchor,n=t.head,i=qe(e.doc,r.line);if(0==it(r,n)&&r.sticky==n.sticky)return t;var o=fe(i);if(!o)return t;var a=ue(o,r.ch,r.sticky),l=o[a];if(l.from!=r.ch&&l.to!=r.ch)return t;var s,c=a+(l.from==r.ch==(1!=l.level)?0:1);if(0==c||c==o.length)return t;if(n.line!=r.line)s=(n.line-r.line)*("ltr"==e.doc.direction?1:-1)>0;else {var u=ue(o,n.ch,n.sticky),d=u-a||(n.ch-r.ch)*(1==l.level?-1:1);s=u==c-1||u==c?d<0:d>0;}var f=o[c+(s?-1:0)],h=s==(1==f.level),p=h?f.from:f.to,m=h?"after":"before";return r.ch==p&&r.sticky==m?t:new Ai(new nt(r.line,p,m),n)}(e,new Ai(ut(o,x),b)),ro(o,Mi(e,C,s),V);}}(u);var d=_n(i,o);(u.line>=d.to||u.lineh.bottom?20:0;g&&setTimeout(ni(e,(function(){p==a&&(i.scroller.scrollTop+=g,m(t));})),50);}}function g(t){e.state.selectingText=!1,p=1/0,t&&(xe(t),i.input.focus()),ge(i.wrapper.ownerDocument,"mousemove",v),ge(i.wrapper.ownerDocument,"mouseup",y),o.history.lastSelOrigin=null;}var v=ni(e,(function(e){0!==e.buttons&&Ae(e)?m(e):g(e);})),y=ni(e,g);e.state.selectingText=y,pe(i.wrapper.ownerDocument,"mousemove",v),pe(i.wrapper.ownerDocument,"mouseup",y);}(e,n,t,o);}(t,n,o,e):Le(e)==r.scroller&&xe(e):2==i?(n&&Yi(t.doc,n),setTimeout((function(){return r.input.focus()}),20)):3==i&&(S?t.display.input.onContextMenu(e):Ln(t)));}}function ba(e,t,r){if("char"==r)return new Ai(t,t);if("word"==r)return e.findWordAt(t);if("line"==r)return new Ai(nt(t.line,0),ut(e.doc,nt(t.line+1,0)));var n=r(e,t);return new Ai(n.from,n.to)}function wa(e,t,r,n){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY;}catch(e){return !1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return !1;n&&xe(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(o>l.bottom||!we(e,r))return Se(t);o-=l.top-a.viewOffset;for(var s=0;s=i)return ve(e,r,e,et(e.doc,o),e.display.gutterSpecs[s].className,t),Se(t)}}function ka(e,t){return wa(e,t,"gutterClick",!0)}function xa(e,t){Sr(e.display,t)||function(e,t){return !!we(e,"gutterContextMenu")&&wa(e,t,"gutterContextMenu",!1)}(e,t)||ye(e,t,"contextmenu")||S||e.display.input.onContextMenu(t);}function Ca(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Rr(e);}va.prototype.compare=function(e,t,r){return this.time+400>e&&0==it(t,this.pos)&&r==this.button};var Sa={toString:function(){return "CodeMirror.Init"}},Ta={},La={};function Aa(e,t,r){if(!t!=!(r&&r!=Sa)){var n=e.display.dragFunctions,i=t?pe:ge;i(e.display.scroller,"dragstart",n.start),i(e.display.scroller,"dragenter",n.enter),i(e.display.scroller,"dragover",n.over),i(e.display.scroller,"dragleave",n.leave),i(e.display.scroller,"drop",n.drop);}}function Ma(e){e.options.lineWrapping?(E(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(A(e.display.wrapper,"CodeMirror-wrap"),Gt(e)),dn(e),pn(e),Rr(e),setTimeout((function(){return jn(e)}),100);}function za(e,t){var r=this;if(!(this instanceof za))return new za(e,t);this.options=t=t?B(t):{},B(Ta,t,!1);var n=t.value;"string"==typeof n?n=new Eo(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new za.inputStyles[t.inputStyle](this),o=this.display=new wi(e,n,i,t);for(var c in o.wrapper.CodeMirror=this,Ca(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Kn(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new R,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&l<11&&setTimeout((function(){return r.display.input.reset(!0)}),20),function(e){var t=e.display;pe(t.scroller,"mousedown",ni(e,ya)),pe(t.scroller,"dblclick",a&&l<11?ni(e,(function(t){if(!ye(e,t)){var r=fn(e,t);if(r&&!ka(e,t)&&!Sr(e.display,t)){xe(t);var n=e.findWordAt(r);Yi(e.doc,n.anchor,n.head);}}})):function(t){return ye(e,t)||xe(t)}),pe(t.scroller,"contextmenu",(function(t){return xa(e,t)})),pe(t.input.getField(),"contextmenu",(function(r){t.scroller.contains(r.target)||xa(e,r);}));var r,n={end:0};function i(){t.activeTouch&&(r=setTimeout((function(){return t.activeTouch=null}),1e3),(n=t.activeTouch).end=+new Date);}function o(e,t){if(null==t.left)return !0;var r=t.left-e.left,n=t.top-e.top;return r*r+n*n>400}pe(t.scroller,"touchstart",(function(i){if(!ye(e,i)&&!function(e){if(1!=e.touches.length)return !1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!ka(e,i)){t.input.ensurePolled(),clearTimeout(r);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-n.end<=300?n:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY);}})),pe(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0);})),pe(t.scroller,"touchend",(function(r){var n=t.activeTouch;if(n&&!Sr(t,r)&&null!=n.left&&!n.moved&&new Date-n.start<300){var a,l=e.coordsChar(t.activeTouch,"page");a=!n.prev||o(n,n.prev)?new Ai(l,l):!n.prev.prev||o(n,n.prev.prev)?e.findWordAt(l):new Ai(nt(l.line,0),ut(e.doc,nt(l.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),xe(r);}i();})),pe(t.scroller,"touchcancel",i),pe(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(In(e,t.scroller.scrollTop),Bn(e,t.scroller.scrollLeft,!0),ve(e,"scroll",e));})),pe(t.scroller,"mousewheel",(function(t){return Ti(e,t)})),pe(t.scroller,"DOMMouseScroll",(function(t){return Ti(e,t)})),pe(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ye(e,t)||Te(t);},over:function(t){ye(e,t)||(function(e,t){var r=fn(e,t);if(r){var n=document.createDocumentFragment();kn(e,r,n),e.display.dragCursor||(e.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),z(e.display.dragCursor,n);}}(e,t),Te(t));},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Do<100))Te(t);else if(!ye(e,t)&&!Sr(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!h)){var r=O("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(r.width=r.height=1,e.display.wrapper.appendChild(r),r._top=r.offsetTop),t.dataTransfer.setDragImage(r,0,0),f&&r.parentNode.removeChild(r);}}(e,t)},drop:ni(e,Wo),leave:function(t){ye(e,t)||Fo(e);}};var s=t.input.getField();pe(s,"keyup",(function(t){return ha.call(e,t)})),pe(s,"keydown",ni(e,fa)),pe(s,"keypress",ni(e,pa)),pe(s,"focus",(function(t){return An(e,t)})),pe(s,"blur",(function(t){return Mn(e,t)}));}(this),function(){var e;Ho||(pe(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Io(Bo);}),100));})),pe(window,"blur",(function(){return Io(Mn)})),Ho=!0);}(),qn(this),this.curOp.forceUpdate=!0,Hi(this,n),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){r.hasFocus()&&!r.state.focused&&An(r);}),20):Mn(this),La)La.hasOwnProperty(c)&&La[c](this,t[c],Sa);gi(this),t.finishInit&&t.finishInit(this);for(var u=0;u150)){if(!n)return;r="prev";}}else c=0,r="not";"prev"==r?c=t>o.first?$(qe(o,t-1).text,null,a):0:"add"==r?c=s+e.options.indentUnit:"subtract"==r?c=s-e.options.indentUnit:"number"==typeof r&&(c=s+r),c=Math.max(0,c);var d="",f=0;if(e.options.indentWithTabs)for(var h=Math.floor(c/a);h;--h)f+=a,d+="\t";if(fa,s=Ee(t),c=null;if(l&&n.ranges.length>1)if(Na&&Na.text.join("\n")==t){if(n.ranges.length%Na.text.length==0){c=[];for(var u=0;u=0;f--){var h=n.ranges[f],p=h.from(),m=h.to();h.empty()&&(r&&r>0?p=nt(p.line,p.ch-r):e.state.overwrite&&!l?m=nt(m.line,Math.min(qe(o,m.line).text.length,m.ch+Y(s).length)):l&&Na&&Na.lineWise&&Na.text.join("\n")==s.join("\n")&&(p=m=nt(p.line,0)));var g={from:p,to:m,text:c?c[f%c.length]:s,origin:i||(l?"paste":e.state.cutIncoming>a?"cut":"+input")};ho(e.doc,g),ur(e,"inputRead",e,g);}t&&!l&&Wa(e,t),En(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1;}function Da(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||ri(t,(function(){return Ea(t,r,0,null,"paste")})),!0}function Wa(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var l=0;l-1){a=_a(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(qe(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=_a(e,i.head.line,"smart"));a&&ur(e,"electricInput",e,i.head.line);}}}function Fa(e){for(var t=[],r=[],n=0;n0?0:-1));if(isNaN(u))a=null;else {var d=r>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new nt(t.line,Math.max(0,Math.min(l.text.length,t.ch+r*(d?2:1))),-r);}}else a=i?function(e,t,r,n){var i=fe(t,e.doc.direction);if(!i)return ta(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var o=ue(i,r.ch,r.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(n>0?a.to>r.ch:a.from=a.from&&f>=u.begin)){var h=d?"before":"after";return new nt(r.line,f,h)}}var p=function(e,t,n){for(var o=function(e,t){return t?new nt(r.line,s(e,1),"before"):new nt(r.line,e,"after")};e>=0&&e0==(1!=a.level),c=l?n.begin:s(n.end,-1);if(a.from<=c&&c0?u.end:s(u.begin,-1);return null==g||n>0&&g==t.text.length||!(m=p(n>0?0:i.length-1,n,c(g)))?null:m}(e.cm,l,t,r):ta(l,t,r);if(null==a){if(o||(c=t.line+s)=e.first+e.size||(t=new nt(c,t.ch,t.sticky),!(l=qe(e,c))))return !1;t=ra(i,e.cm,l,t.line,s);}else t=a;return !0}if("char"==n||"codepoint"==n)c();else if("column"==n)c(!0);else if("word"==n||"group"==n)for(var u=null,d="group"==n,f=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(r<0)||c(!h);h=!1){var p=l.text.charAt(t.ch)||"\n",m=ne(p,f)?"w":d&&"\n"==p?"n":!d||/\s/.test(p)?null:"p";if(!d||h||m||(m="s"),u&&u!=m){r<0&&(r=1,c(),t.sticky="after");break}if(m&&(u=m),r>0&&!c(!h))break}var g=so(e,t,o,a,!0);return ot(o,g)&&(g.hitSide=!0),g}function $a(e,t,r,n){var i,o,a=e.doc,l=t.left;if("page"==n){var s=Math.min(e.display.wrapper.clientHeight,I(e).innerHeight||a(e).documentElement.clientHeight),c=Math.max(s-.5*an(e.display),3);i=(r>0?t.bottom:t.top)+r*c;}else "line"==n&&(i=r>0?t.bottom+3:t.top-3);for(;(o=Qr(e,l,i)).outside;){if(r<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*r;}return o}var Ra=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new R,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null;};function Za(e,t){var r=Pr(e,t.line);if(!r||r.hidden)return null;var n=qe(e.doc,t.line),i=_r(r,n,t.line),o=fe(n,e.doc.direction),a="left";o&&(a=ue(o,t.ch)%2?"right":"left");var l=Ir(i.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function ja(e,t){return t&&(e.bad=!0),e}function Ua(e,t,r){var n;if(t==e.display.lineDiv){if(!(n=e.display.lineDiv.childNodes[r]))return ja(e.clipPos(nt(e.display.viewTo-1)),!0);t=null,r=0;}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var i=0;i=t.display.viewTo||o.line=t.display.viewFrom&&Za(t,i)||{node:s[0].measure.map[2],offset:0},u=o.linen.firstLine()&&(a=nt(a.line-1,qe(n.doc,a.line-1).length)),l.ch==qe(n.doc,l.line).text.length&&l.linei.viewTo-1)return !1;a.line==i.viewFrom||0==(e=hn(n,a.line))?(t=Je(i.view[0].line),r=i.view[0].node):(t=Je(i.view[e].line),r=i.view[e-1].node.nextSibling);var s,c,u=hn(n,l.line);if(u==i.view.length-1?(s=i.viewTo-1,c=i.lineDiv.lastChild):(s=Je(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!r)return !1;for(var d=n.doc.splitLines(function(e,t,r,n,i){var o="",a=!1,l=e.doc.lineSeparator(),s=!1;function c(){a&&(o+=l,s&&(o+=l),a=s=!1);}function u(e){e&&(c(),o+=e);}function d(t){if(1==t.nodeType){var r=t.getAttribute("cm-text");if(r)return void u(r);var o,f=t.getAttribute("cm-marker");if(f){var h=e.findMarks(nt(n,0),nt(i+1,0),(g=+f,function(e){return e.id==g}));return void(h.length&&(o=h[0].find(0))&&u(Xe(e.doc,o.from,o.to).join(l)))}if("false"==t.getAttribute("contenteditable"))return;var p=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;p&&c();for(var m=0;m1&&f.length>1;)if(Y(d)==Y(f))d.pop(),f.pop(),s--;else {if(d[0]!=f[0])break;d.shift(),f.shift(),t++;}for(var h=0,p=0,m=d[0],g=f[0],v=Math.min(m.length,g.length);ha.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)h--,p++;d[d.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),d[0]=d[0].slice(h).replace(/\u200b+$/,"");var k=nt(t,h),x=nt(s,f.length?Y(f).length-p:0);return d.length>1||d[0]||it(k,x)?(yo(n.doc,d,k,x,"+input"),!0):void 0},Ra.prototype.ensurePolled=function(){this.forceCompositionEnd();},Ra.prototype.reset=function(){this.forceCompositionEnd();},Ra.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus());},Ra.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null;}e.updateFromDOM();}),80));},Ra.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||ri(this.cm,(function(){return pn(e.cm)}));},Ra.prototype.setUneditable=function(e){e.contentEditable="false";},Ra.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ni(this.cm,Ea)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0));},Ra.prototype.readOnlyChanged=function(e){this.div.contentEditable=("nocursor"!=e)+"";},Ra.prototype.onContextMenu=function(){},Ra.prototype.resetPosition=function(){},Ra.prototype.needsContentAttribute=!0;var Ka=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new R,this.hasSelection=!1,this.composing=null,this.resetting=!1;};Ka.prototype.init=function(e){var t=this,r=this,n=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!ye(n,e)){if(n.somethingSelected())Pa({lineWise:!1,text:n.getSelections()});else {if(!n.options.lineWiseCopyCut)return;var t=Fa(n);Pa({lineWise:!0,text:t.text}),"cut"==e.type?n.setSelections(t.ranges,null,U):(r.prevInput="",i.value=t.text.join("\n"),W(i));}"cut"==e.type&&(n.state.cutIncoming=+new Date);}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),pe(i,"input",(function(){a&&l>=9&&t.hasSelection&&(t.hasSelection=null),r.poll();})),pe(i,"paste",(function(e){ye(n,e)||Da(e,n)||(n.state.pasteIncoming=+new Date,r.fastPoll());})),pe(i,"cut",o),pe(i,"copy",o),pe(e.scroller,"paste",(function(t){if(!Sr(e,t)&&!ye(n,t)){if(!i.dispatchEvent)return n.state.pasteIncoming=+new Date,void r.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o);}})),pe(e.lineSpace,"selectstart",(function(t){Sr(e,t)||xe(t);})),pe(i,"compositionstart",(function(){var e=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:n.markText(e,n.getCursor("to"),{className:"CodeMirror-composing"})};})),pe(i,"compositionend",(function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null);}));},Ka.prototype.createField=function(e){this.wrapper=Ha(),this.textarea=this.wrapper.firstChild;},Ka.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label");},Ka.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=wn(e);if(e.options.moveInputWithCursor){var i=qr(e,r.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left));}return n},Ka.prototype.showSelection=function(e){var t=this.cm.display;z(t.cursorDiv,e.cursors),z(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px");},Ka.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&W(this.textarea),a&&l>=9&&(this.hasSelection=r);}else e||(this.prevInput=this.textarea.value="",a&&l>=9&&(this.hasSelection=null));this.resetting=!1;}},Ka.prototype.getField=function(){return this.textarea},Ka.prototype.supportsTouch=function(){return !1},Ka.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||P(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus();}catch(e){}},Ka.prototype.blur=function(){this.textarea.blur();},Ka.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0;},Ka.prototype.receivedFocus=function(){this.slowPoll();},Ka.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll();}));},Ka.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function r(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,r));}));},Ka.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||De(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return !1;var i=r.value;if(i==n&&!t.somethingSelected())return !1;if(a&&l>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||n||(n="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var s=0,c=Math.min(n.length,i.length);s1e3||i.indexOf("\n")>-1?r.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}));})),!0},Ka.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1);},Ka.prototype.onKeyPress=function(){a&&l>=9&&(this.hasSelection=null),this.fastPoll();},Ka.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=fn(r,e),c=n.scroller.scrollTop;if(o&&!f){r.options.resetSelectionOnContextMenu&&-1==r.doc.sel.contains(o)&&ni(r,ro)(r.doc,zi(o),U);var u,d=i.style.cssText,h=t.wrapper.style.cssText,p=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",s&&(u=i.ownerDocument.defaultView.scrollY),n.input.focus(),s&&i.ownerDocument.defaultView.scrollTo(null,u),n.input.reset(),r.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll),a&&l>=9&&g(),S){Te(e);var m=function(){ge(window,"mouseup",m),setTimeout(v,20);};pe(window,"mouseup",m);}else setTimeout(v,50);}function g(){if(null!=i.selectionStart){var e=r.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,n.selForContextMenu=r.doc.sel;}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,i.style.cssText=d,a&&l<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&l<9)&&g();var e=0,o=function(){n.selForContextMenu==r.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?ni(r,uo)(r):e++<10?n.detectingSelectAll=setTimeout(o,500):(n.selForContextMenu=null,n.input.reset());};n.detectingSelectAll=setTimeout(o,200);}}},Ka.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e;},Ka.prototype.setUneditable=function(){},Ka.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function r(r,n,i,o){e.defaults[r]=n,i&&(t[r]=o?function(e,t,r){r!=Sa&&i(e,t,r);}:i);}e.defineOption=r,e.Init=Sa,r("value","",(function(e,t){return e.setValue(t)}),!0),r("mode",null,(function(e,t){e.doc.modeOption=t,Ei(e);}),!0),r("indentUnit",2,Ei,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,(function(e){Di(e),Rr(e),pn(e);}),!0),r("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var r=[],n=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,r.push(nt(n,o));}n++;}));for(var i=r.length-1;i>=0;i--)yo(e.doc,t,r[i],nt(r[i].line,r[i].ch+t.length));}})),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,r){e.state.specialChars=RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),r!=Sa&&e.refresh();})),r("specialCharPlaceholder",tr,(function(e){return e.refresh()}),!0),r("electricChars",!0),r("inputStyle",y?"contenteditable":"textarea",(function(){throw Error("inputStyle can not (yet) be changed in a running editor")}),!0),r("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),r("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),r("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),r("rtlMoveVisually",!k),r("wholeLineUpdateBefore",!0),r("theme","default",(function(e){Ca(e),bi(e);}),!0),r("keyMap","default",(function(e,t,r){var n=Qo(t),i=r!=Sa&&Qo(r);i&&i.detach&&i.detach(e,n),n.attach&&n.attach(e,i||null);})),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,Ma,!0),r("gutters",[],(function(e,t){e.display.gutterSpecs=vi(t,e.options.lineNumbers),bi(e);}),!0),r("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?cn(e.display)+"px":"0",e.refresh();}),!0),r("coverGutterNextToScrollbar",!1,(function(e){return jn(e)}),!0),r("scrollbarStyle","native",(function(e){Kn(e),jn(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft);}),!0),r("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=vi(e.options.gutters,t),bi(e);}),!0),r("firstLineNumber",1,bi,!0),r("lineNumberFormatter",(function(e){return e}),bi,!0),r("showCursorWhenSelecting",!1,bn,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,(function(e,t){"nocursor"==t&&(Mn(e),e.display.input.blur()),e.display.input.readOnlyChanged(t);})),r("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t);})),r("disableInput",!1,(function(e,t){t||e.display.input.reset();}),!0),r("dragDrop",!0,Aa),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,bn,!0),r("singleCursorHeightPerLine",!0,bn,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,Di,!0),r("addModeClass",!1,Di,!0),r("pollInterval",100),r("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),r("historyEventDelay",1250),r("viewportMargin",10,(function(e){return e.refresh()}),!0),r("maxHighlightLength",1e4,Di,!0),r("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition();})),r("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),r("autofocus",null),r("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),r("phrases",null);}(za),function(e){var t=e.optionHandlers,r=e.helpers={};e.prototype={constructor:e,focus:function(){I(this).focus(),this.display.input.focus();},setOption:function(e,r){var n=this.options,i=n[e];n[e]==r&&"mode"!=e||(n[e]=r,t.hasOwnProperty(e)&&ni(this,t[e])(this,r,i),ve(this,"optionChange",this,e));},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Qo(e));},removeKeyMap:function(e){for(var t=this.state.keyMaps,r=0;rr&&(_a(this,i.head.line,e,!0),r=i.head.line,n==this.doc.sel.primIndex&&En(this));else {var o=i.from(),a=i.to(),l=Math.max(r,o.line);r=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var s=l;s0&&Ji(this.doc,n,new Ai(o,c[n].to()),U);}}})),getTokenAt:function(e,t){return kt(this,e,t)},getLineTokens:function(e,t){return kt(this,nt(e),t,!0)},getTokenTypeAt:function(e){e=ut(this.doc,e);var t,r=mt(this,qe(this.doc,e.line)),n=0,i=(r.length-1)/2,o=e.ch;if(0==o)t=r[2];else for(;;){var a=n+i>>1;if((a?r[2*a-1]:0)>=o)i=a;else {if(!(r[2*a+1]o&&(e=o,i=!0),n=qe(this.doc,e);}else n=e;return Vr(this,n,{top:0,left:0},t||"page",r||i).top+(i?this.doc.height-Vt(n):0)},defaultTextHeight:function(){return an(this.display)},defaultCharWidth:function(){return ln(this.display)},getViewport:function(){return {from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,r,n,i){var o,a,l=this.display,s=(e=qr(this,ut(this.doc,e))).bottom,c=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),l.sizer.appendChild(t),"over"==n)s=e.top;else if("above"==n||"near"==n){var u=Math.max(l.wrapper.clientHeight,this.doc.height),d=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==n||e.bottom+t.offsetHeight>u)&&e.top>t.offsetHeight?s=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=u&&(s=e.bottom),c+t.offsetWidth>d&&(c=d-t.offsetWidth);}t.style.top=s+"px",t.style.left=t.style.right="","right"==i?(c=l.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(l.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),r&&(null!=(a=Nn(o=this,{left:c,top:s,right:c+t.offsetWidth,bottom:s+t.offsetHeight})).scrollTop&&In(o,a.scrollTop),null!=a.scrollLeft&&Bn(o,a.scrollLeft));},triggerOnKeyDown:ii(fa),triggerOnKeyPress:ii(pa),triggerOnKeyUp:ha,triggerOnMouseDown:ii(ya),execCommand:function(e){if(na.hasOwnProperty(e))return na[e].call(null,this)},triggerElectric:ii((function(e){Wa(this,e);})),findPosH:function(e,t,r,n){var i=1;t<0&&(i=-1,t=-t);for(var o=ut(this.doc,e),a=0;a0&&a(t.charAt(r-1));)--r;for(;n.5||this.options.lineWrapping)&&dn(this),ve(this,"refresh",this);})),swapDoc:ii((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Hi(this,e),Rr(this),this.display.input.reset(),Dn(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,ur(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ke(e),e.registerHelper=function(t,n,i){r.hasOwnProperty(t)||(r[t]=e[t]={_global:[]}),r[t][n]=i;},e.registerGlobalHelper=function(t,n,i,o){e.registerHelper(t,n,o),r[t]._global.push({pred:i,val:o});};}(za);var Ga="iter insert remove copy getEditor constructor".split(" ");for(var qa in Eo.prototype)Eo.prototype.hasOwnProperty(qa)&&Z(Ga,qa)<0&&(za.prototype[qa]=function(e){return function(){return e.apply(this.doc,arguments)}}(Eo.prototype[qa]));return ke(Eo),za.inputStyles={textarea:Ka,contenteditable:Ra},za.defineMode=function(e){za.defaults.mode||"null"==e||(za.defaults.mode=e),Be.apply(this,arguments);},za.defineMIME=function(e,t){He[e]=t;},za.defineMode("null",(function(){return {token:function(e){return e.skipToEnd()}}})),za.defineMIME("text/plain","null"),za.defineExtension=function(e,t){za.prototype[e]=t;},za.defineDocExtension=function(e,t){Eo.prototype[e]=t;},za.fromTextArea=function(e,t){if((t=t?B(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var r=P(e.ownerDocument);t.autofocus=r==e||null!=e.getAttribute("autofocus")&&r==document.body;}function n(){e.value=l.getValue();}var i;if(e.form&&(pe(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){n(),o.submit=i,o.submit(),o.submit=a;};}catch(e){}}t.finishInit=function(r){r.save=n,r.getTextArea=function(){return e},r.toTextArea=function(){r.toTextArea=isNaN,n(),e.parentNode.removeChild(r.getWrapperElement()),e.style.display="",e.form&&(ge(e.form,"submit",n),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i));};},e.style.display="none";var l=za((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return l},function(e){e.off=ge,e.on=pe,e.wheelEventPixels=Si,e.Doc=Eo,e.splitLines=Ee,e.countColumn=$,e.findColumn=G,e.isWordChar=re,e.Pass=j,e.signal=ve,e.Line=qt,e.changeEnd=Oi,e.scrollbarModel=Vn,e.Pos=nt,e.cmpPos=it,e.modes=Ie,e.mimeModes=He,e.resolveMode=$e,e.getMode=Re,e.modeExtensions=Ze,e.extendMode=je,e.copyState=Ue,e.startState=Ke,e.innerMode=Ve,e.commands=na,e.keyMap=Uo,e.keyName=Yo,e.isModifierKey=qo,e.lookupKey=Go,e.normalizeKeyMap=Ko,e.StringStream=Ge,e.SharedTextMarker=Oo,e.TextMarker=Mo,e.LineWidget=To,e.e_preventDefault=xe,e.e_stopPropagation=Ce,e.e_stop=Te,e.addClass=E,e.contains=N,e.rmClass=A,e.keyNames=$o;}(za),za.version="5.65.9",za},(window||self).CodeMirror=e(),function(e){function t(e,t){if(this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var r=this;e.on("cursorActivity",this.activityFunc=function(){r.cursorActivity();});}}e.showHint=function(e,t,r){if(!t)return e.showHint(r);r&&r.async&&(t.async=!0);var n={hint:t};if(r)for(var i in r)n[i]=r[i];return e.showHint(n)},e.defineExtension("showHint",(function(r){r=function(e,t,r){var n=e.options.hintOptions,i={};for(var o in s)i[o]=s[o];if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}(this,this.getCursor("start"),r);var n=this.listSelections();if(!(n.length>1)){if(this.somethingSelected()){if(!r.hint.supportsSelection)return;for(var i=0;ic.clientHeight+1;if(setTimeout((function(){M=a.getScrollInfo();})),z.bottom-A>0){var _=z.bottom-z.top,N=z.top-(v.bottom-v.top)-2;A-z.topN&&(c.style.height=(_=N)+"px"),c.style.top=(b=v.top-_)+x+"px",w=!1):c.style.height=A-z.top-2+"px";}var P,E=z.right-L;if(O&&(E+=a.display.nativeBarWidth),E>0&&(z.right-z.left>L&&(c.style.width=L-5+"px",E-=z.right-z.left-L),c.style.left=(y=Math.max(v.left-E-k,0))+"px"),O)for(var D=c.firstChild;D;D=D.nextSibling)D.style.paddingRight=a.display.nativeBarWidth+"px";a.addKeyMap(this.keyMap=function(e,t){var r={Up:function(){t.moveFocus(-1);},Down:function(){t.moveFocus(1);},PageUp:function(){t.moveFocus(1-t.menuSize(),!0);},PageDown:function(){t.moveFocus(t.menuSize()-1,!0);},Home:function(){t.setFocus(0);},End:function(){t.setFocus(t.length-1);},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(r["Ctrl-P"]=function(){t.moveFocus(-1);},r["Ctrl-N"]=function(){t.moveFocus(1);});var n=e.options.customKeys,i=n?{}:r;function o(e,n){var o;o="string"!=typeof n?function(e){return n(e,t)}:r.hasOwnProperty(n)?r[n]:n,i[e]=o;}if(n)for(var a in n)n.hasOwnProperty(a)&&o(a,n[a]);var l=e.options.extraKeys;if(l)for(var a in l)l.hasOwnProperty(a)&&o(a,l[a]);return i}(t,{moveFocus:function(e,t){n.changeActive(n.selectedHint+e,t);},setFocus:function(e){n.changeActive(e);},menuSize:function(){return n.screenAmount()},length:d.length,close:function(){t.close();},pick:function(){n.pick();},data:r})),t.options.closeOnUnfocus&&(a.on("blur",this.onBlur=function(){P=setTimeout((function(){t.close();}),100);}),a.on("focus",this.onFocus=function(){clearTimeout(P);})),a.on("scroll",this.onScroll=function(){var e=a.getScrollInfo(),r=a.getWrapperElement().getBoundingClientRect();M||(M=a.getScrollInfo());var n=b+M.top-e.top,i=n-(s.pageYOffset||(l.documentElement||l.body).scrollTop);if(w||(i+=c.offsetHeight),i<=r.top||i>=r.bottom)return t.close();c.style.top=n+"px",c.style.left=y+M.left-e.left+"px";}),e.on(c,"dblclick",(function(e){var t=o(c,e.target||e.srcElement);t&&null!=t.hintId&&(n.changeActive(t.hintId),n.pick());})),e.on(c,"click",(function(e){var r=o(c,e.target||e.srcElement);r&&null!=r.hintId&&(n.changeActive(r.hintId),t.options.completeOnSingleClick&&n.pick());})),e.on(c,"mousedown",(function(){setTimeout((function(){a.focus();}),20);}));var W=this.getSelectedHintRange();return 0===W.from&&0===W.to||this.scrollToActive(),e.signal(r,"select",d[this.selectedHint],c.childNodes[this.selectedHint]),!0}function l(e,t,r,n){if(e.async)e(t,n,r);else {var i=e(t,r);i&&i.then?i.then(n):n(i);}}t.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm));},active:function(){return this.cm.state.completionActive==this},pick:function(t,r){var n=t.list[r],o=this;this.cm.operation((function(){n.hint?n.hint(o.cm,t,n):o.cm.replaceRange(i(n),n.from||t.from,n.to||t.to,"complete"),e.signal(t,"pick",n),o.cm.scrollIntoView();})),this.options.closeOnPick&&this.close();},cursorActivity:function(){this.debounce&&(n(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),i=this.cm.getLine(t.line);if(t.line!=this.startPos.line||i.length-t.ch!=this.startLen-this.startPos.ch||t.ch=this.data.list.length?t=r?this.data.list.length-1:0:t<0&&(t=r?0:this.data.list.length-1),this.selectedHint!=t){var n=this.hints.childNodes[this.selectedHint];n&&(n.className=n.className.replace(" CodeMirror-hint-active",""),n.removeAttribute("aria-selected")),(n=this.hints.childNodes[this.selectedHint=t]).className+=" CodeMirror-hint-active",n.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",n.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],n);}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],r=this.hints.childNodes[e.to],n=this.hints.firstChild;t.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=r.offsetTop+r.offsetHeight-this.hints.clientHeight+n.offsetTop);},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return {from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},e.registerHelper("hint","auto",{resolve:function(t,r){var n,i=t.getHelpers(r,"hint");if(i.length){var o=function(e,t,r){var n=function(e,t){if(!e.somethingSelected())return t;for(var r=[],n=0;n0?t(e):i(o+1);}));}(0);};return o.async=!0,o.supportsSelection=!0,o}return (n=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:n})}:e.hint.anyword?function(t,r){return e.hint.anyword(t,r)}:function(){}}}),e.registerHelper("hint","fromList",(function(t,r){var n,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),l=i;o.start,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null);}(CodeMirror),function(e){function t(t,r,i,o){if(i&&i.call){var a=i;i=null;}else a=n(t,i,"rangeFinder");"number"==typeof r&&(r=e.Pos(r,0));var l=n(t,i,"minFoldSize");function s(e){var n=a(t,r);if(!n||n.to.line-n.from.linet.firstLine();)r=e.Pos(r.line-1,0),c=s(!1);if(c&&!c.cleared&&"unfold"!==o){var u=function(e,t,r){var i=n(e,t,"widget");if("function"==typeof i&&(i=i(r.from,r.to)),"string"==typeof i){var o=document.createTextNode(i);(i=document.createElement("span")).appendChild(o),i.className="CodeMirror-foldmarker";}else i&&(i=i.cloneNode(!0));return i}(t,i,c);e.on(u,"mousedown",(function(t){d.clear(),e.e_preventDefault(t);}));var d=t.markText(c.from,c.to,{replacedWith:u,clearOnEnter:n(t,i,"clearOnEnter"),__isFold:!0});d.on("clear",(function(r,n){e.signal(t,"unfold",t,r,n);})),e.signal(t,"fold",t,c.from,c.to);}}e.newFoldFunction=function(e,r){return function(n,i){t(n,i,{rangeFinder:e,widget:r});}},e.defineExtension("foldCode",(function(e,r,n){t(this,e,r,n);})),e.defineExtension("isFolded",(function(e){for(var t=this.findMarksAt(e),r=0;r=0;l--){var s=o[l].from(),c=o[l].to();s.line>=i||(c.line>=i&&(c=n(i,0)),i=s.line,null==a?r.uncomment(s,c,e)?a="un":(r.lineComment(s,c,e),a="line"):"un"==a?r.uncomment(s,c,e):r.lineComment(s,c,e));}})),e.defineExtension("lineComment",(function(e,i,l){l||(l=t);var s=this,c=a(s,e),u=s.getLine(e.line);if(null!=u&&(d=e,f=u,!/\bstring\b/.test(s.getTokenTypeAt(n(d.line,0)))||/^[\'\"\`]/.test(f))){var d,f,h=l.lineComment||c.lineComment;if(h){var p=Math.min(0!=i.ch||i.line==e.line?i.line+1:i.line,s.lastLine()+1),m=null==l.padding?" ":l.padding,g=l.commentBlankLines||e.line==i.line;s.operation((function(){if(l.indent){for(var t=null,i=e.line;ia.length)&&(t=a);}for(i=e.line;if||s.operation((function(){if(0!=l.fullLines){var t=r.test(s.getLine(f));s.replaceRange(h+d,n(f)),s.replaceRange(u+h,n(e.line,0));var a=l.blockCommentLead||c.blockCommentLead;if(null!=a)for(var p=e.line+1;p<=f;++p)(p!=f||t)&&s.replaceRange(a+h,n(p,0));}else {var m=0==i(s.getCursor("to"),o),g=!s.somethingSelected();s.replaceRange(d,o),m&&s.setSelection(g?o:s.getCursor("from"),o),s.replaceRange(u,e);}}));}}else (l.lineComment||c.lineComment)&&0!=l.fullLines&&s.lineComment(e,o,l);})),e.defineExtension("uncomment",(function(e,i,o){o||(o=t);var l,s=this,c=a(s,e),u=Math.min(0!=i.ch||i.line==e.line?i.line:i.line-1,s.lastLine()),d=Math.min(e.line,u),f=o.lineComment||c.lineComment,h=[],p=null==o.padding?" ":o.padding;e:if(f){for(var m=d;m<=u;++m){var g=s.getLine(m),v=g.indexOf(f);if(v>-1&&!/comment/.test(s.getTokenTypeAt(n(m,v+1)))&&(v=-1),-1==v&&r.test(g))break e;if(v>-1&&r.test(g.slice(0,v)))break e;h.push(g);}if(s.operation((function(){for(var e=d;e<=u;++e){var t=h[e-d],r=t.indexOf(f),i=r+f.length;r<0||(t.slice(i,i+p.length)==p&&(i+=p.length),l=!0,s.replaceRange("",n(e,r),n(e,i)));}})),l)return !0}var y=o.blockCommentStart||c.blockCommentStart,b=o.blockCommentEnd||c.blockCommentEnd;if(!y||!b)return !1;var w=o.blockCommentLead||c.blockCommentLead,k=s.getLine(d),x=k.indexOf(y);if(-1==x)return !1;var C=u==d?k:s.getLine(u),S=C.indexOf(b,u==d?x+y.length:0),T=n(d,x+1),L=n(u,S+1);if(-1==S||!/comment/.test(s.getTokenTypeAt(T))||!/comment/.test(s.getTokenTypeAt(L))||s.getRange(T,L,"\n").indexOf(b)>-1)return !1;var A=k.lastIndexOf(y,e.ch),M=-1==A?-1:k.slice(0,e.ch).indexOf(b,A+y.length);if(-1!=A&&-1!=M&&M+b.length!=e.ch)return !1;M=C.indexOf(b,i.ch);var z=C.slice(i.ch).lastIndexOf(y,M-i.ch);return A=-1==M||-1==z?-1:i.ch+z,(-1==M||-1==A||A==i.ch)&&(s.operation((function(){s.replaceRange("",n(u,S-(p&&C.slice(S-p.length,S)==p?p.length:0)),n(u,S+b.length));var e=x+y.length;if(p&&k.slice(e,e+p.length)==p&&(e+=p.length),s.replaceRange("",n(d,x),n(d,e)),w)for(var t=d+1;t<=u;++t){var i=s.getLine(t),o=i.indexOf(w);if(-1!=o&&!r.test(i.slice(0,o))){var a=o+w.length;p&&i.slice(a,a+p.length)==p&&(a+=p.length),s.replaceRange("",n(t,o),n(t,a));}}})),!0)}));}(CodeMirror),r.prototype.start=function(e){return this.stream=e,this.line=0,this.string=e.string.slice(e.start),this.startLine=e.string,this.startPos=e.start,this},r.prototype.startLinebreak=function(){return this.stream=null,this.line=this.startPos=0,this.string="\n",this.startLine="",this},r.prototype.copy=function(){var e=this.copyInstance||(this.copyInstance=new r);return e.stream=this.stream,e.startPos=this.startPos,e.line=this.line,e.startLine=this.startLine,e.string=this.string,e},r.prototype.updateStart=function(){this.startLine=this.stream?0==this.line?this.stream.string:this.stream.lookAhead(this.line):"",this.startPos=this.startLine.length-(this.string.length-1);},r.prototype.ahead=function(e){for(;;){if(e<=this.string.length)return !0;if(10!==this.string.charCodeAt(this.string.length-1))this.string+="\n";else {if(3===this.line||!this.stream||!this.stream.lookAhead)return !1;var t=this.stream.lookAhead(this.line+1);if(null==t)return !1;this.string+=t+"\n",this.line++;}}};var n=null;function i(e,i){this.State=function(e,i){function o(e,t){this.stack=e,this.context=t;}function a(){return null}return o.prototype.matchNext=function(r,i,o,a){for(var l=this.stack.length-1,s=this.stack[l],c=e.nodes[s],u=0;ui&&(n=b);}else d=this.matchExpr(h,r,i),f=c[++u];}if(d<0){if(!(o>0&&u==c.length-1))continue;o--,d=i;}if(this.go(f),!a&&-1===f||0===this.stack.length)return d;if(d>i)return d;if((d=this.matchNext(r,i,u==c.length-1?o:0,a))>=0)return d;this.stack.length=l+1,this.stack[l]=s;}return -1},o.prototype.go=function(e){for(this.stack.pop();this.context&&this.context.depth>this.stack.length;)this.context=this.context.parent;-1!==e&&this.stack.push(e);},o.prototype.runMaybe=function(e,t,r){return n=null,this.matchNext(e,t,r,!0)},o.prototype.forward=function(t,r){var n=this.runMaybe(t,r,2);return n<0&&(this.stack.push(e.token),n=this.runMaybe(t,r,0)),n},o.prototype.lookahead=function(e,t,r){var i=n,o=new this.constructor([r],null);for(e=e.copy();;){e.updateStart();var a=o.runMaybe(e,t,0);if(a<0)return n=i,!1;if(0===o.stack.length)return n=i,!0;t=a;}},o.prototype.matchExpr=function(e,t,r){if("string"==typeof e){var n=r+e.length;return t.ahead(n)&&t.string.slice(r,n)===e?n:-1}if(e.exec){var o=t.ahead(r+1)&&e.exec(r>0?t.string.slice(r):t.string);return o?r+o[0].length:-1}var l,s=e[0];if(0===s){for(var c=1;c-1)return d}return -1}if(2!==s&&3!==s){if(4===s)return Math.max(this.matchExpr(e[1],t,r),r);if(5===s)return this.lookahead(t,r,e[1])?r:-1;if(6===s)return this.lookahead(t,r,e[1])?-1:r;if(7===s){var f,h,p=r?t.string.lastIndexOf("\n",r-1):-1;if(t.stream&&p<0)f=t.stream.string,h=r+t.stream.start;else {var m=t.string.indexOf("\n",r);f=t.string.slice(p+1,m<0?t.string.length:m),h=r-(p+1);}return i.predicates[e[1]](f,h,this.context,t.stream?(l=t.stream,function(e){return l.lookAhead(e)}):a)?r:-1}throw Error("Unknown match type "+e)}if(3===s&&(r=this.matchExpr(e[1],t,r))<0)return -1;for(;;){var g=this.matchExpr(e[1],t,r);if(-1==g)return r;r=g;}},o.prototype.contextAt=function(e,t){var n=this.copy(),i=new r,o=0,a=this.context;for(i.string=e+"\n",i.startLine=e;;){var l=n.runMaybe(i,o,0);if(-1==l)return n.context;if(l>t){var s=n.context;if(o==t)e:for(;s;){for(var c=a;c;c=c.parent)if(c===s)break e;s=s.parent;}return s}o=l,a=n.context;}},o.prototype.copy=function(){return new this.constructor(this.stack.slice(),this.context)},o.start=function(){return new this([e.start],null)},o}(e,i||{}),this.mcx=new r;}CodeMirror.GrammarMode=i,i.prototype.startState=function(){return this.State.start()},i.prototype.copyState=function(e){return e.copy()},i.prototype.token=function(e,t){e.pos+=t.forward(this.mcx.start(e),0);for(var r=n,i=t.context;i;i=i.parent)i.tokenType&&(r=i.tokenType+(r?" "+r:""));return e.eol()&&t.forward(this.mcx,e.pos-e.start),r},i.prototype.blankLine=function(e){e.forward(this.mcx.startLinebreak(),0);},function(e,t){!function(e){function t(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}});}})),t.default=e,Object.freeze(t)}var r=t(e),n=[/^(?:var|let|const)(?![a-zA-Z¡-￿_0-9_\$])/,/^while(?![a-zA-Z¡-￿_0-9_\$])/,/^with(?![a-zA-Z¡-￿_0-9_\$])/,/^do(?![a-zA-Z¡-￿_0-9_\$])/,/^debugger(?![a-zA-Z¡-￿_0-9_\$])/,/^if(?![a-zA-Z¡-￿_0-9_\$])/,/^function(?![a-zA-Z¡-￿_0-9_\$])/,/^for(?![a-zA-Z¡-￿_0-9_\$])/,/^default(?![a-zA-Z¡-￿_0-9_\$])/,/^case(?![a-zA-Z¡-￿_0-9_\$])/,/^return(?![a-zA-Z¡-￿_0-9_\$])/,/^throw(?![a-zA-Z¡-￿_0-9_\$])/,/^(?:break|continue)(?![a-zA-Z¡-￿_0-9_\$])/,/^switch(?![a-zA-Z¡-￿_0-9_\$])/,/^try(?![a-zA-Z¡-￿_0-9_\$])/,/^class(?![a-zA-Z¡-￿_0-9_\$])/,/^export(?![a-zA-Z¡-￿_0-9_\$])/,/^import(?![a-zA-Z¡-￿_0-9_\$])/,[0,"async",/^(?![a-zA-Z¡-￿_0-9_\$])/,[5,114]],[1,";",/^(?=\})/,[7,"canInsertSemi"]],/^[a-zA-Z¡-￿__\$][a-zA-Z¡-￿_0-9_\$]*/,/^extends(?![a-zA-Z¡-￿_0-9_\$])/,/^from(?![a-zA-Z¡-￿_0-9_\$])/,/^else(?![a-zA-Z¡-￿_0-9_\$])/,/^catch(?![a-zA-Z¡-￿_0-9_\$])/,/^finally(?![a-zA-Z¡-￿_0-9_\$])/,/^as(?![a-zA-Z¡-￿_0-9_\$])/,/^(?:true|false|null|undefined|NaN|Infinity)(?![a-zA-Z¡-￿_0-9_\$])/,/^(?:super|this)(?![a-zA-Z¡-￿_0-9_\$])/,/^(?:delete|typeof|yield|await|void)(?![a-zA-Z¡-￿_0-9_\$])/,/^(?:\.\.\.|\!|\+\+?|\-\-?)/,/^(?:0x[0-9a-fA-F_]+|0o[0-7_]+|0b[01_]+|(?:[0-9][0-9_]*(?:\.[0-9_]*)?|\.[0-9_]+)(?:[eE][\+\-]?[0-9_]+)?)/,/^\/(?![\/\*])(?:\\.|\[(?:(?!\]).)*\]|(?!\/).)+\/[gimyus]*/,/^(?:\+\+|\-\-)/,/^(?:(?:\+|\-|\%|\*|\/(?![\/\*])|\>\>?\>?|\<\",-1],[2,258,364,{name:"ParamList"}],[1,6,365],["=>",-1],[3,"operator","=>",367],[1,6,368],[2,129,-1,{name:"Block"},1,142,-1],[1,142,370,0,-1],[1,6,371],[",",372,0,-1],[1,6,373],[1,142,374,0,374],[1,6,371],[2,274,376,{name:"ObjectMember"},0,-1],[1,6,377],[",",378,0,-1],[1,6,379],[2,274,380,{name:"ObjectMember"},0,380],[1,6,377],[1,139,382],[1,6,383],[3,"operator","=",384,0,-1],[1,6,385],[1,142,-1],[3,"def",/^[a-zA-Z¡-￿__\$][a-zA-Z¡-￿_0-9_\$]*(?![a-z]|[A-Z]|[¡-￿]|_|[0-9]|_|\$| *\:)/,387,3,"property",n[20],391,3,"number",n[31],391,2,116,391,{name:"string",token:"string"},3,"operator","...",395],[1,6,388],[3,"operator","=",389,0,-1],[1,6,390],[1,142,-1],[1,6,392],[":",393],[1,6,394],[1,381,-1],[1,6,396],[1,381,-1]],start:0,token:5}),o=/(^|\s)variable($|\s)/;function a(e){var t=/^(if|for|do|while|try)\b/.exec(e.startLine.slice(e.startPos));return t&&t[1]}var l={Block:"}",BlockOf:"}",ClassBody:"}",AnnotationTypeBody:"}",ObjectLiteral:"}",ObjectPattern:"}",EnumBody:"}",LambdaBlock:"}",WhenBody:"}",ObjType:"}",ArrayInitializer:"}",NamespaceBlock:"}",BraceTokens:"}",ArrayLiteral:"]",BracketTokens:"]",TupleType:"]",ParamList:")",SimpleParamList:")",ArgList:")",ParenExpr:")",CondExpr:")",ForSpec:")",ParenTokens:")",ParenthesizedExpression:")",ConstructorParamList:")",TypeParams:">",TypeArgs:">",TemplateArgs:">",TemplateParams:">"},s=["Block","NamespaceBlock","ClassBody","AnnotationTypeBody","BlockOf","EnumBody"],c=["Statement","ObjectMember","ClassItem","EnumConstant","AnnotationTypeItem","ArgExpr","StatementMaybeOf","NewExpr"];function u(e,t){for(var n=e.startLine;;e=e.parent){if("CondExpr"==e.name)return r.countColumn(e.startLine,e.startPos+1,t.tabSize);if(c.indexOf(e.name)>-1&&/(^\s*|[\(\{\[])$/.test(e.startLine.slice(0,e.startPos)))return r.countColumn(e.startLine,e.startPos,t.tabSize);if(!e.parent||e.parent.startLine!=n)return r.countColumn(e.startLine,null,t.tabSize)}}function d(e,t,n){if(!e)return 0;if("string"==e.name||"comment"==e.name)return r.Pass;var i,o,h=l[e.name],p=t&&t.charAt(0)==h;if(h&&!1!==n.align&&(!n.dontAlign||n.dontAlign.indexOf(e.name)<0)&&function(e){return !/^\s*((\/\/.*)?$|.*=>)/.test(e.startLine.slice(e.startPos+1))}(e))return r.countColumn(e.startLine,e.startPos,n.tabSize)+(p?0:1);if(h&&s.indexOf(e.name)>-1){var m=e.parent;m&&"Statement"==m.name&&m.parent&&"Statement"==m.parent.name&&a(m.parent)&&!a(m)&&(m=m.parent);var g=f(m,n);return p||"NamespaceBlock"==e.name?g:/^(public|private|protected)\s*:/.test(t)?g+1:!(o=e.parent)||"Statement"!=o.name||!/^switch\b/.test(o.startLine.slice(o.startPos))||(i=t)&&/^\s*(case|default)\b/.test(i)?g+n.indentUnit:g+2*n.indentUnit}var v=u(e,n);return h?p&&(n.dontCloseBrackets||"").indexOf(h)<0?v:v+n.indentUnit*((n.doubleIndentBrackets||"").indexOf(h)<0?1:2):c.indexOf(e.name)>-1?a(e)?v+n.indentUnit:v+2*n.indentUnit:"Alternative"==e.name||"CatchFinally"==e.name?(v=u(e.parent,n),!t||/^((else|catch|finally)\b|\/[\/\*])/.test(t)?v:v+n.indentUnit):"ArrowRest"==e.name?v+n.indentUnit:"NewExpression"==e.name&&e.startLine.length>e.startPos+5?r.countColumn(e.startLine,e.startPos,n.tabSize)+2*n.indentUnit:"InitializerList"==e.name?v+2:"ThrowsClause"!=e.name||/throws\s*$/.test(e.startLine.slice(e.startPos))?d(e.parent,t,n):v+2*n.indentUnit}function f(e,t){for(;;e=e.parent){if(!e)return 0;if(c.indexOf(e.name)>-1||e.parent&&l[e.parent.name])return r.countColumn(e.startLine,null,t.tabSize)}}function h(e,t,n,i){var o=e.context&&e.context.name;if("DeclType"==o||"BeforeStatement"==o||"AnnotationHead"==o||"Template"==o||"str"==o)return f(e.context,i);if(("doccomment.braced"==o||"doccomment.tagGroup"==o)&&!/^[@*]/.test(t))return r.countColumn(e.context.startLine,null,i.tabSize)+2*i.indentUnit;var a=i.forceContent&&/^\s*(\/\/.*)?$/.test(n)?"x":n;return d(e.contextAt(a,n.length-t.length),t,i)}function p(e,t){for(var r=t-1;r>=0;r--){var n=e.charCodeAt(r);if(10===n)break;if(32!==n&&9!==n)return !1}return !0}var m=function(e){this.config=e;};m.prototype.startState=function(){return new g},m.prototype.copyState=function(e){return e.copy()},m.prototype.shouldInterceptTokenizing=function(e){var t=e.currentTemplateState;return void 0!==t&&null!==t.mode},m.prototype.interceptTokenizing=function(e,t){if(e.match("${")&&(e.backUp(2),!this.isEscaped(e,e.pos-2)))return {handled:!1};if("`"===e.peek()&&!this.isEscaped(e,e.pos))return {handled:!1};var r=t.currentTemplateState,n=r.mode,i=r.state,o=n.token(e,i);return this.backupIfEmbeddedTokenizerOvershot(e),{handled:!0,style:o}},m.prototype.trackState=function(e,t,r){if(e){var n=r.currentTemplateState;n&&"inline-expression"!==n.kind?this.trackStateInTemplate(e,t,r,n):this.trackStateNotInTemplate(e,t,r,n),r.previousVariable="variable"===e?t.current():null;}},m.prototype.trackStateNotInTemplate=function(e,t,r,n){if(n&&"string-2"===e&&t.current().startsWith("}"))return r.templateStack.pop(),void t.backUp(t.current().length-1);if("string-2"===e&&t.current().startsWith("`")){var i=this.getModeForTemplateTag(r.previousVariable),o="template";i?(t.backUp(t.current().length-1),r.templateStack.push(new y(o,i,CodeMirror.startState(i)))):r.templateStack.push(new y(o,null,null));}},m.prototype.trackStateInTemplate=function(e,t,r,n){"string-2"!==e||!t.current().endsWith("`")||this.isEscaped(t.pos-1)?"string-2"!==e||!t.current().endsWith("${")||this.isEscaped(t.pos-2)||r.templateStack.push(new y("inline-expression",null,null)):r.templateStack.pop();},m.prototype.backupIfEmbeddedTokenizerOvershot=function(e){for(var t=e.current(),r=0;;){var n=t.slice(r).search(/`|\$\{/);if(-1===n)return;n+=r;var i=t.length-n,o=e.pos-i;if(!this.isEscaped(e,o))return void e.backUp(t.length-n);r=n+1;}},m.prototype.isEscaped=function(e,t){for(var r=!1,n=t;n>0&&"\\"===e.string[n-1];)r=!r,n--;return r},m.prototype.getModeForTemplateTag=function(e){if(!e)return null;"htm"===e&&(e="html");for(var t=["google-"+e,""+e],r=0;r)",dontCloseBrackets:")",tabSize:t.tabSize,indentUnit:t.indentUnit,forceContent:!0};}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.startState=function(){var t=e.prototype.startState.call(this);return t.embeddedParserState=this.embeddedParser.startState(),t},t.prototype.copyState=function(t){var r=e.prototype.copyState.call(this,t);return r.embeddedParserState=this.embeddedParser.copyState(t.embeddedParserState),r},t.prototype.token=function(t,r){var n=r.embeddedParserState;if(this.embeddedParser.shouldInterceptTokenizing(n)){var i=this.embeddedParser.interceptTokenizing(t,n),a=i.handled,l=i.style;if(a)return l}var s=e.prototype.token.call(this,t,r);return this.embeddedParser.trackState(s,t,n),function(e,t,r,n){if("def"==e){var i=function(e,t){for(var r=e;r;r=r.parent)if(t.indexOf(r.name)>-1)return r}(n.context,t),a=r.current();if(i&&(i.locals||(i.locals=[]),-1==i.locals.indexOf(a)&&i.locals.push(a),"funcName"!=n.context.name))return "def local"}else o.test(e)&&!/qualified/.test(e)&&function(e,t){for(var r=e;r;r=r.parent)if(r.locals&&r.locals.indexOf(t)>-1)return !0;return !1}(n.context,r.current())&&(e=e.replace(o,"$1variable-2$2"));return e}(s,b,t,r)},t.prototype.indent=function(e,t,r){return t||(t=r="x"),h(e,t,r,this.indentConf)},t}(r.GrammarMode),k={electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``"};for(var x in k)w.prototype[x]=k[x];r.registerHelper("wordChars","google-javascript",/[\w$]/),r.defineMode("google-javascript",(function(e,t){return new w(e,t)}));}((e="undefined"!=typeof globalThis?globalThis:e||self).CodeMirror);}(window),function(e,t){!function(e){function t(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}});}})),t.default=e,Object.freeze(t)}var r=t(e),n=[/^(?:var|let|const)(?![a-zA-Z¡-￿_0-9_\$])/,/^while(?![a-zA-Z¡-￿_0-9_\$])/,/^with(?![a-zA-Z¡-￿_0-9_\$])/,/^do(?![a-zA-Z¡-￿_0-9_\$])/,/^debugger(?![a-zA-Z¡-￿_0-9_\$])/,/^if(?![a-zA-Z¡-￿_0-9_\$])/,/^function(?![a-zA-Z¡-￿_0-9_\$])/,/^for(?![a-zA-Z¡-￿_0-9_\$])/,/^default(?![a-zA-Z¡-￿_0-9_\$])/,/^case(?![a-zA-Z¡-￿_0-9_\$])/,/^return(?![a-zA-Z¡-￿_0-9_\$])/,/^throw(?![a-zA-Z¡-￿_0-9_\$])/,/^(?:break|continue)(?![a-zA-Z¡-￿_0-9_\$])/,/^switch(?![a-zA-Z¡-￿_0-9_\$])/,/^try(?![a-zA-Z¡-￿_0-9_\$])/,/^class(?![a-zA-Z¡-￿_0-9_\$])/,/^export(?![a-zA-Z¡-￿_0-9_\$])/,/^import(?![a-zA-Z¡-￿_0-9_\$])/,[0,"async",/^(?![a-zA-Z¡-￿_0-9_\$])/,[5,139]],/^[a-zA-Z¡-￿__\$][a-zA-Z¡-￿_0-9_\$]*/,/^extends(?![a-zA-Z¡-￿_0-9_\$])/,/^enum(?![a-zA-Z¡-￿_0-9_\$])/,[1,";",/^(?=\})/,[7,"canInsertSemi"]],/^from(?![a-zA-Z¡-￿_0-9_\$])/,[1,"\n","\t"," "],/^[a-zA-Z¡-￿__\$]/,/^const(?![a-zA-Z¡-￿_0-9_\$])/,/^(?:true|false|null|undefined|NaN|Infinity)(?![a-zA-Z¡-￿_0-9_\$])/,/^new(?![a-zA-Z¡-￿_0-9_\$])/,/^(?:0x[0-9a-fA-F_]+|0o[0-7_]+|0b[01_]+|(?:[0-9][0-9_]*(?:\.[0-9_]*)?|\.[0-9_]+)(?:[eE][\+\-]?[0-9_]+)?)/,/^else(?![a-zA-Z¡-￿_0-9_\$])/,/^catch(?![a-zA-Z¡-￿_0-9_\$])/,/^finally(?![a-zA-Z¡-￿_0-9_\$])/,/^as(?![a-zA-Z¡-￿_0-9_\$])/,/^(?:super|this)(?![a-zA-Z¡-￿_0-9_\$])/,/^(?:delete|typeof|yield|await|void)(?![a-zA-Z¡-￿_0-9_\$])/,/^(?:\.\.\.|\!|\+\+?|\-\-?)/,/^\/(?![\/\*])(?:\\.|\[(?:(?!\]).)*\]|(?!\/).)+\/[gimyus]*/,[0,/^[a-zA-Z¡-￿__\$]/,/^[a-zA-Z¡-￿_0-9_\$]*/,[5,508]],/^(?:\+\+|\-\-)/,/^(?:(?:\+|\-|\%|\*|\/(?![\/\*])|\>\>?\>?|\<\",-1],[3,"keyword",/^this(?![a-zA-Z¡-￿_0-9_\$])/,209,3,"atom",n[27],209,3,"keyword",/^typeof(?![a-zA-Z¡-￿_0-9_\$])/,177,3,"keyword",/^(?:keyof|readonly|unique)(?![a-zA-Z¡-￿_0-9_\$])/,178,[0,[5,393],"("],179,3,"keyword",n[28],180,0,180,0,181,2,396,209,{name:"TupleType"},2,233,209,{name:"ObjType"},2,141,209,{name:"string",token:"string"},3,"number",n[29],209],[1,6,182],[1,6,183],[1,6,184],[1,6,185],[[5,401],186,3,"type",n[19],187],[3,"variable",n[19],188],[1,176,209],[1,176,189],[2,171,190,{name:"TypeParams"},0,190],[3,"variable",n[19],191],[1,6,192],[1,6,193],[1,6,194],[1,6,195],[1,6,196],[2,404,209,{name:"TypeArgs"},0,209],[".",197,"[",198,0,209],[")",209],[2,409,199,{name:"ParamListSpec"}],[".",200],[1,6,201],[1,6,202],[1,6,203],[1,6,181],[3,"property",n[19],204],[1,165,205],[3,"operator","=>",206],[1,6,193],[1,6,207],[1,6,208],["]",204],[1,410,209],[1,6,210],[3,"operator",/^[\&\|]/,211,3,"keyword",n[20],211,"[",212,3,"operator","?",213,0,-1],[1,6,214],[1,6,215],[1,6,216],[1,176,217],[1,176,218,0,218],[1,176,219],[1,6,210],[1,6,220],[1,6,221],["]",217],[3,"operator",":",222],[1,6,223],[1,176,217],[n[19],225],[1,6,226],[".",-1],[1,176,228,0,-1],[1,6,229],[",",230,0,-1],[1,6,231],[1,176,232,0,232],[1,6,229],["{",234],[1,6,235],[1,416,236,0,236],[1,6,237],[/^[\,\;]/,238,"}",-1],[1,6,239],[1,416,240,0,240],[1,6,237],["{",242],[1,6,243],[1,449,244],[1,6,245],["}",-1],[1,463,247],[1,6,248],[3,"operator","!",249,0,249],[1,6,250],[":",251,0,253],[1,6,252],[1,176,253],[1,6,254],[3,"operator","=",255,0,-1],[1,6,256],[1,367,-1],["(",258],[1,6,259],[1,165,260],[1,6,261],[")",-1],[1,6,263],[3,"keyword",n[30],264,0,-1],[1,6,265],[2,7,-1,{name:"Statement"}],[2,171,267,{name:"TypeParams"},0,267],[1,6,268],[2,466,269,{name:"ParamList"}],[1,6,270],[":",271,0,273],[1,6,272],[1,410,273],[1,6,274],[2,161,-1,{name:"Block"},n[22],-1],[2,471,276,{name:"ForSpec"}],[1,6,277],[2,7,-1,{name:"Statement"}],[3,"keyword",n[31],279,0,287],[1,6,280],["(",281,0,282],[1,6,283],[1,6,284],[1,463,285],[2,161,287,{name:"Block"}],[1,6,286],[")",282],[1,6,288],[3,"keyword",n[32],289,0,-1],[1,6,290],[2,161,-1,{name:"Block"}],[2,171,292,{name:"TypeParams"},0,292],[1,6,293],[3,"keyword",n[20],294,0,296],[1,6,295],[1,176,296],[1,6,297],[3,"keyword",/^implements(?![a-zA-Z¡-￿_0-9_\$])/,298,0,300],[1,6,299],[1,227,300],[1,6,301],[2,482,-1,{name:"ClassBody"}],[1,308,303,0,-1],[1,6,304],[",",305,0,-1],[1,6,306],[1,308,307,0,307],[1,6,304],[3,"variable",/^[a-zA-Z¡-￿__\$][a-zA-Z¡-￿_0-9_\$]*(?= +as)/,309,3,"def",n[19],-1],[1,6,310],[3,"keyword",n[33],311],[1,6,312],[3,"def",n[19],-1],[0,314,2,490,-1,{name:"doccomment.braced"}],[[0,/^(?!\*\/|\@[a-zA-Z¡-￿_0-9]|\{)/,/^[^]/],315],[0,314,0,-1],[1,494,317],[1,313,317,0,-1],["\\",319,"\n",-1],[/^[^]/,-1],["<",321,3,"atom",n[27],-1,3,"keyword",n[34],-1,3,"keyword",n[35],327,3,"operator",n[36],327,3,"keyword",n[18],327,3,"keyword",n[28],329,3,"keyword",n[6],335,3,"keyword",n[15],341,2,500,-1,{name:"ArrowFunc"},3,"variable callee",n[38],346,3,"variable",n[19],-1,3,"number",n[29],-1,2,141,-1,{name:"string",token:"string"},3,"string-2",n[37],-1,1,150,-1,2,512,-1,{name:"ArrayLiteral"},2,517,-1,{name:"ObjectLiteral"},2,522,-1,{name:"ParenExpr"}],[1,6,322],[1,176,323],[1,6,324],[">",325],[1,6,326],[1,320,-1],[1,6,328],[1,320,-1],[1,6,330],[".",331,3,"variable callee",n[38],332,1,320,-1],[1,6,333],[1,6,334],[3,"keyword",/^target(?![a-zA-Z¡-￿_0-9_\$])/,-1],[2,404,-1,{name:"TypeArgs"},0,-1],[1,6,336],[3,"keyword","*",337,0,337],[1,6,338],[3,"def",n[19],339,0,339],[1,6,340],[2,266,-1,{name:"FunctionDef"}],[1,6,342],[[6,527],343,0,344],[3,"def type",n[19],344],[1,6,345],[1,291,-1],[1,6,347],[2,404,-1,{name:"TypeArgs"},0,-1],[3,"keyword",n[33],349,3,"operator","!",-1,3,"operator",n[39],-1,3,"operator",n[40],351,3,"keyword",n[41],351,2,528,-1,{name:"ArgList"},1,150,-1,n[43],353,"[",357,3,"operator","?",361],[1,6,350],[1,176,-1],[1,6,352],[1,165,-1],[1,6,354],[3,"property callee",n[44],355,3,"property",n[19],-1],[1,6,356],[2,404,-1,{name:"TypeArgs"},0,-1],[1,6,358],[1,165,359],[1,6,360],["]",-1],[1,6,362],[1,165,363],[1,6,364],[3,"operator",":",365],[1,6,366],[1,165,-1],[1,320,368],[1,6,369],[1,537,370,0,-1],[1,6,369],[3,"def type",n[19],372,0,-1],[1,6,373],[3,"keyword",n[20],374,0,375],[1,6,376],[1,6,377],[1,176,375],[3,"operator","=",378,0,379],[1,6,380],[1,6,381],[1,176,379],[",",382,0,-1],[1,6,383],[3,"def type",n[19],384,0,385],[1,6,386],[1,6,381],[3,"keyword",n[20],387,0,388],[1,6,389],[1,6,390],[1,176,388],[3,"operator","=",391,0,385],[1,6,392],[1,176,385],["(",394],[1,6,395],[[6,556],-1],["[",397],[1,6,398],[1,559,399],[1,6,400],["]",-1],[n[19],402],[1,6,403],[".",-1],["<",405],[1,6,406],[1,227,407],[1,6,408],[">",-1],[2,466,-1,{name:"ParamList"}],[[5,573],411,0,414],[3,"variable",n[19],412],[1,6,413],[3,"keyword",n[46],414],[1,6,415],[1,176,-1],[3,"keyword",n[28],417,0,417,0,425],[1,6,418],[2,171,419,{name:"TypeParams"},0,419],[1,6,420],[2,466,421,{name:"ParamList"}],[1,6,422],[":",423,0,-1],[1,6,424],[1,410,-1],[3,"keyword",n[42],426,"[",427,3,"def property",n[19],428,2,141,428,{name:"string",token:"string"},3,"number",n[29],428],[1,6,425],[1,6,429],[1,6,430],[[0,[5,576],/^[a-zA-Z¡-￿__\$]/,/^[a-zA-Z¡-￿_0-9_\$]*/],431,1,165,432],[/^\??/,433],[1,6,434],[1,6,435],[1,6,436],[":",437,3,"keyword",/^in(?![a-zA-Z¡-￿_0-9_\$])/,437],["]",438],[2,171,439,{name:"TypeParams"},0,439,0,440],[1,6,441],[1,6,442],[1,6,443],[1,6,444],[1,176,432],[":",445],[2,466,440,{name:"ParamList"}],[":",446,0,-1],[1,6,447],[1,6,448],[1,176,-1],[1,410,-1],[3,"def property",n[19],450,0,-1],[1,6,451],[3,"operator","=",452,0,453],[1,6,454],[1,6,455],[1,367,453],[",",456,0,-1],[1,6,457],[3,"def property",n[19],458,0,459],[1,6,460],[1,6,455],[3,"operator","=",461,0,459],[1,6,462],[1,367,459],[3,"operator","...",464,0,464],[1,6,465],[3,"def",n[19],-1,2,579,-1,{name:"ArrayPattern"},2,584,-1,{name:"ObjectPattern"}],["(",467],[1,6,468],[1,589,469],[1,6,470],[")",-1],["(",472],[1,6,473],[2,629,474,{name:"StatementMaybeOf"}],[1,6,475],[1,165,476,0,476,0,480],[1,6,477],[";",478],[1,6,479],[1,165,480,0,480],[1,6,481],[")",-1],["{",483],[1,6,484],[0,485,"@",486,"}",-1],[3,"keyword",n[42],487,3,"keyword",[0,"override",/^(?![a-zA-Z¡-￿_0-9_\$])/,[5,634]],487,2,635,488,{name:"ClassItem"}],[1,6,489],[1,6,485],[1,6,484],[1,165,488],["{",491],[1,494,492,1,313,493],[[0,/^(?!\}|\*\/)/,/^[^]/],492,0,493],[/^(?:\}|(?=\*\/))/,-1],[3,"tag",/^\@(?:member|param|arg(?:ument)?|module|namespace|typedef)(?![a-zA-Z¡-￿_0-9])/,495,3,"tag",/^\@[a-zA-Z¡-￿_0-9]+/,-1],[n[24],495,"{",496,0,497,0,-1],[2,656,498,{name:"doccomment.type"}],[3,"def",/^[a-zA-Z¡-￿_0-9]+/,-1,0,-1],["}",499],[[1,"\n","\t"," ",/^\*(?!\/)/],499,0,497],[3,"def",[0,/^[a-zA-Z¡-￿__\$]/,/^[a-zA-Z¡-￿_0-9_\$]*/,[5,660]],506,[5,666],501],[2,466,502,{name:"ParamList"}],[1,6,503],[":",504,0,506],[1,6,505],[1,410,506],[1,6,507],[2,673,-1,{name:"ArrowRest"}],[/^\<(?! )/,-1,/^ */,509],[1,678,510,0,511],[/^ */,511],["(",-1],["[",513],[1,6,514],[1,680,515],[1,6,516],["]",-1],["{",518],[1,6,519],[1,686,520],[1,6,521],["}",-1],["(",523],[1,6,524],[1,165,525],[1,6,526],[")",-1],[3,"keyword",n[20],-1],["(",529],[1,6,530],[1,680,531],[1,6,532],[")",-1],[/^ */,534],[1,678,535,0,536],[/^ */,536],["(",-1],[3,"keyword",n[33],538,3,"operator","!",-1,3,"operator",n[39],-1,3,"operator",n[40],540,3,"keyword",n[41],540,2,528,-1,{name:"ArgList"},1,150,-1,n[43],542,"[",546,3,"operator","?",550],[1,6,539],[1,176,-1],[1,6,541],[1,367,-1],[1,6,543],[3,"property callee",n[44],544,3,"property",n[19],-1],[1,6,545],[2,404,-1,{name:"TypeArgs"},0,-1],[1,6,547],[1,165,548],[1,6,549],["]",-1],[1,6,551],[1,165,552],[1,6,553],[3,"operator",":",554],[1,6,555],[1,367,-1],[/^(?:\)|\.\.\.)/,-1,n[19],557],[1,6,558],[/^[\?\:]/,-1],[n[45],560,0,561,0,-1],[1,6,562],[1,6,563],[":",561],[1,176,564],[1,6,565],[",",566,0,-1],[1,6,567],[n[45],568,0,569,0,570],[1,6,571],[1,6,572],[1,6,565],[":",569],[1,176,570],[n[19],574],[1,6,575],[3,"keyword",n[46],-1],[n[19],577],[1,6,578],[/^(?:\:|in)/,-1],["[",580],[1,6,581],[1,692,582],[1,6,583],["]",-1],["{",585],[1,6,586],[1,698,587],[1,6,588],["}",-1],["@",590,0,591,0,-1],[1,6,592],[3,"keyword",n[42],593,n[47],594],[1,165,595],[1,6,591],[1,6,596],[1,6,589],[1,463,597],[1,6,598],[/^\??/,599],[1,6,600],[":",601,0,602],[1,6,603],[1,6,604],[1,176,602],[3,"operator","=",605,0,606],[1,6,607],[1,6,608],[1,367,606],[",",609,0,-1],[1,6,610],["@",611,0,612,0,613],[1,6,614],[3,"keyword",n[42],615,n[47],616],[1,6,608],[1,165,617],[1,6,612],[1,6,618],[1,6,610],[1,463,619],[1,6,620],[/^\??/,621],[1,6,622],[":",623,0,624],[1,6,625],[1,6,626],[1,176,624],[3,"operator","=",627,0,613],[1,6,628],[1,367,613],[2,7,630,{name:"Statement"}],[1,6,631],[3,"keyword",/^of(?![a-zA-Z¡-￿_0-9_\$])/,632,0,-1],[1,6,633],[1,165,-1],[n[24],634,n[25],-1],[3,"keyword",n[48],636,0,636],[1,6,637],[3,"def property",n[19],642,"[",638,3,"number",n[29],642,2,141,642,{name:"string",token:"string"}],[1,6,639],[1,165,640],[1,6,641],["]",642],[1,6,643],[3,"keyword","*",644,0,644,/^[\!\?]?/,645],[1,6,646],[1,6,647],[2,266,-1,{name:"FunctionDef"}],[":",648,0,649],[1,6,650],[1,6,651],[1,176,649],[3,"operator","=",652,0,653],[1,6,654],[1,6,655],[1,165,653],[n[22],-1],[3,"type","{",657,3,"type",/^(?:(?!\{|\}|\*\/).)+/,656,"\n",658,0,-1],[2,656,659,{name:"doccomment.type"}],[/^[\t ]*(?:\*(?!\/)[\t ]*)?/,656],[/^(?=\*\/)/,656,3,"type","}",656],[1,6,661],[":",662,0,665],[1,6,663],[1,176,664],[1,6,665],["=>",-1],[2,466,667,{name:"ParamList"}],[1,6,668],[":",669,0,671],[1,6,670],[1,410,671],[1,6,672],["=>",-1],[3,"operator","=>",674],[1,6,675],[2,171,676,{name:"TypeParams"},0,676],[1,6,677],[2,161,-1,{name:"Block"},1,367,-1],["<",679],[1,678,679,[1,"=>",[0,/^(?!\>)/,/^[^]/]],679,">",-1],[1,367,681,0,-1],[1,6,682],[",",683,0,-1],[1,6,684],[1,367,685,0,685],[1,6,682],[2,704,687,{name:"ObjectMember"},0,-1],[1,6,688],[",",689,0,-1],[1,6,690],[2,704,691,{name:"ObjectMember"},0,691],[1,6,688],[1,719,693,0,693,0,-1],[1,6,694],[",",695,0,-1],[1,6,696],[1,719,697,0,697,0,697],[1,6,694],[1,724,699,0,-1],[1,6,700],[",",701,0,-1],[1,6,702],[1,724,703,0,703],[1,6,700],[3,"keyword",n[48],705,0,705],[1,6,706],[3,"keyword","*",707,0,707],[1,6,708],[3,"def property",n[19],709,"[",710,3,"number",n[29],709,2,141,709,{name:"string",token:"string"},3,"operator","...",711],[1,6,712],[1,6,713],[1,6,714],[2,266,-1,{name:"FunctionDef"},":",715,0,-1],[1,165,716],[1,367,-1],[1,6,717],[1,6,718],[1,367,-1],["]",709],[1,463,720],[1,6,721],[3,"operator","=",722,0,-1],[1,6,723],[1,367,-1],[3,"def",/^[a-zA-Z¡-￿__\$][a-zA-Z¡-￿_0-9_\$]*(?![a-z]|[A-Z]|[¡-￿]|_|[0-9]|_|\$| *\:)/,725,3,"property",n[19],729,3,"number",n[29],729,2,141,729,{name:"string",token:"string"},3,"operator","...",733],[1,6,726],[3,"operator","=",727,0,-1],[1,6,728],[1,367,-1],[1,6,730],[":",731],[1,6,732],[1,719,-1],[1,6,734],[1,719,-1]],start:0,token:5}),o=/(^|\s)variable($|\s)/;function a(e){var t=/^(if|for|do|while|try)\b/.exec(e.startLine.slice(e.startPos));return t&&t[1]}var l={Block:"}",BlockOf:"}",ClassBody:"}",AnnotationTypeBody:"}",ObjectLiteral:"}",ObjectPattern:"}",EnumBody:"}",LambdaBlock:"}",WhenBody:"}",ObjType:"}",ArrayInitializer:"}",NamespaceBlock:"}",BraceTokens:"}",ArrayLiteral:"]",BracketTokens:"]",TupleType:"]",ParamList:")",SimpleParamList:")",ArgList:")",ParenExpr:")",CondExpr:")",ForSpec:")",ParenTokens:")",ParenthesizedExpression:")",ConstructorParamList:")",TypeParams:">",TypeArgs:">",TemplateArgs:">",TemplateParams:">"},s=["Block","NamespaceBlock","ClassBody","AnnotationTypeBody","BlockOf","EnumBody"],c=["Statement","ObjectMember","ClassItem","EnumConstant","AnnotationTypeItem","ArgExpr","StatementMaybeOf","NewExpr"];function u(e,t){for(var n=e.startLine;;e=e.parent){if("CondExpr"==e.name)return r.countColumn(e.startLine,e.startPos+1,t.tabSize);if(c.indexOf(e.name)>-1&&/(^\s*|[\(\{\[])$/.test(e.startLine.slice(0,e.startPos)))return r.countColumn(e.startLine,e.startPos,t.tabSize);if(!e.parent||e.parent.startLine!=n)return r.countColumn(e.startLine,null,t.tabSize)}}function d(e,t,n){if(!e)return 0;if("string"==e.name||"comment"==e.name)return r.Pass;var i,o,h=l[e.name],p=t&&t.charAt(0)==h;if(h&&!1!==n.align&&(!n.dontAlign||n.dontAlign.indexOf(e.name)<0)&&function(e){return !/^\s*((\/\/.*)?$|.*=>)/.test(e.startLine.slice(e.startPos+1))}(e))return r.countColumn(e.startLine,e.startPos,n.tabSize)+(p?0:1);if(h&&s.indexOf(e.name)>-1){var m=e.parent;m&&"Statement"==m.name&&m.parent&&"Statement"==m.parent.name&&a(m.parent)&&!a(m)&&(m=m.parent);var g=f(m,n);return p||"NamespaceBlock"==e.name?g:/^(public|private|protected)\s*:/.test(t)?g+1:!(o=e.parent)||"Statement"!=o.name||!/^switch\b/.test(o.startLine.slice(o.startPos))||(i=t)&&/^\s*(case|default)\b/.test(i)?g+n.indentUnit:g+2*n.indentUnit}var v=u(e,n);return h?p&&(n.dontCloseBrackets||"").indexOf(h)<0?v:v+n.indentUnit*((n.doubleIndentBrackets||"").indexOf(h)<0?1:2):c.indexOf(e.name)>-1?a(e)?v+n.indentUnit:v+2*n.indentUnit:"Alternative"==e.name||"CatchFinally"==e.name?(v=u(e.parent,n),!t||/^((else|catch|finally)\b|\/[\/\*])/.test(t)?v:v+n.indentUnit):"ArrowRest"==e.name?v+n.indentUnit:"NewExpression"==e.name&&e.startLine.length>e.startPos+5?r.countColumn(e.startLine,e.startPos,n.tabSize)+2*n.indentUnit:"InitializerList"==e.name?v+2:"ThrowsClause"!=e.name||/throws\s*$/.test(e.startLine.slice(e.startPos))?d(e.parent,t,n):v+2*n.indentUnit}function f(e,t){for(;;e=e.parent){if(!e)return 0;if(c.indexOf(e.name)>-1||e.parent&&l[e.parent.name])return r.countColumn(e.startLine,null,t.tabSize)}}function h(e,t,n,i){var o=e.context&&e.context.name;if("DeclType"==o||"BeforeStatement"==o||"AnnotationHead"==o||"Template"==o||"str"==o)return f(e.context,i);if(("doccomment.braced"==o||"doccomment.tagGroup"==o)&&!/^[@*]/.test(t))return r.countColumn(e.context.startLine,null,i.tabSize)+2*i.indentUnit;var a=i.forceContent&&/^\s*(\/\/.*)?$/.test(n)?"x":n;return d(e.contextAt(a,n.length-t.length),t,i)}function p(e,t){for(var r=t-1;r>=0;r--){var n=e.charCodeAt(r);if(10===n)break;if(32!==n&&9!==n)return !1}return !0}var m=function(e){this.config=e;};m.prototype.startState=function(){return new g},m.prototype.copyState=function(e){return e.copy()},m.prototype.shouldInterceptTokenizing=function(e){var t=e.currentTemplateState;return void 0!==t&&null!==t.mode},m.prototype.interceptTokenizing=function(e,t){if(e.match("${")&&(e.backUp(2),!this.isEscaped(e,e.pos-2)))return {handled:!1};if("`"===e.peek()&&!this.isEscaped(e,e.pos))return {handled:!1};var r=t.currentTemplateState,n=r.mode,i=r.state,o=n.token(e,i);return this.backupIfEmbeddedTokenizerOvershot(e),{handled:!0,style:o}},m.prototype.trackState=function(e,t,r){if(e){var n=r.currentTemplateState;n&&"inline-expression"!==n.kind?this.trackStateInTemplate(e,t,r,n):this.trackStateNotInTemplate(e,t,r,n),r.previousVariable="variable"===e?t.current():null;}},m.prototype.trackStateNotInTemplate=function(e,t,r,n){if(n&&"string-2"===e&&t.current().startsWith("}"))return r.templateStack.pop(),void t.backUp(t.current().length-1);if("string-2"===e&&t.current().startsWith("`")){var i=this.getModeForTemplateTag(r.previousVariable),o="template";i?(t.backUp(t.current().length-1),r.templateStack.push(new y(o,i,CodeMirror.startState(i)))):r.templateStack.push(new y(o,null,null));}},m.prototype.trackStateInTemplate=function(e,t,r,n){"string-2"!==e||!t.current().endsWith("`")||this.isEscaped(t.pos-1)?"string-2"!==e||!t.current().endsWith("${")||this.isEscaped(t.pos-2)||r.templateStack.push(new y("inline-expression",null,null)):r.templateStack.pop();},m.prototype.backupIfEmbeddedTokenizerOvershot=function(e){for(var t=e.current(),r=0;;){var n=t.slice(r).search(/`|\$\{/);if(-1===n)return;n+=r;var i=t.length-n,o=e.pos-i;if(!this.isEscaped(e,o))return void e.backUp(t.length-n);r=n+1;}},m.prototype.isEscaped=function(e,t){for(var r=!1,n=t;n>0&&"\\"===e.string[n-1];)r=!r,n--;return r},m.prototype.getModeForTemplateTag=function(e){if(!e)return null;"htm"===e&&(e="html");for(var t=["google-"+e,""+e],r=0;r)",dontCloseBrackets:")",tabSize:t.tabSize,indentUnit:t.indentUnit,forceContent:!0};}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.startState=function(){var t=e.prototype.startState.call(this);return t.embeddedParserState=this.templateTokenizer.startState(),t},t.prototype.copyState=function(t){var r=e.prototype.copyState.call(this,t);return r.embeddedParserState=this.templateTokenizer.copyState(t.embeddedParserState),r},t.prototype.token=function(t,r){var n=r.embeddedParserState;if(this.templateTokenizer.shouldInterceptTokenizing(n)){var i=this.templateTokenizer.interceptTokenizing(t,n),a=i.handled,l=i.style;if(a)return l}var s=e.prototype.token.call(this,t,r);return this.templateTokenizer.trackState(s,t,n),function(e,t,r,n){if("def"==e){var i=function(e,t){for(var r=e;r;r=r.parent)if(t.indexOf(r.name)>-1)return r}(n.context,t),a=r.current();if(i&&(i.locals||(i.locals=[]),-1==i.locals.indexOf(a)&&i.locals.push(a),"funcName"!=n.context.name))return "def local"}else o.test(e)&&!/qualified/.test(e)&&function(e,t){for(var r=e;r;r=r.parent)if(r.locals&&r.locals.indexOf(t)>-1)return !0;return !1}(n.context,r.current())&&(e=e.replace(o,"$1variable-2$2"));return e}(s,b,t,r)},t.prototype.indent=function(e,t,r){return t||(t=r="x"),h(e,t,r,this.indentConf)},t}(r.GrammarMode),k={electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``"};for(var x in k)w.prototype[x]=k[x];r.registerHelper("wordChars","google-typescript",/[\w$]/),r.defineMode("google-typescript",(function(e,t){return new w(e,t)}));}((e="undefined"!=typeof globalThis?globalThis:e||self).CodeMirror);}(window),function(e,t){!function(e){function t(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}});}})),t.default=e,Object.freeze(t)}var r=t(e),n=[[1,"\n","\t"," "],/^[a-zA-Z\-\.0-9_]+/],i=Object.freeze({__proto__:null,nodes:[[1,3,0,0,1],[/^[^]/,0],[/^[^]/,-1],[2,4,-1,{name:"comment",token:"comment"},2,6,-1,{name:"doctype",token:"meta"},2,8,-1,{name:"tag"},3,"atom",/^\&(?:(?![\;\n\t ]).)*\;/,-1,[1,"\n",/^(?:(?![\&\<]).)+/],-1],["",-1],[/^(?:\<\!doctype|\<\!DOCTYPE)(?![a-zA-Z\-\.0-9_])/,7],[[0,/^(?!\>)/,/^[^]/],7,">",-1],[2,14,9,{name:"openTag"}],[3,"tag","/>",-1,[7,"selfClosing"],10,3,"tag",">",11],[3,"tag",">",-1],[1,3,11,/^(?=\<\/)/,12],[[7,"matchingTag"],13,0,-1],[2,21,-1,{name:"closeTag"}],[3,"tag",[0,"<",[6,24]],15],[n[0],15,3,"tag",n[1],16],[n[0],16,0,17],[3,"attribute",n[1],18,0,-1],[n[0],18,"=",19,0,20],[n[0],19,2,25,20,{name:"attributeValue",token:"string"}],[n[0],20,0,17],[3,"tag","",-1],[n[0],24,"/",-1],['"',26,"'",27,/^(?:(?![\n\t \>]).)*/,-1],[[0,/^(?!\")/,/^[^]/],26,'"',-1],[[0,/^(?!\')/,/^[^]/],27,"'",-1]],start:0,token:2});function o(e){var t=/^\s*([\w_\.-]+)/.exec(e);return t?t[1].toLowerCase():"x"}function a(e){return o(e.startLine.slice(e.startPos+1))}var l="area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" "),s={selfClosing:function(e,t,r){return l.indexOf(a(r))>-1},matchingTag:function(e,t,r){return o(e.slice(t+2))==a(r)}},c=function(e){function t(t,r){e.call(this,i,{predicates:s}),this.conf=t;}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.indent=function(e,t,r){return function(e,t,r,n){for(var i=e.contextAt(r,r.length-t.length),o=/^\s*<\/\s*([\w_\.-]+)/.exec(t);i;){if("tag"==i.name){var l=CodeMirror.countColumn(i.startLine,null,n.tabSize);return o&&o[1].toLowerCase()==a(i)?l:l+n.indentUnit}if("openTag"==i.name)return CodeMirror.countColumn(i.startLine,null,n.tabSize)+2*n.indentUnit;i=i.parent;}return 0}(e,t,r,this.conf)},t}(r.GrammarMode),u=c.prototype;u.electricInput=/^\s*<\/.*?>/,u.blockCommentStart="",u.fold="xml",function(e){e.xmlCurrentTag=function(e){var t=e.context;if(!t||"openTag"!=t.name&&"closeTag"!=t.name)return null;var r=/^<\/?\s*([\w\-\.]+)/.exec(t.startLine.slice(t.startPos));return r?{name:r[1],close:"closeTag"==t.name}:null},e.xmlCurrentContext=function(e){for(var t=[],r=e.context;r;r=r.parent)if("tag"==r.name){var n=/^<\s*([\w\-\.]+)/.exec(r.startLine.slice(r.startPos));n&&t.push(n[1]);}return t.reverse()};}(u),r.defineMode("google-html",(function(e,t){return new c(e,t)}));}((e="undefined"!=typeof globalThis?globalThis:e||self).CodeMirror);}(window),function(e){function t(e){for(var t={},r=0;r*\/]/.test(r)?x(null,"select-op"):"."==r&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?x("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?x(null,r):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(t.tokenize=T),x("variable callee","variable")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),x("property","word")):x(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),x("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?x("variable-2","variable-definition"):x("variable-2","variable")):e.match(/^\w+-/)?x("meta","meta"):void 0}function S(e){return function(t,r){for(var n,i=!1;null!=(n=t.next());){if(n==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==n;}return (n==e||!i&&")"!=e)&&(r.tokenize=null),x("string","string")}}function T(e,t){return e.next(),e.match(/^\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=S(")"),x(null,"(")}function L(e,t,r){this.type=e,this.indent=t,this.prev=r;}function A(e,t,r,n){return e.context=new L(r,t.indentation()+(!1===n?0:a),e.context),r}function M(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function z(e,t,r){return N[r.context.type](e,t,r)}function O(e,t,r,n){for(var i=n||1;i>0;i--)r.context=r.context.prev;return z(e,t,r)}function _(e){var t=e.current().toLowerCase();o=v.hasOwnProperty(t)?"atom":g.hasOwnProperty(t)?"keyword":"variable";}var N={top:function(e,t,r){if("{"==e)return A(r,t,"block");if("}"==e&&r.context.prev)return M(r);if(w&&/@component/i.test(e))return A(r,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return A(r,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return A(r,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return "keyframes";if(e&&"@"==e.charAt(0))return A(r,t,"at");if("hash"==e)o="builtin";else if("word"==e)o="tag";else {if("variable-definition"==e)return "maybeprop";if("interpolation"==e)return A(r,t,"interpolation");if(":"==e)return "pseudo";if(y&&"("==e)return A(r,t,"parens")}return r.context.type},block:function(e,t,r){if("word"==e){var n=t.current().toLowerCase();return f.hasOwnProperty(n)?(o="property","maybeprop"):h.hasOwnProperty(n)?(o=k?"string-2":"property","maybeprop"):y?(o=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(o+=" error","maybeprop")}return "meta"==e?"block":y||"hash"!=e&&"qualifier"!=e?N.top(e,t,r):(o="error","block")},maybeprop:function(e,t,r){return ":"==e?A(r,t,"prop"):z(e,t,r)},prop:function(e,t,r){if(";"==e)return M(r);if("{"==e&&y)return A(r,t,"propBlock");if("}"==e||"{"==e)return O(e,t,r);if("("==e)return A(r,t,"parens");if("hash"!=e||/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(t.current())){if("word"==e)_(t);else if("interpolation"==e)return A(r,t,"interpolation")}else o+=" error";return "prop"},propBlock:function(e,t,r){return "}"==e?M(r):"word"==e?(o="property","maybeprop"):r.context.type},parens:function(e,t,r){return "{"==e||"}"==e?O(e,t,r):")"==e?M(r):"("==e?A(r,t,"parens"):"interpolation"==e?A(r,t,"interpolation"):("word"==e&&_(t),"parens")},pseudo:function(e,t,r){return "meta"==e?"pseudo":"word"==e?(o="variable-3",r.context.type):z(e,t,r)},documentTypes:function(e,t,r){return "word"==e&&s.hasOwnProperty(t.current())?(o="tag",r.context.type):N.atBlock(e,t,r)},atBlock:function(e,t,r){if("("==e)return A(r,t,"atBlock_parens");if("}"==e||";"==e)return O(e,t,r);if("{"==e)return M(r)&&A(r,t,y?"block":"top");if("interpolation"==e)return A(r,t,"interpolation");if("word"==e){var n=t.current().toLowerCase();o="only"==n||"not"==n||"and"==n||"or"==n?"keyword":c.hasOwnProperty(n)?"attribute":u.hasOwnProperty(n)?"property":d.hasOwnProperty(n)?"keyword":f.hasOwnProperty(n)?"property":h.hasOwnProperty(n)?k?"string-2":"property":v.hasOwnProperty(n)?"atom":g.hasOwnProperty(n)?"keyword":"error";}return r.context.type},atComponentBlock:function(e,t,r){return "}"==e?O(e,t,r):"{"==e?M(r)&&A(r,t,y?"block":"top",!1):("word"==e&&(o="error"),r.context.type)},atBlock_parens:function(e,t,r){return ")"==e?M(r):"{"==e||"}"==e?O(e,t,r,2):N.atBlock(e,t,r)},restricted_atBlock_before:function(e,t,r){return "{"==e?A(r,t,"restricted_atBlock"):"word"==e&&"@counter-style"==r.stateArg?(o="variable","restricted_atBlock_before"):z(e,t,r)},restricted_atBlock:function(e,t,r){return "}"==e?(r.stateArg=null,M(r)):"word"==e?(o="@font-face"==r.stateArg&&!p.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==r.stateArg&&!m.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,r){return "word"==e?(o="variable","keyframes"):"{"==e?A(r,t,"top"):z(e,t,r)},at:function(e,t,r){return ";"==e?M(r):"{"==e||"}"==e?O(e,t,r):("word"==e?o="tag":"hash"==e&&(o="builtin"),"at")},interpolation:function(e,t,r){return "}"==e?M(r):"{"==e||";"==e?O(e,t,r):("word"==e?o="variable":"variable"!=e&&"("!=e&&")"!=e&&(o="error"),"interpolation")}};return {startState:function(e){return {tokenize:null,state:n?"block":"top",stateArg:null,context:new L(n?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var r=(t.tokenize||C)(e,t);return r&&"object"==typeof r&&(i=r[1],r=r[0]),o=r,"comment"!=i&&(t.state=N[t.state](i,e,t)),o},indent:function(e,t){var r=e.context,n=t&&t.charAt(0),i=r.indent;return "prop"!=r.type||"}"!=n&&")"!=n||(r=r.prev),r.prev&&("}"!=n||"block"!=r.type&&"top"!=r.type&&"interpolation"!=r.type&&"restricted_atBlock"!=r.type?(")"!=n||"parens"!=r.type&&"atBlock_parens"!=r.type)&&("{"!=n||"at"!=r.type&&"atBlock"!=r.type)||(i=Math.max(0,r.indent-a)):i=(r=r.prev).indent),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:b,fold:"brace"}}));var r=["domain","regexp","url","url-prefix"],n=t(r),i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],o=t(i),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],l=t(a),s=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],c=t(s),u=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","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-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","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","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","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","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","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","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-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],d=t(u),f=["accent-color","aspect-ratio","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-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","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],h=t(f),p=t(["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),m=t(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),g=["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","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","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","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","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","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],v=t(g),y=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","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","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","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","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","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","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","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","repeating-conic-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","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","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","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","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","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","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"],b=t(y),w=r.concat(i).concat(a).concat(s).concat(u).concat(f).concat(g).concat(y);function k(e,t){for(var r,n=!1;null!=(r=e.next());){if(n&&"/"==r){t.tokenize=null;break}n="*"==r;}return ["comment","comment"]}e.registerHelper("hintWords","css",w),e.defineMIME("text/css",{documentTypes:n,mediaTypes:o,mediaFeatures:l,mediaValueKeywords:c,propertyKeywords:d,nonStandardPropertyKeywords:h,fontProperties:p,counterDescriptors:m,colorKeywords:v,valueKeywords:b,tokenHooks:{"/":function(e,t){return !!e.eat("*")&&(t.tokenize=k,k(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:o,mediaFeatures:l,mediaValueKeywords:c,propertyKeywords:d,nonStandardPropertyKeywords:h,colorKeywords:v,valueKeywords:b,fontProperties:p,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=k,k(e,t)):["operator","operator"]},":":function(e){return !!e.match(/^\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return !!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:o,mediaFeatures:l,mediaValueKeywords:c,propertyKeywords:d,nonStandardPropertyKeywords:h,colorKeywords:v,valueKeywords:b,fontProperties:p,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=k,k(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return ["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:n,mediaTypes:o,mediaFeatures:l,propertyKeywords:d,nonStandardPropertyKeywords:h,fontProperties:p,counterDescriptors:m,colorKeywords:v,valueKeywords:b,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return !!e.eat("*")&&(t.tokenize=k,k(e,t))}},name:"css",helperType:"gss"});}(CodeMirror),function(e){e.defineMode("javascript",(function(t,r){var n,i,o=t.indentUnit,a=r.statementIndent,l=r.jsonld,s=r.json||l,c=!1!==r.trackScope,u=r.typescript,d=r.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function e(e){return {type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return {if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:i,break:i,continue:i,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),h=/[+\-*&%=<>!?|~^@]/,p=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function m(e,t,r){return n=e,i=r,t}function g(e,t){var r,n=e.next();if('"'==n||"'"==n)return t.tokenize=(r=n,function(e,t){var n,i=!1;if(l&&"@"==e.peek()&&e.match(p))return t.tokenize=g,m("jsonld-keyword","meta");for(;null!=(n=e.next())&&(n!=r||i);)i=!i&&"\\"==n;return i||(t.tokenize=g),m("string","string")}),t.tokenize(e,t);if("."==n&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return m("number","number");if("."==n&&e.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return m(n);if("="==n&&e.eat(">"))return m("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return m("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),m("number","number");if("/"==n)return e.eat("*")?(t.tokenize=v,v(e,t)):e.eat("/")?(e.skipToEnd(),m("comment","comment")):Je(e,t,1)?(function(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1);}r=!r&&"\\"==t;}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(e.eat("="),m("operator","operator",e.current()));if("`"==n)return t.tokenize=y,y(e,t);if("#"==n&&"!"==e.peek())return e.skipToEnd(),m("meta","meta");if("#"==n&&e.eatWhile(d))return m("variable","property");if("<"==n&&e.match("!--")||"-"==n&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),m("comment","comment");if(h.test(n))return ">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-|&?]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),"?"==n&&e.eat(".")?m("."):m("operator","operator",e.current());if(d.test(n)){e.eatWhile(d);var i=e.current();if("."!=t.lastType){if(f.propertyIsEnumerable(i)){var o=f[i];return m(o.type,o.style,i)}if("async"==i&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",i)}return m("variable","variable",i)}}function v(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=g;break}n="*"==r;}return m("comment","comment")}function y(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=g;break}n=!n&&"\\"==r;}return m("quasi","string-2",e.current())}function b(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(u){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index);}for(var i=0,o=!1,a=r-1;a>=0;--a){var l=e.string.charAt(a),s="([{}])".indexOf(l);if(s>=0&&s<3){if(!i){++a;break}if(0==--i){"("==l&&(o=!0);break}}else if(s>=3&&s<6)++i;else if(d.test(l))o=!0;else if(/["'\/`]/.test(l))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==l&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a);}}var w={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function k(e,t,r,n,i,o){this.indented=e,this.column=t,this.type=r,this.prev=i,this.info=o,null!=n&&(this.align=n);}function x(e,t){if(!c)return !1;for(var r=e.localVars;r;r=r.next)if(r.name==t)return !0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return !0}function C(e,t,r,n,i){var o=e.cc;for(S.state=e,S.stream=i,S.marked=null,S.cc=o,S.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():s?R:B)(r,n)){for(;o.length&&o[o.length-1].lex;)o.pop()();return S.marked?S.marked:"variable"==r&&x(e,n)?"variable-2":t}}var S={state:null,column:null,marked:null,cc:null};function T(){for(var e=arguments.length-1;e>=0;e--)S.cc.push(arguments[e]);}function L(){return T.apply(null,arguments),!0}function A(e,t){for(var r=t;r;r=r.next)if(r.name==e)return !0;return !1}function M(e){var t=S.state;if(S.marked="def",c){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=z(e,t.context);if(null!=n)return void(t.context=n)}else if(!A(e,t.localVars))return void(t.localVars=new N(e,t.localVars));r.globalVars&&!A(e,t.globalVars)&&(t.globalVars=new N(e,t.globalVars));}}function z(e,t){if(t){if(t.block){var r=z(e,t.prev);return r?r==t.prev?t:new _(r,t.vars,!0):null}return A(e,t.vars)?t:new _(t.prev,new N(e,t.vars),!1)}return null}function O(e){return "public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function _(e,t,r){this.prev=e,this.vars=t,this.block=r;}function N(e,t){this.name=e,this.next=t;}var P=new N("this",new N("arguments",null));function E(){S.state.context=new _(S.state.context,S.state.localVars,!1),S.state.localVars=P;}function D(){S.state.context=new _(S.state.context,S.state.localVars,!0),S.state.localVars=null;}function W(){S.state.localVars=S.state.context.vars,S.state.context=S.state.context.prev;}function F(e,t){var r=function(){var r=S.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var i=r.lexical;i&&")"==i.type&&i.align;i=i.prev)n=i.indented;r.lexical=new k(n,S.stream.column(),e,null,r.lexical,t);};return r.lex=!0,r}function I(){var e=S.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev);}function H(e){return function t(r){return r==e?L():";"==e||"}"==r||")"==r||"]"==r?T():L(t)}}function B(e,t){return "var"==e?L(F("vardef",t),Se,H(";"),I):"keyword a"==e?L(F("form"),j,B,I):"keyword b"==e?L(F("form"),B,I):"keyword d"==e?S.stream.match(/^\s*$/,!1)?L():L(F("stat"),V,H(";"),I):"debugger"==e?L(H(";")):"{"==e?L(F("}"),D,se,I,W):";"==e?L():"if"==e?("else"==S.state.lexical.info&&S.state.cc[S.state.cc.length-1]==I&&S.state.cc.pop()(),L(F("form"),j,B,I,Oe)):"function"==e?L(Ee):"for"==e?L(F("form"),D,_e,B,W,I):"class"==e||u&&"interface"==t?(S.marked="keyword",L(F("form","class"==e?e:t),He,I)):"variable"==e?u&&"declare"==t?(S.marked="keyword",L(B)):u&&("module"==t||"enum"==t||"type"==t)&&S.stream.match(/^\s*\w/,!1)?(S.marked="keyword","enum"==t?L(Ye):"type"==t?L(We,H("operator"),he,H(";")):L(F("form"),Te,H("{"),F("}"),se,I,I)):u&&"namespace"==t?(S.marked="keyword",L(F("form"),R,B,I)):u&&"abstract"==t?(S.marked="keyword",L(B)):L(F("stat"),te):"switch"==e?L(F("form"),j,H("{"),F("}","switch"),D,se,I,I,W):"case"==e?L(R,H(":")):"default"==e?L(H(":")):"catch"==e?L(F("form"),E,$,B,I,W):"export"==e?L(F("stat"),Ze,I):"import"==e?L(F("stat"),Ue,I):"async"==e?L(B):"@"==t?L(R,B):T(F("stat"),R,H(";"),I)}function $(e){if("("==e)return L(Fe,H(")"))}function R(e,t){return U(e,t,!1)}function Z(e,t){return U(e,t,!0)}function j(e){return "("!=e?T():L(F(")"),V,H(")"),I)}function U(e,t,r){if(S.state.fatArrowAt==S.stream.start){var n=r?Q:Y;if("("==e)return L(E,F(")"),ae(Fe,")"),I,H("=>"),n,W);if("variable"==e)return T(E,Te,H("=>"),n,W)}var i=r?G:K;return w.hasOwnProperty(e)?L(i):"function"==e?L(Ee,i):"class"==e||u&&"interface"==t?(S.marked="keyword",L(F("form"),Ie,I)):"keyword c"==e||"async"==e?L(r?Z:R):"("==e?L(F(")"),V,H(")"),I,i):"operator"==e||"spread"==e?L(r?Z:R):"["==e?L(F("]"),Xe,I,i):"{"==e?le(ne,"}",null,i):"quasi"==e?T(q,i):"new"==e?L(function(e){return function(t){return "."==t?L(e?ee:J):"variable"==t&&u?L(ke,e?G:K):T(e?Z:R)}}(r)):L()}function V(e){return e.match(/[;\}\)\],]/)?T():T(R)}function K(e,t){return ","==e?L(V):G(e,t,!1)}function G(e,t,r){var n=0==r?K:G,i=0==r?R:Z;return "=>"==e?L(E,r?Q:Y,W):"operator"==e?/\+\+|--/.test(t)||u&&"!"==t?L(n):u&&"<"==t&&S.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?L(F(">"),ae(he,">"),I,n):"?"==t?L(R,H(":"),i):L(i):"quasi"==e?T(q,n):";"!=e?"("==e?le(Z,")","call",n):"."==e?L(re,n):"["==e?L(F("]"),V,H("]"),I,n):u&&"as"==t?(S.marked="keyword",L(he,n)):"regexp"==e?(S.state.lastType=S.marked="operator",S.stream.backUp(S.stream.pos-S.stream.start-1),L(i)):void 0:void 0}function q(e,t){return "quasi"!=e?T():"${"!=t.slice(t.length-2)?L(q):L(V,X)}function X(e){if("}"==e)return S.marked="string-2",S.state.tokenize=y,L(q)}function Y(e){return b(S.stream,S.state),T("{"==e?B:R)}function Q(e){return b(S.stream,S.state),T("{"==e?B:Z)}function J(e,t){if("target"==t)return S.marked="keyword",L(K)}function ee(e,t){if("target"==t)return S.marked="keyword",L(G)}function te(e){return ":"==e?L(I,B):T(K,H(";"),I)}function re(e){if("variable"==e)return S.marked="property",L()}function ne(e,t){return "async"==e?(S.marked="property",L(ne)):"variable"==e||"keyword"==S.style?(S.marked="property","get"==t||"set"==t?L(ie):(u&&S.state.fatArrowAt==S.stream.start&&(r=S.stream.match(/^\s*:\s*/,!1))&&(S.state.fatArrowAt=S.stream.pos+r[0].length),L(oe))):"number"==e||"string"==e?(S.marked=l?"property":S.style+" property",L(oe)):"jsonld-keyword"==e?L(oe):u&&O(t)?(S.marked="keyword",L(ne)):"["==e?L(R,ce,H("]"),oe):"spread"==e?L(Z,oe):"*"==t?(S.marked="keyword",L(ne)):":"==e?T(oe):void 0;var r;}function ie(e){return "variable"!=e?T(oe):(S.marked="property",L(Ee))}function oe(e){return ":"==e?L(Z):"("==e?T(Ee):void 0}function ae(e,t,r){function n(i,o){if(r?r.indexOf(i)>-1:","==i){var a=S.state.lexical;return "call"==a.info&&(a.pos=(a.pos||0)+1),L((function(r,n){return r==t||n==t?T():T(e)}),n)}return i==t||o==t?L():r&&r.indexOf(";")>-1?T(e):L(H(t))}return function(r,i){return r==t||i==t?L():T(e,n)}}function le(e,t,r){for(var n=3;n"),he):"quasi"==e?T(ve,we):void 0}function pe(e){if("=>"==e)return L(he)}function me(e){return e.match(/[\}\)\]]/)?L():","==e||";"==e?L(me):T(ge,me)}function ge(e,t){return "variable"==e||"keyword"==S.style?(S.marked="property",L(ge)):"?"==t||"number"==e||"string"==e?L(ge):":"==e?L(he):"["==e?L(H("variable"),ue,H("]"),ge):"("==e?T(De,ge):e.match(/[;\}\)\],]/)?void 0:L()}function ve(e,t){return "quasi"!=e?T():"${"!=t.slice(t.length-2)?L(ve):L(he,ye)}function ye(e){if("}"==e)return S.marked="string-2",S.state.tokenize=y,L(ve)}function be(e,t){return "variable"==e&&S.stream.match(/^\s*[?:]/,!1)||"?"==t?L(be):":"==e?L(he):"spread"==e?L(be):T(he)}function we(e,t){return "<"==t?L(F(">"),ae(he,">"),I,we):"|"==t||"."==e||"&"==t?L(he):"["==e?L(he,H("]"),we):"extends"==t||"implements"==t?(S.marked="keyword",L(he)):"?"==t?L(he,H(":"),he):void 0}function ke(e,t){if("<"==t)return L(F(">"),ae(he,">"),I,we)}function xe(){return T(he,Ce)}function Ce(e,t){if("="==t)return L(he)}function Se(e,t){return "enum"==t?(S.marked="keyword",L(Ye)):T(Te,ce,Me,ze)}function Te(e,t){return u&&O(t)?(S.marked="keyword",L(Te)):"variable"==e?(M(t),L()):"spread"==e?L(Te):"["==e?le(Ae,"]"):"{"==e?le(Le,"}"):void 0}function Le(e,t){return "variable"!=e||S.stream.match(/^\s*:/,!1)?("variable"==e&&(S.marked="property"),"spread"==e?L(Te):"}"==e?T():"["==e?L(R,H("]"),H(":"),Le):L(H(":"),Te,Me)):(M(t),L(Me))}function Ae(){return T(Te,Me)}function Me(e,t){if("="==t)return L(Z)}function ze(e){if(","==e)return L(Se)}function Oe(e,t){if("keyword b"==e&&"else"==t)return L(F("form","else"),B,I)}function _e(e,t){return "await"==t?L(_e):"("==e?L(F(")"),Ne,I):void 0}function Ne(e){return "var"==e?L(Se,Pe):"variable"==e?L(Pe):T(Pe)}function Pe(e,t){return ")"==e?L():";"==e?L(Pe):"in"==t||"of"==t?(S.marked="keyword",L(R,Pe)):T(R,Pe)}function Ee(e,t){return "*"==t?(S.marked="keyword",L(Ee)):"variable"==e?(M(t),L(Ee)):"("==e?L(E,F(")"),ae(Fe,")"),I,de,B,W):u&&"<"==t?L(F(">"),ae(xe,">"),I,Ee):void 0}function De(e,t){return "*"==t?(S.marked="keyword",L(De)):"variable"==e?(M(t),L(De)):"("==e?L(E,F(")"),ae(Fe,")"),I,de,W):u&&"<"==t?L(F(">"),ae(xe,">"),I,De):void 0}function We(e,t){return "keyword"==e||"variable"==e?(S.marked="type",L(We)):"<"==t?L(F(">"),ae(xe,">"),I):void 0}function Fe(e,t){return "@"==t&&L(R,Fe),"spread"==e?L(Fe):u&&O(t)?(S.marked="keyword",L(Fe)):u&&"this"==e?L(ce,Me):T(Te,ce,Me)}function Ie(e,t){return "variable"==e?He(e,t):Be(e,t)}function He(e,t){if("variable"==e)return M(t),L(Be)}function Be(e,t){return "<"==t?L(F(">"),ae(xe,">"),I,Be):"extends"==t||"implements"==t||u&&","==e?("implements"==t&&(S.marked="keyword"),L(u?he:R,Be)):"{"==e?L(F("}"),$e,I):void 0}function $e(e,t){return "async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||u&&O(t))&&S.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(S.marked="keyword",L($e)):"variable"==e||"keyword"==S.style?(S.marked="property",L(Re,$e)):"number"==e||"string"==e?L(Re,$e):"["==e?L(R,ce,H("]"),Re,$e):"*"==t?(S.marked="keyword",L($e)):u&&"("==e?T(De,$e):";"==e||","==e?L($e):"}"==e?L():"@"==t?L(R,$e):void 0}function Re(e,t){if("!"==t)return L(Re);if("?"==t)return L(Re);if(":"==e)return L(he,Me);if("="==t)return L(Z);var r=S.state.lexical.prev;return T(r&&"interface"==r.info?De:Ee)}function Ze(e,t){return "*"==t?(S.marked="keyword",L(qe,H(";"))):"default"==t?(S.marked="keyword",L(R,H(";"))):"{"==e?L(ae(je,"}"),qe,H(";")):T(B)}function je(e,t){return "as"==t?(S.marked="keyword",L(H("variable"))):"variable"==e?T(Z,je):void 0}function Ue(e){return "string"==e?L():"("==e?T(R):"."==e?T(K):T(Ve,Ke,qe)}function Ve(e,t){return "{"==e?le(Ve,"}"):("variable"==e&&M(t),"*"==t&&(S.marked="keyword"),L(Ge))}function Ke(e){if(","==e)return L(Ve,Ke)}function Ge(e,t){if("as"==t)return S.marked="keyword",L(Ve)}function qe(e,t){if("from"==t)return S.marked="keyword",L(R)}function Xe(e){return "]"==e?L():T(ae(Z,"]"))}function Ye(){return T(F("form"),Te,H("{"),F("}"),ae(Qe,"}"),I,I)}function Qe(){return T(Te,Me)}function Je(e,t,r){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return E.lex=D.lex=!0,W.lex=!0,I.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new k((e||0)-o,0,"block",!1),localVars:r.localVars,context:r.localVars&&new _(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),b(e,t)),t.tokenize!=v&&e.eatSpace())return null;var r=t.tokenize(e,t);return "comment"==n?r:(t.lastType="operator"!=n||"++"!=i&&"--"!=i?n:"incdec",C(t,r,n,i,e))},indent:function(t,n){if(t.tokenize==v||t.tokenize==y)return e.Pass;if(t.tokenize!=g)return 0;var i,l=n&&n.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(n))for(var c=t.cc.length-1;c>=0;--c){var u=t.cc[c];if(u==I)s=s.prev;else if(u!=Oe&&u!=W)break}for(;("stat"==s.type||"form"==s.type)&&("}"==l||(i=t.cc[t.cc.length-1])&&(i==K||i==G)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;a&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var d=s.type,f=l==d;return "vardef"==d?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==d&&"{"==l?s.indented:"form"==d?s.indented+o:"stat"==d?s.indented+(function(e,t){return "operator"==e.lastType||","==e.lastType||h.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,n)?a||o:0):"switch"!=s.info||f||0==r.doubleIndentSwitch?s.align?s.column+(f?0:1):s.indented+(f?0:o):s.indented+(/^(?:case|default)\b/.test(n)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:s?null:"/*",blockCommentEnd:s?null:"*/",blockCommentContinue:s?null:" * ",lineComment:s?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:s?"json":"javascript",jsonldMode:l,jsonMode:s,expressionAllowed:Je,skipExpression:function(t){C(t,"atom","atom","true",new e.StringStream("",2,null));}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0});}(CodeMirror),function(e){var t={autoSelfClosers:{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},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{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}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},r={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(n,i){var o,a,l=n.indentUnit,s={},c=i.htmlMode?t:r;for(var u in c)s[u]=c[u];for(var u in i)s[u]=i[u];function d(e,t){function r(r){return t.tokenize=r,r(e,t)}var n=e.next();return "<"==n?e.eat("!")?e.eat("[")?e.match("CDATA[")?r(h("atom","]]>")):null:e.match("--")?r(h("comment","-->")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),r(p(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=h("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=f,"tag bracket"):"&"==n?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function f(e,t){var r,n,i=e.next();if(">"==i||"/"==i&&e.eat(">"))return t.tokenize=d,o=">"==i?"endTag":"selfcloseTag","tag bracket";if("="==i)return o="equals",null;if("<"==i){t.tokenize=d,t.state=b,t.tagName=t.tagStart=null;var a=t.tokenize(e,t);return a?a+" tag error":"tag error"}return /[\'\"]/.test(i)?(t.tokenize=(r=i,n=function(e,t){for(;!e.eol();)if(e.next()==r){t.tokenize=f;break}return "string"},n.isInAttribute=!0,n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function h(e,t){return function(r,n){for(;!r.eol();){if(r.match(t)){n.tokenize=d;break}r.next();}return e}}function p(e){return function(t,r){for(var n;null!=(n=t.next());){if("<"==n)return r.tokenize=p(e+1),r.tokenize(t,r);if(">"==n){if(1==e){r.tokenize=d;break}return r.tokenize=p(e-1),r.tokenize(t,r)}}return "meta"}}function m(e){return e&&e.toLowerCase()}function g(e,t,r){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=r,(s.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0);}function v(e){e.context&&(e.context=e.context.prev);}function y(e,t){for(var r;;){if(!e.context)return;if(r=e.context.tagName,!s.contextGrabbers.hasOwnProperty(m(r))||!s.contextGrabbers[m(r)].hasOwnProperty(m(t)))return;v(e);}}function b(e,t,r){return "openTag"==e?(r.tagStart=t.column(),w):"closeTag"==e?k:b}function w(e,t,r){return "word"==e?(r.tagName=t.current(),a="tag",S):s.allowMissingTagName&&"endTag"==e?(a="tag bracket",S(e,t,r)):(a="error",w)}function k(e,t,r){if("word"==e){var n=t.current();return r.context&&r.context.tagName!=n&&s.implicitlyClosed.hasOwnProperty(m(r.context.tagName))&&v(r),r.context&&r.context.tagName==n||!1===s.matchClosing?(a="tag",x):(a="tag error",C)}return s.allowMissingTagName&&"endTag"==e?(a="tag bracket",x(e,t,r)):(a="error",C)}function x(e,t,r){return "endTag"!=e?(a="error",x):(v(r),b)}function C(e,t,r){return a="error",x(e,0,r)}function S(e,t,r){if("word"==e)return a="attribute",T;if("endTag"==e||"selfcloseTag"==e){var n=r.tagName,i=r.tagStart;return r.tagName=r.tagStart=null,"selfcloseTag"==e||s.autoSelfClosers.hasOwnProperty(m(n))?y(r,n):(y(r,n),r.context=new g(r,n,i==r.indented)),b}return a="error",S}function T(e,t,r){return "equals"==e?L:(s.allowMissing||(a="error"),S(e,0,r))}function L(e,t,r){return "string"==e?A:"word"==e&&s.allowUnquoted?(a="string",S):(a="error",S(e,0,r))}function A(e,t,r){return "string"==e?A:S(e,0,r)}return d.isInText=!0,{startState:function(e){var t={tokenize:d,state:b,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var r=t.tokenize(e,t);return (r||o)&&"comment"!=r&&(a=null,t.state=t.state(o||r,e,t),a&&(r="error"==a?r+" error":a)),r},indent:function(t,r,n){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+l;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=f&&t.tokenize!=d)return n?n.match(/^(\s*)/)[0].length:0;if(t.tagName)return !1!==s.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+l*(s.multilineTagIndentFactor||1);if(s.alignCDATA&&/$/,blockCommentStart:"",configuration:s.htmlMode?"html":"xml",helperType:s.htmlMode?"html":"xml",skipAttribute:function(e){e.state==L&&(e.state=S);},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],r=e.context;r;r=r.prev)t.push(r.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0});}(CodeMirror),function(e){function t(e,t,r,n){this.state=e,this.mode=t,this.depth=r,this.prev=n;}function r(n){return new t(e.copyState(n.mode,n.state),n.mode,n.depth,n.prev&&r(n.prev))}e.defineMode("jsx",(function(n,i){var o=e.getMode(n,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),a=e.getMode(n,i&&i.base||"javascript");function l(e){var t=e.tagName;e.tagName=null;var r=o.indent(e,"","");return e.tagName=t,r}function s(r,i){return i.context.mode==o?function(r,i,c){if(2==c.depth)return r.match(/^.*?\*\//)?c.depth=1:r.skipToEnd(),"comment";if("{"==r.peek()){o.skipAttribute(c.state);var u=l(c.state),d=c.state.context;if(d&&r.match(/^[^>]*>\s*$/,!1)){for(;d.prev&&!d.startOfLine;)d=d.prev;d.startOfLine?u-=n.indentUnit:c.prev.state.lexical&&(u=c.prev.state.lexical.indented);}else 1==c.depth&&(u+=n.indentUnit);return i.context=new t(e.startState(a,u),a,0,i.context),null}if(1==c.depth){if("<"==r.peek())return o.skipAttribute(c.state),i.context=new t(e.startState(o,l(c.state)),o,0,i.context),null;if(r.match("//"))return r.skipToEnd(),"comment";if(r.match("/*"))return c.depth=2,s(r,i)}var f,h=o.token(r,c.state),p=r.current();return /\btag\b/.test(h)?/>$/.test(p)?c.state.context?c.depth=0:i.context=i.context.prev:/^-1&&r.backUp(p.length-f),h}(r,i,i.context):function(r,n,i){if("<"==r.peek()&&a.expressionAllowed(r,i.state))return n.context=new t(e.startState(o,a.indent(i.state,"","")),o,0,n.context),a.skipExpression(i.state),null;var l=a.token(r,i.state);if(!l&&null!=i.depth){var s=r.current();"{"==s?i.depth++:"}"==s&&0==--i.depth&&(n.context=n.context.prev);}return l}(r,i,i.context)}return {startState:function(){return {context:new t(e.startState(a),a)}},copyState:function(e){return {context:r(e.context)}},token:s,indent:function(e,t,r){return e.context.mode.indent(e.context.state,t,r)},innerMode:function(e){return e.context}}}),"xml","javascript"),e.defineMIME("text/jsx","jsx"),e.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}});}(CodeMirror); + +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +/** + * CodeMirror function. + * + * This function is defined as window.CodeMirror, but @types/codemirror doesn't + * declare that. + */ +const CodeMirror$1 = window.CodeMirror; + +const styles$5 = i$6 `/** + * This file is derived from \`code-mirror/lib/codemirror.css\`, modified in the + * following ways: + * + * - CSS custom properties added. + * - Rules for unused features and addons removed. + * - Unnecessary vendor prefixes removed. + * - \`.cm-s-default\` class selectors removed. + * - Empty rules removed. + */ + +/* BASICS */ + +.CodeMirror { + /* Set height, width, borders, and global font properties here */ + font-family: var(--playground-code-font-family, monospace); + font-size: var(--playground-code-font-size, 14px); + padding: var(--playground-code-padding, 0); + height: 350px; + color: var(--playground-code-default-color, #000); + background: var(--playground-code-background, #fff); + direction: ltr; + /* CodeMirror uses z-indexes up to 6 to e.g. place scrollbars above the code + area. However, this can create undesirable stacking effects with the rest + of the page. Force a new stacking context. */ + isolation: isolate; + line-height: var(--playground-code-line-height, 1.4em); +} + +/* PADDING */ + +.CodeMirror-lines { + padding: 4px 0; /* Vertical padding around content */ +} +.CodeMirror pre.CodeMirror-line, +.CodeMirror pre.CodeMirror-line-like { + padding: var( + --playground-code-line-padding, + 0 4px + ); /* Horizontal padding of content */ +} + +.CodeMirror-scrollbar-filler, +.CodeMirror-gutter-filler { + background: var( + --playground-code-background, + #fff + ); /* The little square between H and V scrollbars */ +} + +/* GUTTER */ + +.CodeMirror-gutters { + border-right: var(--playground-code-gutter-border-right, none); + background: var( + --playground-code-gutter-background, + var(--playground-code-background, #fff) + ); + box-shadow: var(--playground-code-gutter-box-shadow, none); + white-space: nowrap; +} +.CodeMirror-linenumber { + padding: 0 3px 0 5px; + min-width: 20px; + text-align: right; + color: var(--playground-code-linenumber-color, #767676); + white-space: nowrap; + margin-right: 1em; +} +.CodeMirror-code > div > .CodeMirror-line { + /* Some extra room between the line number gutter and the line */ + padding-left: 0.7em; +} + +/* CURSOR */ + +.CodeMirror-cursor { + border-left: 2px solid + var( + --playground-code-cursor-color, + var(--playground-code-default-color, #000) + ); + border-right: none; + width: 0; +} + +@keyframes blink { + 0% { + } + 50% { + background: transparent; + } + 100% { + } +} + +/* DEFAULT THEME */ + +.cm-header, +.cm-strong { + font-weight: bold; +} +.cm-em { + font-style: italic; +} +.cm-link { + text-decoration: underline; +} +.cm-strikethrough { + text-decoration: line-through; +} + +.cm-keyword { + color: var(--playground-code-keyword-color, #708); +} +.cm-atom { + color: var(--playground-code-atom-color, #219); +} +.cm-number { + color: var(--playground-code-number-color, #164); +} +.cm-def { + color: var(--playground-code-def-color, #00f); +} +.cm-variable { + color: var(--playground-code-variable-color, #000); +} +.cm-property { + color: var(--playground-code-property-color, #000); +} +.cm-operator { + color: var(--playground-code-operator-color, #000); +} +.cm-variable-2 { + color: var(--playground-code-variable-2-color, #05a); +} +.cm-variable-3 { + color: var(--playground-code-variable-3-color, #085); +} +.cm-type { + color: var(--playground-code-type-color, #085); +} +.cm-comment { + color: var(--playground-code-comment-color, #a50); +} +.cm-string { + color: var(--playground-code-string-color, #a11); +} +.cm-string-2 { + color: var(--playground-code-string-2-color, #f50); +} +.cm-meta { + color: var(--playground-code-meta-color, #555); +} +.cm-qualifier { + color: var(--playground-code-qualifier-color, #555); +} +.cm-builtin { + color: var(--playground-code-builtin-color, #30a); +} +.cm-tag { + color: var(--playground-code-tag-color, #170); +} +.cm-attribute { + color: var(--playground-code-attribute-color, #00c); +} +.cm-callee { + color: var(--playground-code-callee-color, #000); +} + +.CodeMirror-composing { + border-bottom: 2px solid; +} + +/* STOP */ + +/* The rest of this file contains styles related to the mechanics of + the editor. You probably shouldn't touch them. */ + +.CodeMirror { + position: relative; + overflow: hidden; +} + +.CodeMirror-scroll { + overflow: scroll !important; /* Things will break if this is overridden */ + /* 50px is the magic margin used to hide the element's real scrollbars */ + /* See overflow: hidden in .CodeMirror */ + margin-bottom: -50px; + margin-right: -50px; + padding-bottom: 50px; + height: 100%; + outline: none; /* Prevent dragging from highlighting the element */ + position: relative; +} +.CodeMirror-sizer { + position: relative; + border-right: 50px solid transparent; +} + +/* The fake, visible scrollbars. Used to force redraw during scrolling + before actual scrolling happens, thus preventing shaking and + flickering artifacts. */ +.CodeMirror-vscrollbar, +.CodeMirror-hscrollbar, +.CodeMirror-scrollbar-filler, +.CodeMirror-gutter-filler { + position: absolute; + z-index: 6; + display: none; + outline: none; +} +.CodeMirror-vscrollbar { + right: 0; + top: 0; + overflow-x: hidden; + overflow-y: scroll; +} +.CodeMirror-hscrollbar { + bottom: 0; + left: 0; + overflow-y: hidden; + overflow-x: scroll; +} +.CodeMirror-scrollbar-filler { + right: 0; + bottom: 0; +} +.CodeMirror-gutter-filler { + left: 0; + bottom: 0; +} + +.CodeMirror-gutters { + position: absolute; + left: 0; + top: 0; + min-height: 100%; + z-index: 3; +} +.CodeMirror-gutter { + white-space: normal; + height: 100%; + display: inline-block; + vertical-align: top; + margin-bottom: -50px; +} +.CodeMirror-gutter-wrapper { + position: absolute; + z-index: 4; + background: none !important; + border: none !important; +} +.CodeMirror-gutter-background { + position: absolute; + top: 0; + bottom: 0; + z-index: 4; +} +.CodeMirror-gutter-elt { + position: absolute; + cursor: default; + z-index: 4; +} +.CodeMirror-gutter-wrapper ::selection { + background: transparent; +} + +.CodeMirror-lines { + cursor: text; + min-height: 1px; /* prevents collapsing before first draw */ +} +.CodeMirror pre.CodeMirror-line, +.CodeMirror pre.CodeMirror-line-like { + /* Reset some styles that the rest of the page might have set */ + border-radius: 0; + border-width: 0; + background: transparent; + font-family: inherit; + font-size: inherit; + margin: 0; + white-space: pre; + word-wrap: normal; + line-height: inherit; + color: inherit; + z-index: 2; + position: relative; + overflow: visible; + -webkit-tap-highlight-color: transparent; + font-variant-ligatures: contextual; +} +.CodeMirror-wrap pre.CodeMirror-line, +.CodeMirror-wrap pre.CodeMirror-line-like { + word-wrap: break-word; + white-space: pre-wrap; + word-break: normal; +} + +.CodeMirror-linebackground { + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + z-index: 0; +} + +.CodeMirror-linewidget { + position: relative; + z-index: 2; + padding: 0.1px; /* Force widget margins to stay inside of the container */ +} + +.CodeMirror-rtl pre { + direction: rtl; +} + +.CodeMirror-code { + outline: none; +} + +/* Force content-box sizing for the elements where we expect it */ +.CodeMirror-scroll, +.CodeMirror-sizer, +.CodeMirror-gutter, +.CodeMirror-gutters, +.CodeMirror-linenumber { + box-sizing: content-box; +} + +.CodeMirror-measure { + position: absolute; + width: 100%; + height: 0; + overflow: hidden; + visibility: hidden; +} + +.CodeMirror-cursor { + position: absolute; + pointer-events: none; +} +.CodeMirror-measure pre { + position: static; +} + +div.CodeMirror-cursors { + visibility: hidden; + position: relative; + z-index: 3; +} +div.CodeMirror-dragcursors { + visibility: visible; +} + +.CodeMirror-focused div.CodeMirror-cursors { + visibility: visible; +} + +.CodeMirror-selected { + background: var(--playground-code-selection-background, #d7d4f0); +} +.CodeMirror-focused .CodeMirror-selected { + background: var(--playground-code-selection-background, #d7d4f0); +} +.CodeMirror-crosshair { + cursor: crosshair; +} +.CodeMirror-line::selection, +.CodeMirror-line > span::selection, +.CodeMirror-line > span > span::selection { + background: var(--playground-code-selection-background, #d7d4f0); +} + +/* Completions */ + +.CodeMirror-hints { + position: absolute; + z-index: 10; + overflow: hidden; + list-style: none; + + margin: 0; + padding: 0; + + box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, + rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px; + border: 1px solid var(--playground-code-selection-background, silver); + + background: var(--playground-code-background, white); + font-size: var(--playground-code-font-size, 14px); + font-family: var(--playground-code-font-family, monospace); + + max-height: 20em; + width: 600px; + max-width: min(600px, 80vw); + overflow-y: auto; +} + +.CodeMirror-hint { + margin: 0; + padding: 0 6px; + white-space: pre; + color: var(--playground-code-cursor-color, black); + cursor: pointer; + display: flex; + justify-content: space-between; +} + +@media (pointer: coarse) { + .CodeMirror-hint { + padding: 1em 6px; + } +} + +.CodeMirror-hint-active { + background: var(--playground-code-background, rgba(0, 0, 0, 0.2)); + filter: brightness(1.2); +} + +.CodeMirror-hint mark { + background: inherit; + color: var(--playground-code-qualifier-color, #555); +} + +.CodeMirror-hint .hint-object-name { + padding-right: 2em; + white-space: nowrap; +} + +.CodeMirror-hint .hint-object-details { + flex-basis: 80%; + font-size: calc(var(--playground-code-font-size, 14px) * 0.9); + color: var(--playground-code-string-2-color, white); + opacity: 0.8; + text-align: right; + + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +/* Used to force a border model for a node */ +.cm-force-border { + padding-right: 0.1px; +} + +@media print { + /* Hide the cursor when printing */ + .CodeMirror div.CodeMirror-cursors { + visibility: hidden; + } +} + +/* See issue #2901 */ +.cm-tab-wrap-hack:after { + content: ''; +} + +/* Help users use markselection to safely style text background */ +span.CodeMirror-selectedtext { + background: none; +} +`; + +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +/** + * An absolutely positioned scrim with a floating message. + */ +let PlaygroundInternalOverlay = class PlaygroundInternalOverlay extends s$1 { + render() { + return x `
`; + } +}; +PlaygroundInternalOverlay.styles = i$6 ` + :host { + position: absolute; + width: 100%; + height: 100%; + box-sizing: border-box; + left: 0; + top: 0; + display: flex; + align-items: center; + justify-content: center; + background: transparent; + z-index: 9; + background: rgba(0, 0, 0, 0.32); + overflow-y: auto; + } + + #message { + background: #fff; + color: #000; + padding: 10px 20px; + border-radius: 5px; + box-shadow: rgba(0, 0, 0, 0.3) 0 2px 10px; + } + `; +PlaygroundInternalOverlay = __decorate([ + e$6('playground-internal-overlay') +], PlaygroundInternalOverlay); + +/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +/** + * A basic text editor with syntax highlighting for HTML, CSS, and JavaScript. + */ +let PlaygroundCodeEditor = class PlaygroundCodeEditor extends s$1 { + constructor() { + super(...arguments); + /** + * WeakMap associating a `documentKey` with CodeMirror document instance. + * A WeakMap is used so that this component does not become the source of + * memory leaks. + */ + // eslint-disable-next-line @typescript-eslint/ban-types + this._docCache = new WeakMap(); + /** + * If true, display a left-hand-side gutter with line numbers. Default false + * (hidden). + */ + this.lineNumbers = false; + /** + * If true, wrap for long lines. Default false + */ + this.lineWrapping = false; + /** + * If true, this editor is not editable. + */ + this.readonly = false; + /** + * If true, will disable code completions in the code-editor. + */ + this.noCompletions = false; + this._completionsOpen = false; + this._currentCompletionSelectionLabel = ''; + this._currentCompletionRequestId = 0; + /** + * How to handle `playground-hide` and `playground-fold` comments. + * + * See https://github.com/google/playground-elements#hiding--folding for + * more details. + * + * Options: + * - on: Hide and fold regions, and hide the special comments. + * - off: Don't hide or fold regions, but still hide the special comments. + * - off-visible: Don't hide or fold regions, and show the special comments as + * literal text. + */ + this.pragmas = 'on'; + this._showKeyboardHelp = false; + this._resizing = false; + this._valueChangingFromOutside = false; + this._diagnosticMarkers = []; + this._diagnosticsMouseoverListenerActive = false; + // Using property assignment syntax so that it's already bound to `this` for + // add/removeEventListener. + this._onMouseOverWithDiagnostics = (event) => { + var _a, _b, _c; + if (!((_a = this.diagnostics) === null || _a === void 0 ? void 0 : _a.length)) { + return; + } + // Find the diagnostic. Note we could use cm.findMarksAt() with the pointer + // coordinates (like the built-in linter plugin does), but since we've + // encoded the diagnostic index into a class, we can just extract it + // directly from the target. + const idxMatch = (_b = event.target.className) === null || _b === void 0 ? void 0 : _b.match(/diagnostic-(\d+)/); + if (idxMatch === null) { + this._tooltipDiagnostic = undefined; + return; + } + const idx = Number(idxMatch[1]); + const diagnostic = this.diagnostics[idx]; + if (diagnostic === ((_c = this._tooltipDiagnostic) === null || _c === void 0 ? void 0 : _c.diagnostic)) { + // Already showing the tooltip for this diagnostic. + return; + } + // Position the tooltip relative to the squiggly code span. To maximize + // available space, place it above/below and left/right depending on which + // quadrant the span is in. + let position = ''; + const hostRect = this.getBoundingClientRect(); + const spanRect = event.target.getBoundingClientRect(); + const hostCenterY = hostRect.y + hostRect.height / 2; + if (spanRect.y < hostCenterY) { + // Note the rects are viewport relative, so the extra subtractions here + // are to convert to host-relative. + position += `top:${spanRect.y + spanRect.height - hostRect.y}px;`; + } + else { + position += `bottom:${hostRect.bottom - spanRect.y}px;`; + } + const hostCenterX = hostRect.x + hostRect.width / 2; + if (spanRect.left < hostCenterX) { + position += `left:${Math.max(0, spanRect.x - hostRect.x)}px`; + } + else { + position += `right:${Math.max(0, hostRect.right - spanRect.right)}px`; + } + this._tooltipDiagnostic = { diagnostic, position }; + }; + } + get cursorPosition() { + var _a; + const cursor = (_a = this._codemirror) === null || _a === void 0 ? void 0 : _a.getCursor('start'); + if (!cursor) + return { ch: 0, line: 0 }; + return { + ch: cursor.ch, + line: cursor.line, + }; + } + get cursorIndex() { + const cm = this._codemirror; + if (!cm) + return 0; + const cursorPosition = cm.getCursor('start'); + return cm.indexFromPos(cursorPosition); + } + get tokenUnderCursor() { + const cm = this._codemirror; + if (!cm) + return { start: 0, end: 0, string: '' }; + const cursorPosition = cm.getCursor('start'); + const token = cm.getTokenAt(cursorPosition); + return { + start: token.start, + end: token.end, + string: token.string, + }; + } + get value() { + return this._value; + } + set value(v) { + const oldValue = this._value; + this._value = v; + this.requestUpdate('value', oldValue); + } + update(changedProperties) { + var _a, _b, _c, _d, _e, _f; + const cm = this._codemirror; + if (cm === undefined) { + this._createView(); + } + else { + const changedTyped = changedProperties; + for (const prop of changedTyped.keys()) { + switch (prop) { + case 'documentKey': { + const docKey = (_a = this.documentKey) !== null && _a !== void 0 ? _a : {}; + let docInstance = this._docCache.get(docKey); + let createdNewDoc = false; + if (!docInstance) { + docInstance = new CodeMirror$1.Doc((_b = this.value) !== null && _b !== void 0 ? _b : '', this._getLanguageMode()); + this._docCache.set(docKey, docInstance); + createdNewDoc = true; + } + else if (docInstance.getValue() !== this.value) { + // The retrieved document instance has contents which don't + // match the currently set `value`. + docInstance.setValue((_c = this.value) !== null && _c !== void 0 ? _c : ''); + } + this._valueChangingFromOutside = true; + cm.swapDoc(docInstance); + if (createdNewDoc) { + // Swapping to a document instance doesn't trigger a change event + // which is required for document folding. Manually fold once on + // document instantiation. + /* eslint-disable @typescript-eslint/no-floating-promises */ + this._applyHideAndFoldRegions(); + /* eslint-enable @typescript-eslint/no-floating-promises */ + } + this._valueChangingFromOutside = false; + break; + } + case 'value': + if (changedTyped.has('documentKey')) { + // If the `documentKey` has changed then all `value` change logic + // is handled in the documentKey case. + break; + } + this._valueChangingFromOutside = true; + cm.setValue((_d = this.value) !== null && _d !== void 0 ? _d : ''); + this._valueChangingFromOutside = false; + break; + case 'lineNumbers': + cm.setOption('lineNumbers', this.lineNumbers); + break; + case 'lineWrapping': + if (this.lineWrapping) { + cm.on('renderLine', this._onRenderLine); + } + else { + cm.off('renderLine', this._onRenderLine); + } + cm.setOption('lineWrapping', this.lineWrapping); + break; + case 'type': + cm.setOption('mode', this._getLanguageMode()); + break; + case 'readonly': + cm.setOption('readOnly', this.readonly); + break; + case 'pragmas': + /* eslint-disable @typescript-eslint/no-floating-promises */ + this._applyHideAndFoldRegions(); + /* eslint-enable @typescript-eslint/no-floating-promises */ + break; + case 'diagnostics': + this._showDiagnostics(); + break; + case 'cursorIndex': + cm.setCursor((_e = this.cursorIndex) !== null && _e !== void 0 ? _e : 0); + break; + case 'cursorPosition': + cm.setCursor((_f = this.cursorPosition) !== null && _f !== void 0 ? _f : { ch: 0, line: 0 }); + break; + case '_completions': + this._showCompletions(); + break; + } + } + } + super.update(changedProperties); + } + render() { + var _a, _b; + if (this.readonly) { + return this._cmDom; + } + return x ` +
+ ${this._showKeyboardHelp + ? x ` +

+ Press Enter to start editing
+ Press Escape to exit editor +

+
` + : A} + ${this._cmDom} +
+
+ ${(_b = this._tooltipDiagnostic) === null || _b === void 0 ? void 0 : _b.diagnostic.message} +
+
+
+ `; + } + connectedCallback() { + // CodeMirror uses JavaScript to control whether scrollbars are visible. It + // does so automatically on interaction, but won't notice container size + // changes. If the browser doesn't have ResizeObserver, scrollbars will + // sometimes be missing, but typing in the editor will fix it. + if (typeof ResizeObserver === 'function') { + this._resizeObserver = new ResizeObserver(() => { + var _a; + if (this._resizing) { + // Don't get in a resize loop. + return; + } + this._resizing = true; + (_a = this._codemirror) === null || _a === void 0 ? void 0 : _a.refresh(); + this._resizing = false; + }); + this._resizeObserver.observe(this); + } + super.connectedCallback(); + } + disconnectedCallback() { + var _a; + (_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect(); + this._resizeObserver = undefined; + super.disconnectedCallback(); + } + _createView() { + var _a; + const cm = CodeMirror$1((dom) => { + this._cmDom = dom; + this._resizing = true; + requestAnimationFrame(() => { + requestAnimationFrame(() => { + var _a; + // It seems that some dynamic layouts confuse CodeMirror, causing it + // to measure itself too soon, which then causes the position of + // interactions to be interpreted incorrectly. Here we hackily force + // a refresh after initial layout is usually done. + (_a = this._codemirror) === null || _a === void 0 ? void 0 : _a.refresh(); + this._resizing = false; + }); + }); + }, { + value: (_a = this.value) !== null && _a !== void 0 ? _a : '', + lineNumbers: this.lineNumbers, + lineWrapping: this.lineWrapping, + mode: this._getLanguageMode(), + readOnly: this.readonly, + inputStyle: 'contenteditable', + // Don't allow naturally tabbing into the editor, because it's a + // tab-trap. Instead, the container is focusable, and Enter/Escape are + // used to explicitly enter the editable area. + tabindex: -1, + // Tab key inserts spaces instead of tab character + extraKeys: { + Tab: () => { + var _a; + cm.replaceSelection(Array(((_a = cm.getOption('indentUnit')) !== null && _a !== void 0 ? _a : 2) + 1).join(' ')); + }, + // Ctrl + Space requests code completions. + ['Ctrl-Space']: () => { + const tokenUnderCursor = this.tokenUnderCursor.string.trim(); + this._requestCompletions({ + isRefinement: false, + tokenUnderCursor, + }); + }, + ['Ctrl-/']: () => cm.toggleComment(), + ['Cmd-/']: () => cm.toggleComment(), + }, + }); + cm.on('change', (_editorInstance, changeObject) => { + this._value = cm.getValue(); + // External changes are usually things like the editor switching which + // file it is displaying. + if (this._valueChangingFromOutside) { + // Users can't change hide/fold regions. + /* eslint-disable @typescript-eslint/no-floating-promises */ + this._applyHideAndFoldRegions(); + /* eslint-enable @typescript-eslint/no-floating-promises */ + this._showDiagnostics(); + } + else { + this.dispatchEvent(new Event('change')); + this._requestCompletionsIfNeeded(changeObject); + } + }); + if (this.lineWrapping) { + cm.on('renderLine', this._onRenderLine); + } + this._codemirror = cm; + } + _onRenderLine(editorInstance, line, elt) { + // When wrapping a line the subsequent wrapped code + // needs to keep the same formatting and have the + // same amount of indentation. + // + // Each line has an initial `padding-left`, this needs + // to be preserved with the indent: + // - playground-styles.css#L39 - standard padding. + // - playground-styles.css#L72 - extra with line numbers. + const basePadding = 4; + const gutter = editorInstance.getOption('lineNumbers') + ? '0.7em' + : `${basePadding}px`; + const tabSize = editorInstance.getOption('tabSize') || basePadding; + const off = CodeMirror$1.countColumn(line.text, null, tabSize); + if (off > 0) { + elt.style.textIndent = `-${off}ch`; + elt.style.paddingLeft = `calc(${gutter} + ${off}ch)`; + } + } + _requestCompletionsIfNeeded(changeObject) { + if (this.noCompletions || + !this._currentFiletypeSupportsCompletion() || + !this._codemirror) + return; + const previousToken = this._codemirror.getTokenAt(changeObject.from); + const tokenUnderCursor = this.tokenUnderCursor.string.trim(); + const tokenUnderCursorAsString = tokenUnderCursor.trim(); + // To help reduce round trips to a language service or a completion provider, we + // are providing a flag if the completion is building on top of the earlier recommendations. + // If the flag is true, the completion system can just filter the already stored + // collection of completions again with the more precise input. + // On deletion events, we want to query the LS again, since we might be in a new context after + // removing characters from our code. + const isInputEvent = changeObject.origin === '+input'; + const isRefinement = (tokenUnderCursor.length > 1 || previousToken.string === '.') && + isInputEvent; + const changeWasCodeCompletion = changeObject.origin === 'complete'; + if (tokenUnderCursorAsString.length <= 0) + return; + if (changeWasCodeCompletion) { + // If the case that the user triggered a code completion, + // we want to empty out the completions until + // a letter is input. + this._completions = []; + return; + } + this._requestCompletions({ + isRefinement, + tokenUnderCursor, + }); + } + _requestCompletions({ isRefinement, tokenUnderCursor, }) { + if (this.noCompletions || + !this._currentFiletypeSupportsCompletion() || + !this._codemirror) + return; + const id = ++this._currentCompletionRequestId; + const cursorIndexOnRequest = this.cursorIndex; + this.dispatchEvent(new CustomEvent('request-completions', { + detail: { + isRefinement, + fileContent: this.value, + tokenUnderCursor, + cursorIndex: this.cursorIndex, + provideCompletions: (completions) => this._onCompletionsProvided(id, completions, cursorIndexOnRequest), + }, + })); + } + _onCompletionsProvided(id, completions, cursorIndex) { + // To prevent race conditioning, check that the completions provided + // are from the latest completions request. + // We also check that the cursor hasn't moved to another position since the + // completion request, causing the completion to be applied in a wrong spot. + if (id !== this._currentCompletionRequestId || + cursorIndex !== this.cursorIndex) { + return; + } + this._completions = completions; + } + _currentFiletypeSupportsCompletion() { + // Currently we are only supporting code completion for TS. Change + // this in a case that we start to support it for other languages too. + return this.type === 'ts'; + } + focus() { + var _a; + (_a = this._codemirrorEditable) === null || _a === void 0 ? void 0 : _a.focus(); + } + _completionsAsHints() { + var _a, _b; + const cm = this._codemirror; + const cursorPosition = cm.getCursor('start'); + const token = cm.getTokenAt(cursorPosition); + const lineNumber = cursorPosition.line; + const hintList = (_b = (_a = this._completions) === null || _a === void 0 ? void 0 : _a.map((comp, i) => ({ + text: comp.text, + displayText: comp.displayText, + render: (element, _data, hint) => { + const codeEditorHint = hint; + this._renderHint(element, _data, codeEditorHint, i === 0 ? comp.details : undefined // Only render the detail on the first item + ); + }, + get details() { + return comp.details; + }, + }))) !== null && _b !== void 0 ? _b : []; + const hints = { + from: { line: lineNumber, ch: token.start }, + to: { line: lineNumber, ch: token.end }, + list: hintList, + }; + CodeMirror$1.on(hints, 'select', async (hint, element) => { + var _a; + if (!this._isCodeEditorHint(hint)) + return; + // If the current selection is the same, e.g. the completions were just + // updated by user input, instead of moving through completions, we don't + // want to re-render and re-fetch the details. + if (this._currentCompletionSelectionLabel === hint.text) + return; + (_a = this._onCompletionSelectedChange) === null || _a === void 0 ? void 0 : _a.call(this); + this._renderHint(element, hints, hint, hint.details); + }); + // As CodeMirror doesn't let us directly query if the completion hints are shown, + // we want to have our own local state following the completions menu state. + CodeMirror$1.on(hints, 'shown', () => { + // Delay updating the status by a frame so that key listeners still have + // access to the correct state for the current situation. + window.requestAnimationFrame(() => { + this._completionsOpen = true; + }); + }); + CodeMirror$1.on(hints, 'close', () => { + window.requestAnimationFrame(() => { + this._completionsOpen = false; + }); + }); + return hints; + } + _isCodeEditorHint(hint) { + return (typeof hint !== 'string' && + Object.prototype.hasOwnProperty.call(hint, 'details')); + } + _renderHint(element, _data, hint, detail) { + var _a; + if (!element) + return; + const itemIndex = _data.list.indexOf(hint); + const completionData = (_a = this._completions) === null || _a === void 0 ? void 0 : _a[itemIndex]; + const objectName = this._buildHintObjectName(hint.displayText, completionData); + // Render the actual completion item first + this._renderCompletionItem(objectName, element); + // And if we have the detail promise passed into this function, + // we want to asynchronously update the detail info into our completion + // item. We don't want to block the rendering, so we don't use await. + // + // The detail promise is passed into this function only for the item + // currently highlighted from the completions list. + if (detail !== undefined) { + /* eslint-disable @typescript-eslint/no-floating-promises */ + detail.then((detailResult) => { + this._renderCompletionItemWithDetails(objectName, detailResult, element); + // Set the current onSelectedChange to a callback to re-render + // the currently selected element, but without the details. This is + // then triggered when moving to another selection, removing the details + // text from the previously selected element. + this._onCompletionSelectedChange = () => this._renderHint(element, _data, hint); + this._currentCompletionSelectionLabel = hint.text; + }); + /* eslint-enable @typescript-eslint/no-floating-promises */ + } + } + _renderCompletionItem(objectName, target) { + B(x `${objectName}`, target); + } + _renderCompletionItemWithDetails(objectName, details, target) { + B(x `${objectName} + ${details.text} `, target); + } + /** + * Builds the name of the completable item for use in the completion UI. + * Using marks, we can highlight the matching characters in the typed input + * matching with the completion suggestion. + */ + _buildHintObjectName(objectName, completionData) { + var _a; + const markedObjectName = objectName !== null && objectName !== void 0 ? objectName : ''; + const matches = (_a = completionData === null || completionData === void 0 ? void 0 : completionData.matches) !== null && _a !== void 0 ? _a : []; + if (matches.length <= 0) { + // In the situation, that none of the input matches with the + // completion item suggestion, we exit early, leaving the objectName unmarked. + return markedObjectName; + } + const firstMatch = matches[0]; + const firstMatchingIndex = firstMatch.indices[0]; + const start = firstMatchingIndex[0]; + const end = firstMatchingIndex[1]; + const preMarkContent = markedObjectName === null || markedObjectName === void 0 ? void 0 : markedObjectName.substring(0, start); + const markedContent = markedObjectName === null || markedObjectName === void 0 ? void 0 : markedObjectName.substring(start, end + 1); + const postMarkedContent = markedObjectName === null || markedObjectName === void 0 ? void 0 : markedObjectName.substring(end + 1); + return x ` + ${preMarkContent}${markedContent}${postMarkedContent} + `; + } + _showCompletions() { + const cm = this._codemirror; + if (!cm || !this._completions || this._completions.length <= 0) + return; + const options = { + hint: this._completionsAsHints.bind(this), + completeSingle: false, + closeOnPick: true, + closeOnUnfocus: true, + container: this._focusContainer, + alignWithWord: true, + }; + cm.showHint(options); + } + _onMousedown() { + var _a; + // Directly focus editable region. + (_a = this._codemirrorEditable) === null || _a === void 0 ? void 0 : _a.focus(); + } + _onFocus() { + // Outer container was focused, either by tabbing from outside, or by + // pressing Escape. + this._showKeyboardHelp = true; + } + _onBlur() { + // Outer container was unfocused, either by tabbing away from it, or by + // pressing Enter. + this._showKeyboardHelp = false; + } + _onKeyDown(event) { + var _a, _b; + if (event.key === 'Enter' && event.target === this._focusContainer) { + (_a = this._codemirrorEditable) === null || _a === void 0 ? void 0 : _a.focus(); + // Prevent typing a newline from this same event. + event.preventDefault(); + } + else if (event.key === 'Escape') { + // If the user has completions selection UI opened up, Escape's default action + // is to close the completion UI instead of escaping the code editor instance. + // Therefore we only focus on the focusContainer in situations where the completions + // UI is not open. + if (!this._completionsOpen) { + // Note there is no API for "select the next naturally focusable element", + // so instead we just re-focus the outer container, from which point the + // user can tab to move focus entirely elsewhere. + (_b = this._focusContainer) === null || _b === void 0 ? void 0 : _b.focus(); + } + } + } + /** + * Create hidden and folded regions for playground-hide and playground-fold + * comments. + */ + async _applyHideAndFoldRegions() { + const cm = this._codemirror; + if (!cm) { + return; + } + // Reset any existing hide/fold regions. + for (const mark of cm.getAllMarks()) { + mark.clear(); + } + if (this.pragmas === 'off-visible') { + return; + } + const pattern = this._maskPatternForLang(); + if (pattern === undefined) { + return; + } + const doc = cm.getDoc(); + const fold = (fromIdx, toIdx) => { + cm.foldCode(/* ignored by our rangeFinder */ 0, { + widget: '…', + rangeFinder: () => ({ + from: doc.posFromIndex(fromIdx), + to: doc.posFromIndex(toIdx), + }), + }); + }; + const hide = (fromIdx, toIdx, readOnly) => { + doc.markText(doc.posFromIndex(fromIdx), doc.posFromIndex(toIdx), { + collapsed: true, + readOnly, + }); + }; + const value = cm.getValue(); + for (const match of value.matchAll(pattern)) { + const [, opener, kind, content, closer] = match; + const openerStart = match.index; + if (openerStart === undefined) { + continue; + } + const openerEnd = openerStart + opener.length; + hide(openerStart, openerEnd, false); + const contentStart = openerEnd; + let contentEnd; + if (content && closer) { + contentEnd = contentStart + content.length; + const closerStart = contentEnd; + const closerEnd = contentEnd + closer.length; + hide(closerStart, closerEnd, false); + } + else { + // No matching end comment. Include the entire rest of the file. + contentEnd = value.length; + } + if (this.pragmas === 'on') { + if (kind === 'fold') { + fold(contentStart, contentEnd); + } + else if (kind === 'hide') { + hide(contentStart, contentEnd, true); + } + } + } + } + _maskPatternForLang() { + switch (this.type) { + case 'js': + case 'ts': + case 'css': + case 'jsx': + case 'tsx': + // We consume all leading whitespace and one trailing newline for each + // start/end comment. This lets us put start/end comments on their own + // line and indent them like the surrounding without affecting the + // selected region. + return /( *\/\* *playground-(?hide|fold) *\*\/\n?)(?:(.*?)( *\/\* *playground-\k-end *\*\/\n?))?/gs; + case 'html': + return /( *\n?)(?:(.*?)( *\n?))?/gs; + default: + return undefined; + } + } + _getLanguageMode() { + switch (this.type) { + case 'ts': + return 'google-typescript'; + case 'js': + case 'json': + // While the stock CodeMirror JavaScript mode has a restricted "json" + // mode, the google-javascript mode does not (which we use because it + // supports html-in-js highlighting). Adding the CodeMirror JavaScript + // mode would add ~50KiB minified + brotli, so let's just put up with + // the fact that you'll get highlighting for JS even though it's not + // valid JSON. + return 'google-javascript'; + case 'html': + return 'google-html'; + case 'css': + return 'css'; + case 'jsx': + case 'tsx': + return 'jsx'; + } + return undefined; + } + _showDiagnostics() { + const cm = this._codemirror; + if (cm === undefined) { + return; + } + cm.operation(() => { + var _a, _b, _c; + this._tooltipDiagnostic = undefined; + while (this._diagnosticMarkers.length > 0) { + this._diagnosticMarkers.pop().clear(); + } + if (!((_a = this.diagnostics) === null || _a === void 0 ? void 0 : _a.length)) { + if (this._diagnosticsMouseoverListenerActive) { + (_b = this._cmDom) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseover', this._onMouseOverWithDiagnostics); + this._diagnosticsMouseoverListenerActive = false; + } + return; + } + if (!this._diagnosticsMouseoverListenerActive) { + (_c = this._cmDom) === null || _c === void 0 ? void 0 : _c.addEventListener('mouseover', this._onMouseOverWithDiagnostics); + this._diagnosticsMouseoverListenerActive = true; + } + for (let i = 0; i < this.diagnostics.length; i++) { + const diagnostic = this.diagnostics[i]; + this._diagnosticMarkers.push(cm.markText({ + line: diagnostic.range.start.line, + ch: diagnostic.range.start.character, + }, { + line: diagnostic.range.end.line, + ch: diagnostic.range.end.character, + }, { + className: `diagnostic diagnostic-${i}`, + })); + } + }); + } +}; +PlaygroundCodeEditor.styles = [ + i$6 ` + :host { + display: block; + } + + #focusContainer { + height: 100%; + position: relative; + } + #focusContainer:focus { + outline: none; + } + + .CodeMirror { + height: 100% !important; + border-radius: inherit; + } + + .CodeMirror-foldmarker { + font-family: sans-serif; + } + .CodeMirror-foldmarker:hover { + cursor: pointer; + /* Pretty much any color from the theme is good enough. */ + color: var(--playground-code-keyword-color, #770088); + } + + #keyboardHelp { + font-size: 18px; + font-family: sans-serif; + padding: 10px 20px; + } + + .diagnostic { + position: relative; + } + + .diagnostic::before { + /* It would be nice to use "text-decoration: red wavy underline" here, + but unfortunately it renders nothing at all for single characters. + See https://bugs.chromium.org/p/chromium/issues/detail?id=668042. */ + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=='); + content: ''; + position: absolute; + bottom: 0; + left: 0; + width: 100%; + height: 3px; + } + + #tooltip { + position: absolute; + padding: 7px; + z-index: 4; + font-family: var(--playground-code-font-family, monospace); + } + + #tooltip > div { + background: var(--playground-code-background, #fff); + color: var(--playground-code-default-color, #000); + /* Kind of hacky... line number color tends to work out as a good + default border, because it's usually visible on top of the + background, but slightly muted. */ + border: 1px solid var(--playground-code-linenumber-color, #ccc); + padding: 5px; + } + `, + styles$5, +]; +__decorate([ + e$5() +], PlaygroundCodeEditor.prototype, "value", null); +__decorate([ + e$5({ attribute: false }) + // eslint-disable-next-line @typescript-eslint/ban-types +], PlaygroundCodeEditor.prototype, "documentKey", void 0); +__decorate([ + e$5() +], PlaygroundCodeEditor.prototype, "type", void 0); +__decorate([ + e$5({ type: Boolean, attribute: 'line-numbers', reflect: true }) +], PlaygroundCodeEditor.prototype, "lineNumbers", void 0); +__decorate([ + e$5({ type: Boolean, attribute: 'line-wrapping', reflect: true }) +], PlaygroundCodeEditor.prototype, "lineWrapping", void 0); +__decorate([ + e$5({ type: Boolean, reflect: true }) +], PlaygroundCodeEditor.prototype, "readonly", void 0); +__decorate([ + e$5({ type: Boolean, attribute: 'no-completions' }) +], PlaygroundCodeEditor.prototype, "noCompletions", void 0); +__decorate([ + e$5({ attribute: false }) +], PlaygroundCodeEditor.prototype, "diagnostics", void 0); +__decorate([ + t$1() +], PlaygroundCodeEditor.prototype, "_completions", void 0); +__decorate([ + t$1() +], PlaygroundCodeEditor.prototype, "_completionsOpen", void 0); +__decorate([ + e$5() +], PlaygroundCodeEditor.prototype, "pragmas", void 0); +__decorate([ + t$1() +], PlaygroundCodeEditor.prototype, "_tooltipDiagnostic", void 0); +__decorate([ + t$1() +], PlaygroundCodeEditor.prototype, "_showKeyboardHelp", void 0); +__decorate([ + i$2('#focusContainer') +], PlaygroundCodeEditor.prototype, "_focusContainer", void 0); +__decorate([ + i$2('.CodeMirror-code') +], PlaygroundCodeEditor.prototype, "_codemirrorEditable", void 0); +PlaygroundCodeEditor = __decorate([ + e$6('playground-code-editor') +], PlaygroundCodeEditor); + +/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +/** + * A text editor associated with a . + */ +let PlaygroundFileEditor = class PlaygroundFileEditor extends PlaygroundConnectedElement { + constructor() { + super(...arguments); + /** + * If true, display a left-hand-side gutter with line numbers. Default false + * (hidden). + */ + this.lineNumbers = false; + /** + * If true, wrap for long lines. Default false + */ + this.lineWrapping = false; + /** + * How to handle `playground-hide` and `playground-fold` comments. + * + * See https://github.com/google/playground-elements#hiding--folding for + * more details. + * + * Options: + * - on: Hide and fold regions, and hide the special comments. + * - off: Don't hide or fold regions, but still hide the special comments. + * - off-visible: Don't hide or fold regions, and show the special comments as + * literal text. + */ + this.pragmas = 'on'; + /** + * If true, this editor is not editable. + */ + this.readonly = false; + /** + * If true, will disable code completions in the code-editor. + */ + this.noCompletions = false; + this._onProjectFilesChanged = () => { + var _a, _b; + (_a = this.filename) !== null && _a !== void 0 ? _a : (this.filename = (_b = this._files[0]) === null || _b === void 0 ? void 0 : _b.name); + this.requestUpdate(); + }; + this._onCompileDone = () => { + // Propagate diagnostics. + this.requestUpdate(); + }; + this._onDiagnosticsChanged = () => { + // Propagate diagnostics. + this.requestUpdate(); + }; + } + get _files() { + var _a, _b; + return (_b = (_a = this._project) === null || _a === void 0 ? void 0 : _a.files) !== null && _b !== void 0 ? _b : []; + } + get _currentFile() { + return this.filename + ? this._files.find((file) => file.name === this.filename) + : undefined; + } + async update(changedProperties) { + if (changedProperties.has('_project')) { + const oldProject = changedProperties.get('_project'); + if (oldProject) { + oldProject.removeEventListener('filesChanged', this._onProjectFilesChanged); + oldProject.removeEventListener('compileDone', this._onCompileDone); + oldProject.removeEventListener('diagnosticsChanged', this._onDiagnosticsChanged); + } + if (this._project) { + this._project.addEventListener('filesChanged', this._onProjectFilesChanged); + this._project.addEventListener('compileDone', this._onCompileDone); + this._project.addEventListener('diagnosticsChanged', this._onDiagnosticsChanged); + } + this._onProjectFilesChanged(); + } + super.update(changedProperties); + } + render() { + var _a, _b, _c, _d, _e, _f; + return x ` + ${this._files + ? x ` + + + ` + : x ``} + `; + } + _onEdit() { + if (this._project === undefined || + this._currentFile === undefined || + this._editor.value === undefined) { + return; + } + this._project.editFile(this._currentFile, this._editor.value); + } + async _onRequestCompletions(e) { + var _a, _b; + const codeEditorChangeData = e.detail; + codeEditorChangeData.fileName = (_a = this.filename) !== null && _a !== void 0 ? _a : ''; + const completions = await ((_b = this._project) === null || _b === void 0 ? void 0 : _b.getCompletions(codeEditorChangeData)); + if (completions) { + codeEditorChangeData.provideCompletions(completions); + } + } +}; +PlaygroundFileEditor.styles = i$6 ` + :host { + display: block; + /* Prevents scrollbars from changing container size and shifting layout + slightly. */ + box-sizing: border-box; + height: 350px; + } + + slot { + height: 100%; + display: block; + background: var(--playground-code-background, unset); + } + + playground-code-editor { + height: 100%; + border-radius: inherit; + border-top-left-radius: 0; + border-top-right-radius: 0; + } + `; +__decorate([ + i$2('playground-code-editor') +], PlaygroundFileEditor.prototype, "_editor", void 0); +__decorate([ + e$5() +], PlaygroundFileEditor.prototype, "filename", void 0); +__decorate([ + e$5({ type: Boolean, attribute: 'line-numbers' }) +], PlaygroundFileEditor.prototype, "lineNumbers", void 0); +__decorate([ + e$5({ type: Boolean, attribute: 'line-wrapping' }) +], PlaygroundFileEditor.prototype, "lineWrapping", void 0); +__decorate([ + e$5() +], PlaygroundFileEditor.prototype, "pragmas", void 0); +__decorate([ + e$5({ type: Boolean, reflect: true }) +], PlaygroundFileEditor.prototype, "readonly", void 0); +__decorate([ + e$5({ type: Boolean, attribute: 'no-completions' }) +], PlaygroundFileEditor.prototype, "noCompletions", void 0); +PlaygroundFileEditor = __decorate([ + e$6('playground-file-editor') +], PlaygroundFileEditor); +const mimeTypeToTypeEnum = (mimeType) => { + // TODO: infer type based on extension too + if (mimeType === undefined) { + return; + } + const encodingSepIndex = mimeType.indexOf(';'); + if (encodingSepIndex !== -1) { + mimeType = mimeType.substring(0, encodingSepIndex); + } + switch (mimeType) { + // TypeScript: this is the mime-type returned by servers + // .ts files aren't usually served to browsers, so they don't yet + // have their own mime-type. + case 'video/mp2t': + return 'ts'; + case 'text/javascript': + case 'application/javascript': + return 'js'; + case 'text/jsx': + return 'jsx'; + case 'text/typescript-jsx': + return 'tsx'; + case 'application/json': + return 'json'; + case 'text/html': + return 'html'; + case 'text/css': + return 'css'; + } + return undefined; +}; + +/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +/** @soyCompatible */ +class LinearProgressBase extends s$1 { + constructor() { + super(...arguments); + this.indeterminate = false; + this.progress = 0; + this.buffer = 1; + this.reverse = false; + this.closed = false; + this.stylePrimaryHalf = ''; + this.stylePrimaryFull = ''; + this.styleSecondaryQuarter = ''; + this.styleSecondaryHalf = ''; + this.styleSecondaryFull = ''; + this.animationReady = true; + this.closedAnimationOff = false; + this.resizeObserver = null; + } + connectedCallback() { + super.connectedCallback(); + // if detached and reattached + if (this.rootEl) { + this.attachResizeObserver(); + } + } + /** + * @soyTemplate + */ + render() { + /** @classMap */ + const classes = { + 'mdc-linear-progress--closed': this.closed, + 'mdc-linear-progress--closed-animation-off': this.closedAnimationOff, + 'mdc-linear-progress--indeterminate': this.indeterminate, + // needed for controller-less render + 'mdc-linear-progress--animation-ready': this.animationReady + }; + /** @styleMap */ + const rootStyles = { + '--mdc-linear-progress-primary-half': this.stylePrimaryHalf, + '--mdc-linear-progress-primary-half-neg': this.stylePrimaryHalf !== '' ? `-${this.stylePrimaryHalf}` : '', + '--mdc-linear-progress-primary-full': this.stylePrimaryFull, + '--mdc-linear-progress-primary-full-neg': this.stylePrimaryFull !== '' ? `-${this.stylePrimaryFull}` : '', + '--mdc-linear-progress-secondary-quarter': this.styleSecondaryQuarter, + '--mdc-linear-progress-secondary-quarter-neg': this.styleSecondaryQuarter !== '' ? `-${this.styleSecondaryQuarter}` : + '', + '--mdc-linear-progress-secondary-half': this.styleSecondaryHalf, + '--mdc-linear-progress-secondary-half-neg': this.styleSecondaryHalf !== '' ? `-${this.styleSecondaryHalf}` : '', + '--mdc-linear-progress-secondary-full': this.styleSecondaryFull, + '--mdc-linear-progress-secondary-full-neg': this.styleSecondaryFull !== '' ? `-${this.styleSecondaryFull}` : '', + }; + /** @styleMap */ + const bufferBarStyles = { + 'flex-basis': this.indeterminate ? '100%' : `${this.buffer * 100}%`, + }; + /** @styleMap */ + const primaryBarStyles = { + transform: this.indeterminate ? 'scaleX(1)' : `scaleX(${this.progress})`, + }; + return x ` +
+
+
+
+
+
+
+ +
+
+ +
+
`; + } + update(changedProperties) { + // - When showing the indicator, enable animations immediately. + // - On first render, disable the animation immediately. + // - For normal calls to hide the component, let transitionend event trigger + // disabling of animations instead (see render method), so that animation + // does not jump in the middle of fade out. + if (changedProperties.has('closed') && + (!this.closed || changedProperties.get('closed') === undefined)) { + this.syncClosedState(); + } + super.update(changedProperties); + } + async firstUpdated(changed) { + super.firstUpdated(changed); + this.attachResizeObserver(); + } + syncClosedState() { + this.closedAnimationOff = this.closed; + } + updated(changed) { + // restart animation for timing if reverse changed and is indeterminate. + // don't restart here if indeterminate has changed as well because we don't + // want to incur an extra style recalculation + if (!changed.has('indeterminate') && changed.has('reverse') && + this.indeterminate) { + this.restartAnimation(); + } + // Recaclulate the animation css custom props and restart the calculation + // if this is not the first render cycle, otherwise, resize observer init + // will already handle this and prevent unnecessary rerender + style recalc + // but resize observer will not update animation vals while determinate + if (changed.has('indeterminate') && + changed.get('indeterminate') !== undefined && this.indeterminate && + window.ResizeObserver) { + this.calculateAndSetAnimationDimensions(this.rootEl.offsetWidth); + } + super.updated(changed); + } + disconnectedCallback() { + if (this.resizeObserver) { + this.resizeObserver.disconnect(); + this.resizeObserver = null; + } + super.disconnectedCallback(); + } + attachResizeObserver() { + if (window.ResizeObserver) { + this.resizeObserver = + new window + .ResizeObserver((entries) => { + if (!this.indeterminate) { + return; + } + for (const entry of entries) { + if (entry.contentRect) { + const width = entry.contentRect.width; + this.calculateAndSetAnimationDimensions(width); + } + } + }); + this.resizeObserver.observe(this.rootEl); + return; + } + this.resizeObserver = null; + } + calculateAndSetAnimationDimensions(width) { + const primaryHalf = width * 0.8367142; + const primaryFull = width * 2.00611057; + const secondaryQuarter = width * 0.37651913; + const secondaryHalf = width * 0.84386165; + const secondaryFull = width * 1.60277782; + this.stylePrimaryHalf = `${primaryHalf}px`; + this.stylePrimaryFull = `${primaryFull}px`; + this.styleSecondaryQuarter = `${secondaryQuarter}px`; + this.styleSecondaryHalf = `${secondaryHalf}px`; + this.styleSecondaryFull = `${secondaryFull}px`; + // need to restart animation for custom props to apply to keyframes + this.restartAnimation(); + } + async restartAnimation() { + this.animationReady = false; + await this.updateComplete; + await new Promise(requestAnimationFrame); + this.animationReady = true; + await this.updateComplete; + } + open() { + this.closed = false; + } + close() { + this.closed = true; + } +} +__decorate([ + i$2('.mdc-linear-progress') +], LinearProgressBase.prototype, "rootEl", void 0); +__decorate([ + e$5({ type: Boolean, reflect: true }) +], LinearProgressBase.prototype, "indeterminate", void 0); +__decorate([ + e$5({ type: Number }) +], LinearProgressBase.prototype, "progress", void 0); +__decorate([ + e$5({ type: Number }) +], LinearProgressBase.prototype, "buffer", void 0); +__decorate([ + e$5({ type: Boolean, reflect: true }) +], LinearProgressBase.prototype, "reverse", void 0); +__decorate([ + e$5({ type: Boolean, reflect: true }) +], LinearProgressBase.prototype, "closed", void 0); +__decorate([ + ariaProperty, + e$5({ attribute: 'aria-label' }) +], LinearProgressBase.prototype, "ariaLabel", void 0); +__decorate([ + t$1() +], LinearProgressBase.prototype, "stylePrimaryHalf", void 0); +__decorate([ + t$1() +], LinearProgressBase.prototype, "stylePrimaryFull", void 0); +__decorate([ + t$1() +], LinearProgressBase.prototype, "styleSecondaryQuarter", void 0); +__decorate([ + t$1() +], LinearProgressBase.prototype, "styleSecondaryHalf", void 0); +__decorate([ + t$1() +], LinearProgressBase.prototype, "styleSecondaryFull", void 0); +__decorate([ + t$1() +], LinearProgressBase.prototype, "animationReady", void 0); +__decorate([ + t$1() +], LinearProgressBase.prototype, "closedAnimationOff", void 0); + +/** + * @license + * Copyright 2021 Google LLC + * SPDX-LIcense-Identifier: Apache-2.0 + */ +const styles$4 = i$6 `@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%);transform:translateX(var(--mdc-linear-progress-primary-half, 83.67142%))}100%{transform:translateX(200.611057%);transform:translateX(var(--mdc-linear-progress-primary-full, 200.611057%))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%);transform:translateX(var(--mdc-linear-progress-secondary-quarter, 37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%);transform:translateX(var(--mdc-linear-progress-secondary-half, 84.386165%))}100%{transform:translateX(160.277782%);transform:translateX(var(--mdc-linear-progress-secondary-full, 160.277782%))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(-10px)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%);transform:translateX(var(--mdc-linear-progress-primary-half-neg, -83.67142%))}100%{transform:translateX(-200.611057%);transform:translateX(var(--mdc-linear-progress-primary-full-neg, -200.611057%))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg, -37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%);transform:translateX(var(--mdc-linear-progress-secondary-half-neg, -84.386165%))}100%{transform:translateX(-160.277782%);transform:translateX(var(--mdc-linear-progress-secondary-full-neg, -160.277782%))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid transparent;overflow:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;width:100%;height:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;width:100%;height:100%}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}.mdc-linear-progress__bar-inner{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-linear-progress__buffer-dots{background-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23e6e6e6'/%3E%3C/svg%3E")}.mdc-linear-progress__buffer-bar{background-color:#e6e6e6}.mdc-linear-progress{height:4px}.mdc-linear-progress__bar-inner{border-top-width:4px}.mdc-linear-progress__buffer-dots{background-size:10px 4px}:host{display:block}.mdc-linear-progress__buffer-bar{background-color:#e6e6e6;background-color:var(--mdc-linear-progress-buffer-color, #e6e6e6)}.mdc-linear-progress__buffer-dots{background-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23e6e6e6'/%3E%3C/svg%3E");background-image:var(--mdc-linear-progress-buffering-dots-image, url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23e6e6e6'/%3E%3C/svg%3E"))}`; + +/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +/** @soyCompatible */ +let LinearProgress = class LinearProgress extends LinearProgressBase { +}; +LinearProgress.styles = [styles$4]; +LinearProgress = __decorate([ + e$6('mwc-linear-progress') +], LinearProgress); + +/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +/** + * An HTML preview component consisting of an iframe and a floating reload + * button. + * + * @fires reload - Fired when the user clicks the reload button + */ +let PlaygroundPreview = class PlaygroundPreview extends PlaygroundConnectedElement { + constructor() { + super(); + /** + * The HTML file used in the preview. + */ + this.htmlFile = 'index.html'; + /** + * The string to display in the location bar. + */ + this.location = 'Result'; + /** + * Whether the iframe is currently loading. + */ + this._loading = true; + /** + * Whether to show the loading bar. + */ + this._showLoadingBar = false; + /** + * Whether the iframe has fired its "load" event at least once. + */ + this._loadedAtLeastOnce = false; + this.reload = () => { + const iframe = this.iframe; + if (!iframe) { + return; + } + // Reloading the iframe can cause a history entry to be added to the parent + // window (on Chrome but not Firefox, and only when the parent/iframe origins + // are different). Removing the iframe from the DOM while we initiate the + // reload prevents a history entry from being added. + const { parentNode, nextSibling } = iframe; + if (parentNode) { + iframe.remove(); + } + // Note we can't use contentWindow.location.reload() here, because the + // IFrame might be on a different origin. + iframe.src = ''; + iframe.src = this._indexUrl; + if (parentNode) { + parentNode.insertBefore(iframe, nextSibling); + } + this._loading = true; + this._showLoadingBar = true; + }; + if (navigator.serviceWorker === undefined) { + this._error = x `

+ Sorry! Preview unavailable because this browser doesn't + support + service workers. +

+

+ Note: Firefox + doesn't + support service workers in private browsing mode. +

`; + } + } + update(changedProperties) { + if (changedProperties.has('_project')) { + const oldProject = changedProperties.get('_project'); + if (oldProject) { + oldProject.removeEventListener('urlChanged', this.reload); + // To be more responsive, we start loading as soon as compilation + // starts. This is safe because requests block on compilation finishing. + oldProject.removeEventListener('compileStart', this.reload); + } + if (this._project) { + this._project.addEventListener('urlChanged', this.reload); + this._project.addEventListener('compileStart', this.reload); + } + } + super.update(changedProperties); + } + get _indexUrl() { + var _a; + const base = (_a = this._project) === null || _a === void 0 ? void 0 : _a.baseUrl; + if (!base || !this.htmlFile) { + return ''; + } + const url = new URL(this.htmlFile, base); + return url.toString(); + } + render() { + return x ` +
+ ${this.location} + + + + + + +
+ +
+ + + ${this._loadedAtLeastOnce ? A : x ``} + + +
+ + ${this._error + ? x ` + + ${this._error} + ` + : A} + `; + } + updated() { + // TODO(aomarks) If we instead use an `ifDefined(this._indexUrl)` binding in + // the template, then the preview loads twice. I must be doing something + // dumb, but this hacky way of synchronizing the src works correctly for + // now. Figure out the more elegant solution. + if (this.iframe && this.iframe.src !== this._indexUrl) { + this.iframe.src = this._indexUrl; + } + } + async firstUpdated() { + var _a, _b; + // Loading should be initially indicated only when we're not pre-rendering, + // because in that case there should be no visible change once the actual + // iframe loads, and the indicator is distracting. + if (this._loading && !this._slotHasAnyVisibleChildren()) { + this._showLoadingBar = true; + } + // The latest version of MWC forwards the aria-label attribute to the + // progressbar role correctly + // (https://github.com/material-components/material-components-web-components/pull/2264), + // but until 0.21.0 is released we'll need to fix it up ourselves. + const progress = this.shadowRoot.querySelector('mwc-linear-progress'); + await progress.updateComplete; + (_b = (_a = progress.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('[role=progressbar]')) === null || _b === void 0 ? void 0 : _b.setAttribute('aria-label', 'Preview is loading'); + } + _slotHasAnyVisibleChildren() { + var _a; + const assigned = (_a = this._slot) === null || _a === void 0 ? void 0 : _a.assignedNodes({ flatten: true }); + if (!assigned) { + return false; + } + for (const node of assigned) { + if (node.nodeType === Node.COMMENT_NODE) { + continue; + } + if (node.nodeType === Node.TEXT_NODE && + (node.textContent || '').trim() === '') { + continue; + } + return true; + } + return false; + } + _onIframeLoad() { + if (this._indexUrl) { + // Check "src" because the iframe will fire a "load" for a blank page + // before "src" is set. + this._loading = false; + this._loadedAtLeastOnce = true; + this._showLoadingBar = false; + } + } +}; +PlaygroundPreview.styles = i$6 ` + :host { + display: flex; + flex-direction: column; + background: white; + font-family: sans-serif; + height: 350px; + position: relative; /* for the error message overlay */ + } + + #toolbar { + flex: 0 0 var(--playground-bar-height, 40px); + display: flex; + align-items: center; + justify-content: space-between; + border-bottom: var(--playground-border, solid 1px #ddd); + font-size: 15px; + color: var(--playground-preview-toolbar-foreground-color, #444); + border-radius: inherit; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + background: var(--playground-preview-toolbar-background, white); + } + + #location { + margin: 0 10px; + } + + #reload-button { + --mdc-icon-button-size: 30px; + --mdc-icon-size: 18px; + } + + #content { + max-height: 100%; + position: relative; + flex: 1; + } + + #content.error { + display: none; + } + + #error { + padding: 0 20px; + } + + mwc-linear-progress { + /* There is no way to directly specify the height of a linear progress + bar, but zooming works well enough. It's 4px by default, and we want it to + be 2px to match the tab bar indicator.*/ + zoom: 0.5; + --mdc-linear-progress-buffer-color: transparent; + position: absolute; + top: -6px; + width: 100%; + --mdc-theme-primary: var(--playground-highlight-color, #6200ee); + } + + iframe, + slot { + width: 100%; + height: 100%; + } + + iframe { + border: none; + } + + [hidden] { + display: none; + } + `; +__decorate([ + e$5({ attribute: 'html-file' }) +], PlaygroundPreview.prototype, "htmlFile", void 0); +__decorate([ + e$5() +], PlaygroundPreview.prototype, "location", void 0); +__decorate([ + i$2('iframe', true) +], PlaygroundPreview.prototype, "iframe", void 0); +__decorate([ + i$2('slot') +], PlaygroundPreview.prototype, "_slot", void 0); +__decorate([ + t$1() +], PlaygroundPreview.prototype, "_loading", void 0); +__decorate([ + t$1() +], PlaygroundPreview.prototype, "_showLoadingBar", void 0); +__decorate([ + t$1() +], PlaygroundPreview.prototype, "_loadedAtLeastOnce", void 0); +__decorate([ + t$1() +], PlaygroundPreview.prototype, "_error", void 0); +PlaygroundPreview = __decorate([ + e$6('playground-preview') +], PlaygroundPreview); + +/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +/** + * A multi-file code editor component with live preview that works without a + * server. + * + * loads a project configuration file and the set of source + * files it describes from the network. The source files can be edited locally. + * To serve the locally edited files to the live preview, + * registers a service worker to serve files to the preview from the main UI + * thread directly, without a network roundtrip. + * + * The project manifest is a JSON file with a "files" property. "files" is an + * object with properties for each file. The key is the filename, relative to + * the project manifest. + * + * Example project manifest: + * ```json + * { + * "files": { + * "./index.html": {}, + * "./my-element.js": {}, + * } + * } + * ``` + * + * Files can also be given as + * + * + * ``` + */ +let PlaygroundIde = class PlaygroundIde extends s$1 { + constructor() { + super(...arguments); + /** + * Base URL for script execution sandbox. + * + * It is highly advised to change this property to a URL on a separate origin + * which has no privileges to perform sensitive actions or access sensitive + * data. This is because this element will execute arbitrary JavaScript, and + * does not have the ability to sanitize or sandbox it. + * + * This URL must host the following files from the playground-elements + * package: + * 1. playground-service-worker.js + * 2. playground-service-worker-proxy.html + * + * Defaults to the directory containing the script that defines this element + * on the same origin (typically something like + * "/node_modules/playground-elements/"). + */ + this.sandboxBaseUrl = `https://unpkg.com/playground-elements@${npmVersion}/`; + /** + * The service worker scope to register on + */ + // TODO: generate this? + this.sandboxScope = `__playground_swfs_${serviceWorkerHash}/`; + /** + * Allow the user to add, remove, and rename files in the project's virtual + * filesystem. Disabled by default. + */ + this.editableFileSystem = false; + /** + * If true, display a left-hand-side gutter with line numbers. Default false + * (hidden). + */ + this.lineNumbers = false; + /** + * If true, wrap for long lines. Default false + */ + this.lineWrapping = false; + /** + * If true, allow the user to change the relative size of the LHS editor and + * RHS preview by clicking and dragging in the space between them. + */ + this.resizable = false; + /** + * How to handle `playground-hide` and `playground-fold` comments. + * + * See https://github.com/google/playground-elements#hiding--folding for + * more details. + * + * Options: + * - on: Hide and fold regions, and hide the special comments. + * - off: Don't hide or fold regions, but still hide the special comments. + * - off-visible: Don't hide or fold regions, and show the special comments as + * literal text. + */ + this.pragmas = 'on'; + /** + * The HTML file used in the preview. + */ + this.htmlFile = 'index.html'; + /** + * If true, will disable code completions in the code-editor. + */ + this.noCompletions = false; + } + /** + * A document-relative path to a project configuration file. + * + * When both `projectSrc` and `files` are set, the one set most recently wins. + * Slotted children win only if both `projectSrc` and `files` are undefined. + */ + get projectSrc() { + var _a, _b; + // To minimize synchronization complexity, we delegate the `projectSrc` and + // `files` getters/setters directly to our . The only + // case we need to handle is properties set before upgrade or before we + // first render the . + // + // Note we set `hasChanged: () => false` because we don't need to trigger + // `update` when this property changes. (Why be a lit property at all? + // Because we want [1] to respond to attribute changes, and [2] to inherit + // property values set before upgrade). + // + // TODO(aomarks) Maybe a "delegate" decorator for this pattern? + return (_b = (_a = this._project) === null || _a === void 0 ? void 0 : _a.projectSrc) !== null && _b !== void 0 ? _b : this._projectSrcSetBeforeRender; + } + set projectSrc(src) { + const project = this._project; + if (project) { + project.projectSrc = src; + } + else { + this._projectSrcSetBeforeRender = src; + } + } + /** + * Get or set the project config. + * + * When both `projectSrc` and `config` are set, the one set most recently + * wins. Slotted children win only if both `projectSrc` and `config` are + * undefined. + */ + get config() { + var _a, _b; + // Note this is declared a @property only to capture properties set before + // upgrade. Attribute reflection and update lifecycle disabled because they + // are not needed in this case. + return (_b = (_a = this._project) === null || _a === void 0 ? void 0 : _a.config) !== null && _b !== void 0 ? _b : this._configSetBeforeRender; + } + set config(config) { + const project = this._project; + if (project) { + project.config = config; + } + else { + this._configSetBeforeRender = config; + } + } + /** + * Indicates whether the user has modified, added, or removed any project + * files. Resets whenever a new project is loaded. + */ + get modified() { + var _a, _b; + return (_b = (_a = this._project) === null || _a === void 0 ? void 0 : _a.modified) !== null && _b !== void 0 ? _b : false; + } + render() { + const projectId = 'project'; + const editorId = 'editor'; + return x ` + + + + +
+ + + + + +
+ +
+ ${this.resizable + ? x `
` + : A} + + +
+ `; + } + firstUpdated() { + if (this._configSetBeforeRender) { + this._project.config = this._configSetBeforeRender; + this._configSetBeforeRender = undefined; + } + if (this._projectSrcSetBeforeRender) { + this._project.projectSrc = this._projectSrcSetBeforeRender; + this._projectSrcSetBeforeRender = undefined; + } + } + async update(changedProperties) { + var _a; + if (changedProperties.has('resizable') && this.resizable === false) { + // Note we set this property on the RHS element instead of the host so + // that when "resizable" is toggled, we don't reset a host value that the + // user might have set. + (_a = this._rhs) === null || _a === void 0 ? void 0 : _a.style.removeProperty('--playground-preview-width'); + } + super.update(changedProperties); + } + _onResizeBarPointerdown({ pointerId }) { + const bar = this._resizeBar; + bar.setPointerCapture(pointerId); + const rhsStyle = this._rhs.style; + const { left: hostLeft, right: hostRight } = this.getBoundingClientRect(); + const hostWidth = hostRight - hostLeft; + const rhsMinWidth = 100; + const rhsMaxWidth = hostWidth - 100; + const onPointermove = (event) => { + const rhsWidth = Math.min(rhsMaxWidth, Math.max(rhsMinWidth, hostRight - event.clientX)); + const percent = (rhsWidth / hostWidth) * 100; + rhsStyle.setProperty('--playground-preview-width', `${percent}%`); + }; + bar.addEventListener('pointermove', onPointermove); + const onPointerup = () => { + bar.releasePointerCapture(pointerId); + bar.removeEventListener('pointermove', onPointermove); + bar.removeEventListener('pointerup', onPointerup); + }; + bar.addEventListener('pointerup', onPointerup); + } +}; +PlaygroundIde.styles = i$6 ` + :host { + display: flex; + height: 350px; + min-width: 200px; + border: var(--playground-border, solid 1px #ddd); + /* The invisible resize bar has a high z-index so that it's above + CodeMirror. But we don't want it also above other elements on the page. + Force a new stacking context. */ + isolation: isolate; + } + + #lhs { + display: flex; + flex-direction: column; + height: 100%; + flex: 1; + min-width: 100px; + border-radius: inherit; + border-top-right-radius: 0; + border-bottom-right-radius: 0; + border-right: var(--playground-border, solid 1px #ddd); + } + + playground-tab-bar { + flex-shrink: 0; + } + + playground-file-editor { + flex: 1; + height: calc(100% - var(--playground-bar-height, 40px)); + } + + #rhs { + height: 100%; + width: max(100px, var(--playground-preview-width, 30%)); + position: relative; + border-radius: inherit; + } + + playground-preview { + height: 100%; + width: 100%; + border-radius: inherit; + border-top-left-radius: 0; + border-bottom-left-radius: 0; + } + + slot { + display: none; + } + + #resizeBar { + position: absolute; + top: 0; + left: -5px; + width: 10px; + height: 100%; + z-index: 9; + cursor: col-resize; + } + + #resizeOverlay { + display: none; + } + #resizeOverlay.resizing { + display: block; + position: fixed; + top: 0; + left: 0; + width: 100vw; + height: 100vh; + z-index: 99999; + cursor: col-resize; + } + `; +__decorate([ + e$5({ attribute: 'project-src', hasChanged: () => false }) +], PlaygroundIde.prototype, "projectSrc", null); +__decorate([ + e$5({ attribute: false, hasChanged: () => false }) +], PlaygroundIde.prototype, "config", null); +__decorate([ + e$5({ attribute: 'sandbox-base-url' }) +], PlaygroundIde.prototype, "sandboxBaseUrl", void 0); +__decorate([ + e$5({ attribute: 'sandbox-scope' }) +], PlaygroundIde.prototype, "sandboxScope", void 0); +__decorate([ + e$5({ type: Boolean, attribute: 'editable-file-system' }) +], PlaygroundIde.prototype, "editableFileSystem", void 0); +__decorate([ + e$5({ type: Boolean, attribute: 'line-numbers' }) +], PlaygroundIde.prototype, "lineNumbers", void 0); +__decorate([ + e$5({ type: Boolean, attribute: 'line-wrapping' }) +], PlaygroundIde.prototype, "lineWrapping", void 0); +__decorate([ + e$5({ type: Boolean }) +], PlaygroundIde.prototype, "resizable", void 0); +__decorate([ + e$5() +], PlaygroundIde.prototype, "pragmas", void 0); +__decorate([ + e$5({ attribute: 'html-file' }) +], PlaygroundIde.prototype, "htmlFile", void 0); +__decorate([ + e$5({ type: Boolean, attribute: 'no-completions' }) +], PlaygroundIde.prototype, "noCompletions", void 0); +__decorate([ + i$2('playground-project') +], PlaygroundIde.prototype, "_project", void 0); +__decorate([ + i$2('#resizeBar') +], PlaygroundIde.prototype, "_resizeBar", void 0); +__decorate([ + i$2('#rhs') +], PlaygroundIde.prototype, "_rhs", void 0); +PlaygroundIde = __decorate([ + e$6('playground-ide') +], PlaygroundIde); + +var playgroundIde = /*#__PURE__*/Object.freeze({ + __proto__: null, + get PlaygroundIde () { return PlaygroundIde; } +}); + +/** + * Controller which adds styles to it's host element. + * Like `static styles = []`, except a controller. + * Should typically only be used within other controllers. + */ +class StyleController { + constructor(host, + /** These styles will be applied to the host element */ + styles) { + this.host = host; + this.styles = styles; + this.stylesAdopted = false; + host.addController(this); + } + hostConnected() { + if (this.stylesAdopted || !(this.host.renderRoot instanceof ShadowRoot)) { + return; + } + const styles = [this.styles].flatMap(x => c$1(x)).filter(x => !!x); + if (e$a) { + this.host.renderRoot.adoptedStyleSheets = [ + ...styles.map(x => x instanceof CSSStyleSheet ? x : x.styleSheet), + ...this.host.renderRoot.adoptedStyleSheets ?? [], + ]; + } + else { + styles.forEach(s => { + const style = document.createElement('style'); + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const nonce = window['litNonce']; + if (nonce !== undefined) { + style.setAttribute('nonce', nonce); + } + style.textContent = s.cssText; + this.host.renderRoot.appendChild(style); + }); + } + this.stylesAdopted = true; + } +} + +/** + * Context Protocol + * @link https://github.com/webcomponents-cg/community-protocols/blob/main/proposals/context.md + */ +/** + * A function which creates a Context value object + */ +function createContext(name, initialValue) { + return { + name, + initialValue, + }; +} +/** + * An event fired by a context requester to signal it desires a named context. + * + * A provider should inspect the `context` property of the event to determine if it has a value that can + * satisfy the request, calling the `callback` with the requested value if so. + * + * If the requested context event contains a truthy `multiple` value, then a provider can call the callback + * multiple times if the value is changed, if this is the case the provider should pass a `dispose` + * method to the callback which requesters can invoke to indicate they no longer wish to receive these updates. + */ +class ContextEvent extends Event { + constructor(context, callback, multiple) { + super('context-request', { bubbles: true, composed: true }); + this.context = context; + this.callback = callback; + this.multiple = multiple; + } +} + +const CONTEXT_BASE_STYLES = i$6 `:host(:is([color-palette^=dark])){--context:dark;--_context-text:var(--rh-color-text-primary-on-dark, #ffffff)}:host(:is([color-palette^=light],[color-palette=base])){--context:light;--_context-text:var(--rh-color-text-primary-on-light, #151515)}:host(:is([color-palette=lightest])){--_context-background-color:var(--rh-color-surface-lightest, #ffffff)}:host(:is([color-palette=lighter])){--_context-background-color:var(--rh-color-surface-lighter, #f2f2f2)}:host(:is([color-palette=light])){--_context-background-color:var(--rh-color-surface-light, #e0e0e0)}:host(:is([color-palette=base])){--_context-background-color:var(--rh-color-surface-lightest, #ffffff)}:host(:is([color-palette=dark])){--_context-background-color:var(--rh-color-surface-dark, #383838)}:host(:is([color-palette=darker])){--_context-background-color:var(--rh-color-surface-darker, #1f1f1f)}:host(:is([color-palette=darkest])){--_context-background-color:var(--rh-color-surface-darkest, #151515)}`; +/** +* Maps from consumer host elements to already-fired request events +* We hold these in memory in order to re-fire the events every time a new provider connects. +* This is a hedge against cases where an early-upgrading provider claims an early-upgrading +* consumer before a late-upgrading provider has a chance to register as the rightful provider +* @example Monkey-in-the-middle error +* In this example, we must re-fire the event from eager-consumer when late-provider +* upgrades, so as to ensure that late-provider claims it for itself +* ```html +* +* +* +* +* +* ``` +*/ +const contextEvents = new Map(); +/** + * Color context is derived from the `--context` css custom property, + * which *must* be set by the `color-palette` attribute + * This property is set (in most cases) in `color-context.scss`, + * which is added to components via `StyleController`. + * + * In this way, we avoid the need to execute javascript in order to convert from a given + * `ColorPalette` to a given `ColorTheme`, since those relationships are specified in CSS. + */ +class ColorContextController { + constructor(host, options) { + this.host = host; + /** Prefix for colour context. Set this in Options to create a separate context */ + this.prefix = 'rh-'; + /** The last-known color context on the host */ + this.last = null; + this.prefix = options?.prefix ?? 'rh'; + this.context = createContext(`${this.prefix}-color-context`); + this.styleController = new StyleController(host, CONTEXT_BASE_STYLES); + host.addController(this); + } +} + +var _ColorContextConsumer_instances, _ColorContextConsumer_propertyName, _ColorContextConsumer_propertyValue_get, _ColorContextConsumer_propertyValue_set, _ColorContextConsumer_dispose, _ColorContextConsumer_override, _ColorContextConsumer_contextCallback; +/** + * A color context consumer receives sets it's context property based on the context provided + * by the closest color context provider. + * The consumer has no direct access to the context, it must receive it from the provider. + */ +class ColorContextConsumer extends ColorContextController { + get value() { + return __classPrivateFieldGet(this, _ColorContextConsumer_instances, "a", _ColorContextConsumer_propertyValue_get); + } + constructor(host, options) { + super(host, options); + this.options = options; + _ColorContextConsumer_instances.add(this); + _ColorContextConsumer_propertyName.set(this, void 0); + _ColorContextConsumer_dispose.set(this, void 0); + _ColorContextConsumer_override.set(this, null); + __classPrivateFieldSet(this, _ColorContextConsumer_propertyName, options?.propertyName ?? 'on', "f"); + } + /** When a consumer connects, it requests colour context from the closest provider. */ + async hostConnected() { + const event = new ContextEvent(this.context, e => __classPrivateFieldGet(this, _ColorContextConsumer_instances, "m", _ColorContextConsumer_contextCallback).call(this, e), true); + __classPrivateFieldSet(this, _ColorContextConsumer_override, __classPrivateFieldGet(this, _ColorContextConsumer_instances, "a", _ColorContextConsumer_propertyValue_get), "f"); + contextEvents.set(this.host, event); + await this.host.updateComplete; + this.host.dispatchEvent(event); + __classPrivateFieldSet(this, _ColorContextConsumer_override, null, "f"); + } + /** When a consumer disconnects, it's removed from the list of consumers. */ + hostDisconnected() { + __classPrivateFieldGet(this, _ColorContextConsumer_dispose, "f")?.call(this); + __classPrivateFieldSet(this, _ColorContextConsumer_dispose, undefined, "f"); + contextEvents.delete(this.host); + } + /** Sets the `on` attribute on the host and any children that requested multiple updates */ + update(next) { + const { last } = this; + if (!__classPrivateFieldGet(this, _ColorContextConsumer_override, "f") && next !== last) { + this.last = next; + __classPrivateFieldSet(this, _ColorContextConsumer_instances, (next ?? undefined), "a", _ColorContextConsumer_propertyValue_set); + } + this.options?.callback?.(__classPrivateFieldGet(this, _ColorContextConsumer_instances, "a", _ColorContextConsumer_propertyValue_get)); + } +} +_ColorContextConsumer_propertyName = new WeakMap(), _ColorContextConsumer_dispose = new WeakMap(), _ColorContextConsumer_override = new WeakMap(), _ColorContextConsumer_instances = new WeakSet(), _ColorContextConsumer_propertyValue_get = function _ColorContextConsumer_propertyValue_get() { + return this.host[__classPrivateFieldGet(this, _ColorContextConsumer_propertyName, "f")]; +}, _ColorContextConsumer_propertyValue_set = function _ColorContextConsumer_propertyValue_set(x) { + this.host[__classPrivateFieldGet(this, _ColorContextConsumer_propertyName, "f")] = x; + this.host.requestUpdate(); +}, _ColorContextConsumer_contextCallback = function _ColorContextConsumer_contextCallback(value, dispose) { + // protect against changing providers + if (dispose && dispose !== __classPrivateFieldGet(this, _ColorContextConsumer_dispose, "f")) { + __classPrivateFieldGet(this, _ColorContextConsumer_dispose, "f")?.call(this); + __classPrivateFieldSet(this, _ColorContextConsumer_dispose, dispose, "f"); + } + this.update(value); +}; +function colorContextConsumer(options) { + return function (proto, _propertyName) { + const propertyName = _propertyName; + proto.constructor.addInitializer(instance => { + const controller = new ColorContextConsumer(instance, { propertyName, ...options }); + // @ts-expect-error: this assignment is strictly for debugging purposes + instance.__DEBUG_colorContextConsumer = controller; + }); + }; +} + +function isARIAMixinProp(key) { + return key === 'role' || key.startsWith('aria'); +} +class InternalsController { + #internals; + #formDisabled = false; + /** True when the control is disabled via it's containing fieldset element */ + get formDisabled() { + return this.host.matches(':disabled') || this.#formDisabled; + } + static { this.protos = new WeakMap(); } + get labels() { + return this.#internals.labels; + } + get validity() { + return this.#internals.validity; + } + constructor(host, options) { + this.host = host; + this.#internals = host.attachInternals(); + // We need to polyfill :disabled + // see https://github.com/calebdwilliams/element-internals-polyfill/issues/88 + const orig = host.formDisabledCallback; + host.formDisabledCallback = disabled => { + this.#formDisabled = disabled; + orig?.call(host, disabled); + }; + // proxy the internals object's aria prototype + for (const key of Object.keys(Object.getPrototypeOf(this.#internals))) { + if (isARIAMixinProp(key)) { + Object.defineProperty(this, key, { + get() { + return this.#internals[key]; + }, + set(value) { + this.#internals[key] = value; + this.host.requestUpdate(); + } + }); + } + } + for (const [key, val] of Object.entries(options ?? {})) { + if (isARIAMixinProp(key)) { + this[key] = val; + } + } + } + setFormValue(...args) { + return this.#internals.setFormValue(...args); + } + setValidity(...args) { + return this.#internals.setValidity(...args); + } + checkValidity(...args) { + return this.#internals.checkValidity(...args); + } + reportValidity(...args) { + return this.#internals.reportValidity(...args); + } + submit() { + this.#internals.form?.requestSubmit(); + } + reset() { + this.#internals.form?.reset(); + } +} + +var _BaseButton_instances, _BaseButton_internals, _BaseButton_onClick; +const styles$3 = i$6 `:host{display:inline-block;height:max-content}:host([hidden]){display:none!important}[hidden]{display:none!important}button{cursor:pointer;position:relative;font-family:inherit}button{border-width:0;border-style:solid}button::after{position:absolute;inset:0 0 0 0;content:"";border-style:solid}:host(:is(:disabled,[aria-disabled=true])),:host(:is(:disabled,[aria-disabled=true])) #container,:host(:is(:disabled,[aria-disabled=true])) button,:host(:is(:disabled,[aria-disabled=true])[danger]) button,:host(:is(:disabled,[aria-disabled=true])[variant=link]) button{pointer-events:none;cursor:default}[part=icon]{display:none;pointer-events:none}.hasIcon{position:relative;display:flex;align-items:center}.hasIcon [part=icon]{display:inline-flex;align-items:center;position:absolute;width:16px}:host(:not([disabled])) .hasIcon [part=icon]{cursor:pointer}[part=icon] ::slotted(*){width:16px;max-width:16px;height:16px;max-height:16px}.hasIcon button{position:absolute;inset:0}`; +/** + * Base button class + * @csspart button - Internal button element + * @csspart icon - Container for the icon slot + * @slot icon + * Contains the button's icon or state indicator, e.g. a spinner. + * @slot + * Must contain exactly one ` + `; + } + async formDisabledCallback() { + await this.updateComplete; + this.requestUpdate(); + } +} +_BaseButton_internals = new WeakMap(), _BaseButton_instances = new WeakSet(), _BaseButton_onClick = function _BaseButton_onClick() { + switch (this.type) { + case 'reset': + return __classPrivateFieldGet(this, _BaseButton_internals, "f").reset(); + default: + return __classPrivateFieldGet(this, _BaseButton_internals, "f").submit(); + } +}; +BaseButton.styles = [styles$3]; +BaseButton.formAssociated = true; +BaseButton.shadowRootOptions = { ...s$1.shadowRootOptions, delegatesFocus: true }; +__decorate([ + e$5({ reflect: true, type: Boolean }) +], BaseButton.prototype, "disabled", void 0); +__decorate([ + e$5({ reflect: true }) +], BaseButton.prototype, "type", void 0); +__decorate([ + e$5() +], BaseButton.prototype, "label", void 0); +__decorate([ + e$5() +], BaseButton.prototype, "value", void 0); +__decorate([ + e$5() +], BaseButton.prototype, "name", void 0); +__decorate([ + e$5() +], BaseButton.prototype, "icon", void 0); + +var _RhButton_instances, _RhButton_variant_get; +const styles$2 = i$6 `.light{--_primary-color:var(--rh-color-text-primary-on-dark, #ffffff);--_primary-background-color:var(--rh-color-interactive-blue-darker, #0066cc);--_primary-border-color:transparent;--_primary-border-width:var(--rh-border-width-sm, 1px);--_primary-active-color:var(--rh-color-text-primary-on-dark, #ffffff);--_primary-active-background-color:var(--rh-color-interactive-blue-darkest, #004080);--_primary-active-border-width:var(--rh-border-width-sm, 1px);--_primary-focus-color:var(--rh-color-text-primary-on-dark, #ffffff);--_primary-focus-background-color:var(--rh-color-interactive-blue-darkest, #004080);--_primary-focus-border-width:var(--rh-border-width-md, 2px);--_primary-hover-color:var(--rh-color-text-primary-on-dark, #ffffff);--_primary-hover-background-color:var(--rh-color-interactive-blue-darkest, #004080);--_primary-hover-border-width:var(--rh-border-width-sm, 1px);--_danger-color:var(--rh-color-text-primary-on-dark, #ffffff);--_danger-background-color:#c9190b;--_danger-border-color:transparent;--_danger-border-width:var(--rh-border-width-sm, 1px);--_danger-active-color:var(--rh-color-text-primary-on-dark, #ffffff);--_danger-active-background-color:#a30000;--_danger-active-border-color:transparent;--_danger-focus-color:var(--rh-color-text-primary-on-dark, #ffffff);--_danger-focus-background-color:#a30000;--_danger-focus-border-color:transparent;--_danger-focus-border-width:var(--rh-border-width-md, 2px);--_danger-hover-color:var(--rh-color-text-primary-on-dark, #ffffff);--_danger-hover-background-color:#a30000;--_danger-hover-border-color:transparent;--_secondary-color:var(--rh-color-interactive-blue-darker, #0066cc);--_secondary-danger-color:var(--rh-color-red-600, #be0000);--_secondary-background-color:transparent;--_secondary-border-color:var(--rh-color-interactive-blue-darker, #0066cc);--_secondary-border-width:var(--rh-border-width-sm, 1px);--_secondary-active-color:var(--rh-color-interactive-blue-darker, #0066cc);--_secondary-active-background-color:transparent;--_secondary-active-border-color:var(--rh-color-interactive-blue-darker, #0066cc);--_secondary-active-border-width:var(--rh-border-width-md, 2px);--_secondary-focus-color:var(--rh-color-interactive-blue-darker, #0066cc);--_secondary-focus-background-color:transparent;--_secondary-focus-border-color:var(--rh-color-interactive-blue-darker, #0066cc);--_secondary-focus-border-width:var(--rh-border-width-md, 2px);--_secondary-hover-color:var(--rh-color-interactive-blue-darker, #0066cc);--_secondary-hover-background-color:transparent;--_secondary-hover-border-color:var(--rh-color-interactive-blue-darker, #0066cc);--_secondary-hover-border-width:var(--rh-border-width-md, 2px);--_tertiary-color:var(--rh-color-text-primary-on-light, #151515);--_tertiary-background-color:transparent;--_tertiary-border-color:var(--rh-color-border-strong-on-light, #151515);--_tertiary-border-width:var(--rh-border-width-sm, 1px);--_tertiary-active-color:var(--rh-color-text-primary-on-light, #151515);--_tertiary-active-background-color:transparent;--_tertiary-active-border-color:var(--rh-color-border-strong-on-light, #151515);--_tertiary-active-border-width:var(--rh-border-width-md, 2px);--_tertiary-focus-color:var(--rh-color-text-primary-on-light, #151515);--_tertiary-focus-background-color:transparent;--_tertiary-focus-border-color:var(--rh-color-border-strong-on-light, #151515);--_tertiary-focus-border-width:var(--rh-border-width-md, 2px);--_tertiary-hover-color:var(--rh-color-text-primary-on-light, #151515);--_tertiary-hover-background-color:transparent;--_tertiary-hover-border-color:var(--rh-color-border-strong-on-light, #151515);--_tertiary-hover-border-width:var(--rh-border-width-md, 2px);--_link-color:var(--rh-color-interactive-blue-darker, #0066cc);--_link-background-color:transparent;--_link-active-color:var(--rh-color-blue-600, #002952);--_link-active-background-color:transparent;--_link-focus-color:var(--rh-color-blue-600, #002952);--_link-focus-background-color:transparent;--_link-focus-outline-color:var(--rh-color-interactive-blue-darker, #0066cc);--_link-hover-color:var(--rh-color-blue-600, #002952);--_link-hover-background-color:transparent;--_close-color:var(--rh-color-text-secondary-on-light, #4d4d4d);--_close-background-color:transparent;--_close-active-color:var(--rh-color-icon-secondary-on-light, #151515);--_close-active-background-color:transparent;--_close-focus-color:var(--rh-color-icon-secondary-on-light, #151515);--_close-focus-background-color:transparent;--_close-focus-outline-color:var(--rh-color-interactive-blue-darker, #0066cc);--_close-hover-color:var(--rh-color-icon-secondary-on-light, #151515);--_close-hover-background-color:transparent;--_gray-90-rgb:var(--rh-color-gray-90-rgb, 21 21 21);--_play-color:var(--rh-color-icon-secondary-on-dark, #ffffff);--_play-background-color:rgb(var(--_gray-90-rgb) / var(--rh-opacity-50, 50%));--_play-active-background-color:rgb(var(--_gray-90-rgb) / var(--rh-opacity-80, 80%));--_play-focus-background-color:rgb(var(--_gray-90-rgb) / var(--rh-opacity-80, 80%));--_play-focus-outline-color:var(--rh-color-interactive-blue-darker, #0066cc);--_play-hover-background-color:rgb(var(--_gray-90-rgb) / var(--rh-opacity-80, 80%))}.dark{--_focus-outline-color:var(--rh-color-interactive-blue-lighter, #73bcf7);--_primary-color:var(--rh-color-text-primary-on-dark, #ffffff);--_primary-background-color:var(--rh-color-interactive-blue-darker, #0066cc);--_primary-border-color:transparent;--_primary-border-width:var(--rh-border-width-sm, 1px);--_primary-active-color:var(--rh-color-text-primary-on-dark, #ffffff);--_primary-active-background-color:var(--rh-color-interactive-blue-darkest, #004080);--_primary-focus-color:var(--rh-color-text-primary-on-dark, #ffffff);--_primary-focus-background-color:var(--rh-color-interactive-blue-darkest, #004080);--_primary-hover-color:var(--rh-color-text-primary-on-dark, #ffffff);--_primary-hover-background-color:var(--rh-color-interactive-blue-darkest, #004080);--_danger-color:var(--rh-color-text-primary-on-light, #151515);--_danger-background-color:#fe5142;--_danger-border-color:transparent;--_danger-border-width:var(--rh-border-width-sm, 1px);--_danger-active-color:var(--rh-color-text-primary-on-light, #151515);--_danger-active-background-color:#ff7468;--_danger-active-border-color:transparent;--_danger-focus-color:var(--rh-color-text-primary-on-light, #151515);--_danger-focus-background-color:#ff7468;--_danger-focus-border-color:transparent;--_danger-hover-color:var(--rh-color-text-primary-on-light, #151515);--_danger-hover-background-color:#ff7468;--_danger-hover-border-color:transparent;--_secondary-color:var(--rh-color-interactive-blue-lighter, #73bcf7);--_secondary-danger-color:var(--rh-color-red-200, #fab6b6);--_secondary-background-color:transparent;--_secondary-border-color:var(--rh-color-interactive-blue-lighter, #73bcf7);--_secondary-border-width:var(--rh-border-width-sm, 1px);--_secondary-active-color:var(--rh-color-interactive-blue-lighter, #73bcf7);--_secondary-active-background-color:transparent;--_secondary-active-border-color:var(--rh-color-interactive-blue-lighter, #73bcf7);--_secondary-active-border-width:var(--rh-border-width-md, 2px);--_secondary-focus-color:var(--rh-color-interactive-blue-lighter, #73bcf7);--_secondary-focus-background-color:transparent;--_secondary-focus-border-color:var(--rh-color-interactive-blue-lighter, #73bcf7);--_secondary-focus-border-width:var(--rh-border-width-md, 2px);--_secondary-hover-color:var(--rh-color-interactive-blue-lighter, #73bcf7);--_secondary-hover-background-color:transparent;--_secondary-hover-border-color:var(--rh-color-interactive-blue-lighter, #73bcf7);--_secondary-hover-border-width:var(--rh-border-width-md, 2px);--_tertiary-color:var(--rh-color-text-primary-on-dark, #ffffff);--_tertiary-background-color:transparent;--_tertiary-border-color:var(--rh-color-text-primary-on-dark, #ffffff);--_tertiary-border-width:var(--rh-border-width-sm, 1px);--_tertiary-active-color:var(--rh-color-text-primary-on-dark, #ffffff);--_tertiary-active-background-color:transparent;--_tertiary-active-border-color:var(--rh-color-border-strong-on-dark, #ffffff);--_tertiary-active-border-width:var(--rh-border-width-md, 2px);--_tertiary-focus-color:var(--rh-color-text-primary-on-dark, #ffffff);--_tertiary-focus-background-color:transparent;--_tertiary-focus-border-color:var(--rh-color-border-strong-on-dark, #ffffff);--_tertiary-focus-border-width:var(--rh-border-width-md, 2px);--_tertiary-hover-color:var(--rh-color-text-primary-on-dark, #ffffff);--_tertiary-hover-background-color:transparent;--_tertiary-hover-border-color:var(--rh-color-border-strong-on-dark, #ffffff);--_tertiary-hover-border-width:var(--rh-border-width-md, 2px);--_link-color:var(--rh-color-interactive-blue-lighter, #73bcf7);--_link-background-color:transparent;--_link-active-color:var(--rh-color-interactive-blue-lightest, #bee1f4);--_link-active-background-color:transparent;--_link-focus-color:var(--rh-color-interactive-blue-lightest, #bee1f4);--_link-focus-background-color:transparent;--_link-focus-outline-color:var(--rh-color-interactive-blue-lighter, #73bcf7);--_link-hover-color:var(--rh-color-interactive-blue-lightest, #bee1f4);--_link-hover-background-color:transparent;--_close-color:var(--rh-color-text-secondary-on-dark, #c7c7c7);--_close-background-color:transparent;--_close-focus-background-color:transparent;--_close-focus-outline-color:var(--rh-color-interactive-blue-lighter, #73bcf7);--_white-rgb:var(--rh-color-white-rgb, 255 255 255);--_play-color:var(--rh-color-icon-secondary-on-light, #151515);--_play-background-color:rgb(var(--_white-rgb) / var(--rh-opacity-50, 50%));--_play-active-background-color:rgb(var(--_white-rgb) / var(--rh-opacity-80, 80%));--_play-focus-background-color:rgb(var(--_white-rgb) / var(--rh-opacity-80, 80%));--_play-focus-outline-color:var(--rh-color-interactive-blue-lighter, #73bcf7);--_play-hover-background-color:rgb(var(--_white-rgb) / var(--rh-opacity-80, 80%))}#rhds-container,:host{display:contents}:host([hidden]){display:none!important}[hidden]{display:none!important}rh-icon{color:currentcolor}button{cursor:pointer;position:relative;color:var(--_color);background-color:var(--_background-color);font-family:inherit;font-size:var(--rh-font-size-body-text-md, 1rem);font-weight:var(--rh-font-weight-body-text-regular,400);line-height:var(--rh-line-height-body-text, 1.5);padding-block:var(--rh-space-sm,6px);padding-inline:var(--rh-space-lg,16px);border-width:0;border-style:solid;border-radius:var(--rh-border-radius-default,3px);outline-offset:var(--rh-length-4xs,1px);--_color:var(--_default-color, var(--_primary-color));--_background-color:var(--_default-background-color, var(--_primary-background-color));--_border-color:var(--_default-border-color, var(--_primary-border-color));--_border-width:var(--_default-border-width, var(--_primary-border-width))}button:after{position:absolute;inset:0;content:"";border-style:solid;border-color:var(--_border-color);border-width:var(--_border-width);border-radius:var(--rh-border-radius-default,3px)}[part=icon]{display:none;pointer-events:none}.hasIcon{position:relative;display:flex;align-items:center}button:active{--_color:var(--_active-color, var(--_primary-active-color));--_background-color:var(--_active-background-color, var(--_primary-active-background-color));--_border-width:var(var(--_active-border-width), var(--_primary-active-border-width))}button:focus{--_color:var(--_focus-color, var(--_primary-focus-color));--_background-color:var(--_focus-background-color, var(--_primary-focus-background-color));--_border-width:var(--_focus-border-width, var(--_primary-focus-border-width))}button:focus:after{border-width:var(--_border-width,var(--rh-border-width-md,2px))}button:active,button:focus{outline:var(--rh-border-width-md,2px) solid var(--_focus-outline-color,var(--rh-color-interactive-blue-darker,#0066cc))}button:hover{--_color:var(--_hover-color, var(--_primary-hover-color));--_background-color:var(--_hover-background-color, var(--_primary-hover-background-color));--_border-width:var(--_hover-border-width, var(--_primary-hover-border-width))}:host([danger]) button{--_default-color:var(--_danger-color);--_default-background-color:var(--_danger-background-color);--_default-border-color:var(--_danger-border-color);--_active-color:var(--_danger-active-color);--_active-background-color:var(--_danger-active-background-color);--_active-border-color:var(--_danger-active-border-color);--_focus-color:var(--_danger-focus-color);--_focus-background-color:var(--_danger-focus-background-color);--_focus-border-color:var(--_danger-focus-border-color);--_hover-color:var(--_danger-hover-color);--_hover-background-color:var(--_danger-hover-background-color);--_hover-border-color:var(--_danger-hover-border-color)}:host([variant=secondary i]) button{--_default-color:var(--_secondary-color);--_default-background-color:var(--_secondary-background-color);--_default-border-color:var(--_secondary-border-color);--_default-border-width:var(--_secondary-border-width);--_active-color:var(--_secondary-active-color);--_active-background-color:var(--_secondary-active-background-color);--_active-border-color:var(--_secondary-active-border-color);--_active-border-width:var(--_secondary-active-border-width);--_focus-color:var(--_secondary-focus-color);--_focus-background-color:var(--_secondary-focus-background-color);--_focus-border-color:var(--_secondary-focus-border-color);--_hover-color:var(--_secondary-hover-color);--_hover-background-color:var(--_secondary-hover-background-color);--_hover-border-color:var(--_secondary-hover-border-color);--_hover-border-width:var(--_secondary-hover-border-width)}:host([variant=tertiary i]) button{--_default-color:var(--_tertiary-color);--_default-background-color:var(--_tertiary-background-color);--_default-border-color:var(--_tertiary-border-color);--_active-color:var(--_tertiary-active-color);--_active-background-color:var(--_tertiary-active-background-color);--_active-border-color:var(--_tertiary-active-border-color);--_active-border-width:var(--_tertiary-active-border-width);--_focus-color:var(--_tertiary-focus-color);--_focus-background-color:var(--_tertiary-focus-background-color);--_focus-border-color:var(--_tertiary-focus-border-color);--_hover-color:var(--_tertiary-hover-color);--_hover-background-color:var(--_tertiary-hover-background-color);--_hover-border-color:var(--_tertiary-hover-border-color);--_hover-border-width:var(--_tertiary-hover-border-width)}:host([variant=link i]) button{display:inline;--_default-color:var(--_link-color);--_default-background-color:var(--_link-background-color);--_default-border-color:transparent;--_active-color:var(--_link-active-color);--_active-background-color:var(--_link-active-background-color);--_active-border-color:transparent;--_focus-color:var(--_link-focus-color);--_focus-background-color:var(--_link-focus-background-color);--_focus-border-color:transparent;--_focus-outline-color:var(--_link-focus-outline-color);--_hover-color:var(--_link-hover-color);--_hover-background-color:var(--_link-hover-background-color);--_hover-border-color:transparent}:host([variant=close i]) button{--_default-color:var(--_close-color);--_default-background-color:var(--_close-background-color);--_active-color:var(--_close-active-color);--_active-background-color:var(--_close-active-background-color);--_active-border-color:transparent;--_focus-color:var(--_close-focus-color);--_focus-background-color:var(--_close-focus-background-color);--_focus-border-color:transparent;--_focus-outline-color:var(--_close-focus-outline-color);--_hover-color:var(--_close-hover-color);--_hover-background-color:transparent;--_hover-border-color:transparent;width:var(--rh-length-lg,16px);aspect-ratio:1}:host([variant=play i]) button{border-radius:100%;width:var(--rh-length-4xl,64px);--_default-color:var(--_play-color);--_default-background-color:var(--_play-background-color);--_default-background-opacity:var(--_play-background-opacity);--_active-color:var(--_play-color);--_active-background-color:var(--_play-active-background-color);--_active-background-opacity:var(--_play-active-background-opacity);--_focus-color:var(--_play-color);--_focus-background-color:var(--_play-focus-background-color);--_focus-background-opacity:var(--_play-focus-background-opacity);--_focus-outline-color:var(--_play-focus-outline-color);--_hover-color:var(--_play-color);--_hover-background-color:var(--_play-hover-background-color);--_hover-background-opacity:var(--_play-hover-background-opacity);--_icon-size:var(--rh-size-icon-04, 40px)}:host(:is([variant=play i],[variant=close i])) button{aspect-ratio:1;display:inline-flex;align-items:center;justify-content:center;padding:0}:host(:is([variant=play i],[variant=close i])) [part=icon]{display:inline-block;width:var(--_icon-size,var(--rh-size-icon-01,16px));height:var(--_icon-size,var(--rh-size-icon-01,16px))}:host(:is([variant=play i],[variant=close i])) svg{fill:currentcolor;stroke:currentcolor}:host(:is([variant=play i],[variant=close i])) #text{display:inline;position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}:host(:disabled) button,:host(:disabled[danger]) button,:host(:disabled[variant=link]) button,button[disabled]{pointer-events:none;cursor:default;--_color:var(--rh-color-text-secondary-on-light, #4d4d4d);--_background-color:var(--rh-color-surface-light, #e0e0e0)}:host(:disabled) button:after{--_border-color:transparent}:host([variant=secondary i][danger]) button{--_default-color:var(--_secondary-danger-color);--_default-background-color:transparent;--_default-border-color:var(--_danger-background-color);--_active-color:var(--_danger-background-color);--_active-background-color:transparent;--_active-border-color:var(--_danger-active-border-color);--_focus-color:var(--_secondary-danger-color);--_focus-background-color:transparent;--_focus-border-color:var(--_danger-focus-border-color);--_hover-color:var(--_danger-background-color);--_hover-background-color:transparent;--_hover-border-color:var(--_danger-hover-border-color)}`; +/** + * A button is clickable text or an icon that triggers an action on the page or in the background. Depending on the action, content, and hierarchy, a button can be used on its own or grouped with other buttons. + * + * @summary Triggers actions on the page or in the background + * @summary Triggers actions on the page or in the background + * @csspart icon - Container for the icon slot + * @slot icon - Contains the button's icon or state indicator, e.g. a spinner. + * @slot - Contains button text + */ +let RhButton = class RhButton extends BaseButton { + constructor() { + super(...arguments); + _RhButton_instances.add(this); + /** + * Changes the style of the button. + * - Primary: Used for the most important call to action on a page. Try to + * limit primary buttons to one per page. + * - Secondary: Use secondary buttons for general actions on a page, that + * don’t require as much emphasis as primary button actions. For example, + * you can use secondary buttons where there are multiple actions, like in + * toolbars or data lists. + * - Tertiary: Tertiary buttons are flexible and can be used as needed. + */ + this.variant = 'primary'; + /** + * When set, indicates that the button performs a destructive action + */ + this.danger = false; + } + willUpdate() { + switch (__classPrivateFieldGet(this, _RhButton_instances, "a", _RhButton_variant_get)) { + case 'close': + case 'play': + this.icon = __classPrivateFieldGet(this, _RhButton_instances, "a", _RhButton_variant_get); + break; + } + } + render() { + const { on = 'light' } = this; + return x `
${super.render()}
`; + } + renderDefaultIcon() { + switch (__classPrivateFieldGet(this, _RhButton_instances, "a", _RhButton_variant_get)) { + // TODO: revisit when rh-icon is ready + // return html``; + case 'close': + return x ` + + + + `; + case 'play': + return x ` + + + + `; + default: + return ''; + } + } +}; +_RhButton_instances = new WeakSet(), _RhButton_variant_get = function _RhButton_variant_get() { return this.variant?.toLowerCase(); }; +RhButton.styles = [styles$2]; +__decorate([ + e$5({ reflect: true }) +], RhButton.prototype, "variant", void 0); +__decorate([ + e$5({ type: Boolean, reflect: true }) +], RhButton.prototype, "danger", void 0); +__decorate([ + colorContextConsumer() +], RhButton.prototype, "on", void 0); +RhButton = __decorate([ + e$6('rh-button') +], RhButton); + +class Logger { + static { this.instances = new WeakMap(); } + get prefix() { + return `[${this.host.localName}${this.host.id ? `#${this.host.id}` : ''}]`; + } + /** + * A boolean value that indicates if the logging should be printed to the console; used for debugging. + * For use in a JS file or script tag; can also be added in the constructor of a component during development. + * @example Logger.debugLog(true); + * @tags debug + */ + static debugLog(preference = null) { + // wrap localStorage references in a try/catch; merely referencing it can + // throw errors in some locked down environments + try { + if (preference !== null) { + Logger.logDebug = !!preference; + localStorage.pfeLog = !!preference; + } + return localStorage.pfeLog === 'true'; + } + catch (e) { + return Logger.logDebug; + } + } + /** + * A logging wrapper which checks the debugLog boolean and prints to the console if true. + * + * @example Logger.log("Hello"); + */ + static log(...msgs) { + if (Logger.debugLog()) { + // eslint-disable-next-line no-console + console.log(...msgs); + } + } + /** + * A console warning wrapper which formats your output with useful debugging information. + * + * @example Logger.warn("Hello"); + */ + static warn(...msgs) { + console.warn(...msgs); // eslint-disable-line no-console + } + /** + * A console error wrapper which formats your output with useful debugging information. + * For use inside a component's function. + * @example Logger.error("Hello"); + */ + static error(...msgs) { + console.error([...msgs].join(' ')); // eslint-disable-line no-console + } + /** + * Local logging that outputs the tag name as a prefix automatically + * + * @example this.logger.log("Hello"); + */ + log(...msgs) { + Logger.log(this.prefix, ...msgs); + } + /** + * Local warning wrapper that outputs the tag name as a prefix automatically. + * For use inside a component's function. + * @example this.logger.warn("Hello"); + */ + warn(...msgs) { + Logger.warn(this.prefix, ...msgs); + } + /** + * Local error wrapper that outputs the tag name as a prefix automatically. + * For use inside a component's function. + * @example this.logger.error("Hello"); + */ + error(...msgs) { + Logger.error(this.prefix, ...msgs); + } + constructor(host) { + this.host = host; + // We only need one logger instance per host + if (Logger.instances.get(host)) { + return Logger.instances.get(host); + } + host.addController(this); + Logger.instances.set(host, this); + } + hostConnected() { + this.log('connected'); + } +} + +var _ColorContextProvider_instances, _ColorContextProvider_attribute, _ColorContextProvider_callbacks, _ColorContextProvider_mo, _ColorContextProvider_style, _ColorContextProvider_initialized, _ColorContextProvider_logger, _ColorContextProvider_consumer, _ColorContextProvider_local_get, _ColorContextProvider_isColorContextEvent, _ColorContextProvider_onChildContextEvent; +/** + * `ColorContextProvider` is responsible to derive a context value from CSS and provide it to its + * descendents. + */ +class ColorContextProvider extends ColorContextController { + get local() { + return __classPrivateFieldGet(this, _ColorContextProvider_instances, "a", _ColorContextProvider_local_get); + } + get value() { + return __classPrivateFieldGet(this, _ColorContextProvider_instances, "a", _ColorContextProvider_local_get) ?? __classPrivateFieldGet(this, _ColorContextProvider_consumer, "f").value; + } + constructor(host, options) { + const { attribute = 'color-palette', ...rest } = options ?? {}; + super(host, rest); + _ColorContextProvider_instances.add(this); + _ColorContextProvider_attribute.set(this, void 0); + /** Cache of context callbacks. Call each to update consumers */ + _ColorContextProvider_callbacks.set(this, new Set()); + /** Mutation observer which updates consumers when `color-palette` attribute change. */ + _ColorContextProvider_mo.set(this, new MutationObserver(() => this.update())); + /** + * Cached (live) computed style declaration + * @see https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle + */ + _ColorContextProvider_style.set(this, void 0); + _ColorContextProvider_initialized.set(this, false); + _ColorContextProvider_logger.set(this, void 0); + _ColorContextProvider_consumer.set(this, void 0); + __classPrivateFieldSet(this, _ColorContextProvider_consumer, new ColorContextConsumer(host, { callback: value => this.update(value) }), "f"); + __classPrivateFieldSet(this, _ColorContextProvider_logger, new Logger(host), "f"); + __classPrivateFieldSet(this, _ColorContextProvider_style, window.getComputedStyle(host), "f"); + __classPrivateFieldSet(this, _ColorContextProvider_attribute, attribute, "f"); + if (__classPrivateFieldGet(this, _ColorContextProvider_attribute, "f") !== 'color-palette') { + __classPrivateFieldGet(this, _ColorContextProvider_logger, "f").warn('color context currently supports the `color-palette` attribute only.'); + } + } + /** + * When a context provider connects, it listens for context-request events + * it also fires all previously fired context-request events from their hosts, + * in case this context provider upgraded after and is closer to a given consumer. + */ + async hostConnected() { + this.host.addEventListener('context-request', e => __classPrivateFieldGet(this, _ColorContextProvider_instances, "m", _ColorContextProvider_onChildContextEvent).call(this, e)); + __classPrivateFieldGet(this, _ColorContextProvider_mo, "f").observe(this.host, { attributes: true, attributeFilter: [__classPrivateFieldGet(this, _ColorContextProvider_attribute, "f")] }); + for (const [host, fired] of contextEvents) { + host.dispatchEvent(fired); + } + await this.host.updateComplete; + this.update(); + } + hostUpdated() { + __classPrivateFieldSet(this, _ColorContextProvider_initialized, __classPrivateFieldGet(this, _ColorContextProvider_initialized, "f") || (this.update(), true), "f"); + if (__classPrivateFieldGet(this, _ColorContextProvider_instances, "a", _ColorContextProvider_local_get) && this.value !== __classPrivateFieldGet(this, _ColorContextProvider_consumer, "f").value) { + __classPrivateFieldGet(this, _ColorContextProvider_consumer, "f").update(__classPrivateFieldGet(this, _ColorContextProvider_instances, "a", _ColorContextProvider_local_get)); + this.update(); + } + } + /** + * When a context provider disconnects, it disconnects its mutation observer + */ + hostDisconnected() { + __classPrivateFieldGet(this, _ColorContextProvider_callbacks, "f").forEach(x => __classPrivateFieldGet(this, _ColorContextProvider_callbacks, "f").delete(x)); + __classPrivateFieldGet(this, _ColorContextProvider_mo, "f").disconnect(); + } + /** Calls the context callback for all consumers */ + async update(force) { + const { value } = this; + for (const cb of __classPrivateFieldGet(this, _ColorContextProvider_callbacks, "f")) { + cb(force ?? value); + } + } +} +_ColorContextProvider_attribute = new WeakMap(), _ColorContextProvider_callbacks = new WeakMap(), _ColorContextProvider_mo = new WeakMap(), _ColorContextProvider_style = new WeakMap(), _ColorContextProvider_initialized = new WeakMap(), _ColorContextProvider_logger = new WeakMap(), _ColorContextProvider_consumer = new WeakMap(), _ColorContextProvider_instances = new WeakSet(), _ColorContextProvider_local_get = function _ColorContextProvider_local_get() { + return ColorContextProvider + .contexts.get(this.host.getAttribute(__classPrivateFieldGet(this, _ColorContextProvider_attribute, "f")) ?? ''); +}, _ColorContextProvider_isColorContextEvent = function _ColorContextProvider_isColorContextEvent(event) { + return (event.target !== this.host && + event.context.name === this.context.name); +}, _ColorContextProvider_onChildContextEvent = +/** + * Provider part of context API + * When a child connects, claim its context-request event + * and add its callback to the Set of children if it requests multiple updates + */ +async function _ColorContextProvider_onChildContextEvent(event) { + // only handle ContextEvents relevant to colour context + if (__classPrivateFieldGet(this, _ColorContextProvider_instances, "m", _ColorContextProvider_isColorContextEvent).call(this, event)) { + // claim the context-request event for ourselves (required by context protocol) + event.stopPropagation(); + // Run the callback to initialize the child's colour-context + event.callback(this.value); + // Cache the callback for future updates, if requested + if (event.multiple) { + __classPrivateFieldGet(this, _ColorContextProvider_callbacks, "f").add(event.callback); + } + } +}; +ColorContextProvider.contexts = new Map(Object.entries({ + darkest: 'dark', + darker: 'dark', + dark: 'dark', + light: 'light', + lighter: 'light', + lightest: 'light', +})); +/** Makes this element a color context provider which updates its consumers when the decorated field changes */ +function colorContextProvider(options) { + return function (proto, _propertyName) { + const propertyName = _propertyName; + const klass = proto.constructor; + const propOpts = klass.getPropertyOptions(_propertyName); + const attribute = typeof propOpts.attribute === 'boolean' ? undefined : propOpts.attribute; + klass.addInitializer(instance => { + const controller = new ColorContextProvider(instance, { propertyName, attribute, ...options }); + // @ts-expect-error: this assignment is strictly for debugging purposes + instance.__DEBUG_colorContextProvider = controller; + }); + }; +} + +const styles$1 = i$6 `:host{display:inline-block;width:min-content;min-height:0;aspect-ratio:1/1}svg{overflow:hidden}circle{width:100%;height:100%;transform-origin:50% 50%;stroke-linecap:round;stroke-dasharray:283;stroke-dashoffset:280}`; +/** + * Base spinner class + * + * @cssprop {} --pf-c-spinner--diameter {@default `3.375rem`} + * @cssprop {} --pf-c-spinner--Width {@default `3.375rem`} + * @cssprop {} --pf-c-spinner--Height {@default `3.375rem`} + * @cssprop {} --pf-c-spinner--Color {@default `#06c`} + * @cssprop {} --pf-c-spinner--m-sm--diameter {@default `0.625rem`} + * @cssprop {} --pf-c-spinner--m-md--diameter {@default `1.125rem`} + * @cssprop {} --pf-c-spinner--m-lg--diameter {@default `1.5rem`} + * @cssprop {} --pf-c-spinner--m-xl--diameter {@default `3.375rem`} + * @cssprop {